Skip to content

Updated copyright to 2020 #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/docs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/driver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/error.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/graph-types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
15 changes: 8 additions & 7 deletions src/integer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down Expand Up @@ -76,6 +76,7 @@ class Integer {
this.lessThanOrEqual(Integer.MAX_SAFE_VALUE)
)
}

/**
* Converts the Integer to an exact javascript Number, assuming it is a 32 bit integer.
* @returns {number}
Expand Down Expand Up @@ -696,7 +697,7 @@ Object.defineProperty(Integer.prototype, '__isInteger__', {
* @expose
*/
Integer.isInteger = function (obj) {
return (obj && obj['__isInteger__']) === true
return (obj && obj.__isInteger__) === true
}

/**
Expand Down Expand Up @@ -976,31 +977,31 @@ Integer.MAX_SAFE_VALUE = Integer.fromBits(0xffffffff | 0, 0x1fffff | 0)
* @param {Mixed} value - The value to use.
* @return {Integer} - An object of type Integer.
*/
let int = Integer.fromValue
const int = Integer.fromValue

/**
* Check if a variable is of Integer type.
* @access public
* @param {Mixed} value - The variable to check.
* @return {Boolean} - Is it of the Integer type?
*/
let isInt = Integer.isInteger
const isInt = Integer.isInteger

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

/**
* Converts a variable to a number
* @access public
* @param {Mixed} value - The variable to convert
* @return {number} - the variable as a number
*/
let toNumber = Integer.toNumber
const toNumber = Integer.toNumber

/**
* Converts the integer to a string representation
Expand All @@ -1009,7 +1010,7 @@ let toNumber = Integer.toNumber
* @param {number} radix - radix to use in string conversion, defaults to 10
* @return {string} - returns a string representation of the integer
*/
let toString = Integer.toString
const toString = Integer.toString

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

Expand Down
2 changes: 1 addition & 1 deletion src/internal/bolt-protocol-util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/bolt-protocol-v1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/bolt-protocol-v2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/bolt-protocol-v3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/bolt-protocol-v4.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/bookmark.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/browser/browser-buf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
6 changes: 3 additions & 3 deletions src/internal/browser/browser-channel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down Expand Up @@ -58,7 +58,7 @@ export default class WebSocketChannel {
this._ws = createWebSocket(scheme, config.address, socketFactory)
this._ws.binaryType = 'arraybuffer'

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

// Drain all pending messages
let pending = self._pending
const pending = self._pending
self._pending = null
for (let i = 0; i < pending.length; i++) {
self.write(pending[i])
Expand Down
2 changes: 1 addition & 1 deletion src/internal/browser/browser-host-name-resolver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/browser/browser-utf8.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/browser/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
4 changes: 2 additions & 2 deletions src/internal/buf/base-buf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down Expand Up @@ -320,7 +320,7 @@ export default class BaseBuffer {
}

_updatePos (length) {
let p = this.position
const p = this.position
this.position += length
return p
}
Expand Down
2 changes: 1 addition & 1 deletion src/internal/buf/combined-buf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/channel-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
14 changes: 7 additions & 7 deletions src/internal/chunking.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand All @@ -21,9 +21,9 @@ import BaseBuffer from './buf/base-buf'
import { alloc } from './node'
import CombinedBuffer from './buf/combined-buf'

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

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

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

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

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

_closeChunkIfOpen () {
if (this._chunkOpen) {
let chunkSize =
const chunkSize =
this._buffer.position - (this._currentChunkStart + _CHUNK_HEADER_SIZE)
this._buffer.putUInt16(this._currentChunkStart, chunkSize)
this._chunkOpen = false
Expand Down
4 changes: 2 additions & 2 deletions src/internal/connection-channel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down Expand Up @@ -294,7 +294,7 @@ export default class ChannelConnection extends Connection {
this._currentObserver.onError(this._error)
}
while (this._pendingObservers.length > 0) {
let observer = this._pendingObservers.shift()
const observer = this._pendingObservers.shift()
if (observer && observer.onError) {
observer.onError(this._error)
}
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-delegate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-error-handler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-holder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-provider-direct.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-provider-pooled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-provider-routing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-provider-single.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection-provider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Bookmark from './bookmark'

/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/connectivity-verifier.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/least-connected-load-balancing-strategy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/load-balancing-strategy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
Expand Down
Loading