From 694b9ea4ba69c74c9079cb37a1e1fd23f79a0625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Barc=C3=A9los?= <antonio.barcelos@neo4j.com> Date: Fri, 29 Jan 2021 09:57:58 +0100 Subject: [PATCH 1/2] Remove year from the license header (#673) --- examples/node.js | 2 +- gulpfile.babel.js | 2 +- src/docs.js | 2 +- src/driver.js | 2 +- src/error.js | 2 +- src/graph-types.js | 2 +- src/index.js | 2 +- src/integer.js | 2 +- src/internal/bolt-protocol-util.js | 2 +- src/internal/bolt-protocol-v1.js | 2 +- src/internal/bolt-protocol-v2.js | 2 +- src/internal/bolt-protocol-v3.js | 2 +- src/internal/bolt-protocol-v4x0.js | 2 +- src/internal/bolt-protocol-v4x1.js | 2 +- src/internal/bookmark.js | 2 +- src/internal/browser/browser-buf.js | 2 +- src/internal/browser/browser-channel.js | 2 +- src/internal/browser/browser-host-name-resolver.js | 2 +- src/internal/browser/browser-utf8.js | 2 +- src/internal/browser/index.js | 2 +- src/internal/buf/base-buf.js | 2 +- src/internal/buf/combined-buf.js | 2 +- src/internal/channel-config.js | 2 +- src/internal/chunking.js | 2 +- src/internal/connection-channel.js | 12 +++++------- src/internal/connection-delegate.js | 2 +- src/internal/connection-error-handler.js | 2 +- src/internal/connection-holder.js | 2 +- src/internal/connection-provider-direct.js | 2 +- src/internal/connection-provider-pooled.js | 2 +- src/internal/connection-provider-routing.js | 2 +- src/internal/connection-provider-single.js | 2 +- src/internal/connection-provider.js | 2 +- src/internal/connection.js | 2 +- src/internal/connectivity-verifier.js | 2 +- src/internal/constants.js | 2 +- .../least-connected-load-balancing-strategy.js | 2 +- src/internal/load-balancing-strategy.js | 2 +- src/internal/logger.js | 2 +- src/internal/node/index.js | 2 +- src/internal/node/node-buf.js | 2 +- src/internal/node/node-channel.js | 2 +- src/internal/node/node-host-name-resolver.js | 2 +- src/internal/node/node-utf8.js | 2 +- src/internal/packstream-v1.js | 2 +- src/internal/packstream-v2.js | 2 +- src/internal/pool-config.js | 2 +- src/internal/pool.js | 2 +- src/internal/protocol-handshaker.js | 2 +- src/internal/rediscovery.js | 2 +- src/internal/request-message.js | 2 +- src/internal/resolver/base-host-name-resolver.js | 2 +- src/internal/resolver/configured-custom-resolver.js | 2 +- src/internal/retry-logic-rx.js | 2 +- src/internal/round-robin-array-index.js | 2 +- src/internal/routing-table.js | 2 +- src/internal/routing-util.js | 2 +- src/internal/server-address.js | 2 +- src/internal/server-version.js | 2 +- src/internal/stream-observers.js | 2 +- src/internal/temporal-util.js | 2 +- src/internal/transaction-executor.js | 2 +- src/internal/tx-config.js | 2 +- src/internal/url-util.js | 2 +- src/internal/util.js | 2 +- src/record.js | 2 +- src/result-rx.js | 7 ++----- src/result-summary.js | 2 +- src/result.js | 2 +- src/routing-driver.js | 2 +- src/session-rx.js | 2 +- src/session.js | 2 +- src/spatial-types.js | 2 +- src/temporal-types.js | 2 +- src/transaction-rx.js | 2 +- src/transaction.js | 2 +- src/version.js | 2 +- test/auth.test.js | 2 +- test/bolt-v3.test.js | 2 +- test/bolt-v4x0.test.js | 2 +- test/browser/karma-chrome.conf.js | 2 +- test/browser/karma-firefox.conf.js | 2 +- test/driver.test.js | 2 +- test/examples.test.js | 2 +- test/integer.test.js | 2 +- test/internal/bolt-protocol-v1.test.js | 2 +- test/internal/bolt-protocol-v2.test.js | 2 +- test/internal/bolt-protocol-v3.test.js | 2 +- test/internal/bolt-protocol-v4x0.test.js | 2 +- test/internal/bolt-stub.js | 2 +- test/internal/bookmark.test.js | 2 +- test/internal/browser/browser-channel.test.js | 2 +- .../browser/browser-host-name-resolver.test.js | 2 +- test/internal/buf.test.js | 2 +- test/internal/channel-config.test.js | 2 +- test/internal/chunking.test.js | 2 +- test/internal/connection-channel.test.js | 2 +- test/internal/connection-delegate.test.js | 2 +- test/internal/connection-error-handler.test.js | 2 +- test/internal/connection-holder.test.js | 2 +- test/internal/connection-provider-direct.test.js | 2 +- test/internal/connection-provider-pooled.test.js | 2 +- test/internal/connection-provider-routing.test.js | 2 +- test/internal/connectivity-verifier.test.js | 2 +- test/internal/dummy-channel.js | 2 +- test/internal/fake-connection.js | 2 +- .../least-connected-load-balancing-strategy.test.js | 2 +- test/internal/logger.test.js | 2 +- test/internal/node/direct.driver.boltkit.test.js | 2 +- test/internal/node/encryption.test.js | 2 +- test/internal/node/node-channel.test.js | 2 +- test/internal/node/node-host-name-resolver.test.js | 2 +- test/internal/node/package.test.js | 2 +- test/internal/node/routing.driver.boltkit.test.js | 2 +- test/internal/node/tls.test.js | 2 +- test/internal/packstream-v1.test.js | 2 +- test/internal/pool-config.test.js | 2 +- test/internal/pool.test.js | 2 +- test/internal/protocol-handshaker.test.js | 2 +- test/internal/rediscovery.test.js | 2 +- test/internal/request-message.test.js | 2 +- test/internal/retry-logic-rx.test.js | 2 +- test/internal/round-robin-array-index.test.js | 2 +- test/internal/routing-table.test.js | 2 +- test/internal/routing-util.test.js | 2 +- test/internal/server-address.test.js | 2 +- test/internal/server-version.test.js | 2 +- test/internal/shared-neo4j.js | 2 +- test/internal/stream-observer.test.js | 2 +- test/internal/temporal-util.test.js | 2 +- test/internal/test-utils.js | 2 +- test/internal/timers-util.js | 2 +- test/internal/transaction-executor.test.js | 2 +- test/internal/tx-config.test.js | 2 +- test/internal/url-util.test.js | 2 +- test/internal/utf8.test.js | 2 +- test/internal/util.test.js | 2 +- test/nested-statements.test.js | 2 +- test/record.test.js | 12 +++++++++--- test/result.test.js | 2 +- test/routing-driver.test.js | 2 +- test/rx/navigation.test.js | 2 +- test/rx/nested-statements.test.js | 2 +- test/rx/session.test.js | 2 +- test/rx/summary.test.js | 2 +- test/rx/transaction.test.js | 2 +- test/session.test.js | 2 +- test/spatial-types.test.js | 2 +- test/stress.test.js | 2 +- test/summary.test.js | 2 +- test/temporal-types.test.js | 2 +- test/transaction.test.js | 2 +- test/types.test.js | 2 +- test/types/driver.test.ts | 2 +- test/types/error.test.ts | 2 +- test/types/graph-types.test.ts | 2 +- test/types/index.test.ts | 2 +- test/types/integer.test.ts | 2 +- test/types/record.test.ts | 2 +- test/types/result-rx.test.ts | 2 +- test/types/result-summary.test.ts | 2 +- test/types/result.test.ts | 2 +- test/types/session-rx.test.ts | 2 +- test/types/session.test.ts | 2 +- test/types/spatial-types.test.ts | 2 +- test/types/temporal-types.test.ts | 2 +- test/types/transaction-rx.test.ts | 2 +- test/types/transaction.test.ts | 2 +- types/driver.d.ts | 2 +- types/error.d.ts | 2 +- types/graph-types.d.ts | 2 +- types/index.d.ts | 2 +- types/integer.d.ts | 2 +- types/query-runner.d.ts | 2 +- types/record.d.ts | 2 +- types/result-rx.d.ts | 2 +- types/result-summary.d.ts | 2 +- types/result.d.ts | 2 +- types/session-rx.d.ts | 2 +- types/session.d.ts | 2 +- types/spatial-types.d.ts | 2 +- types/temporal-types.d.ts | 2 +- types/transaction-rx.d.ts | 2 +- types/transaction.d.ts | 2 +- 184 files changed, 197 insertions(+), 196 deletions(-) diff --git a/examples/node.js b/examples/node.js index e3c973a44..4347bf8a3 100644 --- a/examples/node.js +++ b/examples/node.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 64677395b..f42ba25ea 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/docs.js b/src/docs.js index 9357d74d8..8fa4c4eb3 100644 --- a/src/docs.js +++ b/src/docs.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/driver.js b/src/driver.js index 657b8653c..7e57e5e8a 100644 --- a/src/driver.js +++ b/src/driver.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/error.js b/src/error.js index e4c96131f..c1ffccdd1 100644 --- a/src/error.js +++ b/src/error.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/graph-types.js b/src/graph-types.js index ab94b7909..954e25c04 100644 --- a/src/graph-types.js +++ b/src/graph-types.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/index.js b/src/index.js index d83c8d42d..4d5c66216 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/integer.js b/src/integer.js index bb8114262..aee542e61 100644 --- a/src/integer.js +++ b/src/integer.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bolt-protocol-util.js b/src/internal/bolt-protocol-util.js index 314ad483c..e827f5aa6 100644 --- a/src/internal/bolt-protocol-util.js +++ b/src/internal/bolt-protocol-util.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bolt-protocol-v1.js b/src/internal/bolt-protocol-v1.js index 3a4206528..0925cb5ce 100644 --- a/src/internal/bolt-protocol-v1.js +++ b/src/internal/bolt-protocol-v1.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bolt-protocol-v2.js b/src/internal/bolt-protocol-v2.js index fabb602ad..d4b446d2e 100644 --- a/src/internal/bolt-protocol-v2.js +++ b/src/internal/bolt-protocol-v2.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bolt-protocol-v3.js b/src/internal/bolt-protocol-v3.js index 1e5b27f18..fa35b5aaf 100644 --- a/src/internal/bolt-protocol-v3.js +++ b/src/internal/bolt-protocol-v3.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bolt-protocol-v4x0.js b/src/internal/bolt-protocol-v4x0.js index 0ed6e36c7..a371e09ec 100644 --- a/src/internal/bolt-protocol-v4x0.js +++ b/src/internal/bolt-protocol-v4x0.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bolt-protocol-v4x1.js b/src/internal/bolt-protocol-v4x1.js index 3092bf572..0355fc073 100644 --- a/src/internal/bolt-protocol-v4x1.js +++ b/src/internal/bolt-protocol-v4x1.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/bookmark.js b/src/internal/bookmark.js index b6a21846a..56e83b486 100644 --- a/src/internal/bookmark.js +++ b/src/internal/bookmark.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/browser/browser-buf.js b/src/internal/browser/browser-buf.js index 66fb5b0ae..169f2c3db 100644 --- a/src/internal/browser/browser-buf.js +++ b/src/internal/browser/browser-buf.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/browser/browser-channel.js b/src/internal/browser/browser-channel.js index 4d6b68fb2..8d1ad8d33 100644 --- a/src/internal/browser/browser-channel.js +++ b/src/internal/browser/browser-channel.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/browser/browser-host-name-resolver.js b/src/internal/browser/browser-host-name-resolver.js index e95438911..24e47069d 100644 --- a/src/internal/browser/browser-host-name-resolver.js +++ b/src/internal/browser/browser-host-name-resolver.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/browser/browser-utf8.js b/src/internal/browser/browser-utf8.js index a3d065795..ac07d5538 100644 --- a/src/internal/browser/browser-utf8.js +++ b/src/internal/browser/browser-utf8.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/browser/index.js b/src/internal/browser/index.js index 9c1bbfc97..85729a226 100644 --- a/src/internal/browser/index.js +++ b/src/internal/browser/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/buf/base-buf.js b/src/internal/buf/base-buf.js index 60fe75d87..2e19e75ff 100644 --- a/src/internal/buf/base-buf.js +++ b/src/internal/buf/base-buf.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/buf/combined-buf.js b/src/internal/buf/combined-buf.js index 72a6dde91..53da0eedb 100644 --- a/src/internal/buf/combined-buf.js +++ b/src/internal/buf/combined-buf.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/channel-config.js b/src/internal/channel-config.js index f6101dfb8..d03ed9b75 100644 --- a/src/internal/channel-config.js +++ b/src/internal/channel-config.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/chunking.js b/src/internal/chunking.js index b40aa1b44..b338e2176 100644 --- a/src/internal/chunking.js +++ b/src/internal/chunking.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-channel.js b/src/internal/connection-channel.js index 909c0666a..ce2a753fe 100644 --- a/src/internal/connection-channel.js +++ b/src/internal/connection-channel.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. @@ -262,12 +262,10 @@ export default class ChannelConnection extends Connection { this._log.debug(`${this} C: ${message}`) } - this._protocol - .packer() - .packStruct( - message.signature, - message.fields.map(field => this._packable(field)) - ) + this._protocol.packer().packStruct( + message.signature, + message.fields.map(field => this._packable(field)) + ) this._chunker.messageBoundary() diff --git a/src/internal/connection-delegate.js b/src/internal/connection-delegate.js index aeea6c235..14c82a4c5 100644 --- a/src/internal/connection-delegate.js +++ b/src/internal/connection-delegate.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-error-handler.js b/src/internal/connection-error-handler.js index ca514d3b3..79de9b710 100644 --- a/src/internal/connection-error-handler.js +++ b/src/internal/connection-error-handler.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-holder.js b/src/internal/connection-holder.js index 1ca1c52ae..95109219a 100644 --- a/src/internal/connection-holder.js +++ b/src/internal/connection-holder.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-provider-direct.js b/src/internal/connection-provider-direct.js index 57518afef..b527c885f 100644 --- a/src/internal/connection-provider-direct.js +++ b/src/internal/connection-provider-direct.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-provider-pooled.js b/src/internal/connection-provider-pooled.js index 20b925d74..7a98d5a46 100644 --- a/src/internal/connection-provider-pooled.js +++ b/src/internal/connection-provider-pooled.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-provider-routing.js b/src/internal/connection-provider-routing.js index 86e990787..1e1c730f3 100644 --- a/src/internal/connection-provider-routing.js +++ b/src/internal/connection-provider-routing.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-provider-single.js b/src/internal/connection-provider-single.js index 2259355a0..aef0004b2 100644 --- a/src/internal/connection-provider-single.js +++ b/src/internal/connection-provider-single.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection-provider.js b/src/internal/connection-provider.js index afb7282fb..7198bd4f5 100644 --- a/src/internal/connection-provider.js +++ b/src/internal/connection-provider.js @@ -1,7 +1,7 @@ import Bookmark from './bookmark' /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connection.js b/src/internal/connection.js index 709977a05..31a933684 100644 --- a/src/internal/connection.js +++ b/src/internal/connection.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/connectivity-verifier.js b/src/internal/connectivity-verifier.js index 02884c9cc..fd54503fb 100644 --- a/src/internal/connectivity-verifier.js +++ b/src/internal/connectivity-verifier.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/constants.js b/src/internal/constants.js index 94c4d7bd2..0e93a0d6b 100644 --- a/src/internal/constants.js +++ b/src/internal/constants.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/least-connected-load-balancing-strategy.js b/src/internal/least-connected-load-balancing-strategy.js index bf5ca57bd..a9ac115b3 100644 --- a/src/internal/least-connected-load-balancing-strategy.js +++ b/src/internal/least-connected-load-balancing-strategy.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/load-balancing-strategy.js b/src/internal/load-balancing-strategy.js index 0e4582ec1..6ad539c69 100644 --- a/src/internal/load-balancing-strategy.js +++ b/src/internal/load-balancing-strategy.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/logger.js b/src/internal/logger.js index fcd305f35..5bcf54927 100644 --- a/src/internal/logger.js +++ b/src/internal/logger.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/node/index.js b/src/internal/node/index.js index 80f911361..7a3c7b678 100644 --- a/src/internal/node/index.js +++ b/src/internal/node/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/node/node-buf.js b/src/internal/node/node-buf.js index d86b71aa0..a055c8d96 100644 --- a/src/internal/node/node-buf.js +++ b/src/internal/node/node-buf.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/node/node-channel.js b/src/internal/node/node-channel.js index 2a7774e3d..6dc2b5c02 100644 --- a/src/internal/node/node-channel.js +++ b/src/internal/node/node-channel.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/node/node-host-name-resolver.js b/src/internal/node/node-host-name-resolver.js index 3310c30c0..690a32f96 100644 --- a/src/internal/node/node-host-name-resolver.js +++ b/src/internal/node/node-host-name-resolver.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/node/node-utf8.js b/src/internal/node/node-utf8.js index ba0485259..296f85fc1 100644 --- a/src/internal/node/node-utf8.js +++ b/src/internal/node/node-utf8.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/packstream-v1.js b/src/internal/packstream-v1.js index 5e254c294..c0c542363 100644 --- a/src/internal/packstream-v1.js +++ b/src/internal/packstream-v1.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/packstream-v2.js b/src/internal/packstream-v2.js index 05ab8f33a..b230f1d12 100644 --- a/src/internal/packstream-v2.js +++ b/src/internal/packstream-v2.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/pool-config.js b/src/internal/pool-config.js index 325e9a3fc..94596ac22 100644 --- a/src/internal/pool-config.js +++ b/src/internal/pool-config.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/pool.js b/src/internal/pool.js index 21b37db15..9864bd060 100644 --- a/src/internal/pool.js +++ b/src/internal/pool.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/protocol-handshaker.js b/src/internal/protocol-handshaker.js index 09fca98d8..d60841192 100644 --- a/src/internal/protocol-handshaker.js +++ b/src/internal/protocol-handshaker.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/rediscovery.js b/src/internal/rediscovery.js index 667c3cf88..2a806a1ec 100644 --- a/src/internal/rediscovery.js +++ b/src/internal/rediscovery.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/request-message.js b/src/internal/request-message.js index 03c74dc86..a1fd3f5b4 100644 --- a/src/internal/request-message.js +++ b/src/internal/request-message.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/resolver/base-host-name-resolver.js b/src/internal/resolver/base-host-name-resolver.js index a2220f6a4..d1811af51 100644 --- a/src/internal/resolver/base-host-name-resolver.js +++ b/src/internal/resolver/base-host-name-resolver.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/resolver/configured-custom-resolver.js b/src/internal/resolver/configured-custom-resolver.js index 7712bbd6a..3f7e24a65 100644 --- a/src/internal/resolver/configured-custom-resolver.js +++ b/src/internal/resolver/configured-custom-resolver.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/retry-logic-rx.js b/src/internal/retry-logic-rx.js index 9fcd20c95..5860a685c 100644 --- a/src/internal/retry-logic-rx.js +++ b/src/internal/retry-logic-rx.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/round-robin-array-index.js b/src/internal/round-robin-array-index.js index 7743c167b..cb36bac6f 100644 --- a/src/internal/round-robin-array-index.js +++ b/src/internal/round-robin-array-index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/routing-table.js b/src/internal/routing-table.js index 7f5a344fb..b0a488f6c 100644 --- a/src/internal/routing-table.js +++ b/src/internal/routing-table.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/routing-util.js b/src/internal/routing-util.js index 088676d55..422e1df96 100644 --- a/src/internal/routing-util.js +++ b/src/internal/routing-util.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/server-address.js b/src/internal/server-address.js index 049e39c99..ecda80a71 100644 --- a/src/internal/server-address.js +++ b/src/internal/server-address.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/server-version.js b/src/internal/server-version.js index 25eb2c00b..73d75670e 100644 --- a/src/internal/server-version.js +++ b/src/internal/server-version.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/stream-observers.js b/src/internal/stream-observers.js index f6ee7af56..3fee07e40 100644 --- a/src/internal/stream-observers.js +++ b/src/internal/stream-observers.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/temporal-util.js b/src/internal/temporal-util.js index a80c0be40..3f4217775 100644 --- a/src/internal/temporal-util.js +++ b/src/internal/temporal-util.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/transaction-executor.js b/src/internal/transaction-executor.js index 096ebda57..1d03721e2 100644 --- a/src/internal/transaction-executor.js +++ b/src/internal/transaction-executor.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/tx-config.js b/src/internal/tx-config.js index 823976524..fe088de21 100644 --- a/src/internal/tx-config.js +++ b/src/internal/tx-config.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/url-util.js b/src/internal/url-util.js index 02aaa2c84..86fbebcf5 100644 --- a/src/internal/url-util.js +++ b/src/internal/url-util.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/internal/util.js b/src/internal/util.js index e561ddbd3..68568270f 100644 --- a/src/internal/util.js +++ b/src/internal/util.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/record.js b/src/record.js index 7256341ba..13bb3ac72 100644 --- a/src/record.js +++ b/src/record.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/result-rx.js b/src/result-rx.js index 4b55f3df5..da36b1ea9 100644 --- a/src/result-rx.js +++ b/src/result-rx.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. @@ -38,10 +38,7 @@ export default class RxResult { * @param {Observable<Result>} result - An observable of single Result instance to relay requests. */ constructor (result) { - const replayedResult = result.pipe( - publishReplay(1), - refCount() - ) + const replayedResult = result.pipe(publishReplay(1), refCount()) this._result = replayedResult this._keys = replayedResult.pipe( diff --git a/src/result-summary.js b/src/result-summary.js index 3c9302a48..3979b579a 100644 --- a/src/result-summary.js +++ b/src/result-summary.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/result.js b/src/result.js index 6dc77859f..7859c8a4f 100644 --- a/src/result.js +++ b/src/result.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/routing-driver.js b/src/routing-driver.js index 2c698afd8..63c854fde 100644 --- a/src/routing-driver.js +++ b/src/routing-driver.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/session-rx.js b/src/session-rx.js index 794906a51..831c82264 100644 --- a/src/session-rx.js +++ b/src/session-rx.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/session.js b/src/session.js index 82051b0ae..ad21cc837 100644 --- a/src/session.js +++ b/src/session.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/spatial-types.js b/src/spatial-types.js index 3a3f32398..1267f36cb 100644 --- a/src/spatial-types.js +++ b/src/spatial-types.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/temporal-types.js b/src/temporal-types.js index 5b5934759..98956042a 100644 --- a/src/temporal-types.js +++ b/src/temporal-types.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/transaction-rx.js b/src/transaction-rx.js index c47724807..2f41b198d 100644 --- a/src/transaction-rx.js +++ b/src/transaction-rx.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/transaction.js b/src/transaction.js index ccb02a8a6..a42183b23 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/src/version.js b/src/version.js index c0f4d4b9c..16be2f1c6 100644 --- a/src/version.js +++ b/src/version.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/auth.test.js b/test/auth.test.js index 1a5810b68..fb3969d06 100644 --- a/test/auth.test.js +++ b/test/auth.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/bolt-v3.test.js b/test/bolt-v3.test.js index f2b7c41d0..c58671f6c 100644 --- a/test/bolt-v3.test.js +++ b/test/bolt-v3.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/bolt-v4x0.test.js b/test/bolt-v4x0.test.js index c1108ea8a..55be37a0b 100644 --- a/test/bolt-v4x0.test.js +++ b/test/bolt-v4x0.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/browser/karma-chrome.conf.js b/test/browser/karma-chrome.conf.js index 59dbd2e8b..b57cdcd3c 100644 --- a/test/browser/karma-chrome.conf.js +++ b/test/browser/karma-chrome.conf.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/browser/karma-firefox.conf.js b/test/browser/karma-firefox.conf.js index 3a89a337a..d5108b5f7 100644 --- a/test/browser/karma-firefox.conf.js +++ b/test/browser/karma-firefox.conf.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/driver.test.js b/test/driver.test.js index 8795e9eef..6ab0093c0 100644 --- a/test/driver.test.js +++ b/test/driver.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/examples.test.js b/test/examples.test.js index 297436e1c..d3d8d83d4 100644 --- a/test/examples.test.js +++ b/test/examples.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/integer.test.js b/test/integer.test.js index 3532380d3..d51dab918 100644 --- a/test/integer.test.js +++ b/test/integer.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/bolt-protocol-v1.test.js b/test/internal/bolt-protocol-v1.test.js index a21046e06..99661e11d 100644 --- a/test/internal/bolt-protocol-v1.test.js +++ b/test/internal/bolt-protocol-v1.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/bolt-protocol-v2.test.js b/test/internal/bolt-protocol-v2.test.js index 502e7c728..443f605e2 100644 --- a/test/internal/bolt-protocol-v2.test.js +++ b/test/internal/bolt-protocol-v2.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/bolt-protocol-v3.test.js b/test/internal/bolt-protocol-v3.test.js index 26be2ad23..fe676ce4a 100644 --- a/test/internal/bolt-protocol-v3.test.js +++ b/test/internal/bolt-protocol-v3.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/bolt-protocol-v4x0.test.js b/test/internal/bolt-protocol-v4x0.test.js index 8c8182ae8..dd8aa53e2 100644 --- a/test/internal/bolt-protocol-v4x0.test.js +++ b/test/internal/bolt-protocol-v4x0.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/bolt-stub.js b/test/internal/bolt-stub.js index b54c2d17c..a06c22f93 100644 --- a/test/internal/bolt-stub.js +++ b/test/internal/bolt-stub.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/bookmark.test.js b/test/internal/bookmark.test.js index 139a3aa18..717e532c5 100644 --- a/test/internal/bookmark.test.js +++ b/test/internal/bookmark.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/browser/browser-channel.test.js b/test/internal/browser/browser-channel.test.js index c1eb0ba34..4668a28f4 100644 --- a/test/internal/browser/browser-channel.test.js +++ b/test/internal/browser/browser-channel.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/browser/browser-host-name-resolver.test.js b/test/internal/browser/browser-host-name-resolver.test.js index 8ec8e05dc..3e7db95bf 100644 --- a/test/internal/browser/browser-host-name-resolver.test.js +++ b/test/internal/browser/browser-host-name-resolver.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/buf.test.js b/test/internal/buf.test.js index 2a2166bbc..8d3c999af 100644 --- a/test/internal/buf.test.js +++ b/test/internal/buf.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/channel-config.test.js b/test/internal/channel-config.test.js index a5982cc2b..833aef448 100644 --- a/test/internal/channel-config.test.js +++ b/test/internal/channel-config.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/chunking.test.js b/test/internal/chunking.test.js index e4d913f0e..da15b7e65 100644 --- a/test/internal/chunking.test.js +++ b/test/internal/chunking.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-channel.test.js b/test/internal/connection-channel.test.js index 1977b42fd..2069b282c 100644 --- a/test/internal/connection-channel.test.js +++ b/test/internal/connection-channel.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-delegate.test.js b/test/internal/connection-delegate.test.js index 1dae77735..f7de8ffb8 100644 --- a/test/internal/connection-delegate.test.js +++ b/test/internal/connection-delegate.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-error-handler.test.js b/test/internal/connection-error-handler.test.js index 99f766d58..0e226c342 100644 --- a/test/internal/connection-error-handler.test.js +++ b/test/internal/connection-error-handler.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-holder.test.js b/test/internal/connection-holder.test.js index 574ba38a3..7323fa64e 100644 --- a/test/internal/connection-holder.test.js +++ b/test/internal/connection-holder.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-provider-direct.test.js b/test/internal/connection-provider-direct.test.js index 585353f04..eef420103 100644 --- a/test/internal/connection-provider-direct.test.js +++ b/test/internal/connection-provider-direct.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-provider-pooled.test.js b/test/internal/connection-provider-pooled.test.js index d31f45ac4..1c16212ac 100644 --- a/test/internal/connection-provider-pooled.test.js +++ b/test/internal/connection-provider-pooled.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connection-provider-routing.test.js b/test/internal/connection-provider-routing.test.js index 3dd45938e..0b429116d 100644 --- a/test/internal/connection-provider-routing.test.js +++ b/test/internal/connection-provider-routing.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/connectivity-verifier.test.js b/test/internal/connectivity-verifier.test.js index 534753286..d1d122d3c 100644 --- a/test/internal/connectivity-verifier.test.js +++ b/test/internal/connectivity-verifier.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/dummy-channel.js b/test/internal/dummy-channel.js index 2f051bb85..c19871371 100644 --- a/test/internal/dummy-channel.js +++ b/test/internal/dummy-channel.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/fake-connection.js b/test/internal/fake-connection.js index 03348c385..560b56f26 100644 --- a/test/internal/fake-connection.js +++ b/test/internal/fake-connection.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/least-connected-load-balancing-strategy.test.js b/test/internal/least-connected-load-balancing-strategy.test.js index 198450c87..1e124c0c1 100644 --- a/test/internal/least-connected-load-balancing-strategy.test.js +++ b/test/internal/least-connected-load-balancing-strategy.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/logger.test.js b/test/internal/logger.test.js index a9d6f8205..ab4672856 100644 --- a/test/internal/logger.test.js +++ b/test/internal/logger.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/direct.driver.boltkit.test.js b/test/internal/node/direct.driver.boltkit.test.js index ebb5632f0..1516f1060 100644 --- a/test/internal/node/direct.driver.boltkit.test.js +++ b/test/internal/node/direct.driver.boltkit.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/encryption.test.js b/test/internal/node/encryption.test.js index ac1041794..d5004834e 100644 --- a/test/internal/node/encryption.test.js +++ b/test/internal/node/encryption.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/node-channel.test.js b/test/internal/node/node-channel.test.js index 5d11c4a1a..880592db6 100644 --- a/test/internal/node/node-channel.test.js +++ b/test/internal/node/node-channel.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/node-host-name-resolver.test.js b/test/internal/node/node-host-name-resolver.test.js index 181a997d7..8d4732c88 100644 --- a/test/internal/node/node-host-name-resolver.test.js +++ b/test/internal/node/node-host-name-resolver.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/package.test.js b/test/internal/node/package.test.js index 482e15738..3ed99438d 100644 --- a/test/internal/node/package.test.js +++ b/test/internal/node/package.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/routing.driver.boltkit.test.js b/test/internal/node/routing.driver.boltkit.test.js index a223f9b07..3cb571aca 100644 --- a/test/internal/node/routing.driver.boltkit.test.js +++ b/test/internal/node/routing.driver.boltkit.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/node/tls.test.js b/test/internal/node/tls.test.js index 411fe8259..31ae74e9e 100644 --- a/test/internal/node/tls.test.js +++ b/test/internal/node/tls.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/packstream-v1.test.js b/test/internal/packstream-v1.test.js index 23c97f463..b4d5930e2 100644 --- a/test/internal/packstream-v1.test.js +++ b/test/internal/packstream-v1.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/pool-config.test.js b/test/internal/pool-config.test.js index b7899db13..4c8bc06aa 100644 --- a/test/internal/pool-config.test.js +++ b/test/internal/pool-config.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/pool.test.js b/test/internal/pool.test.js index 6835b5f21..679f1c883 100644 --- a/test/internal/pool.test.js +++ b/test/internal/pool.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/protocol-handshaker.test.js b/test/internal/protocol-handshaker.test.js index 6ed4cd317..bd6928f53 100644 --- a/test/internal/protocol-handshaker.test.js +++ b/test/internal/protocol-handshaker.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/rediscovery.test.js b/test/internal/rediscovery.test.js index d9f5b1ee5..cc6ae5f27 100644 --- a/test/internal/rediscovery.test.js +++ b/test/internal/rediscovery.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/request-message.test.js b/test/internal/request-message.test.js index 584bbb590..1ef1f3d73 100644 --- a/test/internal/request-message.test.js +++ b/test/internal/request-message.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/retry-logic-rx.test.js b/test/internal/retry-logic-rx.test.js index 8e2cb6841..4042d834f 100644 --- a/test/internal/retry-logic-rx.test.js +++ b/test/internal/retry-logic-rx.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/round-robin-array-index.test.js b/test/internal/round-robin-array-index.test.js index f85004308..e033fca7d 100644 --- a/test/internal/round-robin-array-index.test.js +++ b/test/internal/round-robin-array-index.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/routing-table.test.js b/test/internal/routing-table.test.js index 2718ffc87..f4e78fd4c 100644 --- a/test/internal/routing-table.test.js +++ b/test/internal/routing-table.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/routing-util.test.js b/test/internal/routing-util.test.js index 33a5cc3b9..172b5d104 100644 --- a/test/internal/routing-util.test.js +++ b/test/internal/routing-util.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/server-address.test.js b/test/internal/server-address.test.js index e316fd953..c9709e272 100644 --- a/test/internal/server-address.test.js +++ b/test/internal/server-address.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/server-version.test.js b/test/internal/server-version.test.js index dda9faa1e..9bf83fdf2 100644 --- a/test/internal/server-version.test.js +++ b/test/internal/server-version.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/shared-neo4j.js b/test/internal/shared-neo4j.js index 4d3b030d4..ee2205faa 100644 --- a/test/internal/shared-neo4j.js +++ b/test/internal/shared-neo4j.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/stream-observer.test.js b/test/internal/stream-observer.test.js index a2605efd1..a372ef7b2 100644 --- a/test/internal/stream-observer.test.js +++ b/test/internal/stream-observer.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/temporal-util.test.js b/test/internal/temporal-util.test.js index 1855fe0f5..4152c7f42 100644 --- a/test/internal/temporal-util.test.js +++ b/test/internal/temporal-util.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/test-utils.js b/test/internal/test-utils.js index 542b48d70..c587f6fe4 100644 --- a/test/internal/test-utils.js +++ b/test/internal/test-utils.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/timers-util.js b/test/internal/timers-util.js index f367c2b3f..01ad01742 100644 --- a/test/internal/timers-util.js +++ b/test/internal/timers-util.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/transaction-executor.test.js b/test/internal/transaction-executor.test.js index 441b82f47..6b67f6b46 100644 --- a/test/internal/transaction-executor.test.js +++ b/test/internal/transaction-executor.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/tx-config.test.js b/test/internal/tx-config.test.js index cfd910c4c..9ab4769e9 100644 --- a/test/internal/tx-config.test.js +++ b/test/internal/tx-config.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/url-util.test.js b/test/internal/url-util.test.js index cd83aeec9..4684d331b 100644 --- a/test/internal/url-util.test.js +++ b/test/internal/url-util.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/utf8.test.js b/test/internal/utf8.test.js index 03d3f50be..5da1372ee 100644 --- a/test/internal/utf8.test.js +++ b/test/internal/utf8.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/internal/util.test.js b/test/internal/util.test.js index f7b91078a..972ea10d2 100644 --- a/test/internal/util.test.js +++ b/test/internal/util.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/nested-statements.test.js b/test/nested-statements.test.js index 75e4bde45..a3050955b 100644 --- a/test/nested-statements.test.js +++ b/test/nested-statements.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/record.test.js b/test/record.test.js index a22fad923..9c4e4cebf 100644 --- a/test/record.test.js +++ b/test/record.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. @@ -111,7 +111,10 @@ describe('#unit Record', () => { }) // Then - expect(result).toEqual([['Bob', 'name', record], [45, 'age', record]]) + expect(result).toEqual([ + ['Bob', 'name', record], + [45, 'age', record] + ]) }) it('should allow map function for the record', () => { @@ -124,7 +127,10 @@ describe('#unit Record', () => { }) // Then - expect(result).toEqual([['Bob', 'name', record], [45, 'age', record]]) + expect(result).toEqual([ + ['Bob', 'name', record], + [45, 'age', record] + ]) }) it('should allow taking values lazily', () => { diff --git a/test/result.test.js b/test/result.test.js index 27a07daa4..ec8a63846 100644 --- a/test/result.test.js +++ b/test/result.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/routing-driver.test.js b/test/routing-driver.test.js index eaf2a4b5a..2382d0550 100644 --- a/test/routing-driver.test.js +++ b/test/routing-driver.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/rx/navigation.test.js b/test/rx/navigation.test.js index c0955d9cc..5489310c6 100644 --- a/test/rx/navigation.test.js +++ b/test/rx/navigation.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/rx/nested-statements.test.js b/test/rx/nested-statements.test.js index cc09044a5..e7286ff5c 100644 --- a/test/rx/nested-statements.test.js +++ b/test/rx/nested-statements.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/rx/session.test.js b/test/rx/session.test.js index 6e4d94b69..94ebfa398 100644 --- a/test/rx/session.test.js +++ b/test/rx/session.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/rx/summary.test.js b/test/rx/summary.test.js index 55cade263..6304568e3 100644 --- a/test/rx/summary.test.js +++ b/test/rx/summary.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/rx/transaction.test.js b/test/rx/transaction.test.js index ddd5c79a6..1826f6ce4 100644 --- a/test/rx/transaction.test.js +++ b/test/rx/transaction.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/session.test.js b/test/session.test.js index 008a58f12..7d205b070 100644 --- a/test/session.test.js +++ b/test/session.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/spatial-types.test.js b/test/spatial-types.test.js index f95889b65..b3c474b45 100644 --- a/test/spatial-types.test.js +++ b/test/spatial-types.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/stress.test.js b/test/stress.test.js index a157dbee1..7b27d8db7 100644 --- a/test/stress.test.js +++ b/test/stress.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/summary.test.js b/test/summary.test.js index f5a8d2ee9..b566c29ca 100644 --- a/test/summary.test.js +++ b/test/summary.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/temporal-types.test.js b/test/temporal-types.test.js index 55eb44856..beea7bde8 100644 --- a/test/temporal-types.test.js +++ b/test/temporal-types.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/transaction.test.js b/test/transaction.test.js index 344c9e2c0..75c4f111c 100644 --- a/test/transaction.test.js +++ b/test/transaction.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types.test.js b/test/types.test.js index 66bbf85c2..ddda5730b 100644 --- a/test/types.test.js +++ b/test/types.test.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/driver.test.ts b/test/types/driver.test.ts index 53abb6037..de60378ac 100644 --- a/test/types/driver.test.ts +++ b/test/types/driver.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/error.test.ts b/test/types/error.test.ts index a9f1ce70b..aa282a48a 100644 --- a/test/types/error.test.ts +++ b/test/types/error.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/graph-types.test.ts b/test/types/graph-types.test.ts index 959af9f50..47d5a582e 100644 --- a/test/types/graph-types.test.ts +++ b/test/types/graph-types.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/index.test.ts b/test/types/index.test.ts index a996d1906..92e7ab433 100644 --- a/test/types/index.test.ts +++ b/test/types/index.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/integer.test.ts b/test/types/integer.test.ts index c91556f7f..237793810 100644 --- a/test/types/integer.test.ts +++ b/test/types/integer.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/record.test.ts b/test/types/record.test.ts index 15c7c36ff..5492b96bd 100644 --- a/test/types/record.test.ts +++ b/test/types/record.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/result-rx.test.ts b/test/types/result-rx.test.ts index 37b5a7c11..f02c74995 100644 --- a/test/types/result-rx.test.ts +++ b/test/types/result-rx.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/result-summary.test.ts b/test/types/result-summary.test.ts index bd4e4a4d1..50a4bc1f2 100644 --- a/test/types/result-summary.test.ts +++ b/test/types/result-summary.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/result.test.ts b/test/types/result.test.ts index d1d5e4223..36184bc7f 100644 --- a/test/types/result.test.ts +++ b/test/types/result.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/session-rx.test.ts b/test/types/session-rx.test.ts index 413166d1d..2d002e977 100644 --- a/test/types/session-rx.test.ts +++ b/test/types/session-rx.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/session.test.ts b/test/types/session.test.ts index fc08ff09b..54d50661c 100644 --- a/test/types/session.test.ts +++ b/test/types/session.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/spatial-types.test.ts b/test/types/spatial-types.test.ts index 79eaef65d..37cfef020 100644 --- a/test/types/spatial-types.test.ts +++ b/test/types/spatial-types.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/temporal-types.test.ts b/test/types/temporal-types.test.ts index 756abad98..c1783101d 100644 --- a/test/types/temporal-types.test.ts +++ b/test/types/temporal-types.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/transaction-rx.test.ts b/test/types/transaction-rx.test.ts index 529b5b7a3..4829c967a 100644 --- a/test/types/transaction-rx.test.ts +++ b/test/types/transaction-rx.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/test/types/transaction.test.ts b/test/types/transaction.test.ts index 6f51d6414..a4af92b59 100644 --- a/test/types/transaction.test.ts +++ b/test/types/transaction.test.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/driver.d.ts b/types/driver.d.ts index 41ac5553b..a888b623b 100644 --- a/types/driver.d.ts +++ b/types/driver.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/error.d.ts b/types/error.d.ts index 1c829d239..cbb6bcbe3 100644 --- a/types/error.d.ts +++ b/types/error.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/graph-types.d.ts b/types/graph-types.d.ts index 47b95b3fe..072f97e6a 100644 --- a/types/graph-types.d.ts +++ b/types/graph-types.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/index.d.ts b/types/index.d.ts index 520496bda..728f326af 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/integer.d.ts b/types/integer.d.ts index 0ab938db0..feac412f1 100644 --- a/types/integer.d.ts +++ b/types/integer.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/query-runner.d.ts b/types/query-runner.d.ts index a8259682f..7651428d2 100644 --- a/types/query-runner.d.ts +++ b/types/query-runner.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/record.d.ts b/types/record.d.ts index 63e437a48..3e2138120 100644 --- a/types/record.d.ts +++ b/types/record.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/result-rx.d.ts b/types/result-rx.d.ts index 7a6f9bb63..bed0cd3d9 100644 --- a/types/result-rx.d.ts +++ b/types/result-rx.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/result-summary.d.ts b/types/result-summary.d.ts index f661ec8ca..c588257da 100644 --- a/types/result-summary.d.ts +++ b/types/result-summary.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/result.d.ts b/types/result.d.ts index 033e25140..78555c760 100644 --- a/types/result.d.ts +++ b/types/result.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/session-rx.d.ts b/types/session-rx.d.ts index a93cfb7b2..46d92d376 100644 --- a/types/session-rx.d.ts +++ b/types/session-rx.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/session.d.ts b/types/session.d.ts index 489fb5f42..f97db4855 100644 --- a/types/session.d.ts +++ b/types/session.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/spatial-types.d.ts b/types/spatial-types.d.ts index 8d19a7e01..70a4e81c4 100644 --- a/types/spatial-types.d.ts +++ b/types/spatial-types.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/temporal-types.d.ts b/types/temporal-types.d.ts index cfa9655f8..5193c7e7f 100644 --- a/types/temporal-types.d.ts +++ b/types/temporal-types.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/transaction-rx.d.ts b/types/transaction-rx.d.ts index 3e0f738f6..ddf69708c 100644 --- a/types/transaction-rx.d.ts +++ b/types/transaction-rx.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. diff --git a/types/transaction.d.ts b/types/transaction.d.ts index 27833b9f6..f500add0e 100644 --- a/types/transaction.d.ts +++ b/types/transaction.d.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2002-2020 "Neo4j," + * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. From afd46da92ed57e097f137d48050206754a844608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Barc=C3=A9los?= <antonio.barcelos@neo4j.com> Date: Mon, 1 Mar 2021 18:12:47 +0100 Subject: [PATCH 2/2] Fix connection close by server treatment by WebSocket channels (#684) The lack of set channel._open to false when the onclose event is triggered was causing the channel be broken without the other parts of the driver notice. In tbis way, a next iteration trying to get the broken connection will succeded in the try and run the query will result in a eternal pending promise. Mark the channel as closed enable the pool to discard and create a new connection if it needed. --- src/internal/browser/browser-channel.js | 1 + test/internal/browser/browser-channel.test.js | 27 ++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/internal/browser/browser-channel.js b/src/internal/browser/browser-channel.js index 8d1ad8d33..9b1abe52b 100644 --- a/src/internal/browser/browser-channel.js +++ b/src/internal/browser/browser-channel.js @@ -65,6 +65,7 @@ export default class WebSocketChannel { if (e && !e.wasClean) { self._handleConnectionError() } + self._open = false } this._ws.onopen = function () { // Connected! Cancel the connection timeout diff --git a/test/internal/browser/browser-channel.test.js b/test/internal/browser/browser-channel.test.js index 4668a28f4..e8bee3f04 100644 --- a/test/internal/browser/browser-channel.test.js +++ b/test/internal/browser/browser-channel.test.js @@ -23,7 +23,6 @@ import { SERVICE_UNAVAILABLE } from '../../../src/error' import { setTimeoutMock } from '../timers-util' import { ENCRYPTION_OFF, ENCRYPTION_ON } from '../../../src/internal/util' import ServerAddress from '../../../src/internal/server-address' -import { read } from 'fs' const WS_CONNECTING = 0 const WS_OPEN = 1 @@ -244,9 +243,32 @@ describe('#unit WebSocketChannel', () => { } } + it('should set _open to false when connection closes', async () => { + const fakeSetTimeout = setTimeoutMock.install() + try { + // do not execute setTimeout callbacks + fakeSetTimeout.pause() + const address = ServerAddress.fromUrl('bolt://localhost:8989') + const driverConfig = { connectionTimeout: 4242 } + const channelConfig = new ChannelConfig( + address, + driverConfig, + SERVICE_UNAVAILABLE + ) + webSocketChannel = new WebSocketChannel( + channelConfig, + undefined, + createWebSocketFactory(WS_OPEN) + ) + webSocketChannel._ws.close() + expect(webSocketChannel._open).toBe(false) + } finally { + fakeSetTimeout.uninstall() + } + }) + function createWebSocketFactory (readyState) { const ws = {} - ws.readyState = readyState ws.close = () => { ws.readyState = WS_CLOSED @@ -254,7 +276,6 @@ describe('#unit WebSocketChannel', () => { ws.onclose({ wasClean: true }) } } - return url => { ws.url = url return ws