neo4j-driver 5.8.1 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -87
- package/lib/browser/neo4j-web.esm.js +1173 -766
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +1173 -766
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +7 -129
- package/lib/version.js +1 -1
- package/package.json +6 -5
- package/types/index.d.ts +1 -1
|
@@ -30,7 +30,7 @@ var error = {};
|
|
|
30
30
|
* See the License for the specific language governing permissions and
|
|
31
31
|
* limitations under the License.
|
|
32
32
|
*/
|
|
33
|
-
var __extends$
|
|
33
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
34
34
|
var extendStatics = function (d, b) {
|
|
35
35
|
extendStatics = Object.setPrototypeOf ||
|
|
36
36
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -77,7 +77,7 @@ var NOT_AVAILABLE$1 = 'N/A';
|
|
|
77
77
|
* Class for all errors thrown/returned by the driver.
|
|
78
78
|
*/
|
|
79
79
|
var Neo4jError = /** @class */ (function (_super) {
|
|
80
|
-
__extends$
|
|
80
|
+
__extends$L(Neo4jError, _super);
|
|
81
81
|
/**
|
|
82
82
|
* @constructor
|
|
83
83
|
* @param {string} message - the error message
|
|
@@ -4468,7 +4468,7 @@ var constants$1 = {};
|
|
|
4468
4468
|
* limitations under the License.
|
|
4469
4469
|
*/
|
|
4470
4470
|
Object.defineProperty(constants$1, "__esModule", { value: true });
|
|
4471
|
-
constants$1.BOLT_PROTOCOL_V5_2 = constants$1.BOLT_PROTOCOL_V5_1 = constants$1.BOLT_PROTOCOL_V5_0 = constants$1.BOLT_PROTOCOL_V4_4 = constants$1.BOLT_PROTOCOL_V4_3 = constants$1.BOLT_PROTOCOL_V4_2 = constants$1.BOLT_PROTOCOL_V4_1 = constants$1.BOLT_PROTOCOL_V4_0 = constants$1.BOLT_PROTOCOL_V3 = constants$1.BOLT_PROTOCOL_V2 = constants$1.BOLT_PROTOCOL_V1 = constants$1.DEFAULT_POOL_MAX_SIZE = constants$1.DEFAULT_POOL_ACQUISITION_TIMEOUT = constants$1.DEFAULT_CONNECTION_TIMEOUT_MILLIS = constants$1.ACCESS_MODE_WRITE = constants$1.ACCESS_MODE_READ = constants$1.FETCH_ALL = void 0;
|
|
4471
|
+
constants$1.BOLT_PROTOCOL_V5_3 = constants$1.BOLT_PROTOCOL_V5_2 = constants$1.BOLT_PROTOCOL_V5_1 = constants$1.BOLT_PROTOCOL_V5_0 = constants$1.BOLT_PROTOCOL_V4_4 = constants$1.BOLT_PROTOCOL_V4_3 = constants$1.BOLT_PROTOCOL_V4_2 = constants$1.BOLT_PROTOCOL_V4_1 = constants$1.BOLT_PROTOCOL_V4_0 = constants$1.BOLT_PROTOCOL_V3 = constants$1.BOLT_PROTOCOL_V2 = constants$1.BOLT_PROTOCOL_V1 = constants$1.DEFAULT_POOL_MAX_SIZE = constants$1.DEFAULT_POOL_ACQUISITION_TIMEOUT = constants$1.DEFAULT_CONNECTION_TIMEOUT_MILLIS = constants$1.ACCESS_MODE_WRITE = constants$1.ACCESS_MODE_READ = constants$1.FETCH_ALL = void 0;
|
|
4472
4472
|
var FETCH_ALL$6 = -1;
|
|
4473
4473
|
constants$1.FETCH_ALL = FETCH_ALL$6;
|
|
4474
4474
|
var DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds
|
|
@@ -4503,6 +4503,8 @@ var BOLT_PROTOCOL_V5_1$3 = 5.1;
|
|
|
4503
4503
|
constants$1.BOLT_PROTOCOL_V5_1 = BOLT_PROTOCOL_V5_1$3;
|
|
4504
4504
|
var BOLT_PROTOCOL_V5_2$1 = 5.2;
|
|
4505
4505
|
constants$1.BOLT_PROTOCOL_V5_2 = BOLT_PROTOCOL_V5_2$1;
|
|
4506
|
+
var BOLT_PROTOCOL_V5_3$1 = 5.3;
|
|
4507
|
+
constants$1.BOLT_PROTOCOL_V5_3 = BOLT_PROTOCOL_V5_3$1;
|
|
4506
4508
|
|
|
4507
4509
|
var connectionHolder$1 = {};
|
|
4508
4510
|
|
|
@@ -4525,7 +4527,7 @@ var connectionHolder$1 = {};
|
|
|
4525
4527
|
* limitations under the License.
|
|
4526
4528
|
*/
|
|
4527
4529
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
4528
|
-
var __extends$
|
|
4530
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4529
4531
|
var extendStatics = function (d, b) {
|
|
4530
4532
|
extendStatics = Object.setPrototypeOf ||
|
|
4531
4533
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4730,7 +4732,7 @@ connectionHolder$1.ConnectionHolder = ConnectionHolder;
|
|
|
4730
4732
|
* releasing or initilizing
|
|
4731
4733
|
*/
|
|
4732
4734
|
var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
4733
|
-
__extends$
|
|
4735
|
+
__extends$K(ReadOnlyConnectionHolder, _super);
|
|
4734
4736
|
/**
|
|
4735
4737
|
* Contructor
|
|
4736
4738
|
* @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
|
|
@@ -4784,7 +4786,7 @@ var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
|
4784
4786
|
connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
|
|
4785
4787
|
connectionHolder$1.default = ReadOnlyConnectionHolder;
|
|
4786
4788
|
var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
4787
|
-
__extends$
|
|
4789
|
+
__extends$K(EmptyConnectionHolder, _super);
|
|
4788
4790
|
function EmptyConnectionHolder() {
|
|
4789
4791
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4790
4792
|
}
|
|
@@ -5176,7 +5178,7 @@ function _valueOrDefault(value, defaultValue) {
|
|
|
5176
5178
|
|
|
5177
5179
|
var logger$1 = {};
|
|
5178
5180
|
|
|
5179
|
-
var __extends$
|
|
5181
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
5180
5182
|
var extendStatics = function (d, b) {
|
|
5181
5183
|
extendStatics = Object.setPrototypeOf ||
|
|
5182
5184
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -5326,7 +5328,7 @@ var Logger$2 = /** @class */ (function () {
|
|
|
5326
5328
|
}());
|
|
5327
5329
|
logger$1.Logger = Logger$2;
|
|
5328
5330
|
var NoOpLogger = /** @class */ (function (_super) {
|
|
5329
|
-
__extends$
|
|
5331
|
+
__extends$J(NoOpLogger, _super);
|
|
5330
5332
|
function NoOpLogger() {
|
|
5331
5333
|
return _super.call(this, INFO, function (level, message) { }) || this;
|
|
5332
5334
|
}
|
|
@@ -5410,8 +5412,8 @@ var urlUtil$2 = {};
|
|
|
5410
5412
|
* See the License for the specific language governing permissions and
|
|
5411
5413
|
* limitations under the License.
|
|
5412
5414
|
*/
|
|
5413
|
-
var __assign$
|
|
5414
|
-
__assign$
|
|
5415
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5416
|
+
__assign$k = Object.assign || function(t) {
|
|
5415
5417
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5416
5418
|
s = arguments[i];
|
|
5417
5419
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -5419,7 +5421,7 @@ var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
5419
5421
|
}
|
|
5420
5422
|
return t;
|
|
5421
5423
|
};
|
|
5422
|
-
return __assign$
|
|
5424
|
+
return __assign$k.apply(this, arguments);
|
|
5423
5425
|
};
|
|
5424
5426
|
var __read$s = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
5425
5427
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -5681,7 +5683,7 @@ function uriJsParse(value) {
|
|
|
5681
5683
|
// Parse authority and path
|
|
5682
5684
|
if (value.startsWith('//')) {
|
|
5683
5685
|
parts = partition(value.substr(2), '/');
|
|
5684
|
-
parsed = __assign$
|
|
5686
|
+
parsed = __assign$k(__assign$k({}, parsed), parseAuthority(parts[0]));
|
|
5685
5687
|
parsed.path = parts[1] + parts[2];
|
|
5686
5688
|
}
|
|
5687
5689
|
else {
|
|
@@ -5861,7 +5863,7 @@ var ConfiguredCustomResolver = /** @class */ (function () {
|
|
|
5861
5863
|
}());
|
|
5862
5864
|
configuredCustomResolver.default = ConfiguredCustomResolver;
|
|
5863
5865
|
|
|
5864
|
-
var __importDefault$
|
|
5866
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5865
5867
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5866
5868
|
};
|
|
5867
5869
|
Object.defineProperty(resolver$1, "__esModule", { value: true });
|
|
@@ -5884,11 +5886,103 @@ resolver$1.ConfiguredCustomResolver = resolver$1.BaseHostNameResolver = void 0;
|
|
|
5884
5886
|
* See the License for the specific language governing permissions and
|
|
5885
5887
|
* limitations under the License.
|
|
5886
5888
|
*/
|
|
5887
|
-
var base_host_name_resolver_1 = __importDefault$
|
|
5889
|
+
var base_host_name_resolver_1 = __importDefault$S(baseHostNameResolver);
|
|
5888
5890
|
resolver$1.BaseHostNameResolver = base_host_name_resolver_1.default;
|
|
5889
|
-
var configured_custom_resolver_1$1 = __importDefault$
|
|
5891
|
+
var configured_custom_resolver_1$1 = __importDefault$S(configuredCustomResolver);
|
|
5890
5892
|
resolver$1.ConfiguredCustomResolver = configured_custom_resolver_1$1.default;
|
|
5891
5893
|
|
|
5894
|
+
var browser$1 = {};
|
|
5895
|
+
|
|
5896
|
+
var boltAgent$1 = {};
|
|
5897
|
+
|
|
5898
|
+
/**
|
|
5899
|
+
* Copyright (c) "Neo4j"
|
|
5900
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5901
|
+
*
|
|
5902
|
+
* This file is part of Neo4j.
|
|
5903
|
+
*
|
|
5904
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5905
|
+
* you may not use this file except in compliance with the License.
|
|
5906
|
+
* You may obtain a copy of the License at
|
|
5907
|
+
*
|
|
5908
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5909
|
+
*
|
|
5910
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5911
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5912
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5913
|
+
* See the License for the specific language governing permissions and
|
|
5914
|
+
* limitations under the License.
|
|
5915
|
+
*/
|
|
5916
|
+
/* eslint-disable */
|
|
5917
|
+
Object.defineProperty(boltAgent$1, "__esModule", { value: true });
|
|
5918
|
+
boltAgent$1.fromVersion = void 0;
|
|
5919
|
+
/**
|
|
5920
|
+
* Constructs a BoltAgent structure from a given product version.
|
|
5921
|
+
*
|
|
5922
|
+
* @param {string} version The product version
|
|
5923
|
+
* @param {function():SystemInfo} getSystemInfo Parameter used of inject system information and mock calls to the APIs.
|
|
5924
|
+
* @returns {BoltAgent} The bolt agent
|
|
5925
|
+
*/
|
|
5926
|
+
function fromVersion(version, getSystemInfo) {
|
|
5927
|
+
if (getSystemInfo === void 0) { getSystemInfo = function () { return ({
|
|
5928
|
+
get userAgent() {
|
|
5929
|
+
// this should be defined as an `var` since we need to get information
|
|
5930
|
+
// came from the global scope which not always will be defined
|
|
5931
|
+
// and we don't want to override the information
|
|
5932
|
+
var navigator;
|
|
5933
|
+
// @ts-ignore: browser code so must be skipped by ts
|
|
5934
|
+
return navigator === null || navigator === void 0 ? void 0 : navigator.userAgent;
|
|
5935
|
+
}
|
|
5936
|
+
}); }; }
|
|
5937
|
+
var systemInfo = getSystemInfo();
|
|
5938
|
+
//USER_AGENT looks like 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
|
|
5939
|
+
var platform = systemInfo.userAgent != null ? systemInfo.userAgent.split("(")[1].split(")")[0] : undefined;
|
|
5940
|
+
var languageDetails = systemInfo.userAgent || undefined;
|
|
5941
|
+
return {
|
|
5942
|
+
product: "neo4j-javascript/".concat(version),
|
|
5943
|
+
platform: platform,
|
|
5944
|
+
languageDetails: languageDetails
|
|
5945
|
+
};
|
|
5946
|
+
}
|
|
5947
|
+
boltAgent$1.fromVersion = fromVersion;
|
|
5948
|
+
|
|
5949
|
+
(function (exports) {
|
|
5950
|
+
/**
|
|
5951
|
+
* Copyright (c) "Neo4j"
|
|
5952
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5953
|
+
*
|
|
5954
|
+
* This file is part of Neo4j.
|
|
5955
|
+
*
|
|
5956
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5957
|
+
* you may not use this file except in compliance with the License.
|
|
5958
|
+
* You may obtain a copy of the License at
|
|
5959
|
+
*
|
|
5960
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5961
|
+
*
|
|
5962
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5963
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5964
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5965
|
+
* See the License for the specific language governing permissions and
|
|
5966
|
+
* limitations under the License.
|
|
5967
|
+
*/
|
|
5968
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5969
|
+
if (k2 === undefined) k2 = k;
|
|
5970
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5971
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5972
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5973
|
+
}
|
|
5974
|
+
Object.defineProperty(o, k2, desc);
|
|
5975
|
+
}) : (function(o, m, k, k2) {
|
|
5976
|
+
if (k2 === undefined) k2 = k;
|
|
5977
|
+
o[k2] = m[k];
|
|
5978
|
+
}));
|
|
5979
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
5980
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5981
|
+
};
|
|
5982
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5983
|
+
__exportStar(boltAgent$1, exports);
|
|
5984
|
+
}(browser$1));
|
|
5985
|
+
|
|
5892
5986
|
/**
|
|
5893
5987
|
* Copyright (c) "Neo4j"
|
|
5894
5988
|
* Neo4j Sweden AB [http://neo4j.com]
|
|
@@ -5931,7 +6025,7 @@ var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
5931
6025
|
return result;
|
|
5932
6026
|
};
|
|
5933
6027
|
Object.defineProperty(internal, "__esModule", { value: true });
|
|
5934
|
-
internal.objectUtil = internal.resolver = internal.serverAddress = internal.urlUtil = internal.logger = internal.transactionExecutor = internal.txConfig = internal.connectionHolder = internal.constants = internal.bookmarks = internal.observer = internal.temporalUtil = internal.util = void 0;
|
|
6028
|
+
internal.boltAgent = internal.objectUtil = internal.resolver = internal.serverAddress = internal.urlUtil = internal.logger = internal.transactionExecutor = internal.txConfig = internal.connectionHolder = internal.constants = internal.bookmarks = internal.observer = internal.temporalUtil = internal.util = void 0;
|
|
5935
6029
|
var util = __importStar$6(util$4);
|
|
5936
6030
|
internal.util = util;
|
|
5937
6031
|
var temporalUtil = __importStar$6(temporalUtil$1);
|
|
@@ -5958,6 +6052,8 @@ var resolver = __importStar$6(resolver$1);
|
|
|
5958
6052
|
internal.resolver = resolver;
|
|
5959
6053
|
var objectUtil$1 = __importStar$6(objectUtil$2);
|
|
5960
6054
|
internal.objectUtil = objectUtil$1;
|
|
6055
|
+
var boltAgent = __importStar$6(browser$1);
|
|
6056
|
+
internal.boltAgent = boltAgent;
|
|
5961
6057
|
|
|
5962
6058
|
/**
|
|
5963
6059
|
* Copyright (c) "Neo4j"
|
|
@@ -6013,12 +6109,12 @@ var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
6013
6109
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6014
6110
|
}
|
|
6015
6111
|
};
|
|
6016
|
-
var __importDefault$
|
|
6112
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6017
6113
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6018
6114
|
};
|
|
6019
6115
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
6020
6116
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
6021
|
-
var result_summary_1 = __importDefault$
|
|
6117
|
+
var result_summary_1 = __importDefault$R(resultSummary);
|
|
6022
6118
|
var internal_1$1 = internal;
|
|
6023
6119
|
var error_1$4 = error;
|
|
6024
6120
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -6884,10 +6980,12 @@ var Connection$1 = /** @class */ (function () {
|
|
|
6884
6980
|
/**
|
|
6885
6981
|
* Connect to the target address, negotiate Bolt protocol and send initialization message.
|
|
6886
6982
|
* @param {string} userAgent the user agent for this driver.
|
|
6983
|
+
* @param {string} boltAgent the bolt agent for this driver.
|
|
6887
6984
|
* @param {Object} authToken the object containing auth information.
|
|
6985
|
+
* @param {Object} waitReAuth whether to connect method should wait until re-Authorised
|
|
6888
6986
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
6889
6987
|
*/
|
|
6890
|
-
Connection.prototype.connect = function (userAgent, authToken) {
|
|
6988
|
+
Connection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
6891
6989
|
throw Error('Not implemented');
|
|
6892
6990
|
};
|
|
6893
6991
|
/**
|
|
@@ -6987,7 +7085,7 @@ var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
6987
7085
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6988
7086
|
}
|
|
6989
7087
|
};
|
|
6990
|
-
var __importDefault$
|
|
7088
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6991
7089
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6992
7090
|
};
|
|
6993
7091
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -6998,7 +7096,7 @@ var bookmarks_1$2 = bookmarks$1;
|
|
|
6998
7096
|
var tx_config_1$1 = txConfig$1;
|
|
6999
7097
|
var observers_1$1 = observers;
|
|
7000
7098
|
var error_1$3 = error;
|
|
7001
|
-
var result_1$1 = __importDefault$
|
|
7099
|
+
var result_1$1 = __importDefault$Q(result);
|
|
7002
7100
|
/**
|
|
7003
7101
|
* Represents a transaction in the Neo4j database.
|
|
7004
7102
|
*
|
|
@@ -7526,7 +7624,7 @@ var transactionPromise = {};
|
|
|
7526
7624
|
* See the License for the specific language governing permissions and
|
|
7527
7625
|
* limitations under the License.
|
|
7528
7626
|
*/
|
|
7529
|
-
var __extends$
|
|
7627
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
7530
7628
|
var extendStatics = function (d, b) {
|
|
7531
7629
|
extendStatics = Object.setPrototypeOf ||
|
|
7532
7630
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -7541,8 +7639,8 @@ var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
7541
7639
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7542
7640
|
};
|
|
7543
7641
|
})();
|
|
7544
|
-
var __assign$
|
|
7545
|
-
__assign$
|
|
7642
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
7643
|
+
__assign$j = Object.assign || function(t) {
|
|
7546
7644
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7547
7645
|
s = arguments[i];
|
|
7548
7646
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -7550,15 +7648,15 @@ var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
7550
7648
|
}
|
|
7551
7649
|
return t;
|
|
7552
7650
|
};
|
|
7553
|
-
return __assign$
|
|
7651
|
+
return __assign$j.apply(this, arguments);
|
|
7554
7652
|
};
|
|
7555
|
-
var __importDefault$
|
|
7653
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7556
7654
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7557
7655
|
};
|
|
7558
7656
|
var _a$d;
|
|
7559
7657
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
7560
7658
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
7561
|
-
var transaction_1 = __importDefault$
|
|
7659
|
+
var transaction_1 = __importDefault$P(transaction);
|
|
7562
7660
|
/**
|
|
7563
7661
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
7564
7662
|
*
|
|
@@ -7570,7 +7668,7 @@ var transaction_1 = __importDefault$N(transaction);
|
|
|
7570
7668
|
* @access public
|
|
7571
7669
|
*/
|
|
7572
7670
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
7573
|
-
__extends$
|
|
7671
|
+
__extends$I(TransactionPromise, _super);
|
|
7574
7672
|
/**
|
|
7575
7673
|
* @constructor
|
|
7576
7674
|
* @param {object} args
|
|
@@ -7649,7 +7747,7 @@ var TransactionPromise = /** @class */ (function (_super) {
|
|
|
7649
7747
|
* @access private
|
|
7650
7748
|
*/
|
|
7651
7749
|
TransactionPromise.prototype._toTransaction = function () {
|
|
7652
|
-
return __assign$
|
|
7750
|
+
return __assign$j(__assign$j({}, this), { run: _super.prototype.run.bind(this), commit: _super.prototype.commit.bind(this), rollback: _super.prototype.rollback.bind(this), close: _super.prototype.close.bind(this), isOpen: _super.prototype.isOpen.bind(this), _begin: this._begin.bind(this) });
|
|
7653
7751
|
};
|
|
7654
7752
|
/**
|
|
7655
7753
|
* @access private
|
|
@@ -7766,7 +7864,7 @@ var __spreadArray$l = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
7766
7864
|
}
|
|
7767
7865
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
7768
7866
|
};
|
|
7769
|
-
var __importDefault$
|
|
7867
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7770
7868
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7771
7869
|
};
|
|
7772
7870
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -7775,13 +7873,13 @@ var observers_1 = observers;
|
|
|
7775
7873
|
var util_1$1 = util$4;
|
|
7776
7874
|
var constants_1$1 = constants$1;
|
|
7777
7875
|
var error_1$2 = error;
|
|
7778
|
-
var result_1 = __importDefault$
|
|
7876
|
+
var result_1 = __importDefault$O(result);
|
|
7779
7877
|
var connection_holder_1 = connectionHolder$1;
|
|
7780
7878
|
var transaction_executor_1 = transactionExecutor$1;
|
|
7781
7879
|
var bookmarks_1$1 = bookmarks$1;
|
|
7782
7880
|
var tx_config_1 = txConfig$1;
|
|
7783
|
-
var transaction_promise_1 = __importDefault$
|
|
7784
|
-
var transaction_managed_1 = __importDefault$
|
|
7881
|
+
var transaction_promise_1 = __importDefault$O(transactionPromise);
|
|
7882
|
+
var transaction_managed_1 = __importDefault$O(transactionManaged);
|
|
7785
7883
|
/**
|
|
7786
7884
|
* A Session instance is used for handling the connection and
|
|
7787
7885
|
* sending queries through the connection.
|
|
@@ -8571,11 +8669,11 @@ var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
8571
8669
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8572
8670
|
}
|
|
8573
8671
|
};
|
|
8574
|
-
var __importDefault$
|
|
8672
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8575
8673
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8576
8674
|
};
|
|
8577
8675
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
8578
|
-
var result_eager_1 = __importDefault$
|
|
8676
|
+
var result_eager_1 = __importDefault$N(resultEager);
|
|
8579
8677
|
var error_1$1 = error;
|
|
8580
8678
|
function createEagerResultFromResult(result) {
|
|
8581
8679
|
return __awaiter$b(this, void 0, void 0, function () {
|
|
@@ -8882,20 +8980,20 @@ var __generator$b = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
8882
8980
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8883
8981
|
}
|
|
8884
8982
|
};
|
|
8885
|
-
var __importDefault$
|
|
8983
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8886
8984
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8887
8985
|
};
|
|
8888
8986
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
8889
8987
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
8890
8988
|
var bookmarks_1 = bookmarks$1;
|
|
8891
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
8989
|
+
var configured_custom_resolver_1 = __importDefault$M(configuredCustomResolver);
|
|
8892
8990
|
var constants_1 = constants$1;
|
|
8893
8991
|
var logger_1 = logger$1;
|
|
8894
|
-
var session_1 = __importDefault$
|
|
8992
|
+
var session_1 = __importDefault$M(session);
|
|
8895
8993
|
var util_1 = util$4;
|
|
8896
8994
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
8897
|
-
var result_transformers_1 = __importDefault$
|
|
8898
|
-
var query_executor_1 = __importDefault$
|
|
8995
|
+
var result_transformers_1 = __importDefault$M(resultTransformers$1);
|
|
8996
|
+
var query_executor_1 = __importDefault$M(queryExecutor);
|
|
8899
8997
|
var error_1 = error;
|
|
8900
8998
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
8901
8999
|
/**
|
|
@@ -9062,7 +9160,11 @@ var SessionConfig = /** @class */ (function () {
|
|
|
9062
9160
|
*
|
|
9063
9161
|
*
|
|
9064
9162
|
* Disabling notifications can be done by defining the minimum severity level to 'OFF'.
|
|
9065
|
-
*
|
|
9163
|
+
* At driver level, when omitted, uses the server's default.
|
|
9164
|
+
* At session level, when omitted, defaults to what filters have been configured at driver level.
|
|
9165
|
+
*
|
|
9166
|
+
* Disabling categories or severities allows the server to skip analysis for those, which can speed up query
|
|
9167
|
+
* execution.
|
|
9066
9168
|
*
|
|
9067
9169
|
* @example
|
|
9068
9170
|
* // enabling warning notification, but disabling `HINT` and `DEPRECATION` notifications.
|
|
@@ -9814,12 +9916,12 @@ var __generator$a = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
9814
9916
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
9815
9917
|
}
|
|
9816
9918
|
};
|
|
9817
|
-
var __importDefault$
|
|
9919
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9818
9920
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9819
9921
|
};
|
|
9820
9922
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
9821
9923
|
authTokenManager.isStaticAuthTokenManger = authTokenManager.staticAuthTokenManager = authTokenManager.expirationBasedAuthTokenManager = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
9822
|
-
var auth_1 = __importDefault$
|
|
9924
|
+
var auth_1 = __importDefault$L(auth$1);
|
|
9823
9925
|
var internal_1 = internal;
|
|
9824
9926
|
/**
|
|
9825
9927
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -10049,7 +10151,232 @@ var types$1 = {};
|
|
|
10049
10151
|
* See the License for the specific language governing permissions and
|
|
10050
10152
|
* limitations under the License.
|
|
10051
10153
|
*/
|
|
10154
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
10155
|
+
var extendStatics = function (d, b) {
|
|
10156
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10157
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10158
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10159
|
+
return extendStatics(d, b);
|
|
10160
|
+
};
|
|
10161
|
+
return function (d, b) {
|
|
10162
|
+
if (typeof b !== "function" && b !== null)
|
|
10163
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10164
|
+
extendStatics(d, b);
|
|
10165
|
+
function __() { this.constructor = d; }
|
|
10166
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10167
|
+
};
|
|
10168
|
+
})();
|
|
10052
10169
|
Object.defineProperty(types$1, "__esModule", { value: true });
|
|
10170
|
+
types$1.InternalConfig = types$1.Config = void 0;
|
|
10171
|
+
/**
|
|
10172
|
+
* The Neo4j Driver configuration.
|
|
10173
|
+
*
|
|
10174
|
+
* @interface
|
|
10175
|
+
*/
|
|
10176
|
+
var Config = /** @class */ (function () {
|
|
10177
|
+
/**
|
|
10178
|
+
* @constructor
|
|
10179
|
+
* @private
|
|
10180
|
+
*/
|
|
10181
|
+
function Config() {
|
|
10182
|
+
/**
|
|
10183
|
+
* Encryption level
|
|
10184
|
+
*
|
|
10185
|
+
* @type {'ENCRYPTION_ON'|'ENCRYPTION_OFF'|undefined}
|
|
10186
|
+
*/
|
|
10187
|
+
this.encrypted = undefined;
|
|
10188
|
+
/**
|
|
10189
|
+
* Trust strategy to use if encryption is enabled.
|
|
10190
|
+
*
|
|
10191
|
+
* There is no mode to disable trust other than disabling encryption altogether. The reason for
|
|
10192
|
+
* this is that if you don't know who you are talking to, it is easy for an
|
|
10193
|
+
* attacker to hijack your encrypted connection, rendering encryption pointless.
|
|
10194
|
+
*
|
|
10195
|
+
* TRUST_SYSTEM_CA_SIGNED_CERTIFICATES is the default choice. For NodeJS environments, this
|
|
10196
|
+
* means that you trust whatever certificates are in the default trusted certificate
|
|
10197
|
+
* store of the underlying system. For Browser environments, the trusted certificate
|
|
10198
|
+
* store is usually managed by the browser. Refer to your system or browser documentation
|
|
10199
|
+
* if you want to explicitly add a certificate as trusted.
|
|
10200
|
+
*
|
|
10201
|
+
* TRUST_CUSTOM_CA_SIGNED_CERTIFICATES is another option for trust verification -
|
|
10202
|
+
* whenever we establish an encrypted connection, we ensure the host is using
|
|
10203
|
+
* an encryption certificate that is in, or is signed by, a certificate given
|
|
10204
|
+
* as trusted through configuration. This option is only available for NodeJS environments.
|
|
10205
|
+
*
|
|
10206
|
+
* TRUST_ALL_CERTIFICATES means that you trust everything without any verifications
|
|
10207
|
+
* steps carried out. This option is only available for NodeJS environments and should not
|
|
10208
|
+
* be used on production systems.
|
|
10209
|
+
*
|
|
10210
|
+
* @type {'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'|'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES'|'TRUST_ALL_CERTIFICATES'|undefined}
|
|
10211
|
+
*/
|
|
10212
|
+
this.trust = undefined;
|
|
10213
|
+
/**
|
|
10214
|
+
* List of one or more paths to trusted encryption certificates.
|
|
10215
|
+
*
|
|
10216
|
+
* This only works in the NodeJS bundle,
|
|
10217
|
+
* and only matters if you use "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES".
|
|
10218
|
+
*
|
|
10219
|
+
* The certificate files should be in regular X.509 PEM format.
|
|
10220
|
+
*
|
|
10221
|
+
* For instance, ['./trusted.pem']
|
|
10222
|
+
*
|
|
10223
|
+
* @type {?string[]}
|
|
10224
|
+
* @see {@link Config#trust}
|
|
10225
|
+
*/
|
|
10226
|
+
this.trustedCertificates = [];
|
|
10227
|
+
/**
|
|
10228
|
+
* The maximum total number of connections allowed to be managed by the connection pool, per host.
|
|
10229
|
+
*
|
|
10230
|
+
* This includes both in-use and idle connections.
|
|
10231
|
+
*
|
|
10232
|
+
* **Default**: ```100```
|
|
10233
|
+
*
|
|
10234
|
+
* @type {number|undefined}
|
|
10235
|
+
*/
|
|
10236
|
+
this.maxConnectionPoolSize = 100;
|
|
10237
|
+
/**
|
|
10238
|
+
* The maximum allowed lifetime for a pooled connection in milliseconds.
|
|
10239
|
+
*
|
|
10240
|
+
* Pooled connections older than this
|
|
10241
|
+
* threshold will be closed and removed from the pool. Such discarding happens during connection acquisition
|
|
10242
|
+
* so that new session is never backed by an old connection. Setting this option to a low value will cause
|
|
10243
|
+
* a high connection churn and might result in a performance hit. It is recommended to set maximum lifetime
|
|
10244
|
+
* to a slightly smaller value than the one configured in network equipment (load balancer, proxy, firewall,
|
|
10245
|
+
* etc. can also limit maximum connection lifetime). No maximum lifetime limit is imposed by default. Zero
|
|
10246
|
+
* and negative values result in lifetime not being checked.
|
|
10247
|
+
*
|
|
10248
|
+
* **Default**: ```60 * 60 * 1000``` (1 hour)
|
|
10249
|
+
*
|
|
10250
|
+
* @type {number|undefined}
|
|
10251
|
+
*/
|
|
10252
|
+
this.maxConnectionLifetime = 60 * 60 * 1000; // 1 hour
|
|
10253
|
+
/**
|
|
10254
|
+
* The maximum amount of time to wait to acquire a connection from the pool (to either create a new
|
|
10255
|
+
* connection or borrow an existing one).
|
|
10256
|
+
*
|
|
10257
|
+
* **Default**: ```60000``` (1 minute)
|
|
10258
|
+
*
|
|
10259
|
+
* @type {number|undefined}
|
|
10260
|
+
*/
|
|
10261
|
+
this.connectionAcquisitionTimeout = 60000; // 1 minute
|
|
10262
|
+
/**
|
|
10263
|
+
* Specify the maximum time in milliseconds transactions are allowed to retry via
|
|
10264
|
+
* {@link Session#executeRead} and {@link Session#executeWrite} functions.
|
|
10265
|
+
*
|
|
10266
|
+
* These functions will retry the given unit of work on `ServiceUnavailable`, `SessionExpired` and transient
|
|
10267
|
+
* errors with exponential backoff using an initial delay of 1 second.
|
|
10268
|
+
*
|
|
10269
|
+
* **Default**: ```30000``` (30 seconds)
|
|
10270
|
+
*
|
|
10271
|
+
* @type {number|undefined}
|
|
10272
|
+
*/
|
|
10273
|
+
this.maxTransactionRetryTime = 30000; // 30 seconds
|
|
10274
|
+
/**
|
|
10275
|
+
* Specify socket connection timeout in milliseconds.
|
|
10276
|
+
*
|
|
10277
|
+
* Negative and zero values result in no timeout being applied.
|
|
10278
|
+
* Connection establishment will be then bound by the timeout configured
|
|
10279
|
+
* on the operating system level.
|
|
10280
|
+
*
|
|
10281
|
+
* **Default**: ```30000``` (30 seconds)
|
|
10282
|
+
*
|
|
10283
|
+
* @type {number|undefined}
|
|
10284
|
+
*/
|
|
10285
|
+
this.connectionTimeout = 30000; // 30 seconds
|
|
10286
|
+
/**
|
|
10287
|
+
* Make this driver always return native JavaScript numbers for integer values, instead of the
|
|
10288
|
+
* dedicated {@link Integer} class.
|
|
10289
|
+
*
|
|
10290
|
+
* Values that do not fit in native number bit range will be represented as `Number.NEGATIVE_INFINITY` or `Number.POSITIVE_INFINITY`.
|
|
10291
|
+
*
|
|
10292
|
+
* **Warning:** {@link ResultSummary} It is not always safe to enable this setting when JavaScript applications are not the only ones
|
|
10293
|
+
* interacting with the database. Stored numbers might in such case be not representable by native
|
|
10294
|
+
* `Number` type and thus the driver will return lossy values. This might also happen when data was
|
|
10295
|
+
* initially imported using neo4j import tool and contained numbers larger than
|
|
10296
|
+
* `Number.MAX_SAFE_INTEGER`. Driver will then return positive infinity, which is lossy.
|
|
10297
|
+
*
|
|
10298
|
+
* **Default**: ```false```
|
|
10299
|
+
*
|
|
10300
|
+
* Default value for this option is `false` because native JavaScript numbers might result
|
|
10301
|
+
* in loss of precision in the general case.
|
|
10302
|
+
*
|
|
10303
|
+
* @type {boolean|undefined}
|
|
10304
|
+
*/
|
|
10305
|
+
this.disableLosslessIntegers = false;
|
|
10306
|
+
/**
|
|
10307
|
+
* Make this driver always return native Javascript `BigInt` for integer values,
|
|
10308
|
+
* instead of the dedicated {@link Integer} class or `Number`.
|
|
10309
|
+
*
|
|
10310
|
+
* **Warning:** `BigInt` doesn't implement the method `toJSON`. To serialize it as `json`,
|
|
10311
|
+
* it's needed to add a custom implementation of the `toJSON` on the
|
|
10312
|
+
* `BigInt.prototype`. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json.
|
|
10313
|
+
*
|
|
10314
|
+
* **Default**: ```false``` (for backwards compatibility)
|
|
10315
|
+
*
|
|
10316
|
+
* @type {boolean|undefined}
|
|
10317
|
+
*/
|
|
10318
|
+
this.useBigInt = false;
|
|
10319
|
+
/**
|
|
10320
|
+
* Specify the logging configuration for the driver. Object should have two properties `level` and `logger`.
|
|
10321
|
+
*
|
|
10322
|
+
* Property `level` represents the logging level which should be one of: 'error', 'warn', 'info' or 'debug'. This property is optional and
|
|
10323
|
+
* its default value is 'info'. Levels have priorities: 'error': 0, 'warn': 1, 'info': 2, 'debug': 3. Enabling a certain level also enables all
|
|
10324
|
+
* levels with lower priority. For example: 'error', 'warn' and 'info' will be logged when 'info' level is configured.
|
|
10325
|
+
*
|
|
10326
|
+
* Property `logger` represents the logging function which will be invoked for every log call with an acceptable level. The function should
|
|
10327
|
+
* take two string arguments `level` and `message`. The function should not execute any blocking or long-running operations
|
|
10328
|
+
* because it is often executed on a hot path.
|
|
10329
|
+
*
|
|
10330
|
+
* No logging is done by default. See `neo4j.logging` object that contains predefined logging implementations.
|
|
10331
|
+
*
|
|
10332
|
+
* @type {LoggingConfig|undefined}
|
|
10333
|
+
* @see {@link logging}
|
|
10334
|
+
*/
|
|
10335
|
+
this.logging = undefined;
|
|
10336
|
+
/**
|
|
10337
|
+
* Specify a custom server address resolver function used by the routing driver to resolve the initial address used to create the driver.
|
|
10338
|
+
*
|
|
10339
|
+
* Such resolution happens:
|
|
10340
|
+
* * during the very first rediscovery when driver is created
|
|
10341
|
+
* * when all the known routers from the current routing table have failed and driver needs to fallback to the initial address
|
|
10342
|
+
*
|
|
10343
|
+
* In NodeJS environment driver defaults to performing a DNS resolution of the initial address using 'dns' module.
|
|
10344
|
+
* In browser environment driver uses the initial address as-is.
|
|
10345
|
+
* Value should be a function that takes a single string argument - the initial address. It should return an array of new addresses.
|
|
10346
|
+
* Address is a string of shape '<host>:<port>'. Provided function can return either a Promise resolved with an array of addresses
|
|
10347
|
+
* or array of addresses directly.
|
|
10348
|
+
*
|
|
10349
|
+
* @type {function(address: string) {} |undefined}
|
|
10350
|
+
*/
|
|
10351
|
+
this.resolver = undefined;
|
|
10352
|
+
/**
|
|
10353
|
+
* Configure filter for Notification objects returned in {@Link ResultSummary#notifications}.
|
|
10354
|
+
*
|
|
10355
|
+
* See {@link SessionConfig#notificationFilter} for usage instructions.
|
|
10356
|
+
*
|
|
10357
|
+
* @type {NotificationFilter|undefined}
|
|
10358
|
+
*/
|
|
10359
|
+
this.notificationFilter = undefined;
|
|
10360
|
+
/**
|
|
10361
|
+
* Optionally override the default user agent name.
|
|
10362
|
+
*
|
|
10363
|
+
* **Default**: ```'neo4j-javascript/<version>'```
|
|
10364
|
+
*
|
|
10365
|
+
* @type {string|undefined}
|
|
10366
|
+
*/
|
|
10367
|
+
this.userAgent = undefined;
|
|
10368
|
+
}
|
|
10369
|
+
return Config;
|
|
10370
|
+
}());
|
|
10371
|
+
types$1.Config = Config;
|
|
10372
|
+
var InternalConfig = /** @class */ (function (_super) {
|
|
10373
|
+
__extends$H(InternalConfig, _super);
|
|
10374
|
+
function InternalConfig() {
|
|
10375
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10376
|
+
}
|
|
10377
|
+
return InternalConfig;
|
|
10378
|
+
}(Config));
|
|
10379
|
+
types$1.InternalConfig = InternalConfig;
|
|
10053
10380
|
|
|
10054
10381
|
(function (exports) {
|
|
10055
10382
|
/**
|
|
@@ -11032,7 +11359,7 @@ lift.operate = operate;
|
|
|
11032
11359
|
|
|
11033
11360
|
var OperatorSubscriber$1 = {};
|
|
11034
11361
|
|
|
11035
|
-
var __extends$
|
|
11362
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11036
11363
|
var extendStatics = function (d, b) {
|
|
11037
11364
|
extendStatics = Object.setPrototypeOf ||
|
|
11038
11365
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11055,7 +11382,7 @@ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFi
|
|
|
11055
11382
|
}
|
|
11056
11383
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
11057
11384
|
var OperatorSubscriber = (function (_super) {
|
|
11058
|
-
__extends$
|
|
11385
|
+
__extends$G(OperatorSubscriber, _super);
|
|
11059
11386
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
11060
11387
|
var _this = _super.call(this, destination) || this;
|
|
11061
11388
|
_this.onFinalize = onFinalize;
|
|
@@ -11139,7 +11466,7 @@ function refCount() {
|
|
|
11139
11466
|
}
|
|
11140
11467
|
refCount$1.refCount = refCount;
|
|
11141
11468
|
|
|
11142
|
-
var __extends$
|
|
11469
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11143
11470
|
var extendStatics = function (d, b) {
|
|
11144
11471
|
extendStatics = Object.setPrototypeOf ||
|
|
11145
11472
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11162,7 +11489,7 @@ var refCount_1 = refCount$1;
|
|
|
11162
11489
|
var OperatorSubscriber_1$T = OperatorSubscriber$1;
|
|
11163
11490
|
var lift_1$12 = lift;
|
|
11164
11491
|
var ConnectableObservable = (function (_super) {
|
|
11165
|
-
__extends$
|
|
11492
|
+
__extends$F(ConnectableObservable, _super);
|
|
11166
11493
|
function ConnectableObservable(source, subjectFactory) {
|
|
11167
11494
|
var _this = _super.call(this) || this;
|
|
11168
11495
|
_this.source = source;
|
|
@@ -11349,7 +11676,7 @@ ObjectUnsubscribedError.ObjectUnsubscribedError = createErrorClass_1$4.createErr
|
|
|
11349
11676
|
};
|
|
11350
11677
|
});
|
|
11351
11678
|
|
|
11352
|
-
var __extends$
|
|
11679
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11353
11680
|
var extendStatics = function (d, b) {
|
|
11354
11681
|
extendStatics = Object.setPrototypeOf ||
|
|
11355
11682
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11383,7 +11710,7 @@ var ObjectUnsubscribedError_1 = ObjectUnsubscribedError;
|
|
|
11383
11710
|
var arrRemove_1$6 = arrRemove$1;
|
|
11384
11711
|
var errorContext_1 = errorContext$1;
|
|
11385
11712
|
var Subject = (function (_super) {
|
|
11386
|
-
__extends$
|
|
11713
|
+
__extends$E(Subject, _super);
|
|
11387
11714
|
function Subject() {
|
|
11388
11715
|
var _this = _super.call(this) || this;
|
|
11389
11716
|
_this.closed = false;
|
|
@@ -11511,7 +11838,7 @@ var Subject = (function (_super) {
|
|
|
11511
11838
|
}(Observable_1$l.Observable));
|
|
11512
11839
|
Subject$1.Subject = Subject;
|
|
11513
11840
|
var AnonymousSubject = (function (_super) {
|
|
11514
|
-
__extends$
|
|
11841
|
+
__extends$E(AnonymousSubject, _super);
|
|
11515
11842
|
function AnonymousSubject(destination, source) {
|
|
11516
11843
|
var _this = _super.call(this) || this;
|
|
11517
11844
|
_this.destination = destination;
|
|
@@ -11540,7 +11867,7 @@ Subject$1.AnonymousSubject = AnonymousSubject;
|
|
|
11540
11867
|
|
|
11541
11868
|
var BehaviorSubject$1 = {};
|
|
11542
11869
|
|
|
11543
|
-
var __extends$
|
|
11870
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11544
11871
|
var extendStatics = function (d, b) {
|
|
11545
11872
|
extendStatics = Object.setPrototypeOf ||
|
|
11546
11873
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11559,7 +11886,7 @@ Object.defineProperty(BehaviorSubject$1, "__esModule", { value: true });
|
|
|
11559
11886
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
11560
11887
|
var Subject_1$e = Subject$1;
|
|
11561
11888
|
var BehaviorSubject = (function (_super) {
|
|
11562
|
-
__extends$
|
|
11889
|
+
__extends$D(BehaviorSubject, _super);
|
|
11563
11890
|
function BehaviorSubject(_value) {
|
|
11564
11891
|
var _this = _super.call(this) || this;
|
|
11565
11892
|
_this._value = _value;
|
|
@@ -11608,7 +11935,7 @@ exports.dateTimestampProvider = {
|
|
|
11608
11935
|
|
|
11609
11936
|
}(dateTimestampProvider));
|
|
11610
11937
|
|
|
11611
|
-
var __extends$
|
|
11938
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11612
11939
|
var extendStatics = function (d, b) {
|
|
11613
11940
|
extendStatics = Object.setPrototypeOf ||
|
|
11614
11941
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11628,7 +11955,7 @@ ReplaySubject$1.ReplaySubject = void 0;
|
|
|
11628
11955
|
var Subject_1$d = Subject$1;
|
|
11629
11956
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
11630
11957
|
var ReplaySubject = (function (_super) {
|
|
11631
|
-
__extends$
|
|
11958
|
+
__extends$C(ReplaySubject, _super);
|
|
11632
11959
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
11633
11960
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
11634
11961
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -11684,7 +12011,7 @@ ReplaySubject$1.ReplaySubject = ReplaySubject;
|
|
|
11684
12011
|
|
|
11685
12012
|
var AsyncSubject$1 = {};
|
|
11686
12013
|
|
|
11687
|
-
var __extends$
|
|
12014
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11688
12015
|
var extendStatics = function (d, b) {
|
|
11689
12016
|
extendStatics = Object.setPrototypeOf ||
|
|
11690
12017
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11703,7 +12030,7 @@ Object.defineProperty(AsyncSubject$1, "__esModule", { value: true });
|
|
|
11703
12030
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
11704
12031
|
var Subject_1$c = Subject$1;
|
|
11705
12032
|
var AsyncSubject = (function (_super) {
|
|
11706
|
-
__extends$
|
|
12033
|
+
__extends$B(AsyncSubject, _super);
|
|
11707
12034
|
function AsyncSubject() {
|
|
11708
12035
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11709
12036
|
_this._value = null;
|
|
@@ -11747,7 +12074,7 @@ var AsyncAction$1 = {};
|
|
|
11747
12074
|
|
|
11748
12075
|
var Action$1 = {};
|
|
11749
12076
|
|
|
11750
|
-
var __extends$
|
|
12077
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11751
12078
|
var extendStatics = function (d, b) {
|
|
11752
12079
|
extendStatics = Object.setPrototypeOf ||
|
|
11753
12080
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11766,7 +12093,7 @@ Object.defineProperty(Action$1, "__esModule", { value: true });
|
|
|
11766
12093
|
Action$1.Action = void 0;
|
|
11767
12094
|
var Subscription_1$5 = Subscription$1;
|
|
11768
12095
|
var Action = (function (_super) {
|
|
11769
|
-
__extends$
|
|
12096
|
+
__extends$A(Action, _super);
|
|
11770
12097
|
function Action(scheduler, work) {
|
|
11771
12098
|
return _super.call(this) || this;
|
|
11772
12099
|
}
|
|
@@ -11824,7 +12151,7 @@ exports.intervalProvider = {
|
|
|
11824
12151
|
|
|
11825
12152
|
}(intervalProvider));
|
|
11826
12153
|
|
|
11827
|
-
var __extends$
|
|
12154
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11828
12155
|
var extendStatics = function (d, b) {
|
|
11829
12156
|
extendStatics = Object.setPrototypeOf ||
|
|
11830
12157
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11845,7 +12172,7 @@ var Action_1 = Action$1;
|
|
|
11845
12172
|
var intervalProvider_1 = intervalProvider;
|
|
11846
12173
|
var arrRemove_1$5 = arrRemove$1;
|
|
11847
12174
|
var AsyncAction = (function (_super) {
|
|
11848
|
-
__extends$
|
|
12175
|
+
__extends$z(AsyncAction, _super);
|
|
11849
12176
|
function AsyncAction(scheduler, work) {
|
|
11850
12177
|
var _this = _super.call(this, scheduler, work) || this;
|
|
11851
12178
|
_this.scheduler = scheduler;
|
|
@@ -12010,7 +12337,7 @@ exports.immediateProvider = {
|
|
|
12010
12337
|
|
|
12011
12338
|
}(immediateProvider));
|
|
12012
12339
|
|
|
12013
|
-
var __extends$
|
|
12340
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12014
12341
|
var extendStatics = function (d, b) {
|
|
12015
12342
|
extendStatics = Object.setPrototypeOf ||
|
|
12016
12343
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12030,7 +12357,7 @@ AsapAction$1.AsapAction = void 0;
|
|
|
12030
12357
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
12031
12358
|
var immediateProvider_1 = immediateProvider;
|
|
12032
12359
|
var AsapAction = (function (_super) {
|
|
12033
|
-
__extends$
|
|
12360
|
+
__extends$y(AsapAction, _super);
|
|
12034
12361
|
function AsapAction(scheduler, work) {
|
|
12035
12362
|
var _this = _super.call(this, scheduler, work) || this;
|
|
12036
12363
|
_this.scheduler = scheduler;
|
|
@@ -12086,7 +12413,7 @@ var Scheduler = (function () {
|
|
|
12086
12413
|
}());
|
|
12087
12414
|
Scheduler$1.Scheduler = Scheduler;
|
|
12088
12415
|
|
|
12089
|
-
var __extends$
|
|
12416
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12090
12417
|
var extendStatics = function (d, b) {
|
|
12091
12418
|
extendStatics = Object.setPrototypeOf ||
|
|
12092
12419
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12105,7 +12432,7 @@ Object.defineProperty(AsyncScheduler$1, "__esModule", { value: true });
|
|
|
12105
12432
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
12106
12433
|
var Scheduler_1 = Scheduler$1;
|
|
12107
12434
|
var AsyncScheduler = (function (_super) {
|
|
12108
|
-
__extends$
|
|
12435
|
+
__extends$x(AsyncScheduler, _super);
|
|
12109
12436
|
function AsyncScheduler(SchedulerAction, now) {
|
|
12110
12437
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
12111
12438
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -12138,7 +12465,7 @@ var AsyncScheduler = (function (_super) {
|
|
|
12138
12465
|
}(Scheduler_1.Scheduler));
|
|
12139
12466
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
12140
12467
|
|
|
12141
|
-
var __extends$
|
|
12468
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12142
12469
|
var extendStatics = function (d, b) {
|
|
12143
12470
|
extendStatics = Object.setPrototypeOf ||
|
|
12144
12471
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12157,7 +12484,7 @@ Object.defineProperty(AsapScheduler$1, "__esModule", { value: true });
|
|
|
12157
12484
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
12158
12485
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
12159
12486
|
var AsapScheduler = (function (_super) {
|
|
12160
|
-
__extends$
|
|
12487
|
+
__extends$w(AsapScheduler, _super);
|
|
12161
12488
|
function AsapScheduler() {
|
|
12162
12489
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12163
12490
|
}
|
|
@@ -12211,7 +12538,7 @@ var queue = {};
|
|
|
12211
12538
|
|
|
12212
12539
|
var QueueAction$1 = {};
|
|
12213
12540
|
|
|
12214
|
-
var __extends$
|
|
12541
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12215
12542
|
var extendStatics = function (d, b) {
|
|
12216
12543
|
extendStatics = Object.setPrototypeOf ||
|
|
12217
12544
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12230,7 +12557,7 @@ Object.defineProperty(QueueAction$1, "__esModule", { value: true });
|
|
|
12230
12557
|
QueueAction$1.QueueAction = void 0;
|
|
12231
12558
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
12232
12559
|
var QueueAction = (function (_super) {
|
|
12233
|
-
__extends$
|
|
12560
|
+
__extends$v(QueueAction, _super);
|
|
12234
12561
|
function QueueAction(scheduler, work) {
|
|
12235
12562
|
var _this = _super.call(this, scheduler, work) || this;
|
|
12236
12563
|
_this.scheduler = scheduler;
|
|
@@ -12264,7 +12591,7 @@ QueueAction$1.QueueAction = QueueAction;
|
|
|
12264
12591
|
|
|
12265
12592
|
var QueueScheduler$1 = {};
|
|
12266
12593
|
|
|
12267
|
-
var __extends$
|
|
12594
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12268
12595
|
var extendStatics = function (d, b) {
|
|
12269
12596
|
extendStatics = Object.setPrototypeOf ||
|
|
12270
12597
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12283,7 +12610,7 @@ Object.defineProperty(QueueScheduler$1, "__esModule", { value: true });
|
|
|
12283
12610
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
12284
12611
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
12285
12612
|
var QueueScheduler = (function (_super) {
|
|
12286
|
-
__extends$
|
|
12613
|
+
__extends$u(QueueScheduler, _super);
|
|
12287
12614
|
function QueueScheduler() {
|
|
12288
12615
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12289
12616
|
}
|
|
@@ -12305,7 +12632,7 @@ var animationFrame = {};
|
|
|
12305
12632
|
|
|
12306
12633
|
var AnimationFrameAction$1 = {};
|
|
12307
12634
|
|
|
12308
|
-
var __extends$
|
|
12635
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12309
12636
|
var extendStatics = function (d, b) {
|
|
12310
12637
|
extendStatics = Object.setPrototypeOf ||
|
|
12311
12638
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12325,7 +12652,7 @@ AnimationFrameAction$1.AnimationFrameAction = void 0;
|
|
|
12325
12652
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
12326
12653
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
12327
12654
|
var AnimationFrameAction = (function (_super) {
|
|
12328
|
-
__extends$
|
|
12655
|
+
__extends$t(AnimationFrameAction, _super);
|
|
12329
12656
|
function AnimationFrameAction(scheduler, work) {
|
|
12330
12657
|
var _this = _super.call(this, scheduler, work) || this;
|
|
12331
12658
|
_this.scheduler = scheduler;
|
|
@@ -12359,7 +12686,7 @@ AnimationFrameAction$1.AnimationFrameAction = AnimationFrameAction;
|
|
|
12359
12686
|
|
|
12360
12687
|
var AnimationFrameScheduler$1 = {};
|
|
12361
12688
|
|
|
12362
|
-
var __extends$
|
|
12689
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12363
12690
|
var extendStatics = function (d, b) {
|
|
12364
12691
|
extendStatics = Object.setPrototypeOf ||
|
|
12365
12692
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12378,7 +12705,7 @@ Object.defineProperty(AnimationFrameScheduler$1, "__esModule", { value: true });
|
|
|
12378
12705
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
12379
12706
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
12380
12707
|
var AnimationFrameScheduler = (function (_super) {
|
|
12381
|
-
__extends$
|
|
12708
|
+
__extends$s(AnimationFrameScheduler, _super);
|
|
12382
12709
|
function AnimationFrameScheduler() {
|
|
12383
12710
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12384
12711
|
}
|
|
@@ -12418,7 +12745,7 @@ exports.animationFrame = exports.animationFrameScheduler;
|
|
|
12418
12745
|
|
|
12419
12746
|
var VirtualTimeScheduler$1 = {};
|
|
12420
12747
|
|
|
12421
|
-
var __extends$
|
|
12748
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12422
12749
|
var extendStatics = function (d, b) {
|
|
12423
12750
|
extendStatics = Object.setPrototypeOf ||
|
|
12424
12751
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12439,7 +12766,7 @@ var AsyncAction_1 = AsyncAction$1;
|
|
|
12439
12766
|
var Subscription_1$4 = Subscription$1;
|
|
12440
12767
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
12441
12768
|
var VirtualTimeScheduler = (function (_super) {
|
|
12442
|
-
__extends$
|
|
12769
|
+
__extends$r(VirtualTimeScheduler, _super);
|
|
12443
12770
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
12444
12771
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
12445
12772
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -12472,7 +12799,7 @@ var VirtualTimeScheduler = (function (_super) {
|
|
|
12472
12799
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
12473
12800
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
12474
12801
|
var VirtualAction = (function (_super) {
|
|
12475
|
-
__extends$
|
|
12802
|
+
__extends$r(VirtualAction, _super);
|
|
12476
12803
|
function VirtualAction(scheduler, work, index) {
|
|
12477
12804
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
12478
12805
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -18305,7 +18632,7 @@ Object.defineProperty(resultRx, "__esModule", { value: true });
|
|
|
18305
18632
|
* limitations under the License.
|
|
18306
18633
|
*/
|
|
18307
18634
|
/* eslint-disable-next-line no-unused-vars */
|
|
18308
|
-
var neo4j_driver_core_1$
|
|
18635
|
+
var neo4j_driver_core_1$G = lib$1;
|
|
18309
18636
|
var rxjs_1$3 = cjs;
|
|
18310
18637
|
var operators_1$2 = operators;
|
|
18311
18638
|
var States = {
|
|
@@ -18439,7 +18766,7 @@ var RxResult = /** @class */ (function () {
|
|
|
18439
18766
|
});
|
|
18440
18767
|
}
|
|
18441
18768
|
else if (recordsObserver) {
|
|
18442
|
-
recordsObserver.error((0, neo4j_driver_core_1$
|
|
18769
|
+
recordsObserver.error((0, neo4j_driver_core_1$G.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
|
|
18443
18770
|
}
|
|
18444
18771
|
return function () {
|
|
18445
18772
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -18630,7 +18957,7 @@ var StreamControl = /** @class */ (function () {
|
|
|
18630
18957
|
|
|
18631
18958
|
var transactionRx = {};
|
|
18632
18959
|
|
|
18633
|
-
var __importDefault$
|
|
18960
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
18634
18961
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18635
18962
|
};
|
|
18636
18963
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -18653,9 +18980,9 @@ Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
|
18653
18980
|
* limitations under the License.
|
|
18654
18981
|
*/
|
|
18655
18982
|
var rxjs_1$2 = cjs;
|
|
18656
|
-
var result_rx_1$1 = __importDefault$
|
|
18983
|
+
var result_rx_1$1 = __importDefault$K(resultRx);
|
|
18657
18984
|
// eslint-disable-next-line no-unused-vars
|
|
18658
|
-
__importDefault$
|
|
18985
|
+
__importDefault$K(lib$1);
|
|
18659
18986
|
/**
|
|
18660
18987
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
18661
18988
|
*/
|
|
@@ -18754,7 +19081,7 @@ transactionRx.default = RxTransaction;
|
|
|
18754
19081
|
|
|
18755
19082
|
var transactionManagedRx = {};
|
|
18756
19083
|
|
|
18757
|
-
var __importDefault$
|
|
19084
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
18758
19085
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18759
19086
|
};
|
|
18760
19087
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -18777,9 +19104,9 @@ Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
|
18777
19104
|
* limitations under the License.
|
|
18778
19105
|
*/
|
|
18779
19106
|
// eslint-disable-next-line no-unused-vars
|
|
18780
|
-
__importDefault$
|
|
19107
|
+
__importDefault$J(resultRx);
|
|
18781
19108
|
// eslint-disable-next-line no-unused-vars
|
|
18782
|
-
__importDefault$
|
|
19109
|
+
__importDefault$J(transactionRx);
|
|
18783
19110
|
/**
|
|
18784
19111
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
18785
19112
|
*
|
|
@@ -18839,13 +19166,13 @@ var retryLogicRx = {};
|
|
|
18839
19166
|
* limitations under the License.
|
|
18840
19167
|
*/
|
|
18841
19168
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
18842
|
-
var neo4j_driver_core_1$
|
|
19169
|
+
var neo4j_driver_core_1$F = lib$1;
|
|
18843
19170
|
// eslint-disable-next-line no-unused-vars
|
|
18844
19171
|
var rxjs_1$1 = cjs;
|
|
18845
19172
|
var operators_1$1 = operators;
|
|
18846
19173
|
// eslint-disable-next-line no-unused-vars
|
|
18847
|
-
neo4j_driver_core_1$
|
|
18848
|
-
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$
|
|
19174
|
+
neo4j_driver_core_1$F.internal.logger.Logger;
|
|
19175
|
+
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
|
|
18849
19176
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
18850
19177
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
18851
19178
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -18876,13 +19203,13 @@ var RxRetryLogic = /** @class */ (function () {
|
|
|
18876
19203
|
var retryCount = 1;
|
|
18877
19204
|
var delayDuration = _this._initialDelay;
|
|
18878
19205
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
18879
|
-
if (!(0, neo4j_driver_core_1$
|
|
19206
|
+
if (!(0, neo4j_driver_core_1$F.isRetriableError)(err)) {
|
|
18880
19207
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
18881
19208
|
}
|
|
18882
19209
|
handledExceptions.push(err);
|
|
18883
19210
|
if (retryCount >= 2 &&
|
|
18884
19211
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
18885
|
-
var error_1 = (0, neo4j_driver_core_1$
|
|
19212
|
+
var error_1 = (0, neo4j_driver_core_1$F.newError)("Failed after retried for ".concat(retryCount, " times in ").concat(_this._maxRetryTimeout, " ms. Make sure that your database is online and retry again."), SERVICE_UNAVAILABLE$5);
|
|
18886
19213
|
error_1.seenErrors = handledExceptions;
|
|
18887
19214
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
18888
19215
|
}
|
|
@@ -18910,7 +19237,7 @@ function valueOrDefault$1(value, defaultValue) {
|
|
|
18910
19237
|
return defaultValue;
|
|
18911
19238
|
}
|
|
18912
19239
|
|
|
18913
|
-
var __importDefault$
|
|
19240
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
18914
19241
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18915
19242
|
};
|
|
18916
19243
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -18934,13 +19261,13 @@ Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
|
18934
19261
|
*/
|
|
18935
19262
|
var rxjs_1 = cjs;
|
|
18936
19263
|
var operators_1 = operators;
|
|
18937
|
-
var result_rx_1 = __importDefault$
|
|
19264
|
+
var result_rx_1 = __importDefault$I(resultRx);
|
|
18938
19265
|
// eslint-disable-next-line no-unused-vars
|
|
18939
|
-
var neo4j_driver_core_1$
|
|
18940
|
-
var transaction_rx_1 = __importDefault$
|
|
18941
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
18942
|
-
var retry_logic_rx_1 = __importDefault$
|
|
18943
|
-
var _a$c = neo4j_driver_core_1$
|
|
19266
|
+
var neo4j_driver_core_1$E = lib$1;
|
|
19267
|
+
var transaction_rx_1 = __importDefault$I(transactionRx);
|
|
19268
|
+
var transaction_managed_rx_1 = __importDefault$I(transactionManagedRx);
|
|
19269
|
+
var retry_logic_rx_1 = __importDefault$I(retryLogicRx);
|
|
19270
|
+
var _a$c = neo4j_driver_core_1$E.internal.constants, ACCESS_MODE_READ$1 = _a$c.ACCESS_MODE_READ, ACCESS_MODE_WRITE$1 = _a$c.ACCESS_MODE_WRITE, TxConfig$3 = neo4j_driver_core_1$E.internal.txConfig.TxConfig;
|
|
18944
19271
|
/**
|
|
18945
19272
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
18946
19273
|
*/
|
|
@@ -19167,7 +19494,7 @@ function _createRetryLogic(config) {
|
|
|
19167
19494
|
* See the License for the specific language governing permissions and
|
|
19168
19495
|
* limitations under the License.
|
|
19169
19496
|
*/
|
|
19170
|
-
var __extends$
|
|
19497
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
19171
19498
|
var extendStatics = function (d, b) {
|
|
19172
19499
|
extendStatics = Object.setPrototypeOf ||
|
|
19173
19500
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -19182,15 +19509,15 @@ var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
19182
19509
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19183
19510
|
};
|
|
19184
19511
|
})();
|
|
19185
|
-
var __importDefault$
|
|
19512
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
19186
19513
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19187
19514
|
};
|
|
19188
19515
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
19189
19516
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
19190
|
-
var neo4j_driver_core_1$
|
|
19191
|
-
var session_rx_1 = __importDefault$
|
|
19192
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
19193
|
-
var READ$2 = neo4j_driver_core_1$
|
|
19517
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
19518
|
+
var session_rx_1 = __importDefault$H(sessionRx);
|
|
19519
|
+
var FETCH_ALL$5 = neo4j_driver_core_1$D.internal.constants.FETCH_ALL;
|
|
19520
|
+
var READ$2 = neo4j_driver_core_1$D.driver.READ, WRITE$2 = neo4j_driver_core_1$D.driver.WRITE;
|
|
19194
19521
|
driver$1.READ = READ$2;
|
|
19195
19522
|
driver$1.WRITE = WRITE$2;
|
|
19196
19523
|
/**
|
|
@@ -19204,7 +19531,7 @@ driver$1.WRITE = WRITE$2;
|
|
|
19204
19531
|
* @access public
|
|
19205
19532
|
*/
|
|
19206
19533
|
var Driver = /** @class */ (function (_super) {
|
|
19207
|
-
__extends$
|
|
19534
|
+
__extends$q(Driver, _super);
|
|
19208
19535
|
function Driver() {
|
|
19209
19536
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
19210
19537
|
}
|
|
@@ -19241,7 +19568,7 @@ var Driver = /** @class */ (function (_super) {
|
|
|
19241
19568
|
});
|
|
19242
19569
|
};
|
|
19243
19570
|
return Driver;
|
|
19244
|
-
}(neo4j_driver_core_1$
|
|
19571
|
+
}(neo4j_driver_core_1$D.Driver));
|
|
19245
19572
|
driver$1.Driver = Driver;
|
|
19246
19573
|
/**
|
|
19247
19574
|
* @private
|
|
@@ -19289,7 +19616,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
19289
19616
|
// This is set up this way to keep the version in the code in
|
|
19290
19617
|
// sync with the npm package version, and to allow the build
|
|
19291
19618
|
// system to control version names at packaging time.
|
|
19292
|
-
version$1.default = '5.
|
|
19619
|
+
version$1.default = '5.9.1';
|
|
19293
19620
|
|
|
19294
19621
|
var lib = {};
|
|
19295
19622
|
|
|
@@ -19393,7 +19720,7 @@ var RoundRobinArrayIndex = /** @class */ (function () {
|
|
|
19393
19720
|
}());
|
|
19394
19721
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
19395
19722
|
|
|
19396
|
-
var __extends$
|
|
19723
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
19397
19724
|
var extendStatics = function (d, b) {
|
|
19398
19725
|
extendStatics = Object.setPrototypeOf ||
|
|
19399
19726
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -19408,7 +19735,7 @@ var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
19408
19735
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19409
19736
|
};
|
|
19410
19737
|
})();
|
|
19411
|
-
var __importDefault$
|
|
19738
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
19412
19739
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19413
19740
|
};
|
|
19414
19741
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -19430,10 +19757,10 @@ Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value
|
|
|
19430
19757
|
* See the License for the specific language governing permissions and
|
|
19431
19758
|
* limitations under the License.
|
|
19432
19759
|
*/
|
|
19433
|
-
var round_robin_array_index_1 = __importDefault$
|
|
19434
|
-
var load_balancing_strategy_1$1 = __importDefault$
|
|
19760
|
+
var round_robin_array_index_1 = __importDefault$G(roundRobinArrayIndex);
|
|
19761
|
+
var load_balancing_strategy_1$1 = __importDefault$G(loadBalancingStrategy);
|
|
19435
19762
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
19436
|
-
__extends$
|
|
19763
|
+
__extends$p(LeastConnectedLoadBalancingStrategy, _super);
|
|
19437
19764
|
/**
|
|
19438
19765
|
* @constructor
|
|
19439
19766
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -19489,7 +19816,7 @@ var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
|
19489
19816
|
}(load_balancing_strategy_1$1.default));
|
|
19490
19817
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
19491
19818
|
|
|
19492
|
-
var __importDefault$
|
|
19819
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
19493
19820
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19494
19821
|
};
|
|
19495
19822
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -19512,9 +19839,9 @@ loadBalancing.LeastConnectedLoadBalancingStrategy = loadBalancing.LoadBalancingS
|
|
|
19512
19839
|
* See the License for the specific language governing permissions and
|
|
19513
19840
|
* limitations under the License.
|
|
19514
19841
|
*/
|
|
19515
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
19842
|
+
var load_balancing_strategy_1 = __importDefault$F(loadBalancingStrategy);
|
|
19516
19843
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
19517
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
19844
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$F(leastConnectedLoadBalancingStrategy);
|
|
19518
19845
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
19519
19846
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
19520
19847
|
|
|
@@ -21901,7 +22228,7 @@ var baseBuf = {};
|
|
|
21901
22228
|
* See the License for the specific language governing permissions and
|
|
21902
22229
|
* limitations under the License.
|
|
21903
22230
|
*/
|
|
21904
|
-
var __extends$
|
|
22231
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21905
22232
|
var extendStatics = function (d, b) {
|
|
21906
22233
|
extendStatics = Object.setPrototypeOf ||
|
|
21907
22234
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22237,7 +22564,7 @@ baseBuf.default = BaseBuffer;
|
|
|
22237
22564
|
* @access private
|
|
22238
22565
|
*/
|
|
22239
22566
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
22240
|
-
__extends$
|
|
22567
|
+
__extends$o(SliceBuffer, _super);
|
|
22241
22568
|
function SliceBuffer(start, length, inner) {
|
|
22242
22569
|
var _this = _super.call(this, length) || this;
|
|
22243
22570
|
_this._start = start;
|
|
@@ -22283,12 +22610,12 @@ var SliceBuffer = /** @class */ (function (_super) {
|
|
|
22283
22610
|
* See the License for the specific language governing permissions and
|
|
22284
22611
|
* limitations under the License.
|
|
22285
22612
|
*/
|
|
22286
|
-
var __importDefault$
|
|
22613
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22287
22614
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22288
22615
|
};
|
|
22289
22616
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
22290
22617
|
buf.BaseBuffer = void 0;
|
|
22291
|
-
var base_buf_1$1 = __importDefault$
|
|
22618
|
+
var base_buf_1$1 = __importDefault$E(baseBuf);
|
|
22292
22619
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
22293
22620
|
buf.default = base_buf_1$1.default;
|
|
22294
22621
|
|
|
@@ -22310,7 +22637,7 @@ buf.default = base_buf_1$1.default;
|
|
|
22310
22637
|
* See the License for the specific language governing permissions and
|
|
22311
22638
|
* limitations under the License.
|
|
22312
22639
|
*/
|
|
22313
|
-
var __extends$
|
|
22640
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22314
22641
|
var extendStatics = function (d, b) {
|
|
22315
22642
|
extendStatics = Object.setPrototypeOf ||
|
|
22316
22643
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22325,15 +22652,15 @@ var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
22325
22652
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22326
22653
|
};
|
|
22327
22654
|
})();
|
|
22328
|
-
var __importDefault$
|
|
22655
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22329
22656
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22330
22657
|
};
|
|
22331
22658
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
22332
22659
|
channelBuf.alloc = void 0;
|
|
22333
|
-
var buffer_1$1 = __importDefault$
|
|
22334
|
-
var buf_1$1 = __importDefault$
|
|
22660
|
+
var buffer_1$1 = __importDefault$D(buffer);
|
|
22661
|
+
var buf_1$1 = __importDefault$D(buf);
|
|
22335
22662
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
22336
|
-
__extends$
|
|
22663
|
+
__extends$n(ChannelBuffer, _super);
|
|
22337
22664
|
function ChannelBuffer(arg) {
|
|
22338
22665
|
var _this = this;
|
|
22339
22666
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -22401,7 +22728,7 @@ function newChannelJSBuffer(arg) {
|
|
|
22401
22728
|
}
|
|
22402
22729
|
}
|
|
22403
22730
|
|
|
22404
|
-
var __importDefault$
|
|
22731
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22405
22732
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22406
22733
|
};
|
|
22407
22734
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -22424,9 +22751,9 @@ Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
|
22424
22751
|
* limitations under the License.
|
|
22425
22752
|
*/
|
|
22426
22753
|
/* eslint-env browser */
|
|
22427
|
-
var channel_buf_1$3 = __importDefault$
|
|
22428
|
-
var neo4j_driver_core_1$
|
|
22429
|
-
var _a$b = neo4j_driver_core_1$
|
|
22754
|
+
var channel_buf_1$3 = __importDefault$C(channelBuf);
|
|
22755
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
22756
|
+
var _a$b = neo4j_driver_core_1$C.internal.util, ENCRYPTION_OFF$1 = _a$b.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$b.ENCRYPTION_ON;
|
|
22430
22757
|
var WS_OPEN = 1;
|
|
22431
22758
|
var WS_CLOSED = 3;
|
|
22432
22759
|
/**
|
|
@@ -22491,7 +22818,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22491
22818
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
22492
22819
|
if (this._connectionTimeoutFired) {
|
|
22493
22820
|
// timeout fired - not connected within configured time
|
|
22494
|
-
this._error = (0, neo4j_driver_core_1$
|
|
22821
|
+
this._error = (0, neo4j_driver_core_1$C.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
|
|
22495
22822
|
if (this.onerror) {
|
|
22496
22823
|
this.onerror(this._error);
|
|
22497
22824
|
}
|
|
@@ -22500,7 +22827,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22500
22827
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
22501
22828
|
if (this._open && !this._timedout) {
|
|
22502
22829
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
22503
|
-
this._error = (0, neo4j_driver_core_1$
|
|
22830
|
+
this._error = (0, neo4j_driver_core_1$C.newError)('WebSocket connection failure. Due to security ' +
|
|
22504
22831
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
22505
22832
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
22506
22833
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -22539,7 +22866,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22539
22866
|
}
|
|
22540
22867
|
}
|
|
22541
22868
|
else {
|
|
22542
|
-
throw (0, neo4j_driver_core_1$
|
|
22869
|
+
throw (0, neo4j_driver_core_1$C.newError)("Don't know how to send buffer: " + buffer);
|
|
22543
22870
|
}
|
|
22544
22871
|
};
|
|
22545
22872
|
/**
|
|
@@ -22549,10 +22876,10 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22549
22876
|
WebSocketChannel.prototype.close = function () {
|
|
22550
22877
|
var _this = this;
|
|
22551
22878
|
return new Promise(function (resolve, reject) {
|
|
22879
|
+
_this._clearConnectionTimeout();
|
|
22552
22880
|
if (_this._ws && _this._ws.readyState !== WS_CLOSED) {
|
|
22553
22881
|
_this._open = false;
|
|
22554
22882
|
_this.stopReceiveTimeout();
|
|
22555
|
-
_this._clearConnectionTimeout();
|
|
22556
22883
|
_this._ws.onclose = function () { return resolve(); };
|
|
22557
22884
|
_this._ws.close();
|
|
22558
22885
|
}
|
|
@@ -22605,7 +22932,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22605
22932
|
_this._receiveTimeoutId = null;
|
|
22606
22933
|
_this._timedout = true;
|
|
22607
22934
|
_this.stopReceiveTimeout();
|
|
22608
|
-
_this._error = (0, neo4j_driver_core_1$
|
|
22935
|
+
_this._error = (0, neo4j_driver_core_1$C.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
|
|
22609
22936
|
_this.close();
|
|
22610
22937
|
if (_this.onerror) {
|
|
22611
22938
|
_this.onerror(_this._error);
|
|
@@ -22714,7 +23041,7 @@ function determineWebSocketScheme(config, protocolSupplier) {
|
|
|
22714
23041
|
return { scheme: 'wss', error: null };
|
|
22715
23042
|
}
|
|
22716
23043
|
else {
|
|
22717
|
-
var error = (0, neo4j_driver_core_1$
|
|
23044
|
+
var error = (0, neo4j_driver_core_1$C.newError)('The browser version of this driver only supports one trust ' +
|
|
22718
23045
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
22719
23046
|
trust +
|
|
22720
23047
|
' is not supported. Please ' +
|
|
@@ -22791,7 +23118,7 @@ var browserHostNameResolver = {};
|
|
|
22791
23118
|
* See the License for the specific language governing permissions and
|
|
22792
23119
|
* limitations under the License.
|
|
22793
23120
|
*/
|
|
22794
|
-
var __extends$
|
|
23121
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22795
23122
|
var extendStatics = function (d, b) {
|
|
22796
23123
|
extendStatics = Object.setPrototypeOf ||
|
|
22797
23124
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22807,10 +23134,10 @@ var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
22807
23134
|
};
|
|
22808
23135
|
})();
|
|
22809
23136
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
22810
|
-
var neo4j_driver_core_1$
|
|
22811
|
-
var BaseHostNameResolver = neo4j_driver_core_1$
|
|
23137
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
23138
|
+
var BaseHostNameResolver = neo4j_driver_core_1$B.internal.resolver.BaseHostNameResolver;
|
|
22812
23139
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
22813
|
-
__extends$
|
|
23140
|
+
__extends$m(BrowserHostNameResolver, _super);
|
|
22814
23141
|
function BrowserHostNameResolver() {
|
|
22815
23142
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
22816
23143
|
}
|
|
@@ -22839,13 +23166,13 @@ browserHostNameResolver.default = BrowserHostNameResolver;
|
|
|
22839
23166
|
* See the License for the specific language governing permissions and
|
|
22840
23167
|
* limitations under the License.
|
|
22841
23168
|
*/
|
|
22842
|
-
var __importDefault$
|
|
23169
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22843
23170
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22844
23171
|
};
|
|
22845
23172
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
22846
23173
|
browser.HostNameResolver = browser.Channel = void 0;
|
|
22847
|
-
var browser_channel_1 = __importDefault$
|
|
22848
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
23174
|
+
var browser_channel_1 = __importDefault$B(browserChannel);
|
|
23175
|
+
var browser_host_name_resolver_1 = __importDefault$B(browserHostNameResolver);
|
|
22849
23176
|
/*
|
|
22850
23177
|
|
|
22851
23178
|
This module exports a set of components to be used in browser environment.
|
|
@@ -22881,7 +23208,7 @@ var combinedBuf = {};
|
|
|
22881
23208
|
* See the License for the specific language governing permissions and
|
|
22882
23209
|
* limitations under the License.
|
|
22883
23210
|
*/
|
|
22884
|
-
var __extends$
|
|
23211
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22885
23212
|
var extendStatics = function (d, b) {
|
|
22886
23213
|
extendStatics = Object.setPrototypeOf ||
|
|
22887
23214
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22903,7 +23230,7 @@ var channel_buf_1$2 = channelBuf;
|
|
|
22903
23230
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
22904
23231
|
*/
|
|
22905
23232
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
22906
|
-
__extends$
|
|
23233
|
+
__extends$l(CombinedBuffer, _super);
|
|
22907
23234
|
function CombinedBuffer(buffers) {
|
|
22908
23235
|
var _this = this;
|
|
22909
23236
|
var length = 0;
|
|
@@ -22971,7 +23298,7 @@ combinedBuf.default = CombinedBuffer;
|
|
|
22971
23298
|
* See the License for the specific language governing permissions and
|
|
22972
23299
|
* limitations under the License.
|
|
22973
23300
|
*/
|
|
22974
|
-
var __extends$
|
|
23301
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22975
23302
|
var extendStatics = function (d, b) {
|
|
22976
23303
|
extendStatics = Object.setPrototypeOf ||
|
|
22977
23304
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22986,14 +23313,14 @@ var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
22986
23313
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22987
23314
|
};
|
|
22988
23315
|
})();
|
|
22989
|
-
var __importDefault$
|
|
23316
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22990
23317
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22991
23318
|
};
|
|
22992
23319
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
22993
23320
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
22994
|
-
var base_buf_1 = __importDefault$
|
|
23321
|
+
var base_buf_1 = __importDefault$A(baseBuf);
|
|
22995
23322
|
var channel_buf_1$1 = channelBuf;
|
|
22996
|
-
var combined_buf_1 = __importDefault$
|
|
23323
|
+
var combined_buf_1 = __importDefault$A(combinedBuf);
|
|
22997
23324
|
var _CHUNK_HEADER_SIZE = 2;
|
|
22998
23325
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
22999
23326
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -23002,7 +23329,7 @@ var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/m
|
|
|
23002
23329
|
* @access private
|
|
23003
23330
|
*/
|
|
23004
23331
|
var Chunker = /** @class */ (function (_super) {
|
|
23005
|
-
__extends$
|
|
23332
|
+
__extends$k(Chunker, _super);
|
|
23006
23333
|
function Chunker(channel, bufferSize) {
|
|
23007
23334
|
var _this = _super.call(this, 0) || this;
|
|
23008
23335
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -23187,9 +23514,9 @@ var channelConfig = {};
|
|
|
23187
23514
|
* limitations under the License.
|
|
23188
23515
|
*/
|
|
23189
23516
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
23190
|
-
var neo4j_driver_core_1$
|
|
23191
|
-
var _a$a = neo4j_driver_core_1$
|
|
23192
|
-
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$
|
|
23517
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
23518
|
+
var _a$a = neo4j_driver_core_1$A.internal.util, ENCRYPTION_OFF = _a$a.ENCRYPTION_OFF, ENCRYPTION_ON = _a$a.ENCRYPTION_ON;
|
|
23519
|
+
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$A.error.SERVICE_UNAVAILABLE;
|
|
23193
23520
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
23194
23521
|
null,
|
|
23195
23522
|
undefined,
|
|
@@ -23227,14 +23554,14 @@ channelConfig.default = ChannelConfig;
|
|
|
23227
23554
|
function extractEncrypted(driverConfig) {
|
|
23228
23555
|
var value = driverConfig.encrypted;
|
|
23229
23556
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
23230
|
-
throw (0, neo4j_driver_core_1$
|
|
23557
|
+
throw (0, neo4j_driver_core_1$A.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
|
|
23231
23558
|
}
|
|
23232
23559
|
return value;
|
|
23233
23560
|
}
|
|
23234
23561
|
function extractTrust(driverConfig) {
|
|
23235
23562
|
var value = driverConfig.trust;
|
|
23236
23563
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
23237
|
-
throw (0, neo4j_driver_core_1$
|
|
23564
|
+
throw (0, neo4j_driver_core_1$A.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
|
|
23238
23565
|
}
|
|
23239
23566
|
return value;
|
|
23240
23567
|
}
|
|
@@ -23611,13 +23938,13 @@ function simpleEnd(buf) {
|
|
|
23611
23938
|
* See the License for the specific language governing permissions and
|
|
23612
23939
|
* limitations under the License.
|
|
23613
23940
|
*/
|
|
23614
|
-
var __importDefault$
|
|
23941
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23615
23942
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23616
23943
|
};
|
|
23617
23944
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
23618
|
-
var channel_buf_1 = __importDefault$
|
|
23619
|
-
var neo4j_driver_core_1$
|
|
23620
|
-
var buffer_1 = __importDefault$
|
|
23945
|
+
var channel_buf_1 = __importDefault$z(channelBuf);
|
|
23946
|
+
var neo4j_driver_core_1$z = lib$1;
|
|
23947
|
+
var buffer_1 = __importDefault$z(buffer);
|
|
23621
23948
|
var string_decoder_1 = string_decoder;
|
|
23622
23949
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
23623
23950
|
function encode(str) {
|
|
@@ -23631,7 +23958,7 @@ function decode(buffer, length) {
|
|
|
23631
23958
|
return decodeCombinedBuffer(buffer, length);
|
|
23632
23959
|
}
|
|
23633
23960
|
else {
|
|
23634
|
-
throw (0, neo4j_driver_core_1$
|
|
23961
|
+
throw (0, neo4j_driver_core_1$z.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
|
|
23635
23962
|
}
|
|
23636
23963
|
}
|
|
23637
23964
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -23752,7 +24079,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
23752
24079
|
*/
|
|
23753
24080
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
23754
24081
|
var channel_1$3 = channel;
|
|
23755
|
-
var neo4j_driver_core_1$
|
|
24082
|
+
var neo4j_driver_core_1$y = lib$1;
|
|
23756
24083
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
23757
24084
|
function version(major, minor) {
|
|
23758
24085
|
return {
|
|
@@ -23762,7 +24089,7 @@ function version(major, minor) {
|
|
|
23762
24089
|
}
|
|
23763
24090
|
function createHandshakeMessage(versions) {
|
|
23764
24091
|
if (versions.length > 4) {
|
|
23765
|
-
throw (0, neo4j_driver_core_1$
|
|
24092
|
+
throw (0, neo4j_driver_core_1$y.newError)('It should not have more than 4 versions of the protocol');
|
|
23766
24093
|
}
|
|
23767
24094
|
var handshakeBuffer = (0, channel_1$3.alloc)(5 * 4);
|
|
23768
24095
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -23789,7 +24116,7 @@ function parseNegotiatedResponse(buffer) {
|
|
|
23789
24116
|
buffer.readUInt8()
|
|
23790
24117
|
];
|
|
23791
24118
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
23792
|
-
throw (0, neo4j_driver_core_1$
|
|
24119
|
+
throw (0, neo4j_driver_core_1$y.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
|
|
23793
24120
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
23794
24121
|
}
|
|
23795
24122
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -23800,7 +24127,7 @@ function parseNegotiatedResponse(buffer) {
|
|
|
23800
24127
|
*/
|
|
23801
24128
|
function newHandshakeBuffer() {
|
|
23802
24129
|
return createHandshakeMessage([
|
|
23803
|
-
[version(5,
|
|
24130
|
+
[version(5, 3), version(5, 0)],
|
|
23804
24131
|
[version(4, 4), version(4, 2)],
|
|
23805
24132
|
version(4, 1),
|
|
23806
24133
|
version(3, 0)
|
|
@@ -23864,7 +24191,7 @@ var streamObservers = {};
|
|
|
23864
24191
|
|
|
23865
24192
|
var routingTableRaw = {};
|
|
23866
24193
|
|
|
23867
|
-
var __extends$
|
|
24194
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
23868
24195
|
var extendStatics = function (d, b) {
|
|
23869
24196
|
extendStatics = Object.setPrototypeOf ||
|
|
23870
24197
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23879,7 +24206,7 @@ var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
23879
24206
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23880
24207
|
};
|
|
23881
24208
|
})();
|
|
23882
|
-
var __importDefault$
|
|
24209
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23883
24210
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23884
24211
|
};
|
|
23885
24212
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -23902,7 +24229,7 @@ Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
|
23902
24229
|
* limitations under the License.
|
|
23903
24230
|
*/
|
|
23904
24231
|
// eslint-disable-next-line no-unused-vars
|
|
23905
|
-
__importDefault$
|
|
24232
|
+
__importDefault$y(lib$1);
|
|
23906
24233
|
/**
|
|
23907
24234
|
* Represente the raw version of the routing table
|
|
23908
24235
|
*/
|
|
@@ -23997,7 +24324,7 @@ routingTableRaw.default = RawRoutingTable;
|
|
|
23997
24324
|
* Get the raw routing table information from route message response
|
|
23998
24325
|
*/
|
|
23999
24326
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
24000
|
-
__extends$
|
|
24327
|
+
__extends$j(ResponseRawRoutingTable, _super);
|
|
24001
24328
|
function ResponseRawRoutingTable(response) {
|
|
24002
24329
|
var _this = _super.call(this) || this;
|
|
24003
24330
|
_this._response = response;
|
|
@@ -24037,7 +24364,7 @@ var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
|
24037
24364
|
* Null routing table
|
|
24038
24365
|
*/
|
|
24039
24366
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
24040
|
-
__extends$
|
|
24367
|
+
__extends$j(NullRawRoutingTable, _super);
|
|
24041
24368
|
function NullRawRoutingTable() {
|
|
24042
24369
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24043
24370
|
}
|
|
@@ -24054,7 +24381,7 @@ var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
|
24054
24381
|
* Get the raw routing table information from the record
|
|
24055
24382
|
*/
|
|
24056
24383
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
24057
|
-
__extends$
|
|
24384
|
+
__extends$j(RecordRawRoutingTable, _super);
|
|
24058
24385
|
function RecordRawRoutingTable(record) {
|
|
24059
24386
|
var _this = _super.call(this) || this;
|
|
24060
24387
|
_this._record = record;
|
|
@@ -24091,7 +24418,7 @@ var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
|
24091
24418
|
return RecordRawRoutingTable;
|
|
24092
24419
|
}(RawRoutingTable));
|
|
24093
24420
|
|
|
24094
|
-
var __extends$
|
|
24421
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24095
24422
|
var extendStatics = function (d, b) {
|
|
24096
24423
|
extendStatics = Object.setPrototypeOf ||
|
|
24097
24424
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24106,7 +24433,7 @@ var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
24106
24433
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24107
24434
|
};
|
|
24108
24435
|
})();
|
|
24109
|
-
var __importDefault$
|
|
24436
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24110
24437
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24111
24438
|
};
|
|
24112
24439
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -24129,10 +24456,10 @@ streamObservers.ProcedureRouteObserver = streamObservers.RouteObserver = streamO
|
|
|
24129
24456
|
* See the License for the specific language governing permissions and
|
|
24130
24457
|
* limitations under the License.
|
|
24131
24458
|
*/
|
|
24132
|
-
var neo4j_driver_core_1$
|
|
24133
|
-
var routing_table_raw_1 = __importDefault$
|
|
24134
|
-
var FETCH_ALL$4 = neo4j_driver_core_1$
|
|
24135
|
-
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$
|
|
24459
|
+
var neo4j_driver_core_1$x = lib$1;
|
|
24460
|
+
var routing_table_raw_1 = __importDefault$x(routingTableRaw);
|
|
24461
|
+
var FETCH_ALL$4 = neo4j_driver_core_1$x.internal.constants.FETCH_ALL;
|
|
24462
|
+
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$x.error.PROTOCOL_ERROR;
|
|
24136
24463
|
var StreamObserver = /** @class */ (function () {
|
|
24137
24464
|
function StreamObserver() {
|
|
24138
24465
|
}
|
|
@@ -24153,7 +24480,7 @@ streamObservers.StreamObserver = StreamObserver;
|
|
|
24153
24480
|
* @access private
|
|
24154
24481
|
*/
|
|
24155
24482
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
24156
|
-
__extends$
|
|
24483
|
+
__extends$i(ResultStreamObserver, _super);
|
|
24157
24484
|
/**
|
|
24158
24485
|
*
|
|
24159
24486
|
* @param {Object} param
|
|
@@ -24225,7 +24552,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
24225
24552
|
* @param {Array} rawRecord - An array with the raw record
|
|
24226
24553
|
*/
|
|
24227
24554
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
24228
|
-
var record = new neo4j_driver_core_1$
|
|
24555
|
+
var record = new neo4j_driver_core_1$x.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
24229
24556
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
24230
24557
|
this._observers.forEach(function (o) {
|
|
24231
24558
|
if (o.onNext) {
|
|
@@ -24328,7 +24655,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
24328
24655
|
var _this = this;
|
|
24329
24656
|
var completionMetadata = Object.assign(this._server ? { server: this._server } : {}, this._meta, meta);
|
|
24330
24657
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
24331
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24658
|
+
this.onError((0, neo4j_driver_core_1$x.newError)("Server returned invalid query type. Expected one of [undefined, null, \"r\", \"w\", \"rw\", \"s\"] but got '".concat(completionMetadata.type, "'"), PROTOCOL_ERROR$5));
|
|
24332
24659
|
return;
|
|
24333
24660
|
}
|
|
24334
24661
|
this._setState(_states.SUCCEEDED);
|
|
@@ -24470,7 +24797,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
24470
24797
|
}(StreamObserver));
|
|
24471
24798
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
24472
24799
|
var LoginObserver = /** @class */ (function (_super) {
|
|
24473
|
-
__extends$
|
|
24800
|
+
__extends$i(LoginObserver, _super);
|
|
24474
24801
|
/**
|
|
24475
24802
|
*
|
|
24476
24803
|
* @param {Object} param -
|
|
@@ -24485,7 +24812,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
24485
24812
|
return _this;
|
|
24486
24813
|
}
|
|
24487
24814
|
LoginObserver.prototype.onNext = function (record) {
|
|
24488
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24815
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$x.json.stringify(record)));
|
|
24489
24816
|
};
|
|
24490
24817
|
LoginObserver.prototype.onError = function (error) {
|
|
24491
24818
|
if (this._onError) {
|
|
@@ -24501,7 +24828,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
24501
24828
|
}(StreamObserver));
|
|
24502
24829
|
streamObservers.LoginObserver = LoginObserver;
|
|
24503
24830
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
24504
|
-
__extends$
|
|
24831
|
+
__extends$i(LogoffObserver, _super);
|
|
24505
24832
|
/**
|
|
24506
24833
|
*
|
|
24507
24834
|
* @param {Object} param -
|
|
@@ -24516,7 +24843,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
24516
24843
|
return _this;
|
|
24517
24844
|
}
|
|
24518
24845
|
LogoffObserver.prototype.onNext = function (record) {
|
|
24519
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24846
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$x.json.stringify(record)));
|
|
24520
24847
|
};
|
|
24521
24848
|
LogoffObserver.prototype.onError = function (error) {
|
|
24522
24849
|
if (this._onError) {
|
|
@@ -24532,7 +24859,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
24532
24859
|
}(StreamObserver));
|
|
24533
24860
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
24534
24861
|
var ResetObserver = /** @class */ (function (_super) {
|
|
24535
|
-
__extends$
|
|
24862
|
+
__extends$i(ResetObserver, _super);
|
|
24536
24863
|
/**
|
|
24537
24864
|
*
|
|
24538
24865
|
* @param {Object} param -
|
|
@@ -24549,8 +24876,8 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
24549
24876
|
return _this;
|
|
24550
24877
|
}
|
|
24551
24878
|
ResetObserver.prototype.onNext = function (record) {
|
|
24552
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24553
|
-
neo4j_driver_core_1$
|
|
24879
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when resetting: received record is: ' +
|
|
24880
|
+
neo4j_driver_core_1$x.json.stringify(record), PROTOCOL_ERROR$5));
|
|
24554
24881
|
};
|
|
24555
24882
|
ResetObserver.prototype.onError = function (error) {
|
|
24556
24883
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -24569,7 +24896,7 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
24569
24896
|
}(StreamObserver));
|
|
24570
24897
|
streamObservers.ResetObserver = ResetObserver;
|
|
24571
24898
|
var FailedObserver = /** @class */ (function (_super) {
|
|
24572
|
-
__extends$
|
|
24899
|
+
__extends$i(FailedObserver, _super);
|
|
24573
24900
|
function FailedObserver(_a) {
|
|
24574
24901
|
var error = _a.error, onError = _a.onError;
|
|
24575
24902
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -24580,7 +24907,7 @@ var FailedObserver = /** @class */ (function (_super) {
|
|
|
24580
24907
|
}(ResultStreamObserver));
|
|
24581
24908
|
streamObservers.FailedObserver = FailedObserver;
|
|
24582
24909
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
24583
|
-
__extends$
|
|
24910
|
+
__extends$i(CompletedObserver, _super);
|
|
24584
24911
|
function CompletedObserver() {
|
|
24585
24912
|
var _this = _super.call(this) || this;
|
|
24586
24913
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -24590,7 +24917,7 @@ var CompletedObserver = /** @class */ (function (_super) {
|
|
|
24590
24917
|
}(ResultStreamObserver));
|
|
24591
24918
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
24592
24919
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
24593
|
-
__extends$
|
|
24920
|
+
__extends$i(ProcedureRouteObserver, _super);
|
|
24594
24921
|
function ProcedureRouteObserver(_a) {
|
|
24595
24922
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
24596
24923
|
var _this = _super.call(this) || this;
|
|
@@ -24615,10 +24942,10 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
24615
24942
|
};
|
|
24616
24943
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
24617
24944
|
if (this._records !== null && this._records.length !== 1) {
|
|
24618
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24945
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Illegal response from router. Received ' +
|
|
24619
24946
|
this._records.length +
|
|
24620
24947
|
' records but expected only one.\n' +
|
|
24621
|
-
neo4j_driver_core_1$
|
|
24948
|
+
neo4j_driver_core_1$x.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
24622
24949
|
return;
|
|
24623
24950
|
}
|
|
24624
24951
|
if (this._onCompleted) {
|
|
@@ -24629,7 +24956,7 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
24629
24956
|
}(StreamObserver));
|
|
24630
24957
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
24631
24958
|
var RouteObserver = /** @class */ (function (_super) {
|
|
24632
|
-
__extends$
|
|
24959
|
+
__extends$i(RouteObserver, _super);
|
|
24633
24960
|
/**
|
|
24634
24961
|
*
|
|
24635
24962
|
* @param {Object} param -
|
|
@@ -24646,8 +24973,8 @@ var RouteObserver = /** @class */ (function (_super) {
|
|
|
24646
24973
|
return _this;
|
|
24647
24974
|
}
|
|
24648
24975
|
RouteObserver.prototype.onNext = function (record) {
|
|
24649
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24650
|
-
neo4j_driver_core_1$
|
|
24976
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when resetting: received record is: ' +
|
|
24977
|
+
neo4j_driver_core_1$x.json.stringify(record), PROTOCOL_ERROR$5));
|
|
24651
24978
|
};
|
|
24652
24979
|
RouteObserver.prototype.onError = function (error) {
|
|
24653
24980
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -24751,7 +25078,7 @@ boltProtocolUtil.assertNotificationFilterIsEmpty = boltProtocolUtil.assertImpers
|
|
|
24751
25078
|
* See the License for the specific language governing permissions and
|
|
24752
25079
|
* limitations under the License.
|
|
24753
25080
|
*/
|
|
24754
|
-
var neo4j_driver_core_1$
|
|
25081
|
+
var neo4j_driver_core_1$w = lib$1;
|
|
24755
25082
|
/**
|
|
24756
25083
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
24757
25084
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -24760,7 +25087,7 @@ var neo4j_driver_core_1$v = lib$1;
|
|
|
24760
25087
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
24761
25088
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24762
25089
|
if (txConfig && !txConfig.isEmpty()) {
|
|
24763
|
-
var error = (0, neo4j_driver_core_1$
|
|
25090
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support transaction configuration. ' +
|
|
24764
25091
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
24765
25092
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
24766
25093
|
onProtocolError(error.message);
|
|
@@ -24777,7 +25104,7 @@ boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
|
24777
25104
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
24778
25105
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24779
25106
|
if (database) {
|
|
24780
|
-
var error = (0, neo4j_driver_core_1$
|
|
25107
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support multiple databases. ' +
|
|
24781
25108
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
24782
25109
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
24783
25110
|
onProtocolError(error.message);
|
|
@@ -24795,7 +25122,7 @@ boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
|
24795
25122
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
24796
25123
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24797
25124
|
if (impersonatedUser) {
|
|
24798
|
-
var error = (0, neo4j_driver_core_1$
|
|
25125
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support user impersonation. ' +
|
|
24799
25126
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
24800
25127
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
24801
25128
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -24814,9 +25141,9 @@ boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
|
24814
25141
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
24815
25142
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24816
25143
|
if (notificationFilter !== undefined) {
|
|
24817
|
-
var error = (0, neo4j_driver_core_1$
|
|
25144
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to a database that does not support user notification filters. ' +
|
|
24818
25145
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
24819
|
-
"Trying to set notifications to ".concat(neo4j_driver_core_1$
|
|
25146
|
+
"Trying to set notifications to ".concat(neo4j_driver_core_1$w.json.stringify(notificationFilter), "."));
|
|
24820
25147
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
24821
25148
|
onProtocolError(error.message);
|
|
24822
25149
|
observer.onError(error);
|
|
@@ -25002,8 +25329,8 @@ var structure$1 = {};
|
|
|
25002
25329
|
*/
|
|
25003
25330
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
25004
25331
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
25005
|
-
var neo4j_driver_core_1$
|
|
25006
|
-
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$
|
|
25332
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
25333
|
+
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
|
|
25007
25334
|
/**
|
|
25008
25335
|
* A Structure have a signature and fields.
|
|
25009
25336
|
*/
|
|
@@ -25037,7 +25364,7 @@ var Structure = /** @class */ (function () {
|
|
|
25037
25364
|
structure$1.Structure = Structure;
|
|
25038
25365
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
25039
25366
|
if (expectedSize !== actualSize) {
|
|
25040
|
-
throw (0, neo4j_driver_core_1$
|
|
25367
|
+
throw (0, neo4j_driver_core_1$v.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
25041
25368
|
}
|
|
25042
25369
|
}
|
|
25043
25370
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -25066,8 +25393,8 @@ packstreamV1.Unpacker = packstreamV1.Packer = void 0;
|
|
|
25066
25393
|
var channel_1$2 = channel;
|
|
25067
25394
|
var lang_1$2 = lang;
|
|
25068
25395
|
var structure_1 = structure$1;
|
|
25069
|
-
var neo4j_driver_core_1$
|
|
25070
|
-
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$
|
|
25396
|
+
var neo4j_driver_core_1$u = lib$1;
|
|
25397
|
+
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$u.error.PROTOCOL_ERROR;
|
|
25071
25398
|
var TINY_STRING = 0x80;
|
|
25072
25399
|
var TINY_LIST = 0x90;
|
|
25073
25400
|
var TINY_MAP = 0xa0;
|
|
@@ -25137,9 +25464,9 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25137
25464
|
return function () { return _this.packString(x); };
|
|
25138
25465
|
}
|
|
25139
25466
|
else if (typeof x === 'bigint') {
|
|
25140
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
25467
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$u.int)(x)); };
|
|
25141
25468
|
}
|
|
25142
|
-
else if ((0, neo4j_driver_core_1$
|
|
25469
|
+
else if ((0, neo4j_driver_core_1$u.isInt)(x)) {
|
|
25143
25470
|
return function () { return _this.packInteger(x); };
|
|
25144
25471
|
}
|
|
25145
25472
|
else if (x instanceof Int8Array) {
|
|
@@ -25193,7 +25520,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25193
25520
|
}
|
|
25194
25521
|
catch (e) {
|
|
25195
25522
|
// handle errors from iterable to array conversion
|
|
25196
|
-
throw (0, neo4j_driver_core_1$
|
|
25523
|
+
throw (0, neo4j_driver_core_1$u.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
25197
25524
|
}
|
|
25198
25525
|
};
|
|
25199
25526
|
/**
|
|
@@ -25263,7 +25590,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25263
25590
|
this._ch.writeBytes(bytes);
|
|
25264
25591
|
}
|
|
25265
25592
|
else {
|
|
25266
|
-
throw (0, neo4j_driver_core_1$
|
|
25593
|
+
throw (0, neo4j_driver_core_1$u.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
25267
25594
|
}
|
|
25268
25595
|
};
|
|
25269
25596
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -25287,7 +25614,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25287
25614
|
this._ch.writeUInt8(size % 256);
|
|
25288
25615
|
}
|
|
25289
25616
|
else {
|
|
25290
|
-
throw (0, neo4j_driver_core_1$
|
|
25617
|
+
throw (0, neo4j_driver_core_1$u.newError)('Lists of size ' + size + ' are not supported');
|
|
25291
25618
|
}
|
|
25292
25619
|
};
|
|
25293
25620
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -25298,7 +25625,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25298
25625
|
}
|
|
25299
25626
|
}
|
|
25300
25627
|
else {
|
|
25301
|
-
throw (0, neo4j_driver_core_1$
|
|
25628
|
+
throw (0, neo4j_driver_core_1$u.newError)('Byte arrays are not supported by the database this driver is connected to');
|
|
25302
25629
|
}
|
|
25303
25630
|
};
|
|
25304
25631
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -25319,7 +25646,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25319
25646
|
this._ch.writeUInt8(size % 256);
|
|
25320
25647
|
}
|
|
25321
25648
|
else {
|
|
25322
|
-
throw (0, neo4j_driver_core_1$
|
|
25649
|
+
throw (0, neo4j_driver_core_1$u.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
25323
25650
|
}
|
|
25324
25651
|
};
|
|
25325
25652
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -25343,7 +25670,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25343
25670
|
this._ch.writeUInt8(size % 256);
|
|
25344
25671
|
}
|
|
25345
25672
|
else {
|
|
25346
|
-
throw (0, neo4j_driver_core_1$
|
|
25673
|
+
throw (0, neo4j_driver_core_1$u.newError)('Maps of size ' + size + ' are not supported');
|
|
25347
25674
|
}
|
|
25348
25675
|
};
|
|
25349
25676
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -25362,7 +25689,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25362
25689
|
this._ch.writeUInt8(size % 256);
|
|
25363
25690
|
}
|
|
25364
25691
|
else {
|
|
25365
|
-
throw (0, neo4j_driver_core_1$
|
|
25692
|
+
throw (0, neo4j_driver_core_1$u.newError)('Structures of size ' + size + ' are not supported');
|
|
25366
25693
|
}
|
|
25367
25694
|
};
|
|
25368
25695
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -25370,7 +25697,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25370
25697
|
};
|
|
25371
25698
|
Packer.prototype._nonPackableValue = function (message) {
|
|
25372
25699
|
return function () {
|
|
25373
|
-
throw (0, neo4j_driver_core_1$
|
|
25700
|
+
throw (0, neo4j_driver_core_1$u.newError)(message, PROTOCOL_ERROR$3);
|
|
25374
25701
|
};
|
|
25375
25702
|
};
|
|
25376
25703
|
return Packer;
|
|
@@ -25406,7 +25733,7 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
25406
25733
|
}
|
|
25407
25734
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
25408
25735
|
if (numberOrInteger !== null) {
|
|
25409
|
-
if ((0, neo4j_driver_core_1$
|
|
25736
|
+
if ((0, neo4j_driver_core_1$u.isInt)(numberOrInteger)) {
|
|
25410
25737
|
if (this._useBigInt) {
|
|
25411
25738
|
return numberOrInteger.toBigInt();
|
|
25412
25739
|
}
|
|
@@ -25436,13 +25763,13 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
25436
25763
|
if (struct !== null) {
|
|
25437
25764
|
return struct;
|
|
25438
25765
|
}
|
|
25439
|
-
throw (0, neo4j_driver_core_1$
|
|
25766
|
+
throw (0, neo4j_driver_core_1$u.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
25440
25767
|
};
|
|
25441
25768
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
25442
25769
|
var marker = buffer.readUInt8();
|
|
25443
25770
|
var result = this._unpackInteger(marker, buffer);
|
|
25444
25771
|
if (result == null) {
|
|
25445
|
-
throw (0, neo4j_driver_core_1$
|
|
25772
|
+
throw (0, neo4j_driver_core_1$u.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
|
|
25446
25773
|
}
|
|
25447
25774
|
return result;
|
|
25448
25775
|
};
|
|
@@ -25467,25 +25794,25 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
25467
25794
|
};
|
|
25468
25795
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
25469
25796
|
if (marker >= 0 && marker < 128) {
|
|
25470
|
-
return (0, neo4j_driver_core_1$
|
|
25797
|
+
return (0, neo4j_driver_core_1$u.int)(marker);
|
|
25471
25798
|
}
|
|
25472
25799
|
else if (marker >= 240 && marker < 256) {
|
|
25473
|
-
return (0, neo4j_driver_core_1$
|
|
25800
|
+
return (0, neo4j_driver_core_1$u.int)(marker - 256);
|
|
25474
25801
|
}
|
|
25475
25802
|
else if (marker === INT_8) {
|
|
25476
|
-
return (0, neo4j_driver_core_1$
|
|
25803
|
+
return (0, neo4j_driver_core_1$u.int)(buffer.readInt8());
|
|
25477
25804
|
}
|
|
25478
25805
|
else if (marker === INT_16) {
|
|
25479
|
-
return (0, neo4j_driver_core_1$
|
|
25806
|
+
return (0, neo4j_driver_core_1$u.int)(buffer.readInt16());
|
|
25480
25807
|
}
|
|
25481
25808
|
else if (marker === INT_32) {
|
|
25482
25809
|
var b = buffer.readInt32();
|
|
25483
|
-
return (0, neo4j_driver_core_1$
|
|
25810
|
+
return (0, neo4j_driver_core_1$u.int)(b);
|
|
25484
25811
|
}
|
|
25485
25812
|
else if (marker === INT_64) {
|
|
25486
25813
|
var high = buffer.readInt32();
|
|
25487
25814
|
var low = buffer.readInt32();
|
|
25488
|
-
return new neo4j_driver_core_1$
|
|
25815
|
+
return new neo4j_driver_core_1$u.Integer(low, high);
|
|
25489
25816
|
}
|
|
25490
25817
|
else {
|
|
25491
25818
|
return null;
|
|
@@ -25630,7 +25957,7 @@ var packstreamV2 = {};
|
|
|
25630
25957
|
* See the License for the specific language governing permissions and
|
|
25631
25958
|
* limitations under the License.
|
|
25632
25959
|
*/
|
|
25633
|
-
var __extends$
|
|
25960
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25634
25961
|
var extendStatics = function (d, b) {
|
|
25635
25962
|
extendStatics = Object.setPrototypeOf ||
|
|
25636
25963
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25672,7 +25999,7 @@ Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
|
25672
25999
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
25673
26000
|
var v1$1 = __importStar$4(packstreamV1);
|
|
25674
26001
|
var Packer = /** @class */ (function (_super) {
|
|
25675
|
-
__extends$
|
|
26002
|
+
__extends$h(Packer, _super);
|
|
25676
26003
|
function Packer() {
|
|
25677
26004
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25678
26005
|
}
|
|
@@ -25683,7 +26010,7 @@ var Packer = /** @class */ (function (_super) {
|
|
|
25683
26010
|
}(v1$1.Packer));
|
|
25684
26011
|
packstreamV2.Packer = Packer;
|
|
25685
26012
|
var Unpacker = /** @class */ (function (_super) {
|
|
25686
|
-
__extends$
|
|
26013
|
+
__extends$h(Unpacker, _super);
|
|
25687
26014
|
/**
|
|
25688
26015
|
* @constructor
|
|
25689
26016
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -25771,8 +26098,8 @@ var requestMessage = {};
|
|
|
25771
26098
|
*/
|
|
25772
26099
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
25773
26100
|
requestMessage.SIGNATURES = void 0;
|
|
25774
|
-
var neo4j_driver_core_1$
|
|
25775
|
-
var _a$9 = neo4j_driver_core_1$
|
|
26101
|
+
var neo4j_driver_core_1$t = lib$1;
|
|
26102
|
+
var _a$9 = neo4j_driver_core_1$t.internal.constants, ACCESS_MODE_READ = _a$9.ACCESS_MODE_READ, FETCH_ALL$3 = _a$9.FETCH_ALL, assertString = neo4j_driver_core_1$t.internal.util.assertString;
|
|
25776
26103
|
/* eslint-disable no-unused-vars */
|
|
25777
26104
|
// Signature bytes for each request message type
|
|
25778
26105
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -25831,7 +26158,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25831
26158
|
* @return {RequestMessage} new RUN message.
|
|
25832
26159
|
*/
|
|
25833
26160
|
RequestMessage.run = function (query, parameters) {
|
|
25834
|
-
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
26161
|
+
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$t.json.stringify(parameters)); });
|
|
25835
26162
|
};
|
|
25836
26163
|
/**
|
|
25837
26164
|
* Get a PULL_ALL message.
|
|
@@ -25902,7 +26229,43 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25902
26229
|
if (routing) {
|
|
25903
26230
|
metadata.routing = routing;
|
|
25904
26231
|
}
|
|
25905
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
26232
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
26233
|
+
};
|
|
26234
|
+
/**
|
|
26235
|
+
* Create a new HELLO message.
|
|
26236
|
+
* @param {string} userAgent the user agent.
|
|
26237
|
+
* @param {string} boltAgent the bolt agent.
|
|
26238
|
+
* @param {NotificationFilter} notificationFilter the notification filter configured
|
|
26239
|
+
* @param {Object} routing server side routing, set to routing context to turn on server side routing (> 4.1)
|
|
26240
|
+
* @return {RequestMessage} new HELLO message.
|
|
26241
|
+
*/
|
|
26242
|
+
RequestMessage.hello5x3 = function (userAgent, boltAgent, notificationFilter, routing) {
|
|
26243
|
+
if (notificationFilter === void 0) { notificationFilter = null; }
|
|
26244
|
+
if (routing === void 0) { routing = null; }
|
|
26245
|
+
var metadata = {};
|
|
26246
|
+
if (userAgent) {
|
|
26247
|
+
metadata.user_agent = userAgent;
|
|
26248
|
+
}
|
|
26249
|
+
if (boltAgent) {
|
|
26250
|
+
metadata.bolt_agent = {
|
|
26251
|
+
product: boltAgent.product,
|
|
26252
|
+
platform: boltAgent.platform,
|
|
26253
|
+
language: boltAgent.language,
|
|
26254
|
+
language_details: boltAgent.languageDetails
|
|
26255
|
+
};
|
|
26256
|
+
}
|
|
26257
|
+
if (notificationFilter) {
|
|
26258
|
+
if (notificationFilter.minimumSeverityLevel) {
|
|
26259
|
+
metadata.notifications_minimum_severity = notificationFilter.minimumSeverityLevel;
|
|
26260
|
+
}
|
|
26261
|
+
if (notificationFilter.disabledCategories) {
|
|
26262
|
+
metadata.notifications_disabled_categories = notificationFilter.disabledCategories;
|
|
26263
|
+
}
|
|
26264
|
+
}
|
|
26265
|
+
if (routing) {
|
|
26266
|
+
metadata.routing = routing;
|
|
26267
|
+
}
|
|
26268
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25906
26269
|
};
|
|
25907
26270
|
/**
|
|
25908
26271
|
* Create a new LOGON message.
|
|
@@ -25934,7 +26297,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25934
26297
|
RequestMessage.begin = function (_a) {
|
|
25935
26298
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
25936
26299
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
25937
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
26300
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25938
26301
|
};
|
|
25939
26302
|
/**
|
|
25940
26303
|
* Get a COMMIT message.
|
|
@@ -25965,7 +26328,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25965
26328
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
25966
26329
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
25967
26330
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
25968
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
26331
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$t.json.stringify(parameters), " ").concat(neo4j_driver_core_1$t.json.stringify(metadata));
|
|
25969
26332
|
});
|
|
25970
26333
|
};
|
|
25971
26334
|
/**
|
|
@@ -25984,7 +26347,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25984
26347
|
RequestMessage.pull = function (_a) {
|
|
25985
26348
|
var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL$3 : _d;
|
|
25986
26349
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$3);
|
|
25987
|
-
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$
|
|
26350
|
+
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25988
26351
|
};
|
|
25989
26352
|
/**
|
|
25990
26353
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -25995,7 +26358,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25995
26358
|
RequestMessage.discard = function (_a) {
|
|
25996
26359
|
var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL$3 : _d;
|
|
25997
26360
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$3);
|
|
25998
|
-
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$
|
|
26361
|
+
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25999
26362
|
};
|
|
26000
26363
|
/**
|
|
26001
26364
|
* Generate the ROUTE message, this message is used to fetch the routing table from the server
|
|
@@ -26010,7 +26373,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
26010
26373
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
26011
26374
|
if (databaseName === void 0) { databaseName = null; }
|
|
26012
26375
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
26013
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
26376
|
+
return "ROUTE ".concat(neo4j_driver_core_1$t.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$t.json.stringify(bookmarks), " ").concat(databaseName);
|
|
26014
26377
|
});
|
|
26015
26378
|
};
|
|
26016
26379
|
/**
|
|
@@ -26035,7 +26398,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
26035
26398
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
26036
26399
|
}
|
|
26037
26400
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
26038
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
26401
|
+
return "ROUTE ".concat(neo4j_driver_core_1$t.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$t.json.stringify(bookmarks), " ").concat(neo4j_driver_core_1$t.json.stringify(dbContext));
|
|
26039
26402
|
});
|
|
26040
26403
|
};
|
|
26041
26404
|
return RequestMessage;
|
|
@@ -26088,9 +26451,9 @@ function buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser,
|
|
|
26088
26451
|
* @returns {Object} a metadata object.
|
|
26089
26452
|
*/
|
|
26090
26453
|
function buildStreamMetadata(stmtId, n) {
|
|
26091
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
26454
|
+
var metadata = { n: (0, neo4j_driver_core_1$t.int)(n) };
|
|
26092
26455
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
26093
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
26456
|
+
metadata.qid = (0, neo4j_driver_core_1$t.int)(stmtId);
|
|
26094
26457
|
}
|
|
26095
26458
|
return metadata;
|
|
26096
26459
|
}
|
|
@@ -26126,8 +26489,8 @@ var transformer = {};
|
|
|
26126
26489
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
26127
26490
|
transformer.TypeTransformer = void 0;
|
|
26128
26491
|
var packstream_1$6 = packstream;
|
|
26129
|
-
var neo4j_driver_core_1$
|
|
26130
|
-
var objectUtil = neo4j_driver_core_1$
|
|
26492
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
26493
|
+
var objectUtil = neo4j_driver_core_1$s.internal.objectUtil;
|
|
26131
26494
|
/**
|
|
26132
26495
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
26133
26496
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -26272,10 +26635,10 @@ var __read$6 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
26272
26635
|
return ar;
|
|
26273
26636
|
};
|
|
26274
26637
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
26275
|
-
var neo4j_driver_core_1$
|
|
26638
|
+
var neo4j_driver_core_1$r = lib$1;
|
|
26276
26639
|
var packstream_1$5 = packstream;
|
|
26277
|
-
var transformer_1$
|
|
26278
|
-
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$
|
|
26640
|
+
var transformer_1$d = transformer;
|
|
26641
|
+
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$r.error.PROTOCOL_ERROR;
|
|
26279
26642
|
var NODE = 0x4e;
|
|
26280
26643
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
26281
26644
|
var RELATIONSHIP = 0x52;
|
|
@@ -26289,16 +26652,16 @@ var PATH_STRUCT_SIZE = 3;
|
|
|
26289
26652
|
* @returns {TypeTransformer}
|
|
26290
26653
|
*/
|
|
26291
26654
|
function createNodeTransformer$1() {
|
|
26292
|
-
return new transformer_1$
|
|
26655
|
+
return new transformer_1$d.TypeTransformer({
|
|
26293
26656
|
signature: NODE,
|
|
26294
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26657
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Node; },
|
|
26295
26658
|
toStructure: function (object) {
|
|
26296
|
-
throw (0, neo4j_driver_core_1$
|
|
26659
|
+
throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
26297
26660
|
},
|
|
26298
26661
|
fromStructure: function (struct) {
|
|
26299
26662
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
26300
26663
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
26301
|
-
return new neo4j_driver_core_1$
|
|
26664
|
+
return new neo4j_driver_core_1$r.Node(identity, labels, properties);
|
|
26302
26665
|
}
|
|
26303
26666
|
});
|
|
26304
26667
|
}
|
|
@@ -26307,16 +26670,16 @@ function createNodeTransformer$1() {
|
|
|
26307
26670
|
* @returns {TypeTransformer}
|
|
26308
26671
|
*/
|
|
26309
26672
|
function createRelationshipTransformer$1() {
|
|
26310
|
-
return new transformer_1$
|
|
26673
|
+
return new transformer_1$d.TypeTransformer({
|
|
26311
26674
|
signature: RELATIONSHIP,
|
|
26312
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26675
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Relationship; },
|
|
26313
26676
|
toStructure: function (object) {
|
|
26314
|
-
throw (0, neo4j_driver_core_1$
|
|
26677
|
+
throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
26315
26678
|
},
|
|
26316
26679
|
fromStructure: function (struct) {
|
|
26317
26680
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
26318
26681
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
26319
|
-
return new neo4j_driver_core_1$
|
|
26682
|
+
return new neo4j_driver_core_1$r.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
26320
26683
|
}
|
|
26321
26684
|
});
|
|
26322
26685
|
}
|
|
@@ -26325,16 +26688,16 @@ function createRelationshipTransformer$1() {
|
|
|
26325
26688
|
* @returns {TypeTransformer}
|
|
26326
26689
|
*/
|
|
26327
26690
|
function createUnboundRelationshipTransformer$1() {
|
|
26328
|
-
return new transformer_1$
|
|
26691
|
+
return new transformer_1$d.TypeTransformer({
|
|
26329
26692
|
signature: UNBOUND_RELATIONSHIP,
|
|
26330
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26693
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.UnboundRelationship; },
|
|
26331
26694
|
toStructure: function (object) {
|
|
26332
|
-
throw (0, neo4j_driver_core_1$
|
|
26695
|
+
throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
26333
26696
|
},
|
|
26334
26697
|
fromStructure: function (struct) {
|
|
26335
26698
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
26336
26699
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
26337
|
-
return new neo4j_driver_core_1$
|
|
26700
|
+
return new neo4j_driver_core_1$r.UnboundRelationship(identity, type, properties);
|
|
26338
26701
|
}
|
|
26339
26702
|
});
|
|
26340
26703
|
}
|
|
@@ -26343,11 +26706,11 @@ function createUnboundRelationshipTransformer$1() {
|
|
|
26343
26706
|
* @returns {TypeTransformer}
|
|
26344
26707
|
*/
|
|
26345
26708
|
function createPathTransformer() {
|
|
26346
|
-
return new transformer_1$
|
|
26709
|
+
return new transformer_1$d.TypeTransformer({
|
|
26347
26710
|
signature: PATH,
|
|
26348
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26711
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Path; },
|
|
26349
26712
|
toStructure: function (object) {
|
|
26350
|
-
throw (0, neo4j_driver_core_1$
|
|
26713
|
+
throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
26351
26714
|
},
|
|
26352
26715
|
fromStructure: function (struct) {
|
|
26353
26716
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -26356,11 +26719,11 @@ function createPathTransformer() {
|
|
|
26356
26719
|
var prevNode = nodes[0];
|
|
26357
26720
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
26358
26721
|
var nextNode = nodes[sequence[i + 1]];
|
|
26359
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
26722
|
+
var relIndex = (0, neo4j_driver_core_1$r.toNumber)(sequence[i]);
|
|
26360
26723
|
var rel = void 0;
|
|
26361
26724
|
if (relIndex > 0) {
|
|
26362
26725
|
rel = rels[relIndex - 1];
|
|
26363
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
26726
|
+
if (rel instanceof neo4j_driver_core_1$r.UnboundRelationship) {
|
|
26364
26727
|
// To avoid duplication, relationships in a path do not contain
|
|
26365
26728
|
// information about their start and end nodes, that's instead
|
|
26366
26729
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -26370,16 +26733,16 @@ function createPathTransformer() {
|
|
|
26370
26733
|
}
|
|
26371
26734
|
else {
|
|
26372
26735
|
rel = rels[-relIndex - 1];
|
|
26373
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
26736
|
+
if (rel instanceof neo4j_driver_core_1$r.UnboundRelationship) {
|
|
26374
26737
|
// See above
|
|
26375
26738
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
26376
26739
|
}
|
|
26377
26740
|
}
|
|
26378
26741
|
// Done hydrating one path segment.
|
|
26379
|
-
segments.push(new neo4j_driver_core_1$
|
|
26742
|
+
segments.push(new neo4j_driver_core_1$r.PathSegment(prevNode, rel, nextNode));
|
|
26380
26743
|
prevNode = nextNode;
|
|
26381
26744
|
}
|
|
26382
|
-
return new neo4j_driver_core_1$
|
|
26745
|
+
return new neo4j_driver_core_1$r.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
26383
26746
|
}
|
|
26384
26747
|
});
|
|
26385
26748
|
}
|
|
@@ -26413,7 +26776,7 @@ var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
26413
26776
|
__setModuleDefault$2(result, mod);
|
|
26414
26777
|
return result;
|
|
26415
26778
|
};
|
|
26416
|
-
var __importDefault$
|
|
26779
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26417
26780
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26418
26781
|
};
|
|
26419
26782
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -26437,13 +26800,13 @@ Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
|
26437
26800
|
*/
|
|
26438
26801
|
var bolt_protocol_util_1$7 = boltProtocolUtil;
|
|
26439
26802
|
var packstream_1$4 = packstream;
|
|
26440
|
-
var request_message_1$
|
|
26441
|
-
var stream_observers_1$
|
|
26442
|
-
var neo4j_driver_core_1$
|
|
26443
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
26444
|
-
var transformer_1$
|
|
26445
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
26446
|
-
var BoltProtocol$
|
|
26803
|
+
var request_message_1$9 = __importStar$2(requestMessage);
|
|
26804
|
+
var stream_observers_1$9 = streamObservers;
|
|
26805
|
+
var neo4j_driver_core_1$q = lib$1;
|
|
26806
|
+
var bolt_protocol_v1_transformer_1$1 = __importDefault$w(boltProtocolV1_transformer);
|
|
26807
|
+
var transformer_1$c = __importDefault$w(transformer);
|
|
26808
|
+
var Bookmarks$3 = neo4j_driver_core_1$q.internal.bookmarks.Bookmarks, _a$8 = neo4j_driver_core_1$q.internal.constants, ACCESS_MODE_WRITE = _a$8.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a$8.BOLT_PROTOCOL_V1; neo4j_driver_core_1$q.internal.logger.Logger; var TxConfig$2 = neo4j_driver_core_1$q.internal.txConfig.TxConfig;
|
|
26809
|
+
var BoltProtocol$b = /** @class */ (function () {
|
|
26447
26810
|
/**
|
|
26448
26811
|
* @callback CreateResponseHandler Creates the response handler
|
|
26449
26812
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -26482,7 +26845,7 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26482
26845
|
get: function () {
|
|
26483
26846
|
var _this = this;
|
|
26484
26847
|
if (this._transformer === undefined) {
|
|
26485
|
-
this._transformer = new transformer_1$
|
|
26848
|
+
this._transformer = new transformer_1$c.default(Object.values(bolt_protocol_v1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
26486
26849
|
}
|
|
26487
26850
|
return this._transformer;
|
|
26488
26851
|
},
|
|
@@ -26579,14 +26942,14 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26579
26942
|
*/
|
|
26580
26943
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
26581
26944
|
var _this = this;
|
|
26582
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
26583
|
-
var observer = new stream_observers_1$
|
|
26945
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
26946
|
+
var observer = new stream_observers_1$9.LoginObserver({
|
|
26584
26947
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
26585
26948
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }
|
|
26586
26949
|
});
|
|
26587
26950
|
// passing notification filter on this protocol version throws an error
|
|
26588
26951
|
(0, bolt_protocol_util_1$7.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
26589
|
-
this.write(request_message_1$
|
|
26952
|
+
this.write(request_message_1$9.default.init(userAgent, authToken), observer, true);
|
|
26590
26953
|
return observer;
|
|
26591
26954
|
};
|
|
26592
26955
|
/**
|
|
@@ -26601,12 +26964,12 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26601
26964
|
*/
|
|
26602
26965
|
BoltProtocol.prototype.logoff = function (_a) {
|
|
26603
26966
|
var _b = _a === void 0 ? {} : _a, onComplete = _b.onComplete, onError = _b.onError; _b.flush;
|
|
26604
|
-
var observer = new stream_observers_1$
|
|
26967
|
+
var observer = new stream_observers_1$9.LogoffObserver({
|
|
26605
26968
|
onCompleted: onComplete,
|
|
26606
26969
|
onError: onError
|
|
26607
26970
|
});
|
|
26608
26971
|
// TODO: Verify the Neo4j version in the message
|
|
26609
|
-
var error = (0, neo4j_driver_core_1$
|
|
26972
|
+
var error = (0, neo4j_driver_core_1$q.newError)('Driver is connected to a database that does not support logoff. ' +
|
|
26610
26973
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
26611
26974
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26612
26975
|
this._onProtocolError(error.message);
|
|
@@ -26627,12 +26990,12 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26627
26990
|
BoltProtocol.prototype.logon = function (_a) {
|
|
26628
26991
|
var _this = this;
|
|
26629
26992
|
var _b = _a === void 0 ? {} : _a, authToken = _b.authToken, onComplete = _b.onComplete, onError = _b.onError; _b.flush;
|
|
26630
|
-
var observer = new stream_observers_1$
|
|
26993
|
+
var observer = new stream_observers_1$9.LoginObserver({
|
|
26631
26994
|
onCompleted: function () { return _this._onLoginCompleted({}, authToken, onComplete); },
|
|
26632
26995
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
26633
26996
|
});
|
|
26634
26997
|
// TODO: Verify the Neo4j version in the message
|
|
26635
|
-
var error = (0, neo4j_driver_core_1$
|
|
26998
|
+
var error = (0, neo4j_driver_core_1$q.newError)('Driver is connected to a database that does not support logon. ' +
|
|
26636
26999
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
26637
27000
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26638
27001
|
this._onProtocolError(error.message);
|
|
@@ -26744,7 +27107,7 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26744
27107
|
*/
|
|
26745
27108
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
26746
27109
|
var _b = _a === void 0 ? {} : _a; _b.bookmarks; var txConfig = _b.txConfig, database = _b.database; _b.mode; var impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.highRecordWatermark, highRecordWatermark = _d === void 0 ? Number.MAX_VALUE : _d, _e = _b.lowRecordWatermark, lowRecordWatermark = _e === void 0 ? Number.MAX_VALUE : _e;
|
|
26747
|
-
var observer = new stream_observers_1$
|
|
27110
|
+
var observer = new stream_observers_1$9.ResultStreamObserver({
|
|
26748
27111
|
server: this._server,
|
|
26749
27112
|
beforeKeys: beforeKeys,
|
|
26750
27113
|
afterKeys: afterKeys,
|
|
@@ -26763,8 +27126,8 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26763
27126
|
(0, bolt_protocol_util_1$7.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
26764
27127
|
// passing notification filter on this protocol version throws an error
|
|
26765
27128
|
(0, bolt_protocol_util_1$7.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
26766
|
-
this.write(request_message_1$
|
|
26767
|
-
this.write(request_message_1$
|
|
27129
|
+
this.write(request_message_1$9.default.run(query, parameters), observer, false);
|
|
27130
|
+
this.write(request_message_1$9.default.pullAll(), observer, flush);
|
|
26768
27131
|
return observer;
|
|
26769
27132
|
};
|
|
26770
27133
|
Object.defineProperty(BoltProtocol.prototype, "currentFailure", {
|
|
@@ -26783,12 +27146,12 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26783
27146
|
*/
|
|
26784
27147
|
BoltProtocol.prototype.reset = function (_a) {
|
|
26785
27148
|
var _b = _a === void 0 ? {} : _a, onError = _b.onError, onComplete = _b.onComplete;
|
|
26786
|
-
var observer = new stream_observers_1$
|
|
27149
|
+
var observer = new stream_observers_1$9.ResetObserver({
|
|
26787
27150
|
onProtocolError: this._onProtocolError,
|
|
26788
27151
|
onError: onError,
|
|
26789
27152
|
onComplete: onComplete
|
|
26790
27153
|
});
|
|
26791
|
-
this.write(request_message_1$
|
|
27154
|
+
this.write(request_message_1$9.default.reset(), observer, true);
|
|
26792
27155
|
return observer;
|
|
26793
27156
|
};
|
|
26794
27157
|
BoltProtocol.prototype._createPacker = function (chunker) {
|
|
@@ -26819,11 +27182,11 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26819
27182
|
}
|
|
26820
27183
|
};
|
|
26821
27184
|
BoltProtocol.prototype.isLastMessageLogon = function () {
|
|
26822
|
-
return this._lastMessageSignature === request_message_1$
|
|
26823
|
-
this._lastMessageSignature === request_message_1$
|
|
27185
|
+
return this._lastMessageSignature === request_message_1$9.SIGNATURES.HELLO ||
|
|
27186
|
+
this._lastMessageSignature === request_message_1$9.SIGNATURES.LOGON;
|
|
26824
27187
|
};
|
|
26825
27188
|
BoltProtocol.prototype.isLastMessageReset = function () {
|
|
26826
|
-
return this._lastMessageSignature === request_message_1$
|
|
27189
|
+
return this._lastMessageSignature === request_message_1$9.SIGNATURES.RESET;
|
|
26827
27190
|
};
|
|
26828
27191
|
/**
|
|
26829
27192
|
* Notifies faltal erros to the observers and mark the protocol in the fatal error state.
|
|
@@ -26904,7 +27267,7 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26904
27267
|
};
|
|
26905
27268
|
return BoltProtocol;
|
|
26906
27269
|
}());
|
|
26907
|
-
boltProtocolV1.default = BoltProtocol$
|
|
27270
|
+
boltProtocolV1.default = BoltProtocol$b;
|
|
26908
27271
|
|
|
26909
27272
|
var boltProtocolV2 = {};
|
|
26910
27273
|
|
|
@@ -26932,17 +27295,17 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = temporalFactory.nanoOfDayToL
|
|
|
26932
27295
|
* See the License for the specific language governing permissions and
|
|
26933
27296
|
* limitations under the License.
|
|
26934
27297
|
*/
|
|
26935
|
-
var neo4j_driver_core_1$
|
|
26936
|
-
var _a$7 = neo4j_driver_core_1$
|
|
27298
|
+
var neo4j_driver_core_1$p = lib$1;
|
|
27299
|
+
var _a$7 = neo4j_driver_core_1$p.internal.temporalUtil, DAYS_0000_TO_1970 = _a$7.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a$7.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a$7.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a$7.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a$7.NANOS_PER_SECOND, SECONDS_PER_DAY = _a$7.SECONDS_PER_DAY, floorDiv = _a$7.floorDiv, floorMod = _a$7.floorMod;
|
|
26937
27300
|
/**
|
|
26938
27301
|
* Converts given epoch day to a local date.
|
|
26939
27302
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
26940
27303
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
26941
27304
|
*/
|
|
26942
27305
|
function epochDayToDate(epochDay) {
|
|
26943
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
27306
|
+
epochDay = (0, neo4j_driver_core_1$p.int)(epochDay);
|
|
26944
27307
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
26945
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
27308
|
+
var adjust = (0, neo4j_driver_core_1$p.int)(0);
|
|
26946
27309
|
if (zeroDay.lessThan(0)) {
|
|
26947
27310
|
var adjustCycles = zeroDay
|
|
26948
27311
|
.add(1)
|
|
@@ -26985,7 +27348,7 @@ function epochDayToDate(epochDay) {
|
|
|
26985
27348
|
.div(10))
|
|
26986
27349
|
.add(1);
|
|
26987
27350
|
year = year.add(marchMonth.div(10));
|
|
26988
|
-
return new neo4j_driver_core_1$
|
|
27351
|
+
return new neo4j_driver_core_1$p.Date(year, month, day);
|
|
26989
27352
|
}
|
|
26990
27353
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
26991
27354
|
/**
|
|
@@ -26994,14 +27357,14 @@ temporalFactory.epochDayToDate = epochDayToDate;
|
|
|
26994
27357
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
26995
27358
|
*/
|
|
26996
27359
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
26997
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
27360
|
+
nanoOfDay = (0, neo4j_driver_core_1$p.int)(nanoOfDay);
|
|
26998
27361
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
26999
27362
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
27000
27363
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
27001
27364
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
27002
27365
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
27003
27366
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
27004
|
-
return new neo4j_driver_core_1$
|
|
27367
|
+
return new neo4j_driver_core_1$p.LocalTime(hour, minute, second, nanosecond);
|
|
27005
27368
|
}
|
|
27006
27369
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
27007
27370
|
/**
|
|
@@ -27016,7 +27379,7 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
27016
27379
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
27017
27380
|
var localDate = epochDayToDate(epochDay);
|
|
27018
27381
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
27019
|
-
return new neo4j_driver_core_1$
|
|
27382
|
+
return new neo4j_driver_core_1$p.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
27020
27383
|
}
|
|
27021
27384
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
27022
27385
|
|
|
@@ -27038,8 +27401,8 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDat
|
|
|
27038
27401
|
* See the License for the specific language governing permissions and
|
|
27039
27402
|
* limitations under the License.
|
|
27040
27403
|
*/
|
|
27041
|
-
var __assign$
|
|
27042
|
-
__assign$
|
|
27404
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27405
|
+
__assign$i = Object.assign || function(t) {
|
|
27043
27406
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27044
27407
|
s = arguments[i];
|
|
27045
27408
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27047,7 +27410,7 @@ var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27047
27410
|
}
|
|
27048
27411
|
return t;
|
|
27049
27412
|
};
|
|
27050
|
-
return __assign$
|
|
27413
|
+
return __assign$i.apply(this, arguments);
|
|
27051
27414
|
};
|
|
27052
27415
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
27053
27416
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -27065,16 +27428,16 @@ var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
27065
27428
|
}
|
|
27066
27429
|
return ar;
|
|
27067
27430
|
};
|
|
27068
|
-
var __importDefault$
|
|
27431
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27069
27432
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27070
27433
|
};
|
|
27071
27434
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
27072
|
-
var neo4j_driver_core_1$
|
|
27435
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
27073
27436
|
var packstream_1$3 = packstream;
|
|
27074
|
-
var transformer_1$
|
|
27437
|
+
var transformer_1$b = transformer;
|
|
27075
27438
|
var temporal_factory_1$1 = temporalFactory;
|
|
27076
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
27077
|
-
var _a$6 = neo4j_driver_core_1$
|
|
27439
|
+
var bolt_protocol_v1_transformer_1 = __importDefault$v(boltProtocolV1_transformer);
|
|
27440
|
+
var _a$6 = neo4j_driver_core_1$o.internal.temporalUtil, dateToEpochDay = _a$6.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$6.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$6.localTimeToNanoOfDay;
|
|
27078
27441
|
var POINT_2D = 0x58;
|
|
27079
27442
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
27080
27443
|
var POINT_3D = 0x59;
|
|
@@ -27098,18 +27461,18 @@ var DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1 = 3;
|
|
|
27098
27461
|
* @returns {TypeTransformer}
|
|
27099
27462
|
*/
|
|
27100
27463
|
function createPoint2DTransformer() {
|
|
27101
|
-
return new transformer_1$
|
|
27464
|
+
return new transformer_1$b.TypeTransformer({
|
|
27102
27465
|
signature: POINT_2D,
|
|
27103
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
27466
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$o.isPoint)(point) && (point.z === null || point.z === undefined); },
|
|
27104
27467
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
27105
|
-
(0, neo4j_driver_core_1$
|
|
27468
|
+
(0, neo4j_driver_core_1$o.int)(point.srid),
|
|
27106
27469
|
point.x,
|
|
27107
27470
|
point.y
|
|
27108
27471
|
]); },
|
|
27109
27472
|
fromStructure: function (struct) {
|
|
27110
27473
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
27111
27474
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
27112
|
-
return new neo4j_driver_core_1$
|
|
27475
|
+
return new neo4j_driver_core_1$o.Point(srid, x, y, undefined // z
|
|
27113
27476
|
);
|
|
27114
27477
|
}
|
|
27115
27478
|
});
|
|
@@ -27119,11 +27482,11 @@ function createPoint2DTransformer() {
|
|
|
27119
27482
|
* @returns {TypeTransformer}
|
|
27120
27483
|
*/
|
|
27121
27484
|
function createPoint3DTransformer() {
|
|
27122
|
-
return new transformer_1$
|
|
27485
|
+
return new transformer_1$b.TypeTransformer({
|
|
27123
27486
|
signature: POINT_3D,
|
|
27124
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
27487
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$o.isPoint)(point) && point.z !== null && point.z !== undefined; },
|
|
27125
27488
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
27126
|
-
(0, neo4j_driver_core_1$
|
|
27489
|
+
(0, neo4j_driver_core_1$o.int)(point.srid),
|
|
27127
27490
|
point.x,
|
|
27128
27491
|
point.y,
|
|
27129
27492
|
point.z
|
|
@@ -27131,7 +27494,7 @@ function createPoint3DTransformer() {
|
|
|
27131
27494
|
fromStructure: function (struct) {
|
|
27132
27495
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
27133
27496
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
27134
|
-
return new neo4j_driver_core_1$
|
|
27497
|
+
return new neo4j_driver_core_1$o.Point(srid, x, y, z);
|
|
27135
27498
|
}
|
|
27136
27499
|
});
|
|
27137
27500
|
}
|
|
@@ -27140,20 +27503,20 @@ function createPoint3DTransformer() {
|
|
|
27140
27503
|
* @returns {TypeTransformer}
|
|
27141
27504
|
*/
|
|
27142
27505
|
function createDurationTransformer() {
|
|
27143
|
-
return new transformer_1$
|
|
27506
|
+
return new transformer_1$b.TypeTransformer({
|
|
27144
27507
|
signature: DURATION,
|
|
27145
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27508
|
+
isTypeInstance: neo4j_driver_core_1$o.isDuration,
|
|
27146
27509
|
toStructure: function (value) {
|
|
27147
|
-
var months = (0, neo4j_driver_core_1$
|
|
27148
|
-
var days = (0, neo4j_driver_core_1$
|
|
27149
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
27150
|
-
var nanoseconds = (0, neo4j_driver_core_1$
|
|
27510
|
+
var months = (0, neo4j_driver_core_1$o.int)(value.months);
|
|
27511
|
+
var days = (0, neo4j_driver_core_1$o.int)(value.days);
|
|
27512
|
+
var seconds = (0, neo4j_driver_core_1$o.int)(value.seconds);
|
|
27513
|
+
var nanoseconds = (0, neo4j_driver_core_1$o.int)(value.nanoseconds);
|
|
27151
27514
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
27152
27515
|
},
|
|
27153
27516
|
fromStructure: function (struct) {
|
|
27154
27517
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
27155
27518
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
27156
|
-
return new neo4j_driver_core_1$
|
|
27519
|
+
return new neo4j_driver_core_1$o.Duration(months, days, seconds, nanoseconds);
|
|
27157
27520
|
}
|
|
27158
27521
|
});
|
|
27159
27522
|
}
|
|
@@ -27166,9 +27529,9 @@ function createDurationTransformer() {
|
|
|
27166
27529
|
*/
|
|
27167
27530
|
function createLocalTimeTransformer(_a) {
|
|
27168
27531
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27169
|
-
return new transformer_1$
|
|
27532
|
+
return new transformer_1$b.TypeTransformer({
|
|
27170
27533
|
signature: LOCAL_TIME,
|
|
27171
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27534
|
+
isTypeInstance: neo4j_driver_core_1$o.isLocalTime,
|
|
27172
27535
|
toStructure: function (value) {
|
|
27173
27536
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
27174
27537
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -27190,19 +27553,19 @@ function createLocalTimeTransformer(_a) {
|
|
|
27190
27553
|
*/
|
|
27191
27554
|
function createTimeTransformer(_a) {
|
|
27192
27555
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27193
|
-
return new transformer_1$
|
|
27556
|
+
return new transformer_1$b.TypeTransformer({
|
|
27194
27557
|
signature: TIME,
|
|
27195
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27558
|
+
isTypeInstance: neo4j_driver_core_1$o.isTime,
|
|
27196
27559
|
toStructure: function (value) {
|
|
27197
27560
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
27198
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
27561
|
+
var offsetSeconds = (0, neo4j_driver_core_1$o.int)(value.timeZoneOffsetSeconds);
|
|
27199
27562
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
27200
27563
|
},
|
|
27201
27564
|
fromStructure: function (struct) {
|
|
27202
27565
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
27203
27566
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
27204
27567
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
27205
|
-
var result = new neo4j_driver_core_1$
|
|
27568
|
+
var result = new neo4j_driver_core_1$o.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
|
|
27206
27569
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
27207
27570
|
}
|
|
27208
27571
|
});
|
|
@@ -27216,9 +27579,9 @@ function createTimeTransformer(_a) {
|
|
|
27216
27579
|
*/
|
|
27217
27580
|
function createDateTransformer(_a) {
|
|
27218
27581
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27219
|
-
return new transformer_1$
|
|
27582
|
+
return new transformer_1$b.TypeTransformer({
|
|
27220
27583
|
signature: DATE,
|
|
27221
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27584
|
+
isTypeInstance: neo4j_driver_core_1$o.isDate,
|
|
27222
27585
|
toStructure: function (value) {
|
|
27223
27586
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
27224
27587
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -27240,12 +27603,12 @@ function createDateTransformer(_a) {
|
|
|
27240
27603
|
*/
|
|
27241
27604
|
function createLocalDateTimeTransformer(_a) {
|
|
27242
27605
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27243
|
-
return new transformer_1$
|
|
27606
|
+
return new transformer_1$b.TypeTransformer({
|
|
27244
27607
|
signature: LOCAL_DATE_TIME,
|
|
27245
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27608
|
+
isTypeInstance: neo4j_driver_core_1$o.isLocalDateTime,
|
|
27246
27609
|
toStructure: function (value) {
|
|
27247
27610
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
27248
|
-
var nano = (0, neo4j_driver_core_1$
|
|
27611
|
+
var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
|
|
27249
27612
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
27250
27613
|
},
|
|
27251
27614
|
fromStructure: function (struct) {
|
|
@@ -27265,12 +27628,12 @@ function createLocalDateTimeTransformer(_a) {
|
|
|
27265
27628
|
*/
|
|
27266
27629
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
27267
27630
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27268
|
-
return new transformer_1$
|
|
27631
|
+
return new transformer_1$b.TypeTransformer({
|
|
27269
27632
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
27270
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
27633
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$o.isDateTime)(object) && object.timeZoneId != null; },
|
|
27271
27634
|
toStructure: function (value) {
|
|
27272
27635
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
27273
|
-
var nano = (0, neo4j_driver_core_1$
|
|
27636
|
+
var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
|
|
27274
27637
|
var timeZoneId = value.timeZoneId;
|
|
27275
27638
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
27276
27639
|
},
|
|
@@ -27278,7 +27641,7 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
27278
27641
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
27279
27642
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
27280
27643
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
27281
|
-
var result = new neo4j_driver_core_1$
|
|
27644
|
+
var result = new neo4j_driver_core_1$o.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);
|
|
27282
27645
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
27283
27646
|
}
|
|
27284
27647
|
});
|
|
@@ -27292,20 +27655,20 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
27292
27655
|
*/
|
|
27293
27656
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
27294
27657
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27295
|
-
return new transformer_1$
|
|
27658
|
+
return new transformer_1$b.TypeTransformer({
|
|
27296
27659
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
27297
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
27660
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$o.isDateTime)(object) && object.timeZoneId == null; },
|
|
27298
27661
|
toStructure: function (value) {
|
|
27299
27662
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
27300
|
-
var nano = (0, neo4j_driver_core_1$
|
|
27301
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
27663
|
+
var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
|
|
27664
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$o.int)(value.timeZoneOffsetSeconds);
|
|
27302
27665
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
27303
27666
|
},
|
|
27304
27667
|
fromStructure: function (struct) {
|
|
27305
27668
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
27306
27669
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
27307
27670
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
27308
|
-
var result = new neo4j_driver_core_1$
|
|
27671
|
+
var result = new neo4j_driver_core_1$o.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
|
|
27309
27672
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
27310
27673
|
}
|
|
27311
27674
|
});
|
|
@@ -27321,15 +27684,15 @@ function convertIntegerPropsIfNeeded$1(obj, disableLosslessIntegers, useBigInt)
|
|
|
27321
27684
|
for (var prop in obj) {
|
|
27322
27685
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
27323
27686
|
var value = obj[prop];
|
|
27324
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
27687
|
+
clone[prop] = (0, neo4j_driver_core_1$o.isInt)(value) ? convert(value) : value;
|
|
27325
27688
|
}
|
|
27326
27689
|
}
|
|
27327
27690
|
Object.freeze(clone);
|
|
27328
27691
|
return clone;
|
|
27329
27692
|
}
|
|
27330
|
-
boltProtocolV2_transformer.default = __assign$
|
|
27693
|
+
boltProtocolV2_transformer.default = __assign$i(__assign$i({}, bolt_protocol_v1_transformer_1.default), { createPoint2DTransformer: createPoint2DTransformer, createPoint3DTransformer: createPoint3DTransformer, createDurationTransformer: createDurationTransformer, createLocalTimeTransformer: createLocalTimeTransformer, createTimeTransformer: createTimeTransformer, createDateTransformer: createDateTransformer, createLocalDateTimeTransformer: createLocalDateTimeTransformer, createDateTimeWithZoneIdTransformer: createDateTimeWithZoneIdTransformer$1, createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer$1 });
|
|
27331
27694
|
|
|
27332
|
-
var __extends$
|
|
27695
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27333
27696
|
var extendStatics = function (d, b) {
|
|
27334
27697
|
extendStatics = Object.setPrototypeOf ||
|
|
27335
27698
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27344,7 +27707,7 @@ var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27344
27707
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27345
27708
|
};
|
|
27346
27709
|
})();
|
|
27347
|
-
var __importDefault$
|
|
27710
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27348
27711
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27349
27712
|
};
|
|
27350
27713
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -27366,14 +27729,14 @@ Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
|
27366
27729
|
* See the License for the specific language governing permissions and
|
|
27367
27730
|
* limitations under the License.
|
|
27368
27731
|
*/
|
|
27369
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
27370
|
-
var packstream_1$2 = __importDefault$
|
|
27371
|
-
var neo4j_driver_core_1$
|
|
27372
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
27373
|
-
var transformer_1$
|
|
27374
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
27375
|
-
var BoltProtocol$
|
|
27376
|
-
__extends$
|
|
27732
|
+
var bolt_protocol_v1_1$1 = __importDefault$u(boltProtocolV1);
|
|
27733
|
+
var packstream_1$2 = __importDefault$u(packstream);
|
|
27734
|
+
var neo4j_driver_core_1$n = lib$1;
|
|
27735
|
+
var bolt_protocol_v2_transformer_1$1 = __importDefault$u(boltProtocolV2_transformer);
|
|
27736
|
+
var transformer_1$a = __importDefault$u(transformer);
|
|
27737
|
+
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V2;
|
|
27738
|
+
var BoltProtocol$a = /** @class */ (function (_super) {
|
|
27739
|
+
__extends$g(BoltProtocol, _super);
|
|
27377
27740
|
function BoltProtocol() {
|
|
27378
27741
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27379
27742
|
}
|
|
@@ -27387,7 +27750,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
27387
27750
|
get: function () {
|
|
27388
27751
|
var _this = this;
|
|
27389
27752
|
if (this._transformer === undefined) {
|
|
27390
|
-
this._transformer = new transformer_1$
|
|
27753
|
+
this._transformer = new transformer_1$a.default(Object.values(bolt_protocol_v2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
27391
27754
|
}
|
|
27392
27755
|
return this._transformer;
|
|
27393
27756
|
},
|
|
@@ -27403,7 +27766,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
27403
27766
|
});
|
|
27404
27767
|
return BoltProtocol;
|
|
27405
27768
|
}(bolt_protocol_v1_1$1.default));
|
|
27406
|
-
boltProtocolV2.default = BoltProtocol$
|
|
27769
|
+
boltProtocolV2.default = BoltProtocol$a;
|
|
27407
27770
|
|
|
27408
27771
|
var boltProtocolV3 = {};
|
|
27409
27772
|
|
|
@@ -27427,8 +27790,8 @@ var boltProtocolV3_transformer = {};
|
|
|
27427
27790
|
* See the License for the specific language governing permissions and
|
|
27428
27791
|
* limitations under the License.
|
|
27429
27792
|
*/
|
|
27430
|
-
var __assign$
|
|
27431
|
-
__assign$
|
|
27793
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27794
|
+
__assign$h = Object.assign || function(t) {
|
|
27432
27795
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27433
27796
|
s = arguments[i];
|
|
27434
27797
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27436,16 +27799,16 @@ var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27436
27799
|
}
|
|
27437
27800
|
return t;
|
|
27438
27801
|
};
|
|
27439
|
-
return __assign$
|
|
27802
|
+
return __assign$h.apply(this, arguments);
|
|
27440
27803
|
};
|
|
27441
|
-
var __importDefault$
|
|
27804
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27442
27805
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27443
27806
|
};
|
|
27444
27807
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
27445
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
27446
|
-
boltProtocolV3_transformer.default = __assign$
|
|
27808
|
+
var bolt_protocol_v2_transformer_1 = __importDefault$t(boltProtocolV2_transformer);
|
|
27809
|
+
boltProtocolV3_transformer.default = __assign$h({}, bolt_protocol_v2_transformer_1.default);
|
|
27447
27810
|
|
|
27448
|
-
var __extends$
|
|
27811
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27449
27812
|
var extendStatics = function (d, b) {
|
|
27450
27813
|
extendStatics = Object.setPrototypeOf ||
|
|
27451
27814
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27460,8 +27823,8 @@ var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27460
27823
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27461
27824
|
};
|
|
27462
27825
|
})();
|
|
27463
|
-
var __assign$
|
|
27464
|
-
__assign$
|
|
27826
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27827
|
+
__assign$g = Object.assign || function(t) {
|
|
27465
27828
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27466
27829
|
s = arguments[i];
|
|
27467
27830
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27469,9 +27832,9 @@ var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27469
27832
|
}
|
|
27470
27833
|
return t;
|
|
27471
27834
|
};
|
|
27472
|
-
return __assign$
|
|
27835
|
+
return __assign$g.apply(this, arguments);
|
|
27473
27836
|
};
|
|
27474
|
-
var __importDefault$
|
|
27837
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27475
27838
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27476
27839
|
};
|
|
27477
27840
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -27493,19 +27856,19 @@ Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
|
27493
27856
|
* See the License for the specific language governing permissions and
|
|
27494
27857
|
* limitations under the License.
|
|
27495
27858
|
*/
|
|
27496
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
27497
|
-
var request_message_1$
|
|
27859
|
+
var bolt_protocol_v2_1$1 = __importDefault$s(boltProtocolV2);
|
|
27860
|
+
var request_message_1$8 = __importDefault$s(requestMessage);
|
|
27498
27861
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
27499
|
-
var stream_observers_1$
|
|
27500
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
27501
|
-
var transformer_1$
|
|
27502
|
-
var neo4j_driver_core_1$
|
|
27503
|
-
neo4j_driver_core_1$
|
|
27862
|
+
var stream_observers_1$8 = streamObservers;
|
|
27863
|
+
var bolt_protocol_v3_transformer_1$1 = __importDefault$s(boltProtocolV3_transformer);
|
|
27864
|
+
var transformer_1$9 = __importDefault$s(transformer);
|
|
27865
|
+
var neo4j_driver_core_1$m = lib$1;
|
|
27866
|
+
neo4j_driver_core_1$m.internal.bookmarks.Bookmarks; var BOLT_PROTOCOL_V3$2 = neo4j_driver_core_1$m.internal.constants.BOLT_PROTOCOL_V3, TxConfig$1 = neo4j_driver_core_1$m.internal.txConfig.TxConfig;
|
|
27504
27867
|
var CONTEXT$1 = 'context';
|
|
27505
27868
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
27506
|
-
var noOpObserver = new stream_observers_1$
|
|
27507
|
-
var BoltProtocol$
|
|
27508
|
-
__extends$
|
|
27869
|
+
var noOpObserver = new stream_observers_1$8.StreamObserver();
|
|
27870
|
+
var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
27871
|
+
__extends$f(BoltProtocol, _super);
|
|
27509
27872
|
function BoltProtocol() {
|
|
27510
27873
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27511
27874
|
}
|
|
@@ -27520,7 +27883,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27520
27883
|
get: function () {
|
|
27521
27884
|
var _this = this;
|
|
27522
27885
|
if (this._transformer === undefined) {
|
|
27523
|
-
this._transformer = new transformer_1$
|
|
27886
|
+
this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
27524
27887
|
}
|
|
27525
27888
|
return this._transformer;
|
|
27526
27889
|
},
|
|
@@ -27544,22 +27907,22 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27544
27907
|
};
|
|
27545
27908
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
27546
27909
|
var _this = this;
|
|
27547
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
27548
|
-
var observer = new stream_observers_1$
|
|
27910
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
27911
|
+
var observer = new stream_observers_1$8.LoginObserver({
|
|
27549
27912
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
27550
27913
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
|
|
27551
27914
|
});
|
|
27552
27915
|
// passing notification filter on this protocol version throws an error
|
|
27553
27916
|
(0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27554
|
-
this.write(request_message_1$
|
|
27917
|
+
this.write(request_message_1$8.default.hello(userAgent, authToken), observer, true);
|
|
27555
27918
|
return observer;
|
|
27556
27919
|
};
|
|
27557
27920
|
BoltProtocol.prototype.prepareToClose = function () {
|
|
27558
|
-
this.write(request_message_1$
|
|
27921
|
+
this.write(request_message_1$8.default.goodbye(), noOpObserver, true);
|
|
27559
27922
|
};
|
|
27560
27923
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
27561
27924
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
|
|
27562
|
-
var observer = new stream_observers_1$
|
|
27925
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27563
27926
|
server: this._server,
|
|
27564
27927
|
beforeError: beforeError,
|
|
27565
27928
|
afterError: afterError,
|
|
@@ -27573,12 +27936,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27573
27936
|
(0, bolt_protocol_util_1$6.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
27574
27937
|
// passing notification filter on this protocol version throws an error
|
|
27575
27938
|
(0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27576
|
-
this.write(request_message_1$
|
|
27939
|
+
this.write(request_message_1$8.default.begin({ bookmarks: bookmarks, txConfig: txConfig, mode: mode }), observer, true);
|
|
27577
27940
|
return observer;
|
|
27578
27941
|
};
|
|
27579
27942
|
BoltProtocol.prototype.commitTransaction = function (_a) {
|
|
27580
27943
|
var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
|
|
27581
|
-
var observer = new stream_observers_1$
|
|
27944
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27582
27945
|
server: this._server,
|
|
27583
27946
|
beforeError: beforeError,
|
|
27584
27947
|
afterError: afterError,
|
|
@@ -27586,12 +27949,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27586
27949
|
afterComplete: afterComplete
|
|
27587
27950
|
});
|
|
27588
27951
|
observer.prepareToHandleSingleResponse();
|
|
27589
|
-
this.write(request_message_1$
|
|
27952
|
+
this.write(request_message_1$8.default.commit(), observer, true);
|
|
27590
27953
|
return observer;
|
|
27591
27954
|
};
|
|
27592
27955
|
BoltProtocol.prototype.rollbackTransaction = function (_a) {
|
|
27593
27956
|
var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
|
|
27594
|
-
var observer = new stream_observers_1$
|
|
27957
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27595
27958
|
server: this._server,
|
|
27596
27959
|
beforeError: beforeError,
|
|
27597
27960
|
afterError: afterError,
|
|
@@ -27599,12 +27962,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27599
27962
|
afterComplete: afterComplete
|
|
27600
27963
|
});
|
|
27601
27964
|
observer.prepareToHandleSingleResponse();
|
|
27602
|
-
this.write(request_message_1$
|
|
27965
|
+
this.write(request_message_1$8.default.rollback(), observer, true);
|
|
27603
27966
|
return observer;
|
|
27604
27967
|
};
|
|
27605
27968
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
27606
27969
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.highRecordWatermark, highRecordWatermark = _d === void 0 ? Number.MAX_VALUE : _d, _e = _b.lowRecordWatermark, lowRecordWatermark = _e === void 0 ? Number.MAX_VALUE : _e;
|
|
27607
|
-
var observer = new stream_observers_1$
|
|
27970
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27608
27971
|
server: this._server,
|
|
27609
27972
|
beforeKeys: beforeKeys,
|
|
27610
27973
|
afterKeys: afterKeys,
|
|
@@ -27621,12 +27984,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27621
27984
|
(0, bolt_protocol_util_1$6.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
27622
27985
|
// passing notification filter on this protocol version throws an error
|
|
27623
27986
|
(0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27624
|
-
this.write(request_message_1$
|
|
27987
|
+
this.write(request_message_1$8.default.runWithMetadata(query, parameters, {
|
|
27625
27988
|
bookmarks: bookmarks,
|
|
27626
27989
|
txConfig: txConfig,
|
|
27627
27990
|
mode: mode
|
|
27628
27991
|
}), observer, false);
|
|
27629
|
-
this.write(request_message_1$
|
|
27992
|
+
this.write(request_message_1$8.default.pullAll(), observer, flush);
|
|
27630
27993
|
return observer;
|
|
27631
27994
|
};
|
|
27632
27995
|
/**
|
|
@@ -27647,8 +28010,8 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27647
28010
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
27648
28011
|
var _b;
|
|
27649
28012
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
27650
|
-
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$
|
|
27651
|
-
return new stream_observers_1$
|
|
28013
|
+
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$g(__assign$g({}, sessionContext), { txConfig: TxConfig$1.empty() }));
|
|
28014
|
+
return new stream_observers_1$8.ProcedureRouteObserver({
|
|
27652
28015
|
resultObserver: resultObserver,
|
|
27653
28016
|
onProtocolError: this._onProtocolError,
|
|
27654
28017
|
onError: onError,
|
|
@@ -27657,7 +28020,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27657
28020
|
};
|
|
27658
28021
|
return BoltProtocol;
|
|
27659
28022
|
}(bolt_protocol_v2_1$1.default));
|
|
27660
|
-
boltProtocolV3.default = BoltProtocol$
|
|
28023
|
+
boltProtocolV3.default = BoltProtocol$9;
|
|
27661
28024
|
|
|
27662
28025
|
var boltProtocolV4x0 = {};
|
|
27663
28026
|
|
|
@@ -27681,8 +28044,8 @@ var boltProtocolV4x0_transformer = {};
|
|
|
27681
28044
|
* See the License for the specific language governing permissions and
|
|
27682
28045
|
* limitations under the License.
|
|
27683
28046
|
*/
|
|
27684
|
-
var __assign$
|
|
27685
|
-
__assign$
|
|
28047
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28048
|
+
__assign$f = Object.assign || function(t) {
|
|
27686
28049
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27687
28050
|
s = arguments[i];
|
|
27688
28051
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27690,16 +28053,16 @@ var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27690
28053
|
}
|
|
27691
28054
|
return t;
|
|
27692
28055
|
};
|
|
27693
|
-
return __assign$
|
|
28056
|
+
return __assign$f.apply(this, arguments);
|
|
27694
28057
|
};
|
|
27695
|
-
var __importDefault$
|
|
28058
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27696
28059
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27697
28060
|
};
|
|
27698
28061
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
27699
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
27700
|
-
boltProtocolV4x0_transformer.default = __assign$
|
|
28062
|
+
var bolt_protocol_v3_transformer_1 = __importDefault$r(boltProtocolV3_transformer);
|
|
28063
|
+
boltProtocolV4x0_transformer.default = __assign$f({}, bolt_protocol_v3_transformer_1.default);
|
|
27701
28064
|
|
|
27702
|
-
var __extends$
|
|
28065
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27703
28066
|
var extendStatics = function (d, b) {
|
|
27704
28067
|
extendStatics = Object.setPrototypeOf ||
|
|
27705
28068
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27714,8 +28077,8 @@ var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27714
28077
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27715
28078
|
};
|
|
27716
28079
|
})();
|
|
27717
|
-
var __assign$
|
|
27718
|
-
__assign$
|
|
28080
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28081
|
+
__assign$e = Object.assign || function(t) {
|
|
27719
28082
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27720
28083
|
s = arguments[i];
|
|
27721
28084
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27723,9 +28086,9 @@ var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27723
28086
|
}
|
|
27724
28087
|
return t;
|
|
27725
28088
|
};
|
|
27726
|
-
return __assign$
|
|
28089
|
+
return __assign$e.apply(this, arguments);
|
|
27727
28090
|
};
|
|
27728
|
-
var __importDefault$
|
|
28091
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27729
28092
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27730
28093
|
};
|
|
27731
28094
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -27747,19 +28110,19 @@ Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
|
27747
28110
|
* See the License for the specific language governing permissions and
|
|
27748
28111
|
* limitations under the License.
|
|
27749
28112
|
*/
|
|
27750
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
27751
|
-
var request_message_1$
|
|
28113
|
+
var bolt_protocol_v3_1$1 = __importDefault$q(boltProtocolV3);
|
|
28114
|
+
var request_message_1$7 = __importDefault$q(requestMessage);
|
|
27752
28115
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
27753
|
-
var stream_observers_1$
|
|
27754
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
27755
|
-
var transformer_1$
|
|
27756
|
-
var neo4j_driver_core_1$
|
|
27757
|
-
neo4j_driver_core_1$
|
|
28116
|
+
var stream_observers_1$7 = streamObservers;
|
|
28117
|
+
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$q(boltProtocolV4x0_transformer);
|
|
28118
|
+
var transformer_1$8 = __importDefault$q(transformer);
|
|
28119
|
+
var neo4j_driver_core_1$l = lib$1;
|
|
28120
|
+
neo4j_driver_core_1$l.internal.bookmarks.Bookmarks; var _a$5 = neo4j_driver_core_1$l.internal.constants, BOLT_PROTOCOL_V4_0$2 = _a$5.BOLT_PROTOCOL_V4_0, FETCH_ALL$2 = _a$5.FETCH_ALL, TxConfig = neo4j_driver_core_1$l.internal.txConfig.TxConfig;
|
|
27758
28121
|
var CONTEXT = 'context';
|
|
27759
28122
|
var DATABASE = 'database';
|
|
27760
28123
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
27761
|
-
var BoltProtocol$
|
|
27762
|
-
__extends$
|
|
28124
|
+
var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
28125
|
+
__extends$e(BoltProtocol, _super);
|
|
27763
28126
|
function BoltProtocol() {
|
|
27764
28127
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27765
28128
|
}
|
|
@@ -27774,7 +28137,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27774
28137
|
get: function () {
|
|
27775
28138
|
var _this = this;
|
|
27776
28139
|
if (this._transformer === undefined) {
|
|
27777
|
-
this._transformer = new transformer_1$
|
|
28140
|
+
this._transformer = new transformer_1$8.default(Object.values(bolt_protocol_v4x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
27778
28141
|
}
|
|
27779
28142
|
return this._transformer;
|
|
27780
28143
|
},
|
|
@@ -27783,7 +28146,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27783
28146
|
});
|
|
27784
28147
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
27785
28148
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
|
|
27786
|
-
var observer = new stream_observers_1$
|
|
28149
|
+
var observer = new stream_observers_1$7.ResultStreamObserver({
|
|
27787
28150
|
server: this._server,
|
|
27788
28151
|
beforeError: beforeError,
|
|
27789
28152
|
afterError: afterError,
|
|
@@ -27795,12 +28158,12 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27795
28158
|
(0, bolt_protocol_util_1$5.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
27796
28159
|
// passing notification filter on this protocol version throws an error
|
|
27797
28160
|
(0, bolt_protocol_util_1$5.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27798
|
-
this.write(request_message_1$
|
|
28161
|
+
this.write(request_message_1$7.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode }), observer, true);
|
|
27799
28162
|
return observer;
|
|
27800
28163
|
};
|
|
27801
28164
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
27802
28165
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL$2 : _e, _f = _b.highRecordWatermark, highRecordWatermark = _f === void 0 ? Number.MAX_VALUE : _f, _g = _b.lowRecordWatermark, lowRecordWatermark = _g === void 0 ? Number.MAX_VALUE : _g;
|
|
27803
|
-
var observer = new stream_observers_1$
|
|
28166
|
+
var observer = new stream_observers_1$7.ResultStreamObserver({
|
|
27804
28167
|
server: this._server,
|
|
27805
28168
|
reactive: reactive,
|
|
27806
28169
|
fetchSize: fetchSize,
|
|
@@ -27820,22 +28183,22 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27820
28183
|
// passing notification filter on this protocol version throws an error
|
|
27821
28184
|
(0, bolt_protocol_util_1$5.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27822
28185
|
var flushRun = reactive;
|
|
27823
|
-
this.write(request_message_1$
|
|
28186
|
+
this.write(request_message_1$7.default.runWithMetadata(query, parameters, {
|
|
27824
28187
|
bookmarks: bookmarks,
|
|
27825
28188
|
txConfig: txConfig,
|
|
27826
28189
|
database: database,
|
|
27827
28190
|
mode: mode
|
|
27828
28191
|
}), observer, flushRun && flush);
|
|
27829
28192
|
if (!reactive) {
|
|
27830
|
-
this.write(request_message_1$
|
|
28193
|
+
this.write(request_message_1$7.default.pull({ n: fetchSize }), observer, flush);
|
|
27831
28194
|
}
|
|
27832
28195
|
return observer;
|
|
27833
28196
|
};
|
|
27834
28197
|
BoltProtocol.prototype._requestMore = function (stmtId, n, observer) {
|
|
27835
|
-
this.write(request_message_1$
|
|
28198
|
+
this.write(request_message_1$7.default.pull({ stmtId: stmtId, n: n }), observer, true);
|
|
27836
28199
|
};
|
|
27837
28200
|
BoltProtocol.prototype._requestDiscard = function (stmtId, observer) {
|
|
27838
|
-
this.write(request_message_1$
|
|
28201
|
+
this.write(request_message_1$7.default.discard({ stmtId: stmtId }), observer, true);
|
|
27839
28202
|
};
|
|
27840
28203
|
BoltProtocol.prototype._noOp = function () { };
|
|
27841
28204
|
/**
|
|
@@ -27859,8 +28222,8 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27859
28222
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
27860
28223
|
_b[CONTEXT] = routingContext,
|
|
27861
28224
|
_b[DATABASE] = databaseName,
|
|
27862
|
-
_b), __assign$
|
|
27863
|
-
return new stream_observers_1$
|
|
28225
|
+
_b), __assign$e(__assign$e({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
28226
|
+
return new stream_observers_1$7.ProcedureRouteObserver({
|
|
27864
28227
|
resultObserver: resultObserver,
|
|
27865
28228
|
onProtocolError: this._onProtocolError,
|
|
27866
28229
|
onError: onError,
|
|
@@ -27869,7 +28232,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27869
28232
|
};
|
|
27870
28233
|
return BoltProtocol;
|
|
27871
28234
|
}(bolt_protocol_v3_1$1.default));
|
|
27872
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
28235
|
+
boltProtocolV4x0.default = BoltProtocol$8;
|
|
27873
28236
|
|
|
27874
28237
|
var boltProtocolV4x1 = {};
|
|
27875
28238
|
|
|
@@ -27893,8 +28256,8 @@ var boltProtocolV4x1_transformer = {};
|
|
|
27893
28256
|
* See the License for the specific language governing permissions and
|
|
27894
28257
|
* limitations under the License.
|
|
27895
28258
|
*/
|
|
27896
|
-
var __assign$
|
|
27897
|
-
__assign$
|
|
28259
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28260
|
+
__assign$d = Object.assign || function(t) {
|
|
27898
28261
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27899
28262
|
s = arguments[i];
|
|
27900
28263
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27902,16 +28265,16 @@ var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27902
28265
|
}
|
|
27903
28266
|
return t;
|
|
27904
28267
|
};
|
|
27905
|
-
return __assign$
|
|
28268
|
+
return __assign$d.apply(this, arguments);
|
|
27906
28269
|
};
|
|
27907
|
-
var __importDefault$
|
|
28270
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27908
28271
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27909
28272
|
};
|
|
27910
28273
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
27911
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
27912
|
-
boltProtocolV4x1_transformer.default = __assign$
|
|
28274
|
+
var bolt_protocol_v4x0_transformer_1 = __importDefault$p(boltProtocolV4x0_transformer);
|
|
28275
|
+
boltProtocolV4x1_transformer.default = __assign$d({}, bolt_protocol_v4x0_transformer_1.default);
|
|
27913
28276
|
|
|
27914
|
-
var __extends$
|
|
28277
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27915
28278
|
var extendStatics = function (d, b) {
|
|
27916
28279
|
extendStatics = Object.setPrototypeOf ||
|
|
27917
28280
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27926,7 +28289,7 @@ var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27926
28289
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27927
28290
|
};
|
|
27928
28291
|
})();
|
|
27929
|
-
var __importDefault$
|
|
28292
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27930
28293
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27931
28294
|
};
|
|
27932
28295
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -27948,16 +28311,16 @@ Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
|
27948
28311
|
* See the License for the specific language governing permissions and
|
|
27949
28312
|
* limitations under the License.
|
|
27950
28313
|
*/
|
|
27951
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
27952
|
-
var request_message_1$
|
|
27953
|
-
var stream_observers_1$
|
|
27954
|
-
var neo4j_driver_core_1$
|
|
28314
|
+
var bolt_protocol_v4x0_1$1 = __importDefault$o(boltProtocolV4x0);
|
|
28315
|
+
var request_message_1$6 = __importDefault$o(requestMessage);
|
|
28316
|
+
var stream_observers_1$6 = streamObservers;
|
|
28317
|
+
var neo4j_driver_core_1$k = lib$1;
|
|
27955
28318
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
27956
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
27957
|
-
var transformer_1$
|
|
27958
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
27959
|
-
var BoltProtocol$
|
|
27960
|
-
__extends$
|
|
28319
|
+
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$o(boltProtocolV4x1_transformer);
|
|
28320
|
+
var transformer_1$7 = __importDefault$o(transformer);
|
|
28321
|
+
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$k.internal.constants.BOLT_PROTOCOL_V4_1;
|
|
28322
|
+
var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
28323
|
+
__extends$d(BoltProtocol, _super);
|
|
27961
28324
|
/**
|
|
27962
28325
|
* @constructor
|
|
27963
28326
|
* @param {Object} server the server informatio.
|
|
@@ -27987,7 +28350,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
27987
28350
|
get: function () {
|
|
27988
28351
|
var _this = this;
|
|
27989
28352
|
if (this._transformer === undefined) {
|
|
27990
|
-
this._transformer = new transformer_1$
|
|
28353
|
+
this._transformer = new transformer_1$7.default(Object.values(bolt_protocol_v4x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
27991
28354
|
}
|
|
27992
28355
|
return this._transformer;
|
|
27993
28356
|
},
|
|
@@ -27996,19 +28359,19 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
27996
28359
|
});
|
|
27997
28360
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
27998
28361
|
var _this = this;
|
|
27999
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
28000
|
-
var observer = new stream_observers_1$
|
|
28362
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
28363
|
+
var observer = new stream_observers_1$6.LoginObserver({
|
|
28001
28364
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
28002
28365
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
|
|
28003
28366
|
});
|
|
28004
28367
|
// passing notification filter on this protocol version throws an error
|
|
28005
28368
|
(0, bolt_protocol_util_1$4.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28006
|
-
this.write(request_message_1$
|
|
28369
|
+
this.write(request_message_1$6.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
|
|
28007
28370
|
return observer;
|
|
28008
28371
|
};
|
|
28009
28372
|
return BoltProtocol;
|
|
28010
28373
|
}(bolt_protocol_v4x0_1$1.default));
|
|
28011
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
28374
|
+
boltProtocolV4x1.default = BoltProtocol$7;
|
|
28012
28375
|
|
|
28013
28376
|
var boltProtocolV4x2 = {};
|
|
28014
28377
|
|
|
@@ -28032,8 +28395,8 @@ var boltProtocolV4x2_transformer = {};
|
|
|
28032
28395
|
* See the License for the specific language governing permissions and
|
|
28033
28396
|
* limitations under the License.
|
|
28034
28397
|
*/
|
|
28035
|
-
var __assign$
|
|
28036
|
-
__assign$
|
|
28398
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28399
|
+
__assign$c = Object.assign || function(t) {
|
|
28037
28400
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28038
28401
|
s = arguments[i];
|
|
28039
28402
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28041,16 +28404,16 @@ var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28041
28404
|
}
|
|
28042
28405
|
return t;
|
|
28043
28406
|
};
|
|
28044
|
-
return __assign$
|
|
28407
|
+
return __assign$c.apply(this, arguments);
|
|
28045
28408
|
};
|
|
28046
|
-
var __importDefault$
|
|
28409
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28047
28410
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28048
28411
|
};
|
|
28049
28412
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
28050
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
28051
|
-
boltProtocolV4x2_transformer.default = __assign$
|
|
28413
|
+
var bolt_protocol_v4x1_transformer_1 = __importDefault$n(boltProtocolV4x1_transformer);
|
|
28414
|
+
boltProtocolV4x2_transformer.default = __assign$c({}, bolt_protocol_v4x1_transformer_1.default);
|
|
28052
28415
|
|
|
28053
|
-
var __extends$
|
|
28416
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28054
28417
|
var extendStatics = function (d, b) {
|
|
28055
28418
|
extendStatics = Object.setPrototypeOf ||
|
|
28056
28419
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28065,7 +28428,7 @@ var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28065
28428
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28066
28429
|
};
|
|
28067
28430
|
})();
|
|
28068
|
-
var __importDefault$
|
|
28431
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28069
28432
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28070
28433
|
};
|
|
28071
28434
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -28087,13 +28450,13 @@ Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
|
28087
28450
|
* See the License for the specific language governing permissions and
|
|
28088
28451
|
* limitations under the License.
|
|
28089
28452
|
*/
|
|
28090
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
28091
|
-
var neo4j_driver_core_1$
|
|
28092
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
28093
|
-
var transformer_1$
|
|
28094
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
28095
|
-
var BoltProtocol$
|
|
28096
|
-
__extends$
|
|
28453
|
+
var bolt_protocol_v4x1_1$1 = __importDefault$m(boltProtocolV4x1);
|
|
28454
|
+
var neo4j_driver_core_1$j = lib$1;
|
|
28455
|
+
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$m(boltProtocolV4x2_transformer);
|
|
28456
|
+
var transformer_1$6 = __importDefault$m(transformer);
|
|
28457
|
+
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$j.internal.constants.BOLT_PROTOCOL_V4_2;
|
|
28458
|
+
var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
28459
|
+
__extends$c(BoltProtocol, _super);
|
|
28097
28460
|
function BoltProtocol() {
|
|
28098
28461
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28099
28462
|
}
|
|
@@ -28108,7 +28471,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
28108
28471
|
get: function () {
|
|
28109
28472
|
var _this = this;
|
|
28110
28473
|
if (this._transformer === undefined) {
|
|
28111
|
-
this._transformer = new transformer_1$
|
|
28474
|
+
this._transformer = new transformer_1$6.default(Object.values(bolt_protocol_v4x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
28112
28475
|
}
|
|
28113
28476
|
return this._transformer;
|
|
28114
28477
|
},
|
|
@@ -28117,7 +28480,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
28117
28480
|
});
|
|
28118
28481
|
return BoltProtocol;
|
|
28119
28482
|
}(bolt_protocol_v4x1_1$1.default));
|
|
28120
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
28483
|
+
boltProtocolV4x2.default = BoltProtocol$6;
|
|
28121
28484
|
|
|
28122
28485
|
var boltProtocolV4x3 = {};
|
|
28123
28486
|
|
|
@@ -28141,8 +28504,8 @@ var boltProtocolV4x3_transformer = {};
|
|
|
28141
28504
|
* See the License for the specific language governing permissions and
|
|
28142
28505
|
* limitations under the License.
|
|
28143
28506
|
*/
|
|
28144
|
-
var __assign$
|
|
28145
|
-
__assign$
|
|
28507
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28508
|
+
__assign$b = Object.assign || function(t) {
|
|
28146
28509
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28147
28510
|
s = arguments[i];
|
|
28148
28511
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28150,14 +28513,14 @@ var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28150
28513
|
}
|
|
28151
28514
|
return t;
|
|
28152
28515
|
};
|
|
28153
|
-
return __assign$
|
|
28516
|
+
return __assign$b.apply(this, arguments);
|
|
28154
28517
|
};
|
|
28155
|
-
var __importDefault$
|
|
28518
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28156
28519
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28157
28520
|
};
|
|
28158
28521
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
28159
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
28160
|
-
boltProtocolV4x3_transformer.default = __assign$
|
|
28522
|
+
var bolt_protocol_v4x2_transformer_1 = __importDefault$l(boltProtocolV4x2_transformer);
|
|
28523
|
+
boltProtocolV4x3_transformer.default = __assign$b({}, bolt_protocol_v4x2_transformer_1.default);
|
|
28161
28524
|
|
|
28162
28525
|
var boltProtocolV5x0_utc_transformer = {};
|
|
28163
28526
|
|
|
@@ -28181,8 +28544,8 @@ var boltProtocolV4x4_transformer = {};
|
|
|
28181
28544
|
* See the License for the specific language governing permissions and
|
|
28182
28545
|
* limitations under the License.
|
|
28183
28546
|
*/
|
|
28184
|
-
var __assign$
|
|
28185
|
-
__assign$
|
|
28547
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28548
|
+
__assign$a = Object.assign || function(t) {
|
|
28186
28549
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28187
28550
|
s = arguments[i];
|
|
28188
28551
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28190,14 +28553,14 @@ var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28190
28553
|
}
|
|
28191
28554
|
return t;
|
|
28192
28555
|
};
|
|
28193
|
-
return __assign$
|
|
28556
|
+
return __assign$a.apply(this, arguments);
|
|
28194
28557
|
};
|
|
28195
|
-
var __importDefault$
|
|
28558
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28196
28559
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28197
28560
|
};
|
|
28198
28561
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
28199
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
28200
|
-
boltProtocolV4x4_transformer.default = __assign$
|
|
28562
|
+
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$k(boltProtocolV4x3_transformer);
|
|
28563
|
+
boltProtocolV4x4_transformer.default = __assign$a({}, bolt_protocol_v4x3_transformer_1$1.default);
|
|
28201
28564
|
|
|
28202
28565
|
/**
|
|
28203
28566
|
* Copyright (c) "Neo4j"
|
|
@@ -28233,16 +28596,16 @@ var __read$4 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28233
28596
|
}
|
|
28234
28597
|
return ar;
|
|
28235
28598
|
};
|
|
28236
|
-
var __importDefault$
|
|
28599
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28237
28600
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28238
28601
|
};
|
|
28239
28602
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
28240
28603
|
var packstream_1$1 = packstream;
|
|
28241
|
-
var neo4j_driver_core_1$
|
|
28242
|
-
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$
|
|
28604
|
+
var neo4j_driver_core_1$i = lib$1;
|
|
28605
|
+
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$j(boltProtocolV4x4_transformer);
|
|
28243
28606
|
var temporal_factory_1 = temporalFactory;
|
|
28244
28607
|
var functional_1 = functional;
|
|
28245
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
28608
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$i.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
28246
28609
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
28247
28610
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
28248
28611
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -28256,7 +28619,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
28256
28619
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
28257
28620
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
28258
28621
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
28259
|
-
var result = new neo4j_driver_core_1$
|
|
28622
|
+
var result = new neo4j_driver_core_1$i.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1$i.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);
|
|
28260
28623
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
28261
28624
|
},
|
|
28262
28625
|
toStructure: function (value) {
|
|
@@ -28270,7 +28633,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
28270
28633
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
28271
28634
|
}
|
|
28272
28635
|
var utc = epochSecond.subtract(offset);
|
|
28273
|
-
var nano = (0, neo4j_driver_core_1$
|
|
28636
|
+
var nano = (0, neo4j_driver_core_1$i.int)(value.nanosecond);
|
|
28274
28637
|
var timeZoneId = value.timeZoneId;
|
|
28275
28638
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
28276
28639
|
}
|
|
@@ -28324,9 +28687,9 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
28324
28687
|
hour12: false,
|
|
28325
28688
|
era: 'narrow'
|
|
28326
28689
|
});
|
|
28327
|
-
var utc = (0, neo4j_driver_core_1$
|
|
28690
|
+
var utc = (0, neo4j_driver_core_1$i.int)(epochSecond)
|
|
28328
28691
|
.multiply(1000)
|
|
28329
|
-
.add((0, neo4j_driver_core_1$
|
|
28692
|
+
.add((0, neo4j_driver_core_1$i.int)(nano).div(1000000))
|
|
28330
28693
|
.toNumber();
|
|
28331
28694
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
28332
28695
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -28337,7 +28700,7 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
28337
28700
|
: functional_1.identity;
|
|
28338
28701
|
}
|
|
28339
28702
|
else if (currentValue.type !== 'literal') {
|
|
28340
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
28703
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$i.int)(currentValue.value);
|
|
28341
28704
|
}
|
|
28342
28705
|
return obj;
|
|
28343
28706
|
}, {});
|
|
@@ -28354,17 +28717,17 @@ function createDateTimeWithOffsetTransformer(config) {
|
|
|
28354
28717
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
28355
28718
|
toStructure: function (value) {
|
|
28356
28719
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
28357
|
-
var nano = (0, neo4j_driver_core_1$
|
|
28358
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
28720
|
+
var nano = (0, neo4j_driver_core_1$i.int)(value.nanosecond);
|
|
28721
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$i.int)(value.timeZoneOffsetSeconds);
|
|
28359
28722
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
28360
28723
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
28361
28724
|
},
|
|
28362
28725
|
fromStructure: function (struct) {
|
|
28363
28726
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
28364
28727
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
28365
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
28728
|
+
var epochSecond = (0, neo4j_driver_core_1$i.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
28366
28729
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
28367
|
-
var result = new neo4j_driver_core_1$
|
|
28730
|
+
var result = new neo4j_driver_core_1$i.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
|
|
28368
28731
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
28369
28732
|
}
|
|
28370
28733
|
});
|
|
@@ -28380,7 +28743,7 @@ function convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {
|
|
|
28380
28743
|
for (var prop in obj) {
|
|
28381
28744
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
28382
28745
|
var value = obj[prop];
|
|
28383
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
28746
|
+
clone[prop] = (0, neo4j_driver_core_1$i.isInt)(value) ? convert(value) : value;
|
|
28384
28747
|
}
|
|
28385
28748
|
}
|
|
28386
28749
|
Object.freeze(clone);
|
|
@@ -28391,7 +28754,7 @@ boltProtocolV5x0_utc_transformer.default = {
|
|
|
28391
28754
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
28392
28755
|
};
|
|
28393
28756
|
|
|
28394
|
-
var __extends$
|
|
28757
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28395
28758
|
var extendStatics = function (d, b) {
|
|
28396
28759
|
extendStatics = Object.setPrototypeOf ||
|
|
28397
28760
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28406,8 +28769,8 @@ var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28406
28769
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28407
28770
|
};
|
|
28408
28771
|
})();
|
|
28409
|
-
var __assign$
|
|
28410
|
-
__assign$
|
|
28772
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28773
|
+
__assign$9 = Object.assign || function(t) {
|
|
28411
28774
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28412
28775
|
s = arguments[i];
|
|
28413
28776
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28415,9 +28778,9 @@ var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28415
28778
|
}
|
|
28416
28779
|
return t;
|
|
28417
28780
|
};
|
|
28418
|
-
return __assign$
|
|
28781
|
+
return __assign$9.apply(this, arguments);
|
|
28419
28782
|
};
|
|
28420
|
-
var __importDefault$
|
|
28783
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28421
28784
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28422
28785
|
};
|
|
28423
28786
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -28439,17 +28802,17 @@ Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
|
28439
28802
|
* See the License for the specific language governing permissions and
|
|
28440
28803
|
* limitations under the License.
|
|
28441
28804
|
*/
|
|
28442
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
28443
|
-
var request_message_1$
|
|
28444
|
-
var stream_observers_1$
|
|
28805
|
+
var bolt_protocol_v4x2_1$1 = __importDefault$i(boltProtocolV4x2);
|
|
28806
|
+
var request_message_1$5 = __importDefault$i(requestMessage);
|
|
28807
|
+
var stream_observers_1$5 = streamObservers;
|
|
28445
28808
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
28446
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
28447
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
28448
|
-
var transformer_1$
|
|
28449
|
-
var neo4j_driver_core_1$
|
|
28450
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
28451
|
-
var BoltProtocol$
|
|
28452
|
-
__extends$
|
|
28809
|
+
var bolt_protocol_v4x3_transformer_1 = __importDefault$i(boltProtocolV4x3_transformer);
|
|
28810
|
+
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$i(boltProtocolV5x0_utc_transformer);
|
|
28811
|
+
var transformer_1$5 = __importDefault$i(transformer);
|
|
28812
|
+
var neo4j_driver_core_1$h = lib$1;
|
|
28813
|
+
var Bookmarks$2 = neo4j_driver_core_1$h.internal.bookmarks.Bookmarks, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1$h.internal.constants.BOLT_PROTOCOL_V4_3;
|
|
28814
|
+
var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
28815
|
+
__extends$b(BoltProtocol, _super);
|
|
28453
28816
|
function BoltProtocol() {
|
|
28454
28817
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28455
28818
|
}
|
|
@@ -28464,7 +28827,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28464
28827
|
get: function () {
|
|
28465
28828
|
var _this = this;
|
|
28466
28829
|
if (this._transformer === undefined) {
|
|
28467
|
-
this._transformer = new transformer_1$
|
|
28830
|
+
this._transformer = new transformer_1$5.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
28468
28831
|
}
|
|
28469
28832
|
return this._transformer;
|
|
28470
28833
|
},
|
|
@@ -28485,13 +28848,13 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28485
28848
|
*/
|
|
28486
28849
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
28487
28850
|
var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
28488
|
-
var observer = new stream_observers_1$
|
|
28851
|
+
var observer = new stream_observers_1$5.RouteObserver({
|
|
28489
28852
|
onProtocolError: this._onProtocolError,
|
|
28490
28853
|
onError: onError,
|
|
28491
28854
|
onCompleted: onCompleted
|
|
28492
28855
|
});
|
|
28493
28856
|
var bookmarks = sessionContext.bookmarks || Bookmarks$2.empty();
|
|
28494
|
-
this.write(request_message_1$
|
|
28857
|
+
this.write(request_message_1$5.default.route(routingContext, bookmarks.values(), databaseName), observer, true);
|
|
28495
28858
|
return observer;
|
|
28496
28859
|
};
|
|
28497
28860
|
/**
|
|
@@ -28507,8 +28870,8 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28507
28870
|
*/
|
|
28508
28871
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
28509
28872
|
var _this = this;
|
|
28510
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
28511
|
-
var observer = new stream_observers_1$
|
|
28873
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
28874
|
+
var observer = new stream_observers_1$5.LoginObserver({
|
|
28512
28875
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
28513
28876
|
onCompleted: function (metadata) {
|
|
28514
28877
|
if (metadata.patch_bolt !== undefined) {
|
|
@@ -28519,7 +28882,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28519
28882
|
});
|
|
28520
28883
|
// passing notification filter on this protocol version throws an error
|
|
28521
28884
|
(0, bolt_protocol_util_1$3.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28522
|
-
this.write(request_message_1$
|
|
28885
|
+
this.write(request_message_1$5.default.hello(userAgent, authToken, this._serversideRouting, ['utc']), observer, true);
|
|
28523
28886
|
return observer;
|
|
28524
28887
|
};
|
|
28525
28888
|
/**
|
|
@@ -28533,15 +28896,15 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28533
28896
|
};
|
|
28534
28897
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
28535
28898
|
var _this = this;
|
|
28536
|
-
this._transformer = new transformer_1$
|
|
28899
|
+
this._transformer = new transformer_1$5.default(Object.values(__assign$9(__assign$9({}, bolt_protocol_v4x3_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1$2.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
28537
28900
|
};
|
|
28538
28901
|
return BoltProtocol;
|
|
28539
28902
|
}(bolt_protocol_v4x2_1$1.default));
|
|
28540
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
28903
|
+
boltProtocolV4x3.default = BoltProtocol$5;
|
|
28541
28904
|
|
|
28542
28905
|
var boltProtocolV4x4 = {};
|
|
28543
28906
|
|
|
28544
|
-
var __extends$
|
|
28907
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28545
28908
|
var extendStatics = function (d, b) {
|
|
28546
28909
|
extendStatics = Object.setPrototypeOf ||
|
|
28547
28910
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28556,8 +28919,8 @@ var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28556
28919
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28557
28920
|
};
|
|
28558
28921
|
})();
|
|
28559
|
-
var __assign$
|
|
28560
|
-
__assign$
|
|
28922
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28923
|
+
__assign$8 = Object.assign || function(t) {
|
|
28561
28924
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28562
28925
|
s = arguments[i];
|
|
28563
28926
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28565,9 +28928,9 @@ var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28565
28928
|
}
|
|
28566
28929
|
return t;
|
|
28567
28930
|
};
|
|
28568
|
-
return __assign$
|
|
28931
|
+
return __assign$8.apply(this, arguments);
|
|
28569
28932
|
};
|
|
28570
|
-
var __importDefault$
|
|
28933
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28571
28934
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28572
28935
|
};
|
|
28573
28936
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -28589,17 +28952,17 @@ Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
|
28589
28952
|
* See the License for the specific language governing permissions and
|
|
28590
28953
|
* limitations under the License.
|
|
28591
28954
|
*/
|
|
28592
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
28593
|
-
var neo4j_driver_core_1$
|
|
28594
|
-
var request_message_1$
|
|
28595
|
-
var stream_observers_1$
|
|
28955
|
+
var bolt_protocol_v4x3_1$1 = __importDefault$h(boltProtocolV4x3);
|
|
28956
|
+
var neo4j_driver_core_1$g = lib$1;
|
|
28957
|
+
var request_message_1$4 = __importDefault$h(requestMessage);
|
|
28958
|
+
var stream_observers_1$4 = streamObservers;
|
|
28596
28959
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
28597
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
28598
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
28599
|
-
var transformer_1$
|
|
28600
|
-
var _a$4 = neo4j_driver_core_1$
|
|
28601
|
-
var BoltProtocol$
|
|
28602
|
-
__extends$
|
|
28960
|
+
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$h(boltProtocolV4x4_transformer);
|
|
28961
|
+
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$h(boltProtocolV5x0_utc_transformer);
|
|
28962
|
+
var transformer_1$4 = __importDefault$h(transformer);
|
|
28963
|
+
var _a$4 = neo4j_driver_core_1$g.internal.constants, BOLT_PROTOCOL_V4_4$2 = _a$4.BOLT_PROTOCOL_V4_4, FETCH_ALL$1 = _a$4.FETCH_ALL, Bookmarks$1 = neo4j_driver_core_1$g.internal.bookmarks.Bookmarks;
|
|
28964
|
+
var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
28965
|
+
__extends$a(BoltProtocol, _super);
|
|
28603
28966
|
function BoltProtocol() {
|
|
28604
28967
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28605
28968
|
}
|
|
@@ -28614,7 +28977,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28614
28977
|
get: function () {
|
|
28615
28978
|
var _this = this;
|
|
28616
28979
|
if (this._transformer === undefined) {
|
|
28617
|
-
this._transformer = new transformer_1$
|
|
28980
|
+
this._transformer = new transformer_1$4.default(Object.values(bolt_protocol_v4x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
28618
28981
|
}
|
|
28619
28982
|
return this._transformer;
|
|
28620
28983
|
},
|
|
@@ -28635,18 +28998,18 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28635
28998
|
*/
|
|
28636
28999
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
28637
29000
|
var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.impersonatedUser, impersonatedUser = _d === void 0 ? null : _d, _e = _a.sessionContext, sessionContext = _e === void 0 ? {} : _e, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
28638
|
-
var observer = new stream_observers_1$
|
|
29001
|
+
var observer = new stream_observers_1$4.RouteObserver({
|
|
28639
29002
|
onProtocolError: this._onProtocolError,
|
|
28640
29003
|
onError: onError,
|
|
28641
29004
|
onCompleted: onCompleted
|
|
28642
29005
|
});
|
|
28643
29006
|
var bookmarks = sessionContext.bookmarks || Bookmarks$1.empty();
|
|
28644
|
-
this.write(request_message_1$
|
|
29007
|
+
this.write(request_message_1$4.default.routeV4x4(routingContext, bookmarks.values(), { databaseName: databaseName, impersonatedUser: impersonatedUser }), observer, true);
|
|
28645
29008
|
return observer;
|
|
28646
29009
|
};
|
|
28647
29010
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
28648
29011
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL$1 : _e, _f = _b.highRecordWatermark, highRecordWatermark = _f === void 0 ? Number.MAX_VALUE : _f, _g = _b.lowRecordWatermark, lowRecordWatermark = _g === void 0 ? Number.MAX_VALUE : _g;
|
|
28649
|
-
var observer = new stream_observers_1$
|
|
29012
|
+
var observer = new stream_observers_1$4.ResultStreamObserver({
|
|
28650
29013
|
server: this._server,
|
|
28651
29014
|
reactive: reactive,
|
|
28652
29015
|
fetchSize: fetchSize,
|
|
@@ -28664,7 +29027,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28664
29027
|
// passing notification filter on this protocol version throws an error
|
|
28665
29028
|
(0, bolt_protocol_util_1$2.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28666
29029
|
var flushRun = reactive;
|
|
28667
|
-
this.write(request_message_1$
|
|
29030
|
+
this.write(request_message_1$4.default.runWithMetadata(query, parameters, {
|
|
28668
29031
|
bookmarks: bookmarks,
|
|
28669
29032
|
txConfig: txConfig,
|
|
28670
29033
|
database: database,
|
|
@@ -28672,13 +29035,13 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28672
29035
|
impersonatedUser: impersonatedUser
|
|
28673
29036
|
}), observer, flushRun && flush);
|
|
28674
29037
|
if (!reactive) {
|
|
28675
|
-
this.write(request_message_1$
|
|
29038
|
+
this.write(request_message_1$4.default.pull({ n: fetchSize }), observer, flush);
|
|
28676
29039
|
}
|
|
28677
29040
|
return observer;
|
|
28678
29041
|
};
|
|
28679
29042
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
28680
29043
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
|
|
28681
|
-
var observer = new stream_observers_1$
|
|
29044
|
+
var observer = new stream_observers_1$4.ResultStreamObserver({
|
|
28682
29045
|
server: this._server,
|
|
28683
29046
|
beforeError: beforeError,
|
|
28684
29047
|
afterError: afterError,
|
|
@@ -28688,16 +29051,16 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28688
29051
|
observer.prepareToHandleSingleResponse();
|
|
28689
29052
|
// passing notification filter on this protocol version throws an error
|
|
28690
29053
|
(0, bolt_protocol_util_1$2.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28691
|
-
this.write(request_message_1$
|
|
29054
|
+
this.write(request_message_1$4.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser }), observer, true);
|
|
28692
29055
|
return observer;
|
|
28693
29056
|
};
|
|
28694
29057
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
28695
29058
|
var _this = this;
|
|
28696
|
-
this._transformer = new transformer_1$
|
|
29059
|
+
this._transformer = new transformer_1$4.default(Object.values(__assign$8(__assign$8({}, bolt_protocol_v4x4_transformer_1$1.default), bolt_protocol_v5x0_utc_transformer_1$1.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
28697
29060
|
};
|
|
28698
29061
|
return BoltProtocol;
|
|
28699
29062
|
}(bolt_protocol_v4x3_1$1.default));
|
|
28700
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
29063
|
+
boltProtocolV4x4.default = BoltProtocol$4;
|
|
28701
29064
|
|
|
28702
29065
|
var boltProtocolV5x0 = {};
|
|
28703
29066
|
|
|
@@ -28721,8 +29084,8 @@ var boltProtocolV5x0_transformer = {};
|
|
|
28721
29084
|
* See the License for the specific language governing permissions and
|
|
28722
29085
|
* limitations under the License.
|
|
28723
29086
|
*/
|
|
28724
|
-
var __assign$
|
|
28725
|
-
__assign$
|
|
29087
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29088
|
+
__assign$7 = Object.assign || function(t) {
|
|
28726
29089
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28727
29090
|
s = arguments[i];
|
|
28728
29091
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28730,7 +29093,7 @@ var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28730
29093
|
}
|
|
28731
29094
|
return t;
|
|
28732
29095
|
};
|
|
28733
|
-
return __assign$
|
|
29096
|
+
return __assign$7.apply(this, arguments);
|
|
28734
29097
|
};
|
|
28735
29098
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
28736
29099
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -28748,14 +29111,14 @@ var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28748
29111
|
}
|
|
28749
29112
|
return ar;
|
|
28750
29113
|
};
|
|
28751
|
-
var __importDefault$
|
|
29114
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28752
29115
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28753
29116
|
};
|
|
28754
29117
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
28755
29118
|
var packstream_1 = packstream;
|
|
28756
|
-
var neo4j_driver_core_1$
|
|
28757
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
28758
|
-
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$
|
|
29119
|
+
var neo4j_driver_core_1$f = lib$1;
|
|
29120
|
+
var bolt_protocol_v4x4_transformer_1 = __importDefault$g(boltProtocolV4x4_transformer);
|
|
29121
|
+
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$g(boltProtocolV5x0_utc_transformer);
|
|
28759
29122
|
var NODE_STRUCT_SIZE = 4;
|
|
28760
29123
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
28761
29124
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -28770,7 +29133,7 @@ function createNodeTransformer(config) {
|
|
|
28770
29133
|
fromStructure: function (struct) {
|
|
28771
29134
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
28772
29135
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
28773
|
-
return new neo4j_driver_core_1$
|
|
29136
|
+
return new neo4j_driver_core_1$f.Node(identity, lables, properties, elementId);
|
|
28774
29137
|
}
|
|
28775
29138
|
});
|
|
28776
29139
|
}
|
|
@@ -28785,7 +29148,7 @@ function createRelationshipTransformer(config) {
|
|
|
28785
29148
|
fromStructure: function (struct) {
|
|
28786
29149
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
28787
29150
|
var _a = __read$3(struct.fields, 8), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4], elementId = _a[5], startNodeElementId = _a[6], endNodeElementId = _a[7];
|
|
28788
|
-
return new neo4j_driver_core_1$
|
|
29151
|
+
return new neo4j_driver_core_1$f.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
28789
29152
|
}
|
|
28790
29153
|
});
|
|
28791
29154
|
}
|
|
@@ -28800,13 +29163,13 @@ function createUnboundRelationshipTransformer(config) {
|
|
|
28800
29163
|
fromStructure: function (struct) {
|
|
28801
29164
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
28802
29165
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
28803
|
-
return new neo4j_driver_core_1$
|
|
29166
|
+
return new neo4j_driver_core_1$f.UnboundRelationship(identity, type, properties, elementId);
|
|
28804
29167
|
}
|
|
28805
29168
|
});
|
|
28806
29169
|
}
|
|
28807
|
-
boltProtocolV5x0_transformer.default = __assign$
|
|
29170
|
+
boltProtocolV5x0_transformer.default = __assign$7(__assign$7(__assign$7({}, bolt_protocol_v4x4_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1.default), { createNodeTransformer: createNodeTransformer, createRelationshipTransformer: createRelationshipTransformer, createUnboundRelationshipTransformer: createUnboundRelationshipTransformer });
|
|
28808
29171
|
|
|
28809
|
-
var __extends$
|
|
29172
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28810
29173
|
var extendStatics = function (d, b) {
|
|
28811
29174
|
extendStatics = Object.setPrototypeOf ||
|
|
28812
29175
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28821,7 +29184,7 @@ var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28821
29184
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28822
29185
|
};
|
|
28823
29186
|
})();
|
|
28824
|
-
var __importDefault$
|
|
29187
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28825
29188
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28826
29189
|
};
|
|
28827
29190
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -28843,16 +29206,16 @@ Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
|
28843
29206
|
* See the License for the specific language governing permissions and
|
|
28844
29207
|
* limitations under the License.
|
|
28845
29208
|
*/
|
|
28846
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
29209
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$f(boltProtocolV4x4);
|
|
28847
29210
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
28848
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
28849
|
-
var transformer_1$
|
|
28850
|
-
var request_message_1$
|
|
28851
|
-
var stream_observers_1$
|
|
28852
|
-
var neo4j_driver_core_1$
|
|
28853
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
28854
|
-
var BoltProtocol$
|
|
28855
|
-
__extends$
|
|
29211
|
+
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$f(boltProtocolV5x0_transformer);
|
|
29212
|
+
var transformer_1$3 = __importDefault$f(transformer);
|
|
29213
|
+
var request_message_1$3 = __importDefault$f(requestMessage);
|
|
29214
|
+
var stream_observers_1$3 = streamObservers;
|
|
29215
|
+
var neo4j_driver_core_1$e = lib$1;
|
|
29216
|
+
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_0;
|
|
29217
|
+
var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
29218
|
+
__extends$9(BoltProtocol, _super);
|
|
28856
29219
|
function BoltProtocol() {
|
|
28857
29220
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28858
29221
|
}
|
|
@@ -28867,7 +29230,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
28867
29230
|
get: function () {
|
|
28868
29231
|
var _this = this;
|
|
28869
29232
|
if (this._transformer === undefined) {
|
|
28870
|
-
this._transformer = new transformer_1$
|
|
29233
|
+
this._transformer = new transformer_1$3.default(Object.values(bolt_protocol_v5x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
28871
29234
|
}
|
|
28872
29235
|
return this._transformer;
|
|
28873
29236
|
},
|
|
@@ -28887,19 +29250,19 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
28887
29250
|
*/
|
|
28888
29251
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
28889
29252
|
var _this = this;
|
|
28890
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
28891
|
-
var observer = new stream_observers_1$
|
|
29253
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
29254
|
+
var observer = new stream_observers_1$3.LoginObserver({
|
|
28892
29255
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
28893
29256
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
|
|
28894
29257
|
});
|
|
28895
29258
|
// passing notification filter on this protocol version throws an error
|
|
28896
29259
|
(0, bolt_protocol_util_1$1.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28897
|
-
this.write(request_message_1$
|
|
29260
|
+
this.write(request_message_1$3.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
|
|
28898
29261
|
return observer;
|
|
28899
29262
|
};
|
|
28900
29263
|
return BoltProtocol;
|
|
28901
29264
|
}(bolt_protocol_v4x4_1$1.default));
|
|
28902
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
29265
|
+
boltProtocolV5x0.default = BoltProtocol$3;
|
|
28903
29266
|
|
|
28904
29267
|
var boltProtocolV5x1 = {};
|
|
28905
29268
|
|
|
@@ -28923,8 +29286,8 @@ var boltProtocolV5x1_transformer = {};
|
|
|
28923
29286
|
* See the License for the specific language governing permissions and
|
|
28924
29287
|
* limitations under the License.
|
|
28925
29288
|
*/
|
|
28926
|
-
var __assign$
|
|
28927
|
-
__assign$
|
|
29289
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29290
|
+
__assign$6 = Object.assign || function(t) {
|
|
28928
29291
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28929
29292
|
s = arguments[i];
|
|
28930
29293
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28932,16 +29295,16 @@ var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28932
29295
|
}
|
|
28933
29296
|
return t;
|
|
28934
29297
|
};
|
|
28935
|
-
return __assign$
|
|
29298
|
+
return __assign$6.apply(this, arguments);
|
|
28936
29299
|
};
|
|
28937
|
-
var __importDefault$
|
|
29300
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28938
29301
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28939
29302
|
};
|
|
28940
29303
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
28941
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
28942
|
-
boltProtocolV5x1_transformer.default = __assign$
|
|
29304
|
+
var bolt_protocol_v5x0_transformer_1 = __importDefault$e(boltProtocolV5x0_transformer);
|
|
29305
|
+
boltProtocolV5x1_transformer.default = __assign$6({}, bolt_protocol_v5x0_transformer_1.default);
|
|
28943
29306
|
|
|
28944
|
-
var __extends$
|
|
29307
|
+
var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28945
29308
|
var extendStatics = function (d, b) {
|
|
28946
29309
|
extendStatics = Object.setPrototypeOf ||
|
|
28947
29310
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28956,8 +29319,8 @@ var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28956
29319
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28957
29320
|
};
|
|
28958
29321
|
})();
|
|
28959
|
-
var __assign$
|
|
28960
|
-
__assign$
|
|
29322
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29323
|
+
__assign$5 = Object.assign || function(t) {
|
|
28961
29324
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28962
29325
|
s = arguments[i];
|
|
28963
29326
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28965,9 +29328,9 @@ var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28965
29328
|
}
|
|
28966
29329
|
return t;
|
|
28967
29330
|
};
|
|
28968
|
-
return __assign$
|
|
29331
|
+
return __assign$5.apply(this, arguments);
|
|
28969
29332
|
};
|
|
28970
|
-
var __importDefault$
|
|
29333
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28971
29334
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28972
29335
|
};
|
|
28973
29336
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -28989,16 +29352,16 @@ Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
|
28989
29352
|
* See the License for the specific language governing permissions and
|
|
28990
29353
|
* limitations under the License.
|
|
28991
29354
|
*/
|
|
28992
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
29355
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$d(boltProtocolV5x0);
|
|
28993
29356
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
28994
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
28995
|
-
var transformer_1$
|
|
28996
|
-
var request_message_1$
|
|
28997
|
-
var stream_observers_1$
|
|
28998
|
-
var neo4j_driver_core_1$
|
|
28999
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
29000
|
-
var BoltProtocol$
|
|
29001
|
-
__extends$
|
|
29357
|
+
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$d(boltProtocolV5x1_transformer);
|
|
29358
|
+
var transformer_1$2 = __importDefault$d(transformer);
|
|
29359
|
+
var request_message_1$2 = __importDefault$d(requestMessage);
|
|
29360
|
+
var stream_observers_1$2 = streamObservers;
|
|
29361
|
+
var neo4j_driver_core_1$d = lib$1;
|
|
29362
|
+
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$d.internal.constants.BOLT_PROTOCOL_V5_1;
|
|
29363
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
29364
|
+
__extends$8(BoltProtocol, _super);
|
|
29002
29365
|
function BoltProtocol() {
|
|
29003
29366
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29004
29367
|
}
|
|
@@ -29013,7 +29376,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29013
29376
|
get: function () {
|
|
29014
29377
|
var _this = this;
|
|
29015
29378
|
if (this._transformer === undefined) {
|
|
29016
|
-
this._transformer = new transformer_1$
|
|
29379
|
+
this._transformer = new transformer_1$2.default(Object.values(bolt_protocol_v5x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29017
29380
|
}
|
|
29018
29381
|
return this._transformer;
|
|
29019
29382
|
},
|
|
@@ -29040,9 +29403,9 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29040
29403
|
*/
|
|
29041
29404
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
29042
29405
|
var _this = this;
|
|
29043
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
29406
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
29044
29407
|
var state = {};
|
|
29045
|
-
var observer = new stream_observers_1$
|
|
29408
|
+
var observer = new stream_observers_1$2.LoginObserver({
|
|
29046
29409
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
29047
29410
|
onCompleted: function (metadata) {
|
|
29048
29411
|
state.metadata = metadata;
|
|
@@ -29051,10 +29414,10 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29051
29414
|
});
|
|
29052
29415
|
// passing notification filter on this protocol version throws an error
|
|
29053
29416
|
(0, bolt_protocol_util_1.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
29054
|
-
this.write(request_message_1$
|
|
29417
|
+
this.write(request_message_1$2.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
29055
29418
|
return this.logon({
|
|
29056
29419
|
authToken: authToken,
|
|
29057
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
29420
|
+
onComplete: function (metadata) { return onComplete(__assign$5(__assign$5({}, metadata), state.metadata)); },
|
|
29058
29421
|
onError: onError,
|
|
29059
29422
|
flush: true
|
|
29060
29423
|
});
|
|
@@ -29073,11 +29436,11 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29073
29436
|
BoltProtocol.prototype.logon = function (_a) {
|
|
29074
29437
|
var _this = this;
|
|
29075
29438
|
var _b = _a === void 0 ? {} : _a, authToken = _b.authToken, onComplete = _b.onComplete, onError = _b.onError, flush = _b.flush;
|
|
29076
|
-
var observer = new stream_observers_1$
|
|
29439
|
+
var observer = new stream_observers_1$2.LoginObserver({
|
|
29077
29440
|
onCompleted: function () { return _this._onLoginCompleted(null, authToken, onComplete); },
|
|
29078
29441
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
29079
29442
|
});
|
|
29080
|
-
this.write(request_message_1$
|
|
29443
|
+
this.write(request_message_1$2.default.logon(authToken), observer, flush);
|
|
29081
29444
|
return observer;
|
|
29082
29445
|
};
|
|
29083
29446
|
/**
|
|
@@ -29092,16 +29455,16 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29092
29455
|
*/
|
|
29093
29456
|
BoltProtocol.prototype.logoff = function (_a) {
|
|
29094
29457
|
var _b = _a === void 0 ? {} : _a, onComplete = _b.onComplete, onError = _b.onError, flush = _b.flush;
|
|
29095
|
-
var observer = new stream_observers_1$
|
|
29458
|
+
var observer = new stream_observers_1$2.LogoffObserver({
|
|
29096
29459
|
onCompleted: onComplete,
|
|
29097
29460
|
onError: onError
|
|
29098
29461
|
});
|
|
29099
|
-
this.write(request_message_1$
|
|
29462
|
+
this.write(request_message_1$2.default.logoff(), observer, flush);
|
|
29100
29463
|
return observer;
|
|
29101
29464
|
};
|
|
29102
29465
|
return BoltProtocol;
|
|
29103
29466
|
}(bolt_protocol_v5x0_1$1.default));
|
|
29104
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
29467
|
+
boltProtocolV5x1.default = BoltProtocol$2;
|
|
29105
29468
|
|
|
29106
29469
|
var boltProtocolV5x2 = {};
|
|
29107
29470
|
|
|
@@ -29125,8 +29488,8 @@ var boltProtocolV5x2_transformer = {};
|
|
|
29125
29488
|
* See the License for the specific language governing permissions and
|
|
29126
29489
|
* limitations under the License.
|
|
29127
29490
|
*/
|
|
29128
|
-
var __assign$
|
|
29129
|
-
__assign$
|
|
29491
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29492
|
+
__assign$4 = Object.assign || function(t) {
|
|
29130
29493
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29131
29494
|
s = arguments[i];
|
|
29132
29495
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29134,16 +29497,16 @@ var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29134
29497
|
}
|
|
29135
29498
|
return t;
|
|
29136
29499
|
};
|
|
29137
|
-
return __assign$
|
|
29500
|
+
return __assign$4.apply(this, arguments);
|
|
29138
29501
|
};
|
|
29139
|
-
var __importDefault$
|
|
29502
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29140
29503
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29141
29504
|
};
|
|
29142
29505
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
29143
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
29144
|
-
boltProtocolV5x2_transformer.default = __assign$
|
|
29506
|
+
var bolt_protocol_v5x1_transformer_1 = __importDefault$c(boltProtocolV5x1_transformer);
|
|
29507
|
+
boltProtocolV5x2_transformer.default = __assign$4({}, bolt_protocol_v5x1_transformer_1.default);
|
|
29145
29508
|
|
|
29146
|
-
var __extends$
|
|
29509
|
+
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29147
29510
|
var extendStatics = function (d, b) {
|
|
29148
29511
|
extendStatics = Object.setPrototypeOf ||
|
|
29149
29512
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29158,8 +29521,8 @@ var __extends$6 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29158
29521
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29159
29522
|
};
|
|
29160
29523
|
})();
|
|
29161
|
-
var __assign$
|
|
29162
|
-
__assign$
|
|
29524
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29525
|
+
__assign$3 = Object.assign || function(t) {
|
|
29163
29526
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29164
29527
|
s = arguments[i];
|
|
29165
29528
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29167,9 +29530,9 @@ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29167
29530
|
}
|
|
29168
29531
|
return t;
|
|
29169
29532
|
};
|
|
29170
|
-
return __assign$
|
|
29533
|
+
return __assign$3.apply(this, arguments);
|
|
29171
29534
|
};
|
|
29172
|
-
var __importDefault$
|
|
29535
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29173
29536
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29174
29537
|
};
|
|
29175
29538
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -29191,15 +29554,15 @@ Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
|
29191
29554
|
* See the License for the specific language governing permissions and
|
|
29192
29555
|
* limitations under the License.
|
|
29193
29556
|
*/
|
|
29194
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
29195
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
29196
|
-
var transformer_1 = __importDefault$
|
|
29197
|
-
var request_message_1 = __importDefault$
|
|
29198
|
-
var stream_observers_1 = streamObservers;
|
|
29199
|
-
var neo4j_driver_core_1$
|
|
29200
|
-
var _a$3 = neo4j_driver_core_1$
|
|
29201
|
-
var BoltProtocol = /** @class */ (function (_super) {
|
|
29202
|
-
__extends$
|
|
29557
|
+
var bolt_protocol_v5x1_1$1 = __importDefault$b(boltProtocolV5x1);
|
|
29558
|
+
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$b(boltProtocolV5x2_transformer);
|
|
29559
|
+
var transformer_1$1 = __importDefault$b(transformer);
|
|
29560
|
+
var request_message_1$1 = __importDefault$b(requestMessage);
|
|
29561
|
+
var stream_observers_1$1 = streamObservers;
|
|
29562
|
+
var neo4j_driver_core_1$c = lib$1;
|
|
29563
|
+
var _a$3 = neo4j_driver_core_1$c.internal.constants, BOLT_PROTOCOL_V5_2 = _a$3.BOLT_PROTOCOL_V5_2, FETCH_ALL = _a$3.FETCH_ALL;
|
|
29564
|
+
var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
29565
|
+
__extends$7(BoltProtocol, _super);
|
|
29203
29566
|
function BoltProtocol() {
|
|
29204
29567
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29205
29568
|
}
|
|
@@ -29214,7 +29577,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29214
29577
|
get: function () {
|
|
29215
29578
|
var _this = this;
|
|
29216
29579
|
if (this._transformer === undefined) {
|
|
29217
|
-
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x2_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29580
|
+
this._transformer = new transformer_1$1.default(Object.values(bolt_protocol_v5x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29218
29581
|
}
|
|
29219
29582
|
return this._transformer;
|
|
29220
29583
|
},
|
|
@@ -29233,6 +29596,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29233
29596
|
*
|
|
29234
29597
|
* @param {Object} args The params
|
|
29235
29598
|
* @param {string} args.userAgent The user agent
|
|
29599
|
+
* @param {string} args.boltAgent The bolt agent
|
|
29236
29600
|
* @param {any} args.authToken The auth token
|
|
29237
29601
|
* @param {NotificationFilter} args.notificationFilter The notification filters.
|
|
29238
29602
|
* @param {function(error)} args.onError On error callback
|
|
@@ -29241,26 +29605,28 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29241
29605
|
*/
|
|
29242
29606
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
29243
29607
|
var _this = this;
|
|
29244
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
29608
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
29245
29609
|
var state = {};
|
|
29246
|
-
var observer = new stream_observers_1.LoginObserver({
|
|
29610
|
+
var observer = new stream_observers_1$1.LoginObserver({
|
|
29247
29611
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
29248
29612
|
onCompleted: function (metadata) {
|
|
29249
29613
|
state.metadata = metadata;
|
|
29250
29614
|
return _this._onLoginCompleted(metadata);
|
|
29251
29615
|
}
|
|
29252
29616
|
});
|
|
29253
|
-
this.write(
|
|
29617
|
+
this.write(
|
|
29618
|
+
// if useragent is null then for all versions before 5.3 it should be bolt agent by default
|
|
29619
|
+
request_message_1$1.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
29254
29620
|
return this.logon({
|
|
29255
29621
|
authToken: authToken,
|
|
29256
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
29622
|
+
onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
|
|
29257
29623
|
onError: onError,
|
|
29258
29624
|
flush: true
|
|
29259
29625
|
});
|
|
29260
29626
|
};
|
|
29261
29627
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
29262
29628
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
|
|
29263
|
-
var observer = new stream_observers_1.ResultStreamObserver({
|
|
29629
|
+
var observer = new stream_observers_1$1.ResultStreamObserver({
|
|
29264
29630
|
server: this._server,
|
|
29265
29631
|
beforeError: beforeError,
|
|
29266
29632
|
afterError: afterError,
|
|
@@ -29268,12 +29634,12 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29268
29634
|
afterComplete: afterComplete
|
|
29269
29635
|
});
|
|
29270
29636
|
observer.prepareToHandleSingleResponse();
|
|
29271
|
-
this.write(request_message_1.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser, notificationFilter: notificationFilter }), observer, true);
|
|
29637
|
+
this.write(request_message_1$1.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser, notificationFilter: notificationFilter }), observer, true);
|
|
29272
29638
|
return observer;
|
|
29273
29639
|
};
|
|
29274
29640
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
29275
29641
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL : _e, _f = _b.highRecordWatermark, highRecordWatermark = _f === void 0 ? Number.MAX_VALUE : _f, _g = _b.lowRecordWatermark, lowRecordWatermark = _g === void 0 ? Number.MAX_VALUE : _g;
|
|
29276
|
-
var observer = new stream_observers_1.ResultStreamObserver({
|
|
29642
|
+
var observer = new stream_observers_1$1.ResultStreamObserver({
|
|
29277
29643
|
server: this._server,
|
|
29278
29644
|
reactive: reactive,
|
|
29279
29645
|
fetchSize: fetchSize,
|
|
@@ -29289,7 +29655,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29289
29655
|
lowRecordWatermark: lowRecordWatermark
|
|
29290
29656
|
});
|
|
29291
29657
|
var flushRun = reactive;
|
|
29292
|
-
this.write(request_message_1.default.runWithMetadata(query, parameters, {
|
|
29658
|
+
this.write(request_message_1$1.default.runWithMetadata(query, parameters, {
|
|
29293
29659
|
bookmarks: bookmarks,
|
|
29294
29660
|
txConfig: txConfig,
|
|
29295
29661
|
database: database,
|
|
@@ -29298,13 +29664,165 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29298
29664
|
notificationFilter: notificationFilter
|
|
29299
29665
|
}), observer, flushRun && flush);
|
|
29300
29666
|
if (!reactive) {
|
|
29301
|
-
this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);
|
|
29667
|
+
this.write(request_message_1$1.default.pull({ n: fetchSize }), observer, flush);
|
|
29302
29668
|
}
|
|
29303
29669
|
return observer;
|
|
29304
29670
|
};
|
|
29305
29671
|
return BoltProtocol;
|
|
29306
29672
|
}(bolt_protocol_v5x1_1$1.default));
|
|
29307
|
-
boltProtocolV5x2.default = BoltProtocol;
|
|
29673
|
+
boltProtocolV5x2.default = BoltProtocol$1;
|
|
29674
|
+
|
|
29675
|
+
var boltProtocolV5x3 = {};
|
|
29676
|
+
|
|
29677
|
+
var boltProtocolV5x3_transformer = {};
|
|
29678
|
+
|
|
29679
|
+
/**
|
|
29680
|
+
* Copyright (c) "Neo4j"
|
|
29681
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
29682
|
+
*
|
|
29683
|
+
* This file is part of Neo4j.
|
|
29684
|
+
*
|
|
29685
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29686
|
+
* you may not use this file except in compliance with the License.
|
|
29687
|
+
* You may obtain a copy of the License at
|
|
29688
|
+
*
|
|
29689
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29690
|
+
*
|
|
29691
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
29692
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29693
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29694
|
+
* See the License for the specific language governing permissions and
|
|
29695
|
+
* limitations under the License.
|
|
29696
|
+
*/
|
|
29697
|
+
var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29698
|
+
__assign$2 = Object.assign || function(t) {
|
|
29699
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29700
|
+
s = arguments[i];
|
|
29701
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
29702
|
+
t[p] = s[p];
|
|
29703
|
+
}
|
|
29704
|
+
return t;
|
|
29705
|
+
};
|
|
29706
|
+
return __assign$2.apply(this, arguments);
|
|
29707
|
+
};
|
|
29708
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29709
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29710
|
+
};
|
|
29711
|
+
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
29712
|
+
var bolt_protocol_v5x2_transformer_1 = __importDefault$a(boltProtocolV5x2_transformer);
|
|
29713
|
+
boltProtocolV5x3_transformer.default = __assign$2({}, bolt_protocol_v5x2_transformer_1.default);
|
|
29714
|
+
|
|
29715
|
+
var __extends$6 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29716
|
+
var extendStatics = function (d, b) {
|
|
29717
|
+
extendStatics = Object.setPrototypeOf ||
|
|
29718
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
29719
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
29720
|
+
return extendStatics(d, b);
|
|
29721
|
+
};
|
|
29722
|
+
return function (d, b) {
|
|
29723
|
+
if (typeof b !== "function" && b !== null)
|
|
29724
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
29725
|
+
extendStatics(d, b);
|
|
29726
|
+
function __() { this.constructor = d; }
|
|
29727
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29728
|
+
};
|
|
29729
|
+
})();
|
|
29730
|
+
var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29731
|
+
__assign$1 = Object.assign || function(t) {
|
|
29732
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29733
|
+
s = arguments[i];
|
|
29734
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
29735
|
+
t[p] = s[p];
|
|
29736
|
+
}
|
|
29737
|
+
return t;
|
|
29738
|
+
};
|
|
29739
|
+
return __assign$1.apply(this, arguments);
|
|
29740
|
+
};
|
|
29741
|
+
var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29742
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29743
|
+
};
|
|
29744
|
+
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
29745
|
+
/**
|
|
29746
|
+
* Copyright (c) "Neo4j"
|
|
29747
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
29748
|
+
*
|
|
29749
|
+
* This file is part of Neo4j.
|
|
29750
|
+
*
|
|
29751
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29752
|
+
* you may not use this file except in compliance with the License.
|
|
29753
|
+
* You may obtain a copy of the License at
|
|
29754
|
+
*
|
|
29755
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29756
|
+
*
|
|
29757
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
29758
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29759
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29760
|
+
* See the License for the specific language governing permissions and
|
|
29761
|
+
* limitations under the License.
|
|
29762
|
+
*/
|
|
29763
|
+
var bolt_protocol_v5x2_1$1 = __importDefault$9(boltProtocolV5x2);
|
|
29764
|
+
var bolt_protocol_v5x3_transformer_1 = __importDefault$9(boltProtocolV5x3_transformer);
|
|
29765
|
+
var transformer_1 = __importDefault$9(transformer);
|
|
29766
|
+
var request_message_1 = __importDefault$9(requestMessage);
|
|
29767
|
+
var stream_observers_1 = streamObservers;
|
|
29768
|
+
var neo4j_driver_core_1$b = lib$1;
|
|
29769
|
+
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_3;
|
|
29770
|
+
var BoltProtocol = /** @class */ (function (_super) {
|
|
29771
|
+
__extends$6(BoltProtocol, _super);
|
|
29772
|
+
function BoltProtocol() {
|
|
29773
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29774
|
+
}
|
|
29775
|
+
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
29776
|
+
get: function () {
|
|
29777
|
+
return BOLT_PROTOCOL_V5_3;
|
|
29778
|
+
},
|
|
29779
|
+
enumerable: false,
|
|
29780
|
+
configurable: true
|
|
29781
|
+
});
|
|
29782
|
+
Object.defineProperty(BoltProtocol.prototype, "transformer", {
|
|
29783
|
+
get: function () {
|
|
29784
|
+
var _this = this;
|
|
29785
|
+
if (this._transformer === undefined) {
|
|
29786
|
+
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29787
|
+
}
|
|
29788
|
+
return this._transformer;
|
|
29789
|
+
},
|
|
29790
|
+
enumerable: false,
|
|
29791
|
+
configurable: true
|
|
29792
|
+
});
|
|
29793
|
+
/**
|
|
29794
|
+
* Initialize a connection with the server
|
|
29795
|
+
*
|
|
29796
|
+
* @param {Object} args The params
|
|
29797
|
+
* @param {string} args.userAgent The user agent
|
|
29798
|
+
* @param {any} args.authToken The auth token
|
|
29799
|
+
* @param {NotificationFilter} args.notificationFilter The notification filters.
|
|
29800
|
+
* @param {function(error)} args.onError On error callback
|
|
29801
|
+
* @param {function(onComplete)} args.onComplete On complete callback
|
|
29802
|
+
* @returns {LoginObserver} The Login observer
|
|
29803
|
+
*/
|
|
29804
|
+
BoltProtocol.prototype.initialize = function (_a) {
|
|
29805
|
+
var _this = this;
|
|
29806
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, boltAgent = _b.boltAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
29807
|
+
var state = {};
|
|
29808
|
+
var observer = new stream_observers_1.LoginObserver({
|
|
29809
|
+
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
29810
|
+
onCompleted: function (metadata) {
|
|
29811
|
+
state.metadata = metadata;
|
|
29812
|
+
return _this._onLoginCompleted(metadata);
|
|
29813
|
+
}
|
|
29814
|
+
});
|
|
29815
|
+
this.write(request_message_1.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
29816
|
+
return this.logon({
|
|
29817
|
+
authToken: authToken,
|
|
29818
|
+
onComplete: function (metadata) { return onComplete(__assign$1(__assign$1({}, metadata), state.metadata)); },
|
|
29819
|
+
onError: onError,
|
|
29820
|
+
flush: true
|
|
29821
|
+
});
|
|
29822
|
+
};
|
|
29823
|
+
return BoltProtocol;
|
|
29824
|
+
}(bolt_protocol_v5x2_1$1.default));
|
|
29825
|
+
boltProtocolV5x3.default = BoltProtocol;
|
|
29308
29826
|
|
|
29309
29827
|
var responseHandler = {};
|
|
29310
29828
|
|
|
@@ -29549,6 +30067,7 @@ var bolt_protocol_v4x4_1 = __importDefault$8(boltProtocolV4x4);
|
|
|
29549
30067
|
var bolt_protocol_v5x0_1 = __importDefault$8(boltProtocolV5x0);
|
|
29550
30068
|
var bolt_protocol_v5x1_1 = __importDefault$8(boltProtocolV5x1);
|
|
29551
30069
|
var bolt_protocol_v5x2_1 = __importDefault$8(boltProtocolV5x2);
|
|
30070
|
+
var bolt_protocol_v5x3_1 = __importDefault$8(boltProtocolV5x3);
|
|
29552
30071
|
var response_handler_1 = __importDefault$8(responseHandler);
|
|
29553
30072
|
/**
|
|
29554
30073
|
* Creates a protocol with a given version
|
|
@@ -29615,6 +30134,8 @@ function createProtocol(version, server, chunker, packingConfig, serversideRouti
|
|
|
29615
30134
|
return new bolt_protocol_v5x1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
29616
30135
|
case 5.2:
|
|
29617
30136
|
return new bolt_protocol_v5x2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
30137
|
+
case 5.3:
|
|
30138
|
+
return new bolt_protocol_v5x3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
29618
30139
|
default:
|
|
29619
30140
|
throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
|
|
29620
30141
|
}
|
|
@@ -30494,10 +31015,12 @@ var Connection = /** @class */ (function () {
|
|
|
30494
31015
|
/**
|
|
30495
31016
|
* Connect to the target address, negotiate Bolt protocol and send initialization message.
|
|
30496
31017
|
* @param {string} userAgent the user agent for this driver.
|
|
31018
|
+
* @param {Object} boltAgent the bolt agent for this driver.
|
|
30497
31019
|
* @param {Object} authToken the object containing auth information.
|
|
31020
|
+
* @param {boolean} shouldWaitReAuth whether ot not the connection will wait for re-authentication to happen
|
|
30498
31021
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
30499
31022
|
*/
|
|
30500
|
-
Connection.prototype.connect = function (userAgent, authToken) {
|
|
31023
|
+
Connection.prototype.connect = function (userAgent, boltAgent, authToken, shouldWaitReAuth) {
|
|
30501
31024
|
throw new Error('not implemented');
|
|
30502
31025
|
};
|
|
30503
31026
|
/**
|
|
@@ -30760,10 +31283,12 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
30760
31283
|
/**
|
|
30761
31284
|
* Send initialization message.
|
|
30762
31285
|
* @param {string} userAgent the user agent for this driver.
|
|
31286
|
+
* @param {Object} boltAgent the bolt agent for this driver.
|
|
30763
31287
|
* @param {Object} authToken the object containing auth information.
|
|
31288
|
+
* @param {boolean} waitReAuth whether ot not the connection will wait for re-authentication to happen
|
|
30764
31289
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
30765
31290
|
*/
|
|
30766
|
-
ChannelConnection.prototype.connect = function (userAgent, authToken, waitReAuth) {
|
|
31291
|
+
ChannelConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
30767
31292
|
return __awaiter$4(this, void 0, void 0, function () {
|
|
30768
31293
|
var _this = this;
|
|
30769
31294
|
return __generator$4(this, function (_a) {
|
|
@@ -30774,7 +31299,7 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
30774
31299
|
}
|
|
30775
31300
|
this._authToken = authToken;
|
|
30776
31301
|
if (!!this._protocol.initialized) return [3 /*break*/, 2];
|
|
30777
|
-
return [4 /*yield*/, this._initialize(userAgent, authToken)];
|
|
31302
|
+
return [4 /*yield*/, this._initialize(userAgent, boltAgent, authToken)];
|
|
30778
31303
|
case 1: return [2 /*return*/, _a.sent()];
|
|
30779
31304
|
case 2:
|
|
30780
31305
|
if (!waitReAuth) return [3 /*break*/, 4];
|
|
@@ -30801,15 +31326,17 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
30801
31326
|
/**
|
|
30802
31327
|
* Perform protocol-specific initialization which includes authentication.
|
|
30803
31328
|
* @param {string} userAgent the user agent for this driver.
|
|
31329
|
+
* @param {string} boltAgent the bolt agent for this driver.
|
|
30804
31330
|
* @param {Object} authToken the object containing auth information.
|
|
30805
31331
|
* @return {Promise<Connection>} promise resolved with the current connection if initialization is successful. Rejected promise otherwise.
|
|
30806
31332
|
*/
|
|
30807
|
-
ChannelConnection.prototype._initialize = function (userAgent, authToken) {
|
|
31333
|
+
ChannelConnection.prototype._initialize = function (userAgent, boltAgent, authToken) {
|
|
30808
31334
|
var _this = this;
|
|
30809
31335
|
var self = this;
|
|
30810
31336
|
return new Promise(function (resolve, reject) {
|
|
30811
31337
|
_this._protocol.initialize({
|
|
30812
31338
|
userAgent: userAgent,
|
|
31339
|
+
boltAgent: boltAgent,
|
|
30813
31340
|
authToken: authToken,
|
|
30814
31341
|
notificationFilter: _this._notificationFilter,
|
|
30815
31342
|
onError: function (err) { return reject(err); },
|
|
@@ -31184,8 +31711,8 @@ var DelegateConnection = /** @class */ (function (_super) {
|
|
|
31184
31711
|
DelegateConnection.prototype.protocol = function () {
|
|
31185
31712
|
return this._delegate.protocol();
|
|
31186
31713
|
};
|
|
31187
|
-
DelegateConnection.prototype.connect = function (userAgent, authToken, waitReAuth) {
|
|
31188
|
-
return this._delegate.connect(userAgent, authToken, waitReAuth);
|
|
31714
|
+
DelegateConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
31715
|
+
return this._delegate.connect(userAgent, boltAgent, authToken, waitReAuth);
|
|
31189
31716
|
};
|
|
31190
31717
|
DelegateConnection.prototype.write = function (message, observer, flush) {
|
|
31191
31718
|
return this._delegate.write(message, observer, flush);
|
|
@@ -31417,11 +31944,12 @@ var lang_1$1 = lang;
|
|
|
31417
31944
|
*/
|
|
31418
31945
|
var AuthenticationProvider = /** @class */ (function () {
|
|
31419
31946
|
function AuthenticationProvider(_a) {
|
|
31420
|
-
var authTokenManager = _a.authTokenManager, userAgent = _a.userAgent;
|
|
31947
|
+
var authTokenManager = _a.authTokenManager, userAgent = _a.userAgent, boltAgent = _a.boltAgent;
|
|
31421
31948
|
this._authTokenManager = authTokenManager || (0, neo4j_driver_core_1$4.expirationBasedAuthTokenManager)({
|
|
31422
31949
|
tokenProvider: function () { }
|
|
31423
31950
|
});
|
|
31424
31951
|
this._userAgent = userAgent;
|
|
31952
|
+
this._boltAgent = boltAgent;
|
|
31425
31953
|
}
|
|
31426
31954
|
AuthenticationProvider.prototype.authenticate = function (_a) {
|
|
31427
31955
|
var connection = _a.connection, auth = _a.auth, skipReAuth = _a.skipReAuth, waitReAuth = _a.waitReAuth, forceReAuth = _a.forceReAuth;
|
|
@@ -31434,14 +31962,14 @@ var AuthenticationProvider = /** @class */ (function () {
|
|
|
31434
31962
|
shouldReAuth = connection.supportsReAuth === true && ((!lang_1$1.object.equals(connection.authToken, auth) && skipReAuth !== true) ||
|
|
31435
31963
|
forceReAuth === true);
|
|
31436
31964
|
if (!(connection.authToken == null || shouldReAuth)) return [3 /*break*/, 2];
|
|
31437
|
-
return [4 /*yield*/, connection.connect(this._userAgent, auth, waitReAuth || false)];
|
|
31965
|
+
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, auth, waitReAuth || false)];
|
|
31438
31966
|
case 1: return [2 /*return*/, _b.sent()];
|
|
31439
31967
|
case 2: return [2 /*return*/, connection];
|
|
31440
31968
|
case 3: return [4 /*yield*/, this._authTokenManager.getToken()];
|
|
31441
31969
|
case 4:
|
|
31442
31970
|
authToken = _b.sent();
|
|
31443
31971
|
if (!!lang_1$1.object.equals(authToken, connection.authToken)) return [3 /*break*/, 6];
|
|
31444
|
-
return [4 /*yield*/, connection.connect(this._userAgent, authToken)];
|
|
31972
|
+
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, authToken, false)];
|
|
31445
31973
|
case 5: return [2 /*return*/, _b.sent()];
|
|
31446
31974
|
case 6: return [2 /*return*/, connection];
|
|
31447
31975
|
}
|
|
@@ -31598,7 +32126,7 @@ var AUTHENTICATION_ERRORS = [
|
|
|
31598
32126
|
var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
31599
32127
|
__extends$2(PooledConnectionProvider, _super);
|
|
31600
32128
|
function PooledConnectionProvider(_a, createChannelConnectionHook) {
|
|
31601
|
-
var id = _a.id, config = _a.config, log = _a.log, userAgent = _a.userAgent, authTokenManager = _a.authTokenManager, _b = _a.newPool, newPool = _b === void 0 ? function () {
|
|
32129
|
+
var id = _a.id, config = _a.config, log = _a.log, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, _b = _a.newPool, newPool = _b === void 0 ? function () {
|
|
31602
32130
|
var args = [];
|
|
31603
32131
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
31604
32132
|
args[_i] = arguments[_i];
|
|
@@ -31611,7 +32139,9 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
31611
32139
|
_this._config = config;
|
|
31612
32140
|
_this._log = log;
|
|
31613
32141
|
_this._authTokenManager = authTokenManager;
|
|
31614
|
-
_this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent });
|
|
32142
|
+
_this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent, boltAgent: boltAgent });
|
|
32143
|
+
_this._userAgent = userAgent;
|
|
32144
|
+
_this._boltAgent = boltAgent;
|
|
31615
32145
|
_this._createChannelConnection =
|
|
31616
32146
|
createChannelConnectionHook ||
|
|
31617
32147
|
(function (address) {
|
|
@@ -31627,7 +32157,6 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
31627
32157
|
config: pool_1.PoolConfig.fromDriverConfig(config),
|
|
31628
32158
|
log: _this._log
|
|
31629
32159
|
});
|
|
31630
|
-
_this._userAgent = userAgent;
|
|
31631
32160
|
_this._openConnections = {};
|
|
31632
32161
|
return _this;
|
|
31633
32162
|
}
|
|
@@ -31946,8 +32475,8 @@ var SERVICE_UNAVAILABLE$1 = neo4j_driver_core_1$2.error.SERVICE_UNAVAILABLE;
|
|
|
31946
32475
|
var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
31947
32476
|
__extends$1(DirectConnectionProvider, _super);
|
|
31948
32477
|
function DirectConnectionProvider(_a) {
|
|
31949
|
-
var id = _a.id, config = _a.config, log = _a.log, address = _a.address, userAgent = _a.userAgent, authTokenManager = _a.authTokenManager, newPool = _a.newPool;
|
|
31950
|
-
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authTokenManager: authTokenManager, newPool: newPool }) || this;
|
|
32478
|
+
var id = _a.id, config = _a.config, log = _a.log, address = _a.address, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, newPool = _a.newPool;
|
|
32479
|
+
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }) || this;
|
|
31951
32480
|
_this._address = address;
|
|
31952
32481
|
return _this;
|
|
31953
32482
|
}
|
|
@@ -32590,8 +33119,8 @@ var DEFAULT_ROUTING_TABLE_PURGE_DELAY = (0, neo4j_driver_core_1.int)(30000);
|
|
|
32590
33119
|
var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
32591
33120
|
__extends(RoutingConnectionProvider, _super);
|
|
32592
33121
|
function RoutingConnectionProvider(_a) {
|
|
32593
|
-
var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, authTokenManager = _a.authTokenManager, routingTablePurgeDelay = _a.routingTablePurgeDelay, newPool = _a.newPool;
|
|
32594
|
-
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) {
|
|
33122
|
+
var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, routingTablePurgeDelay = _a.routingTablePurgeDelay, newPool = _a.newPool;
|
|
33123
|
+
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) {
|
|
32595
33124
|
return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log, _this._routingContext);
|
|
32596
33125
|
}) || this;
|
|
32597
33126
|
_this._routingContext = __assign(__assign({}, routingContext), { address: address.toString() });
|
|
@@ -33518,6 +34047,7 @@ exports.RxManagedTransaction = transaction_managed_rx_1.default;
|
|
|
33518
34047
|
var result_rx_1 = __importDefault(resultRx);
|
|
33519
34048
|
exports.RxResult = result_rx_1.default;
|
|
33520
34049
|
var _a = neo4j_driver_core_1.internal.util, ENCRYPTION_ON = _a.ENCRYPTION_ON, assertString = _a.assertString, isEmptyObjectOrNull = _a.isEmptyObjectOrNull, ServerAddress = neo4j_driver_core_1.internal.serverAddress.ServerAddress, urlUtil = neo4j_driver_core_1.internal.urlUtil;
|
|
34050
|
+
var USER_AGENT = 'neo4j-javascript/' + version_1.default;
|
|
33521
34051
|
function isAuthTokenManager(value) {
|
|
33522
34052
|
return typeof value === 'object' &&
|
|
33523
34053
|
value != null &&
|
|
@@ -33540,141 +34070,16 @@ function createAuthManager(authTokenOrManager) {
|
|
|
33540
34070
|
* Construct a new Neo4j Driver. This is your main entry point for this
|
|
33541
34071
|
* library.
|
|
33542
34072
|
*
|
|
33543
|
-
* ## Configuration
|
|
33544
|
-
*
|
|
33545
|
-
* This function optionally takes a configuration argument. Available configuration
|
|
33546
|
-
* options are as follows:
|
|
33547
|
-
*
|
|
33548
|
-
* {
|
|
33549
|
-
* // Encryption level: ENCRYPTION_ON or ENCRYPTION_OFF.
|
|
33550
|
-
* encrypted: ENCRYPTION_ON|ENCRYPTION_OFF
|
|
33551
|
-
*
|
|
33552
|
-
* // Trust strategy to use if encryption is enabled. There is no mode to disable
|
|
33553
|
-
* // trust other than disabling encryption altogether. The reason for
|
|
33554
|
-
* // this is that if you don't know who you are talking to, it is easy for an
|
|
33555
|
-
* // attacker to hijack your encrypted connection, rendering encryption pointless.
|
|
33556
|
-
* //
|
|
33557
|
-
* // TRUST_SYSTEM_CA_SIGNED_CERTIFICATES is the default choice. For NodeJS environments, this
|
|
33558
|
-
* // means that you trust whatever certificates are in the default trusted certificate
|
|
33559
|
-
* // store of the underlying system. For Browser environments, the trusted certificate
|
|
33560
|
-
* // store is usually managed by the browser. Refer to your system or browser documentation
|
|
33561
|
-
* // if you want to explicitly add a certificate as trusted.
|
|
33562
|
-
* //
|
|
33563
|
-
* // TRUST_CUSTOM_CA_SIGNED_CERTIFICATES is another option for trust verification -
|
|
33564
|
-
* // whenever we establish an encrypted connection, we ensure the host is using
|
|
33565
|
-
* // an encryption certificate that is in, or is signed by, a certificate given
|
|
33566
|
-
* // as trusted through configuration. This option is only available for NodeJS environments.
|
|
33567
|
-
* //
|
|
33568
|
-
* // TRUST_ALL_CERTIFICATES means that you trust everything without any verifications
|
|
33569
|
-
* // steps carried out. This option is only available for NodeJS environments and should not
|
|
33570
|
-
* // be used on production systems.
|
|
33571
|
-
* trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES" | "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES" |
|
|
33572
|
-
* "TRUST_ALL_CERTIFICATES",
|
|
33573
|
-
*
|
|
33574
|
-
* // List of one or more paths to trusted encryption certificates. This only
|
|
33575
|
-
* // works in the NodeJS bundle, and only matters if you use "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES".
|
|
33576
|
-
* // The certificate files should be in regular X.509 PEM format.
|
|
33577
|
-
* // For instance, ['./trusted.pem']
|
|
33578
|
-
* trustedCertificates: [],
|
|
33579
|
-
*
|
|
33580
|
-
* // The maximum total number of connections allowed to be managed by the connection pool, per host.
|
|
33581
|
-
* // This includes both in-use and idle connections. No maximum connection pool size is imposed
|
|
33582
|
-
* // by default.
|
|
33583
|
-
* maxConnectionPoolSize: 100,
|
|
33584
|
-
*
|
|
33585
|
-
* // The maximum allowed lifetime for a pooled connection in milliseconds. Pooled connections older than this
|
|
33586
|
-
* // threshold will be closed and removed from the pool. Such discarding happens during connection acquisition
|
|
33587
|
-
* // so that new session is never backed by an old connection. Setting this option to a low value will cause
|
|
33588
|
-
* // a high connection churn and might result in a performance hit. It is recommended to set maximum lifetime
|
|
33589
|
-
* // to a slightly smaller value than the one configured in network equipment (load balancer, proxy, firewall,
|
|
33590
|
-
* // etc. can also limit maximum connection lifetime). No maximum lifetime limit is imposed by default. Zero
|
|
33591
|
-
* // and negative values result in lifetime not being checked.
|
|
33592
|
-
* maxConnectionLifetime: 60 * 60 * 1000, // 1 hour
|
|
33593
|
-
*
|
|
33594
|
-
* // The maximum amount of time to wait to acquire a connection from the pool (to either create a new
|
|
33595
|
-
* // connection or borrow an existing one.
|
|
33596
|
-
* connectionAcquisitionTimeout: 60000, // 1 minute
|
|
33597
|
-
*
|
|
33598
|
-
* // Specify the maximum time in milliseconds transactions are allowed to retry via
|
|
33599
|
-
* // `Session#executeRead()` and `Session#executeWrite()` functions.
|
|
33600
|
-
* // These functions will retry the given unit of work on `ServiceUnavailable`, `SessionExpired` and transient
|
|
33601
|
-
* // errors with exponential backoff using initial delay of 1 second.
|
|
33602
|
-
* // Default value is 30000 which is 30 seconds.
|
|
33603
|
-
* maxTransactionRetryTime: 30000, // 30 seconds
|
|
33604
|
-
*
|
|
33605
|
-
* // Specify socket connection timeout in milliseconds. Numeric values are expected. Negative and zero values
|
|
33606
|
-
* // result in no timeout being applied. Connection establishment will be then bound by the timeout configured
|
|
33607
|
-
* // on the operating system level. Default value is 30000, which is 30 seconds.
|
|
33608
|
-
* connectionTimeout: 30000, // 30 seconds
|
|
33609
|
-
*
|
|
33610
|
-
* // Make this driver always return native JavaScript numbers for integer values, instead of the
|
|
33611
|
-
* // dedicated {@link Integer} class. Values that do not fit in native number bit range will be represented as
|
|
33612
|
-
* // `Number.NEGATIVE_INFINITY` or `Number.POSITIVE_INFINITY`.
|
|
33613
|
-
* // **Warning:** ResultSummary It is not always safe to enable this setting when JavaScript applications are not the only ones
|
|
33614
|
-
* // interacting with the database. Stored numbers might in such case be not representable by native
|
|
33615
|
-
* // {@link Number} type and thus driver will return lossy values. This might also happen when data was
|
|
33616
|
-
* // initially imported using neo4j import tool and contained numbers larger than
|
|
33617
|
-
* // `Number.MAX_SAFE_INTEGER`. Driver will then return positive infinity, which is lossy.
|
|
33618
|
-
* // Default value for this option is `false` because native JavaScript numbers might result
|
|
33619
|
-
* // in loss of precision in the general case.
|
|
33620
|
-
* disableLosslessIntegers: false,
|
|
33621
|
-
*
|
|
33622
|
-
* // Make this driver always return native Javascript {@link BigInt} for integer values, instead of the dedicated {@link Integer} class or {@link Number}.
|
|
33623
|
-
* //
|
|
33624
|
-
* // Default value for this option is `false` for backwards compatibility.
|
|
33625
|
-
* //
|
|
33626
|
-
* // **Warning:** `BigInt` doesn't implement the method `toJSON`. In maner of serialize it as `json`, It's needed to add a custom implementation of the `toJSON` on the
|
|
33627
|
-
* // `BigInt.prototype` {@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json}
|
|
33628
|
-
* useBigInt: false,
|
|
33629
|
-
*
|
|
33630
|
-
* // Specify the logging configuration for the driver. Object should have two properties `level` and `logger`.
|
|
33631
|
-
* //
|
|
33632
|
-
* // Property `level` represents the logging level which should be one of: 'error', 'warn', 'info' or 'debug'. This property is optional and
|
|
33633
|
-
* // its default value is 'info'. Levels have priorities: 'error': 0, 'warn': 1, 'info': 2, 'debug': 3. Enabling a certain level also enables all
|
|
33634
|
-
* // levels with lower priority. For example: 'error', 'warn' and 'info' will be logged when 'info' level is configured.
|
|
33635
|
-
* //
|
|
33636
|
-
* // Property `logger` represents the logging function which will be invoked for every log call with an acceptable level. The function should
|
|
33637
|
-
* // take two string arguments `level` and `message`. The function should not execute any blocking or long-running operations
|
|
33638
|
-
* // because it is often executed on a hot path.
|
|
33639
|
-
* //
|
|
33640
|
-
* // No logging is done by default. See `neo4j.logging` object that contains predefined logging implementations.
|
|
33641
|
-
* logging: {
|
|
33642
|
-
* level: 'info',
|
|
33643
|
-
* logger: (level, message) => console.log(level + ' ' + message)
|
|
33644
|
-
* },
|
|
33645
|
-
*
|
|
33646
|
-
* // Specify a custom server address resolver function used by the routing driver to resolve the initial address used to create the driver.
|
|
33647
|
-
* // Such resolution happens:
|
|
33648
|
-
* // * during the very first rediscovery when driver is created
|
|
33649
|
-
* // * when all the known routers from the current routing table have failed and driver needs to fallback to the initial address
|
|
33650
|
-
* //
|
|
33651
|
-
* // In NodeJS environment driver defaults to performing a DNS resolution of the initial address using 'dns' module.
|
|
33652
|
-
* // In browser environment driver uses the initial address as-is.
|
|
33653
|
-
* // Value should be a function that takes a single string argument - the initial address. It should return an array of new addresses.
|
|
33654
|
-
* // Address is a string of shape '<host>:<port>'. Provided function can return either a Promise resolved with an array of addresses
|
|
33655
|
-
* // or array of addresses directly.
|
|
33656
|
-
* resolver: function(address) {
|
|
33657
|
-
* return ['127.0.0.1:8888', 'fallback.db.com:7687'];
|
|
33658
|
-
* },
|
|
33659
|
-
*
|
|
33660
|
-
* // Configure filter for Notification objects returned in ResultSummary#notifications.
|
|
33661
|
-
* // See SessionConfig#notificationFilter for usage instructions.
|
|
33662
|
-
* notificationFilter: undefined,
|
|
33663
|
-
*
|
|
33664
|
-
* // Optionally override the default user agent name.
|
|
33665
|
-
* userAgent: USER_AGENT
|
|
33666
|
-
* }
|
|
33667
|
-
*
|
|
33668
34073
|
* @param {string} url The URL for the Neo4j database, for instance "neo4j://localhost" and/or "bolt://localhost"
|
|
33669
34074
|
* @param {Map<string,string>} authToken Authentication credentials. See {@link auth} for helpers.
|
|
33670
|
-
* @param {
|
|
34075
|
+
* @param {Config} config Configuration object.
|
|
33671
34076
|
* @returns {Driver}
|
|
33672
34077
|
*/
|
|
33673
34078
|
function driver(url, authToken, config) {
|
|
33674
34079
|
if (config === void 0) { config = {}; }
|
|
33675
34080
|
assertString(url, 'Bolt URL');
|
|
33676
34081
|
var parsedUrl = urlUtil.parseDatabaseUrl(url);
|
|
33677
|
-
// Determine
|
|
34082
|
+
// Determine encryption/trust options from the URL.
|
|
33678
34083
|
var routing = false;
|
|
33679
34084
|
var encrypted = false;
|
|
33680
34085
|
var trust;
|
|
@@ -33717,6 +34122,7 @@ function driver(url, authToken, config) {
|
|
|
33717
34122
|
var authTokenManager = createAuthManager(authToken);
|
|
33718
34123
|
// Use default user agent or user agent specified by user.
|
|
33719
34124
|
config.userAgent = config.userAgent || USER_AGENT;
|
|
34125
|
+
config.boltAgent = neo4j_driver_core_1.internal.boltAgent.fromVersion('neo4j-javascript/' + version_1.default);
|
|
33720
34126
|
var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);
|
|
33721
34127
|
var meta = {
|
|
33722
34128
|
address: address,
|
|
@@ -33735,6 +34141,7 @@ function driver(url, authToken, config) {
|
|
|
33735
34141
|
authTokenManager: authTokenManager,
|
|
33736
34142
|
address: address,
|
|
33737
34143
|
userAgent: config.userAgent,
|
|
34144
|
+
boltAgent: config.boltAgent,
|
|
33738
34145
|
routingContext: parsedUrl.query
|
|
33739
34146
|
});
|
|
33740
34147
|
};
|
|
@@ -33750,7 +34157,8 @@ function driver(url, authToken, config) {
|
|
|
33750
34157
|
log: log,
|
|
33751
34158
|
authTokenManager: authTokenManager,
|
|
33752
34159
|
address: address,
|
|
33753
|
-
userAgent: config.userAgent
|
|
34160
|
+
userAgent: config.userAgent,
|
|
34161
|
+
boltAgent: config.boltAgent
|
|
33754
34162
|
});
|
|
33755
34163
|
};
|
|
33756
34164
|
}
|
|
@@ -33791,7 +34199,6 @@ function hasReachableServer(url, config) {
|
|
|
33791
34199
|
});
|
|
33792
34200
|
}
|
|
33793
34201
|
exports.hasReachableServer = hasReachableServer;
|
|
33794
|
-
var USER_AGENT = 'neo4j-javascript/' + version_1.default;
|
|
33795
34202
|
/**
|
|
33796
34203
|
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
33797
34204
|
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|