Skip to content

Commit fd35bc1

Browse files
authored
Remove year from the license header (#675)
1 parent ab0288f commit fd35bc1

File tree

165 files changed

+300
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+300
-309
lines changed

examples/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/driver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -279,7 +279,7 @@ class Driver {
279279
} finally {
280280
// then close all connections driver has ever created
281281
// it is needed to close connections that are active right now and are acquired from the pool
282-
for (let connectionId in this._openConnections) {
282+
for (const connectionId in this._openConnections) {
283283
if (this._openConnections.hasOwnProperty(connectionId)) {
284284
this._openConnections[connectionId].close()
285285
}

src/v1/error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/graph-types.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -38,7 +38,7 @@ class Node {
3838
for (let i = 0; i < this.labels.length; i++) {
3939
s += ':' + this.labels[i]
4040
}
41-
let keys = Object.keys(this.properties)
41+
const keys = Object.keys(this.properties)
4242
if (keys.length > 0) {
4343
s += ' {'
4444
for (let i = 0; i < keys.length; i++) {
@@ -74,7 +74,7 @@ class Relationship {
7474

7575
toString () {
7676
let s = '(' + this.start + ')-[:' + this.type
77-
let keys = Object.keys(this.properties)
77+
const keys = Object.keys(this.properties)
7878
if (keys.length > 0) {
7979
s += ' {'
8080
for (let i = 0; i < keys.length; i++) {
@@ -123,7 +123,7 @@ class UnboundRelationship {
123123

124124
toString () {
125125
let s = '-[:' + this.type
126-
let keys = Object.keys(this.properties)
126+
const keys = Object.keys(this.properties)
127127
if (keys.length > 0) {
128128
s += ' {'
129129
for (let i = 0; i < keys.length; i++) {

src/v1/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/integer.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -76,6 +76,7 @@ class Integer {
7676
this.lessThanOrEqual(Integer.MAX_SAFE_VALUE)
7777
)
7878
}
79+
7980
/**
8081
* Converts the Integer to an exact javascript Number, assuming it is a 32 bit integer.
8182
* @returns {number}
@@ -695,7 +696,7 @@ Object.defineProperty(Integer.prototype, '__isInteger__', {
695696
* @expose
696697
*/
697698
Integer.isInteger = function (obj) {
698-
return (obj && obj['__isInteger__']) === true
699+
return (obj && obj.__isInteger__) === true
699700
}
700701

701702
/**
@@ -975,31 +976,31 @@ Integer.MAX_SAFE_VALUE = Integer.fromBits(0xffffffff | 0, 0x1fffff | 0)
975976
* @param {Mixed} value - The value to use.
976977
* @return {Integer} - An object of type Integer.
977978
*/
978-
let int = Integer.fromValue
979+
const int = Integer.fromValue
979980

980981
/**
981982
* Check if a variable is of Integer type.
982983
* @access public
983984
* @param {Mixed} value - The variable to check.
984985
* @return {Boolean} - Is it of the Integer type?
985986
*/
986-
let isInt = Integer.isInteger
987+
const isInt = Integer.isInteger
987988

988989
/**
989990
* Check if a variable can be safely converted to a number
990991
* @access public
991992
* @param {Mixed} value - The variable to check
992993
* @return {Boolean} - true if it is safe to call toNumber on variable otherwise false
993994
*/
994-
let inSafeRange = Integer.inSafeRange
995+
const inSafeRange = Integer.inSafeRange
995996

996997
/**
997998
* Converts a variable to a number
998999
* @access public
9991000
* @param {Mixed} value - The variable to convert
10001001
* @return {number} - the variable as a number
10011002
*/
1002-
let toNumber = Integer.toNumber
1003+
const toNumber = Integer.toNumber
10031004

10041005
/**
10051006
* Converts the integer to a string representation
@@ -1008,7 +1009,7 @@ let toNumber = Integer.toNumber
10081009
* @param {number} radix - radix to use in string conversion, defaults to 10
10091010
* @return {String} - returns a string representation of the integer
10101011
*/
1011-
let toString = Integer.toString
1012+
const toString = Integer.toString
10121013

10131014
export { int, isInt, inSafeRange, toNumber, toString }
10141015

src/v1/internal/bolt-protocol-v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/bolt-protocol-v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/bolt-protocol-v3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/bookmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/browser/browser-buf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/browser/browser-channel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -47,7 +47,7 @@ export default class WebSocketChannel {
4747
this._ws = createWebSocket(scheme, config.address)
4848
this._ws.binaryType = 'arraybuffer'
4949

50-
let self = this
50+
const self = this
5151
// All connection errors are not sent to the error handler
5252
// we must also check for dirty close calls
5353
this._ws.onclose = function (e) {
@@ -60,7 +60,7 @@ export default class WebSocketChannel {
6060
self._clearConnectionTimeout()
6161

6262
// Drain all pending messages
63-
let pending = self._pending
63+
const pending = self._pending
6464
self._pending = null
6565
for (let i = 0; i < pending.length; i++) {
6666
self.write(pending[i])

src/v1/internal/browser/browser-host-name-resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/browser/browser-utf8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/browser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/buf/base-buf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -320,7 +320,7 @@ export default class BaseBuffer {
320320
}
321321

322322
_updatePos (length) {
323-
let p = this.position
323+
const p = this.position
324324
this.position += length
325325
return p
326326
}

src/v1/internal/buf/combined-buf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/channel-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/chunking.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -21,9 +21,9 @@ import BaseBuffer from './buf/base-buf'
2121
import { alloc } from './node'
2222
import CombinedBuffer from './buf/combined-buf'
2323

24-
let _CHUNK_HEADER_SIZE = 2
25-
let _MESSAGE_BOUNDARY = 0x00
26-
let _DEFAULT_BUFFER_SIZE = 1400 // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
24+
const _CHUNK_HEADER_SIZE = 2
25+
const _MESSAGE_BOUNDARY = 0x00
26+
const _DEFAULT_BUFFER_SIZE = 1400 // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
2727

2828
/**
2929
* Looks like a writable buffer, chunks output transparently into a channel below.
@@ -75,7 +75,7 @@ class Chunker extends BaseBuffer {
7575
this._closeChunkIfOpen()
7676

7777
// Local copy and clear the buffer field. This ensures that the buffer is not re-released if the flush call fails
78-
let out = this._buffer
78+
const out = this._buffer
7979
this._buffer = null
8080

8181
this._ch.write(out.getSlice(0, out.position))
@@ -105,7 +105,7 @@ class Chunker extends BaseBuffer {
105105

106106
/** Ensure at least the given size is available for writing */
107107
_ensure (size) {
108-
let toWriteSize = this._chunkOpen ? size : size + _CHUNK_HEADER_SIZE
108+
const toWriteSize = this._chunkOpen ? size : size + _CHUNK_HEADER_SIZE
109109
if (this._buffer.remaining() < toWriteSize) {
110110
this.flush()
111111
}
@@ -119,7 +119,7 @@ class Chunker extends BaseBuffer {
119119

120120
_closeChunkIfOpen () {
121121
if (this._chunkOpen) {
122-
let chunkSize =
122+
const chunkSize =
123123
this._buffer.position - (this._currentChunkStart + _CHUNK_HEADER_SIZE)
124124
this._buffer.putUInt16(this._currentChunkStart, chunkSize)
125125
this._chunkOpen = false

src/v1/internal/connection-error-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/connection-holder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

src/v1/internal/connection-providers.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -120,9 +120,7 @@ export class LoadBalancer extends ConnectionProvider {
120120
if (!address) {
121121
return Promise.reject(
122122
newError(
123-
`Failed to obtain connection towards ${serverName} server. Known routing table is: ${
124-
this._routingTable
125-
}`,
123+
`Failed to obtain connection towards ${serverName} server. Known routing table is: ${this._routingTable}`,
126124
SESSION_EXPIRED
127125
)
128126
)
@@ -318,9 +316,7 @@ export class LoadBalancer extends ConnectionProvider {
318316
if (!newRoutingTable) {
319317
// none of routing servers returned valid routing table, throw exception
320318
throw newError(
321-
`Could not perform discovery. No routing servers available. Known routing table: ${
322-
this._routingTable
323-
}`,
319+
`Could not perform discovery. No routing servers available. Known routing table: ${this._routingTable}`,
324320
SERVICE_UNAVAILABLE
325321
)
326322
}

src/v1/internal/connection.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.
@@ -212,13 +212,11 @@ export default class Connection {
212212
this._log.debug(`${this} C: ${message}`)
213213
}
214214

215-
this._protocol
216-
.packer()
217-
.packStruct(
218-
message.signature,
219-
message.fields.map(field => this._packable(field)),
220-
err => this._handleFatalError(err)
221-
)
215+
this._protocol.packer().packStruct(
216+
message.signature,
217+
message.fields.map(field => this._packable(field)),
218+
err => this._handleFatalError(err)
219+
)
222220

223221
this._chunker.messageBoundary()
224222

@@ -252,7 +250,7 @@ export default class Connection {
252250
this._currentObserver.onError(this._error)
253251
}
254252
while (this._pendingObservers.length > 0) {
255-
let observer = this._pendingObservers.shift()
253+
const observer = this._pendingObservers.shift()
256254
if (observer && observer.onError) {
257255
observer.onError(this._error)
258256
}

src/v1/internal/connectivity-verifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2002-2019 "Neo4j,"
2+
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [http://neo4j.com]
44
*
55
* This file is part of Neo4j.

0 commit comments

Comments
 (0)