neo4j-driver 5.8.1 → 5.9.0
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 +942 -639
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +942 -639
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +5 -2
- 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$K = (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$K(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$J = (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$J(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$J(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$I = (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$I(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,99 @@ 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
|
+
// @ts-ignore: browser code so must be skipped by ts
|
|
5930
|
+
return window.navigator.userAgent;
|
|
5931
|
+
}
|
|
5932
|
+
}); }; }
|
|
5933
|
+
var systemInfo = getSystemInfo();
|
|
5934
|
+
//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'
|
|
5935
|
+
var platform = systemInfo.userAgent != null ? systemInfo.userAgent.split("(")[1].split(")")[0] : undefined;
|
|
5936
|
+
var languageDetails = systemInfo.userAgent || undefined;
|
|
5937
|
+
return {
|
|
5938
|
+
product: "neo4j-javascript/".concat(version),
|
|
5939
|
+
platform: platform,
|
|
5940
|
+
languageDetails: languageDetails
|
|
5941
|
+
};
|
|
5942
|
+
}
|
|
5943
|
+
boltAgent$1.fromVersion = fromVersion;
|
|
5944
|
+
|
|
5945
|
+
(function (exports) {
|
|
5946
|
+
/**
|
|
5947
|
+
* Copyright (c) "Neo4j"
|
|
5948
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5949
|
+
*
|
|
5950
|
+
* This file is part of Neo4j.
|
|
5951
|
+
*
|
|
5952
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5953
|
+
* you may not use this file except in compliance with the License.
|
|
5954
|
+
* You may obtain a copy of the License at
|
|
5955
|
+
*
|
|
5956
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5957
|
+
*
|
|
5958
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5959
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5960
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5961
|
+
* See the License for the specific language governing permissions and
|
|
5962
|
+
* limitations under the License.
|
|
5963
|
+
*/
|
|
5964
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5965
|
+
if (k2 === undefined) k2 = k;
|
|
5966
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5967
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5968
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5969
|
+
}
|
|
5970
|
+
Object.defineProperty(o, k2, desc);
|
|
5971
|
+
}) : (function(o, m, k, k2) {
|
|
5972
|
+
if (k2 === undefined) k2 = k;
|
|
5973
|
+
o[k2] = m[k];
|
|
5974
|
+
}));
|
|
5975
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
5976
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5977
|
+
};
|
|
5978
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5979
|
+
__exportStar(boltAgent$1, exports);
|
|
5980
|
+
}(browser$1));
|
|
5981
|
+
|
|
5892
5982
|
/**
|
|
5893
5983
|
* Copyright (c) "Neo4j"
|
|
5894
5984
|
* Neo4j Sweden AB [http://neo4j.com]
|
|
@@ -5931,7 +6021,7 @@ var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
5931
6021
|
return result;
|
|
5932
6022
|
};
|
|
5933
6023
|
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;
|
|
6024
|
+
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
6025
|
var util = __importStar$6(util$4);
|
|
5936
6026
|
internal.util = util;
|
|
5937
6027
|
var temporalUtil = __importStar$6(temporalUtil$1);
|
|
@@ -5958,6 +6048,8 @@ var resolver = __importStar$6(resolver$1);
|
|
|
5958
6048
|
internal.resolver = resolver;
|
|
5959
6049
|
var objectUtil$1 = __importStar$6(objectUtil$2);
|
|
5960
6050
|
internal.objectUtil = objectUtil$1;
|
|
6051
|
+
var boltAgent = __importStar$6(browser$1);
|
|
6052
|
+
internal.boltAgent = boltAgent;
|
|
5961
6053
|
|
|
5962
6054
|
/**
|
|
5963
6055
|
* Copyright (c) "Neo4j"
|
|
@@ -6013,12 +6105,12 @@ var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
6013
6105
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6014
6106
|
}
|
|
6015
6107
|
};
|
|
6016
|
-
var __importDefault$
|
|
6108
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6017
6109
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6018
6110
|
};
|
|
6019
6111
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
6020
6112
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
6021
|
-
var result_summary_1 = __importDefault$
|
|
6113
|
+
var result_summary_1 = __importDefault$R(resultSummary);
|
|
6022
6114
|
var internal_1$1 = internal;
|
|
6023
6115
|
var error_1$4 = error;
|
|
6024
6116
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -6884,10 +6976,12 @@ var Connection$1 = /** @class */ (function () {
|
|
|
6884
6976
|
/**
|
|
6885
6977
|
* Connect to the target address, negotiate Bolt protocol and send initialization message.
|
|
6886
6978
|
* @param {string} userAgent the user agent for this driver.
|
|
6979
|
+
* @param {string} boltAgent the bolt agent for this driver.
|
|
6887
6980
|
* @param {Object} authToken the object containing auth information.
|
|
6981
|
+
* @param {Object} waitReAuth whether to connect method should wait until re-Authorised
|
|
6888
6982
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
6889
6983
|
*/
|
|
6890
|
-
Connection.prototype.connect = function (userAgent, authToken) {
|
|
6984
|
+
Connection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
6891
6985
|
throw Error('Not implemented');
|
|
6892
6986
|
};
|
|
6893
6987
|
/**
|
|
@@ -6987,7 +7081,7 @@ var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
6987
7081
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6988
7082
|
}
|
|
6989
7083
|
};
|
|
6990
|
-
var __importDefault$
|
|
7084
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6991
7085
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6992
7086
|
};
|
|
6993
7087
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -6998,7 +7092,7 @@ var bookmarks_1$2 = bookmarks$1;
|
|
|
6998
7092
|
var tx_config_1$1 = txConfig$1;
|
|
6999
7093
|
var observers_1$1 = observers;
|
|
7000
7094
|
var error_1$3 = error;
|
|
7001
|
-
var result_1$1 = __importDefault$
|
|
7095
|
+
var result_1$1 = __importDefault$Q(result);
|
|
7002
7096
|
/**
|
|
7003
7097
|
* Represents a transaction in the Neo4j database.
|
|
7004
7098
|
*
|
|
@@ -7526,7 +7620,7 @@ var transactionPromise = {};
|
|
|
7526
7620
|
* See the License for the specific language governing permissions and
|
|
7527
7621
|
* limitations under the License.
|
|
7528
7622
|
*/
|
|
7529
|
-
var __extends$
|
|
7623
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
7530
7624
|
var extendStatics = function (d, b) {
|
|
7531
7625
|
extendStatics = Object.setPrototypeOf ||
|
|
7532
7626
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -7541,8 +7635,8 @@ var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
7541
7635
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7542
7636
|
};
|
|
7543
7637
|
})();
|
|
7544
|
-
var __assign$
|
|
7545
|
-
__assign$
|
|
7638
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
7639
|
+
__assign$j = Object.assign || function(t) {
|
|
7546
7640
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7547
7641
|
s = arguments[i];
|
|
7548
7642
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -7550,15 +7644,15 @@ var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
7550
7644
|
}
|
|
7551
7645
|
return t;
|
|
7552
7646
|
};
|
|
7553
|
-
return __assign$
|
|
7647
|
+
return __assign$j.apply(this, arguments);
|
|
7554
7648
|
};
|
|
7555
|
-
var __importDefault$
|
|
7649
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7556
7650
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7557
7651
|
};
|
|
7558
7652
|
var _a$d;
|
|
7559
7653
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
7560
7654
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
7561
|
-
var transaction_1 = __importDefault$
|
|
7655
|
+
var transaction_1 = __importDefault$P(transaction);
|
|
7562
7656
|
/**
|
|
7563
7657
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
7564
7658
|
*
|
|
@@ -7570,7 +7664,7 @@ var transaction_1 = __importDefault$N(transaction);
|
|
|
7570
7664
|
* @access public
|
|
7571
7665
|
*/
|
|
7572
7666
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
7573
|
-
__extends$
|
|
7667
|
+
__extends$H(TransactionPromise, _super);
|
|
7574
7668
|
/**
|
|
7575
7669
|
* @constructor
|
|
7576
7670
|
* @param {object} args
|
|
@@ -7649,7 +7743,7 @@ var TransactionPromise = /** @class */ (function (_super) {
|
|
|
7649
7743
|
* @access private
|
|
7650
7744
|
*/
|
|
7651
7745
|
TransactionPromise.prototype._toTransaction = function () {
|
|
7652
|
-
return __assign$
|
|
7746
|
+
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
7747
|
};
|
|
7654
7748
|
/**
|
|
7655
7749
|
* @access private
|
|
@@ -7766,7 +7860,7 @@ var __spreadArray$l = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
7766
7860
|
}
|
|
7767
7861
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
7768
7862
|
};
|
|
7769
|
-
var __importDefault$
|
|
7863
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7770
7864
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7771
7865
|
};
|
|
7772
7866
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -7775,13 +7869,13 @@ var observers_1 = observers;
|
|
|
7775
7869
|
var util_1$1 = util$4;
|
|
7776
7870
|
var constants_1$1 = constants$1;
|
|
7777
7871
|
var error_1$2 = error;
|
|
7778
|
-
var result_1 = __importDefault$
|
|
7872
|
+
var result_1 = __importDefault$O(result);
|
|
7779
7873
|
var connection_holder_1 = connectionHolder$1;
|
|
7780
7874
|
var transaction_executor_1 = transactionExecutor$1;
|
|
7781
7875
|
var bookmarks_1$1 = bookmarks$1;
|
|
7782
7876
|
var tx_config_1 = txConfig$1;
|
|
7783
|
-
var transaction_promise_1 = __importDefault$
|
|
7784
|
-
var transaction_managed_1 = __importDefault$
|
|
7877
|
+
var transaction_promise_1 = __importDefault$O(transactionPromise);
|
|
7878
|
+
var transaction_managed_1 = __importDefault$O(transactionManaged);
|
|
7785
7879
|
/**
|
|
7786
7880
|
* A Session instance is used for handling the connection and
|
|
7787
7881
|
* sending queries through the connection.
|
|
@@ -8571,11 +8665,11 @@ var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
8571
8665
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8572
8666
|
}
|
|
8573
8667
|
};
|
|
8574
|
-
var __importDefault$
|
|
8668
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8575
8669
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8576
8670
|
};
|
|
8577
8671
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
8578
|
-
var result_eager_1 = __importDefault$
|
|
8672
|
+
var result_eager_1 = __importDefault$N(resultEager);
|
|
8579
8673
|
var error_1$1 = error;
|
|
8580
8674
|
function createEagerResultFromResult(result) {
|
|
8581
8675
|
return __awaiter$b(this, void 0, void 0, function () {
|
|
@@ -8882,20 +8976,20 @@ var __generator$b = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
8882
8976
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8883
8977
|
}
|
|
8884
8978
|
};
|
|
8885
|
-
var __importDefault$
|
|
8979
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8886
8980
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8887
8981
|
};
|
|
8888
8982
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
8889
8983
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
8890
8984
|
var bookmarks_1 = bookmarks$1;
|
|
8891
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
8985
|
+
var configured_custom_resolver_1 = __importDefault$M(configuredCustomResolver);
|
|
8892
8986
|
var constants_1 = constants$1;
|
|
8893
8987
|
var logger_1 = logger$1;
|
|
8894
|
-
var session_1 = __importDefault$
|
|
8988
|
+
var session_1 = __importDefault$M(session);
|
|
8895
8989
|
var util_1 = util$4;
|
|
8896
8990
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
8897
|
-
var result_transformers_1 = __importDefault$
|
|
8898
|
-
var query_executor_1 = __importDefault$
|
|
8991
|
+
var result_transformers_1 = __importDefault$M(resultTransformers$1);
|
|
8992
|
+
var query_executor_1 = __importDefault$M(queryExecutor);
|
|
8899
8993
|
var error_1 = error;
|
|
8900
8994
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
8901
8995
|
/**
|
|
@@ -9062,7 +9156,11 @@ var SessionConfig = /** @class */ (function () {
|
|
|
9062
9156
|
*
|
|
9063
9157
|
*
|
|
9064
9158
|
* Disabling notifications can be done by defining the minimum severity level to 'OFF'.
|
|
9065
|
-
*
|
|
9159
|
+
* At driver level, when omitted, uses the server's default.
|
|
9160
|
+
* At session level, when omitted, defaults to what filters have been configured at driver level.
|
|
9161
|
+
*
|
|
9162
|
+
* Disabling categories or severities allows the server to skip analysis for those, which can speed up query
|
|
9163
|
+
* execution.
|
|
9066
9164
|
*
|
|
9067
9165
|
* @example
|
|
9068
9166
|
* // enabling warning notification, but disabling `HINT` and `DEPRECATION` notifications.
|
|
@@ -9814,12 +9912,12 @@ var __generator$a = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
9814
9912
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
9815
9913
|
}
|
|
9816
9914
|
};
|
|
9817
|
-
var __importDefault$
|
|
9915
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9818
9916
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9819
9917
|
};
|
|
9820
9918
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
9821
9919
|
authTokenManager.isStaticAuthTokenManger = authTokenManager.staticAuthTokenManager = authTokenManager.expirationBasedAuthTokenManager = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
9822
|
-
var auth_1 = __importDefault$
|
|
9920
|
+
var auth_1 = __importDefault$L(auth$1);
|
|
9823
9921
|
var internal_1 = internal;
|
|
9824
9922
|
/**
|
|
9825
9923
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11032,7 +11130,7 @@ lift.operate = operate;
|
|
|
11032
11130
|
|
|
11033
11131
|
var OperatorSubscriber$1 = {};
|
|
11034
11132
|
|
|
11035
|
-
var __extends$
|
|
11133
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11036
11134
|
var extendStatics = function (d, b) {
|
|
11037
11135
|
extendStatics = Object.setPrototypeOf ||
|
|
11038
11136
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11055,7 +11153,7 @@ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFi
|
|
|
11055
11153
|
}
|
|
11056
11154
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
11057
11155
|
var OperatorSubscriber = (function (_super) {
|
|
11058
|
-
__extends$
|
|
11156
|
+
__extends$G(OperatorSubscriber, _super);
|
|
11059
11157
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
11060
11158
|
var _this = _super.call(this, destination) || this;
|
|
11061
11159
|
_this.onFinalize = onFinalize;
|
|
@@ -11139,7 +11237,7 @@ function refCount() {
|
|
|
11139
11237
|
}
|
|
11140
11238
|
refCount$1.refCount = refCount;
|
|
11141
11239
|
|
|
11142
|
-
var __extends$
|
|
11240
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11143
11241
|
var extendStatics = function (d, b) {
|
|
11144
11242
|
extendStatics = Object.setPrototypeOf ||
|
|
11145
11243
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11162,7 +11260,7 @@ var refCount_1 = refCount$1;
|
|
|
11162
11260
|
var OperatorSubscriber_1$T = OperatorSubscriber$1;
|
|
11163
11261
|
var lift_1$12 = lift;
|
|
11164
11262
|
var ConnectableObservable = (function (_super) {
|
|
11165
|
-
__extends$
|
|
11263
|
+
__extends$F(ConnectableObservable, _super);
|
|
11166
11264
|
function ConnectableObservable(source, subjectFactory) {
|
|
11167
11265
|
var _this = _super.call(this) || this;
|
|
11168
11266
|
_this.source = source;
|
|
@@ -11349,7 +11447,7 @@ ObjectUnsubscribedError.ObjectUnsubscribedError = createErrorClass_1$4.createErr
|
|
|
11349
11447
|
};
|
|
11350
11448
|
});
|
|
11351
11449
|
|
|
11352
|
-
var __extends$
|
|
11450
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11353
11451
|
var extendStatics = function (d, b) {
|
|
11354
11452
|
extendStatics = Object.setPrototypeOf ||
|
|
11355
11453
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11383,7 +11481,7 @@ var ObjectUnsubscribedError_1 = ObjectUnsubscribedError;
|
|
|
11383
11481
|
var arrRemove_1$6 = arrRemove$1;
|
|
11384
11482
|
var errorContext_1 = errorContext$1;
|
|
11385
11483
|
var Subject = (function (_super) {
|
|
11386
|
-
__extends$
|
|
11484
|
+
__extends$E(Subject, _super);
|
|
11387
11485
|
function Subject() {
|
|
11388
11486
|
var _this = _super.call(this) || this;
|
|
11389
11487
|
_this.closed = false;
|
|
@@ -11511,7 +11609,7 @@ var Subject = (function (_super) {
|
|
|
11511
11609
|
}(Observable_1$l.Observable));
|
|
11512
11610
|
Subject$1.Subject = Subject;
|
|
11513
11611
|
var AnonymousSubject = (function (_super) {
|
|
11514
|
-
__extends$
|
|
11612
|
+
__extends$E(AnonymousSubject, _super);
|
|
11515
11613
|
function AnonymousSubject(destination, source) {
|
|
11516
11614
|
var _this = _super.call(this) || this;
|
|
11517
11615
|
_this.destination = destination;
|
|
@@ -11540,7 +11638,7 @@ Subject$1.AnonymousSubject = AnonymousSubject;
|
|
|
11540
11638
|
|
|
11541
11639
|
var BehaviorSubject$1 = {};
|
|
11542
11640
|
|
|
11543
|
-
var __extends$
|
|
11641
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11544
11642
|
var extendStatics = function (d, b) {
|
|
11545
11643
|
extendStatics = Object.setPrototypeOf ||
|
|
11546
11644
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11559,7 +11657,7 @@ Object.defineProperty(BehaviorSubject$1, "__esModule", { value: true });
|
|
|
11559
11657
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
11560
11658
|
var Subject_1$e = Subject$1;
|
|
11561
11659
|
var BehaviorSubject = (function (_super) {
|
|
11562
|
-
__extends$
|
|
11660
|
+
__extends$D(BehaviorSubject, _super);
|
|
11563
11661
|
function BehaviorSubject(_value) {
|
|
11564
11662
|
var _this = _super.call(this) || this;
|
|
11565
11663
|
_this._value = _value;
|
|
@@ -11608,7 +11706,7 @@ exports.dateTimestampProvider = {
|
|
|
11608
11706
|
|
|
11609
11707
|
}(dateTimestampProvider));
|
|
11610
11708
|
|
|
11611
|
-
var __extends$
|
|
11709
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11612
11710
|
var extendStatics = function (d, b) {
|
|
11613
11711
|
extendStatics = Object.setPrototypeOf ||
|
|
11614
11712
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11628,7 +11726,7 @@ ReplaySubject$1.ReplaySubject = void 0;
|
|
|
11628
11726
|
var Subject_1$d = Subject$1;
|
|
11629
11727
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
11630
11728
|
var ReplaySubject = (function (_super) {
|
|
11631
|
-
__extends$
|
|
11729
|
+
__extends$C(ReplaySubject, _super);
|
|
11632
11730
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
11633
11731
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
11634
11732
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -11684,7 +11782,7 @@ ReplaySubject$1.ReplaySubject = ReplaySubject;
|
|
|
11684
11782
|
|
|
11685
11783
|
var AsyncSubject$1 = {};
|
|
11686
11784
|
|
|
11687
|
-
var __extends$
|
|
11785
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11688
11786
|
var extendStatics = function (d, b) {
|
|
11689
11787
|
extendStatics = Object.setPrototypeOf ||
|
|
11690
11788
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11703,7 +11801,7 @@ Object.defineProperty(AsyncSubject$1, "__esModule", { value: true });
|
|
|
11703
11801
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
11704
11802
|
var Subject_1$c = Subject$1;
|
|
11705
11803
|
var AsyncSubject = (function (_super) {
|
|
11706
|
-
__extends$
|
|
11804
|
+
__extends$B(AsyncSubject, _super);
|
|
11707
11805
|
function AsyncSubject() {
|
|
11708
11806
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11709
11807
|
_this._value = null;
|
|
@@ -11747,7 +11845,7 @@ var AsyncAction$1 = {};
|
|
|
11747
11845
|
|
|
11748
11846
|
var Action$1 = {};
|
|
11749
11847
|
|
|
11750
|
-
var __extends$
|
|
11848
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11751
11849
|
var extendStatics = function (d, b) {
|
|
11752
11850
|
extendStatics = Object.setPrototypeOf ||
|
|
11753
11851
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11766,7 +11864,7 @@ Object.defineProperty(Action$1, "__esModule", { value: true });
|
|
|
11766
11864
|
Action$1.Action = void 0;
|
|
11767
11865
|
var Subscription_1$5 = Subscription$1;
|
|
11768
11866
|
var Action = (function (_super) {
|
|
11769
|
-
__extends$
|
|
11867
|
+
__extends$A(Action, _super);
|
|
11770
11868
|
function Action(scheduler, work) {
|
|
11771
11869
|
return _super.call(this) || this;
|
|
11772
11870
|
}
|
|
@@ -11824,7 +11922,7 @@ exports.intervalProvider = {
|
|
|
11824
11922
|
|
|
11825
11923
|
}(intervalProvider));
|
|
11826
11924
|
|
|
11827
|
-
var __extends$
|
|
11925
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11828
11926
|
var extendStatics = function (d, b) {
|
|
11829
11927
|
extendStatics = Object.setPrototypeOf ||
|
|
11830
11928
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11845,7 +11943,7 @@ var Action_1 = Action$1;
|
|
|
11845
11943
|
var intervalProvider_1 = intervalProvider;
|
|
11846
11944
|
var arrRemove_1$5 = arrRemove$1;
|
|
11847
11945
|
var AsyncAction = (function (_super) {
|
|
11848
|
-
__extends$
|
|
11946
|
+
__extends$z(AsyncAction, _super);
|
|
11849
11947
|
function AsyncAction(scheduler, work) {
|
|
11850
11948
|
var _this = _super.call(this, scheduler, work) || this;
|
|
11851
11949
|
_this.scheduler = scheduler;
|
|
@@ -12010,7 +12108,7 @@ exports.immediateProvider = {
|
|
|
12010
12108
|
|
|
12011
12109
|
}(immediateProvider));
|
|
12012
12110
|
|
|
12013
|
-
var __extends$
|
|
12111
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12014
12112
|
var extendStatics = function (d, b) {
|
|
12015
12113
|
extendStatics = Object.setPrototypeOf ||
|
|
12016
12114
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12030,7 +12128,7 @@ AsapAction$1.AsapAction = void 0;
|
|
|
12030
12128
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
12031
12129
|
var immediateProvider_1 = immediateProvider;
|
|
12032
12130
|
var AsapAction = (function (_super) {
|
|
12033
|
-
__extends$
|
|
12131
|
+
__extends$y(AsapAction, _super);
|
|
12034
12132
|
function AsapAction(scheduler, work) {
|
|
12035
12133
|
var _this = _super.call(this, scheduler, work) || this;
|
|
12036
12134
|
_this.scheduler = scheduler;
|
|
@@ -12086,7 +12184,7 @@ var Scheduler = (function () {
|
|
|
12086
12184
|
}());
|
|
12087
12185
|
Scheduler$1.Scheduler = Scheduler;
|
|
12088
12186
|
|
|
12089
|
-
var __extends$
|
|
12187
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12090
12188
|
var extendStatics = function (d, b) {
|
|
12091
12189
|
extendStatics = Object.setPrototypeOf ||
|
|
12092
12190
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12105,7 +12203,7 @@ Object.defineProperty(AsyncScheduler$1, "__esModule", { value: true });
|
|
|
12105
12203
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
12106
12204
|
var Scheduler_1 = Scheduler$1;
|
|
12107
12205
|
var AsyncScheduler = (function (_super) {
|
|
12108
|
-
__extends$
|
|
12206
|
+
__extends$x(AsyncScheduler, _super);
|
|
12109
12207
|
function AsyncScheduler(SchedulerAction, now) {
|
|
12110
12208
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
12111
12209
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -12138,7 +12236,7 @@ var AsyncScheduler = (function (_super) {
|
|
|
12138
12236
|
}(Scheduler_1.Scheduler));
|
|
12139
12237
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
12140
12238
|
|
|
12141
|
-
var __extends$
|
|
12239
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12142
12240
|
var extendStatics = function (d, b) {
|
|
12143
12241
|
extendStatics = Object.setPrototypeOf ||
|
|
12144
12242
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12157,7 +12255,7 @@ Object.defineProperty(AsapScheduler$1, "__esModule", { value: true });
|
|
|
12157
12255
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
12158
12256
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
12159
12257
|
var AsapScheduler = (function (_super) {
|
|
12160
|
-
__extends$
|
|
12258
|
+
__extends$w(AsapScheduler, _super);
|
|
12161
12259
|
function AsapScheduler() {
|
|
12162
12260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12163
12261
|
}
|
|
@@ -12211,7 +12309,7 @@ var queue = {};
|
|
|
12211
12309
|
|
|
12212
12310
|
var QueueAction$1 = {};
|
|
12213
12311
|
|
|
12214
|
-
var __extends$
|
|
12312
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12215
12313
|
var extendStatics = function (d, b) {
|
|
12216
12314
|
extendStatics = Object.setPrototypeOf ||
|
|
12217
12315
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12230,7 +12328,7 @@ Object.defineProperty(QueueAction$1, "__esModule", { value: true });
|
|
|
12230
12328
|
QueueAction$1.QueueAction = void 0;
|
|
12231
12329
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
12232
12330
|
var QueueAction = (function (_super) {
|
|
12233
|
-
__extends$
|
|
12331
|
+
__extends$v(QueueAction, _super);
|
|
12234
12332
|
function QueueAction(scheduler, work) {
|
|
12235
12333
|
var _this = _super.call(this, scheduler, work) || this;
|
|
12236
12334
|
_this.scheduler = scheduler;
|
|
@@ -12264,7 +12362,7 @@ QueueAction$1.QueueAction = QueueAction;
|
|
|
12264
12362
|
|
|
12265
12363
|
var QueueScheduler$1 = {};
|
|
12266
12364
|
|
|
12267
|
-
var __extends$
|
|
12365
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12268
12366
|
var extendStatics = function (d, b) {
|
|
12269
12367
|
extendStatics = Object.setPrototypeOf ||
|
|
12270
12368
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12283,7 +12381,7 @@ Object.defineProperty(QueueScheduler$1, "__esModule", { value: true });
|
|
|
12283
12381
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
12284
12382
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
12285
12383
|
var QueueScheduler = (function (_super) {
|
|
12286
|
-
__extends$
|
|
12384
|
+
__extends$u(QueueScheduler, _super);
|
|
12287
12385
|
function QueueScheduler() {
|
|
12288
12386
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12289
12387
|
}
|
|
@@ -12305,7 +12403,7 @@ var animationFrame = {};
|
|
|
12305
12403
|
|
|
12306
12404
|
var AnimationFrameAction$1 = {};
|
|
12307
12405
|
|
|
12308
|
-
var __extends$
|
|
12406
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12309
12407
|
var extendStatics = function (d, b) {
|
|
12310
12408
|
extendStatics = Object.setPrototypeOf ||
|
|
12311
12409
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12325,7 +12423,7 @@ AnimationFrameAction$1.AnimationFrameAction = void 0;
|
|
|
12325
12423
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
12326
12424
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
12327
12425
|
var AnimationFrameAction = (function (_super) {
|
|
12328
|
-
__extends$
|
|
12426
|
+
__extends$t(AnimationFrameAction, _super);
|
|
12329
12427
|
function AnimationFrameAction(scheduler, work) {
|
|
12330
12428
|
var _this = _super.call(this, scheduler, work) || this;
|
|
12331
12429
|
_this.scheduler = scheduler;
|
|
@@ -12359,7 +12457,7 @@ AnimationFrameAction$1.AnimationFrameAction = AnimationFrameAction;
|
|
|
12359
12457
|
|
|
12360
12458
|
var AnimationFrameScheduler$1 = {};
|
|
12361
12459
|
|
|
12362
|
-
var __extends$
|
|
12460
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12363
12461
|
var extendStatics = function (d, b) {
|
|
12364
12462
|
extendStatics = Object.setPrototypeOf ||
|
|
12365
12463
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12378,7 +12476,7 @@ Object.defineProperty(AnimationFrameScheduler$1, "__esModule", { value: true });
|
|
|
12378
12476
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
12379
12477
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
12380
12478
|
var AnimationFrameScheduler = (function (_super) {
|
|
12381
|
-
__extends$
|
|
12479
|
+
__extends$s(AnimationFrameScheduler, _super);
|
|
12382
12480
|
function AnimationFrameScheduler() {
|
|
12383
12481
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12384
12482
|
}
|
|
@@ -12418,7 +12516,7 @@ exports.animationFrame = exports.animationFrameScheduler;
|
|
|
12418
12516
|
|
|
12419
12517
|
var VirtualTimeScheduler$1 = {};
|
|
12420
12518
|
|
|
12421
|
-
var __extends$
|
|
12519
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12422
12520
|
var extendStatics = function (d, b) {
|
|
12423
12521
|
extendStatics = Object.setPrototypeOf ||
|
|
12424
12522
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12439,7 +12537,7 @@ var AsyncAction_1 = AsyncAction$1;
|
|
|
12439
12537
|
var Subscription_1$4 = Subscription$1;
|
|
12440
12538
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
12441
12539
|
var VirtualTimeScheduler = (function (_super) {
|
|
12442
|
-
__extends$
|
|
12540
|
+
__extends$r(VirtualTimeScheduler, _super);
|
|
12443
12541
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
12444
12542
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
12445
12543
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -12472,7 +12570,7 @@ var VirtualTimeScheduler = (function (_super) {
|
|
|
12472
12570
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
12473
12571
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
12474
12572
|
var VirtualAction = (function (_super) {
|
|
12475
|
-
__extends$
|
|
12573
|
+
__extends$r(VirtualAction, _super);
|
|
12476
12574
|
function VirtualAction(scheduler, work, index) {
|
|
12477
12575
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
12478
12576
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -18305,7 +18403,7 @@ Object.defineProperty(resultRx, "__esModule", { value: true });
|
|
|
18305
18403
|
* limitations under the License.
|
|
18306
18404
|
*/
|
|
18307
18405
|
/* eslint-disable-next-line no-unused-vars */
|
|
18308
|
-
var neo4j_driver_core_1$
|
|
18406
|
+
var neo4j_driver_core_1$G = lib$1;
|
|
18309
18407
|
var rxjs_1$3 = cjs;
|
|
18310
18408
|
var operators_1$2 = operators;
|
|
18311
18409
|
var States = {
|
|
@@ -18439,7 +18537,7 @@ var RxResult = /** @class */ (function () {
|
|
|
18439
18537
|
});
|
|
18440
18538
|
}
|
|
18441
18539
|
else if (recordsObserver) {
|
|
18442
|
-
recordsObserver.error((0, neo4j_driver_core_1$
|
|
18540
|
+
recordsObserver.error((0, neo4j_driver_core_1$G.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
|
|
18443
18541
|
}
|
|
18444
18542
|
return function () {
|
|
18445
18543
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -18630,7 +18728,7 @@ var StreamControl = /** @class */ (function () {
|
|
|
18630
18728
|
|
|
18631
18729
|
var transactionRx = {};
|
|
18632
18730
|
|
|
18633
|
-
var __importDefault$
|
|
18731
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
18634
18732
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18635
18733
|
};
|
|
18636
18734
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -18653,9 +18751,9 @@ Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
|
18653
18751
|
* limitations under the License.
|
|
18654
18752
|
*/
|
|
18655
18753
|
var rxjs_1$2 = cjs;
|
|
18656
|
-
var result_rx_1$1 = __importDefault$
|
|
18754
|
+
var result_rx_1$1 = __importDefault$K(resultRx);
|
|
18657
18755
|
// eslint-disable-next-line no-unused-vars
|
|
18658
|
-
__importDefault$
|
|
18756
|
+
__importDefault$K(lib$1);
|
|
18659
18757
|
/**
|
|
18660
18758
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
18661
18759
|
*/
|
|
@@ -18754,7 +18852,7 @@ transactionRx.default = RxTransaction;
|
|
|
18754
18852
|
|
|
18755
18853
|
var transactionManagedRx = {};
|
|
18756
18854
|
|
|
18757
|
-
var __importDefault$
|
|
18855
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
18758
18856
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18759
18857
|
};
|
|
18760
18858
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -18777,9 +18875,9 @@ Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
|
18777
18875
|
* limitations under the License.
|
|
18778
18876
|
*/
|
|
18779
18877
|
// eslint-disable-next-line no-unused-vars
|
|
18780
|
-
__importDefault$
|
|
18878
|
+
__importDefault$J(resultRx);
|
|
18781
18879
|
// eslint-disable-next-line no-unused-vars
|
|
18782
|
-
__importDefault$
|
|
18880
|
+
__importDefault$J(transactionRx);
|
|
18783
18881
|
/**
|
|
18784
18882
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
18785
18883
|
*
|
|
@@ -18839,13 +18937,13 @@ var retryLogicRx = {};
|
|
|
18839
18937
|
* limitations under the License.
|
|
18840
18938
|
*/
|
|
18841
18939
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
18842
|
-
var neo4j_driver_core_1$
|
|
18940
|
+
var neo4j_driver_core_1$F = lib$1;
|
|
18843
18941
|
// eslint-disable-next-line no-unused-vars
|
|
18844
18942
|
var rxjs_1$1 = cjs;
|
|
18845
18943
|
var operators_1$1 = operators;
|
|
18846
18944
|
// eslint-disable-next-line no-unused-vars
|
|
18847
|
-
neo4j_driver_core_1$
|
|
18848
|
-
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$
|
|
18945
|
+
neo4j_driver_core_1$F.internal.logger.Logger;
|
|
18946
|
+
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
|
|
18849
18947
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
18850
18948
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
18851
18949
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -18876,13 +18974,13 @@ var RxRetryLogic = /** @class */ (function () {
|
|
|
18876
18974
|
var retryCount = 1;
|
|
18877
18975
|
var delayDuration = _this._initialDelay;
|
|
18878
18976
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
18879
|
-
if (!(0, neo4j_driver_core_1$
|
|
18977
|
+
if (!(0, neo4j_driver_core_1$F.isRetriableError)(err)) {
|
|
18880
18978
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
18881
18979
|
}
|
|
18882
18980
|
handledExceptions.push(err);
|
|
18883
18981
|
if (retryCount >= 2 &&
|
|
18884
18982
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
18885
|
-
var error_1 = (0, neo4j_driver_core_1$
|
|
18983
|
+
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
18984
|
error_1.seenErrors = handledExceptions;
|
|
18887
18985
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
18888
18986
|
}
|
|
@@ -18910,7 +19008,7 @@ function valueOrDefault$1(value, defaultValue) {
|
|
|
18910
19008
|
return defaultValue;
|
|
18911
19009
|
}
|
|
18912
19010
|
|
|
18913
|
-
var __importDefault$
|
|
19011
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
18914
19012
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18915
19013
|
};
|
|
18916
19014
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -18934,13 +19032,13 @@ Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
|
18934
19032
|
*/
|
|
18935
19033
|
var rxjs_1 = cjs;
|
|
18936
19034
|
var operators_1 = operators;
|
|
18937
|
-
var result_rx_1 = __importDefault$
|
|
19035
|
+
var result_rx_1 = __importDefault$I(resultRx);
|
|
18938
19036
|
// 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$
|
|
19037
|
+
var neo4j_driver_core_1$E = lib$1;
|
|
19038
|
+
var transaction_rx_1 = __importDefault$I(transactionRx);
|
|
19039
|
+
var transaction_managed_rx_1 = __importDefault$I(transactionManagedRx);
|
|
19040
|
+
var retry_logic_rx_1 = __importDefault$I(retryLogicRx);
|
|
19041
|
+
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
19042
|
/**
|
|
18945
19043
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
18946
19044
|
*/
|
|
@@ -19167,7 +19265,7 @@ function _createRetryLogic(config) {
|
|
|
19167
19265
|
* See the License for the specific language governing permissions and
|
|
19168
19266
|
* limitations under the License.
|
|
19169
19267
|
*/
|
|
19170
|
-
var __extends$
|
|
19268
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
19171
19269
|
var extendStatics = function (d, b) {
|
|
19172
19270
|
extendStatics = Object.setPrototypeOf ||
|
|
19173
19271
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -19182,15 +19280,15 @@ var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
19182
19280
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19183
19281
|
};
|
|
19184
19282
|
})();
|
|
19185
|
-
var __importDefault$
|
|
19283
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
19186
19284
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19187
19285
|
};
|
|
19188
19286
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
19189
19287
|
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$
|
|
19288
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
19289
|
+
var session_rx_1 = __importDefault$H(sessionRx);
|
|
19290
|
+
var FETCH_ALL$5 = neo4j_driver_core_1$D.internal.constants.FETCH_ALL;
|
|
19291
|
+
var READ$2 = neo4j_driver_core_1$D.driver.READ, WRITE$2 = neo4j_driver_core_1$D.driver.WRITE;
|
|
19194
19292
|
driver$1.READ = READ$2;
|
|
19195
19293
|
driver$1.WRITE = WRITE$2;
|
|
19196
19294
|
/**
|
|
@@ -19204,7 +19302,7 @@ driver$1.WRITE = WRITE$2;
|
|
|
19204
19302
|
* @access public
|
|
19205
19303
|
*/
|
|
19206
19304
|
var Driver = /** @class */ (function (_super) {
|
|
19207
|
-
__extends$
|
|
19305
|
+
__extends$q(Driver, _super);
|
|
19208
19306
|
function Driver() {
|
|
19209
19307
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
19210
19308
|
}
|
|
@@ -19241,7 +19339,7 @@ var Driver = /** @class */ (function (_super) {
|
|
|
19241
19339
|
});
|
|
19242
19340
|
};
|
|
19243
19341
|
return Driver;
|
|
19244
|
-
}(neo4j_driver_core_1$
|
|
19342
|
+
}(neo4j_driver_core_1$D.Driver));
|
|
19245
19343
|
driver$1.Driver = Driver;
|
|
19246
19344
|
/**
|
|
19247
19345
|
* @private
|
|
@@ -19289,7 +19387,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
19289
19387
|
// This is set up this way to keep the version in the code in
|
|
19290
19388
|
// sync with the npm package version, and to allow the build
|
|
19291
19389
|
// system to control version names at packaging time.
|
|
19292
|
-
version$1.default = '5.
|
|
19390
|
+
version$1.default = '5.9.0';
|
|
19293
19391
|
|
|
19294
19392
|
var lib = {};
|
|
19295
19393
|
|
|
@@ -19393,7 +19491,7 @@ var RoundRobinArrayIndex = /** @class */ (function () {
|
|
|
19393
19491
|
}());
|
|
19394
19492
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
19395
19493
|
|
|
19396
|
-
var __extends$
|
|
19494
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
19397
19495
|
var extendStatics = function (d, b) {
|
|
19398
19496
|
extendStatics = Object.setPrototypeOf ||
|
|
19399
19497
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -19408,7 +19506,7 @@ var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
19408
19506
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19409
19507
|
};
|
|
19410
19508
|
})();
|
|
19411
|
-
var __importDefault$
|
|
19509
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
19412
19510
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19413
19511
|
};
|
|
19414
19512
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -19430,10 +19528,10 @@ Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value
|
|
|
19430
19528
|
* See the License for the specific language governing permissions and
|
|
19431
19529
|
* limitations under the License.
|
|
19432
19530
|
*/
|
|
19433
|
-
var round_robin_array_index_1 = __importDefault$
|
|
19434
|
-
var load_balancing_strategy_1$1 = __importDefault$
|
|
19531
|
+
var round_robin_array_index_1 = __importDefault$G(roundRobinArrayIndex);
|
|
19532
|
+
var load_balancing_strategy_1$1 = __importDefault$G(loadBalancingStrategy);
|
|
19435
19533
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
19436
|
-
__extends$
|
|
19534
|
+
__extends$p(LeastConnectedLoadBalancingStrategy, _super);
|
|
19437
19535
|
/**
|
|
19438
19536
|
* @constructor
|
|
19439
19537
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -19489,7 +19587,7 @@ var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
|
19489
19587
|
}(load_balancing_strategy_1$1.default));
|
|
19490
19588
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
19491
19589
|
|
|
19492
|
-
var __importDefault$
|
|
19590
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
19493
19591
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19494
19592
|
};
|
|
19495
19593
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -19512,9 +19610,9 @@ loadBalancing.LeastConnectedLoadBalancingStrategy = loadBalancing.LoadBalancingS
|
|
|
19512
19610
|
* See the License for the specific language governing permissions and
|
|
19513
19611
|
* limitations under the License.
|
|
19514
19612
|
*/
|
|
19515
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
19613
|
+
var load_balancing_strategy_1 = __importDefault$F(loadBalancingStrategy);
|
|
19516
19614
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
19517
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
19615
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$F(leastConnectedLoadBalancingStrategy);
|
|
19518
19616
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
19519
19617
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
19520
19618
|
|
|
@@ -21901,7 +21999,7 @@ var baseBuf = {};
|
|
|
21901
21999
|
* See the License for the specific language governing permissions and
|
|
21902
22000
|
* limitations under the License.
|
|
21903
22001
|
*/
|
|
21904
|
-
var __extends$
|
|
22002
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21905
22003
|
var extendStatics = function (d, b) {
|
|
21906
22004
|
extendStatics = Object.setPrototypeOf ||
|
|
21907
22005
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22237,7 +22335,7 @@ baseBuf.default = BaseBuffer;
|
|
|
22237
22335
|
* @access private
|
|
22238
22336
|
*/
|
|
22239
22337
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
22240
|
-
__extends$
|
|
22338
|
+
__extends$o(SliceBuffer, _super);
|
|
22241
22339
|
function SliceBuffer(start, length, inner) {
|
|
22242
22340
|
var _this = _super.call(this, length) || this;
|
|
22243
22341
|
_this._start = start;
|
|
@@ -22283,12 +22381,12 @@ var SliceBuffer = /** @class */ (function (_super) {
|
|
|
22283
22381
|
* See the License for the specific language governing permissions and
|
|
22284
22382
|
* limitations under the License.
|
|
22285
22383
|
*/
|
|
22286
|
-
var __importDefault$
|
|
22384
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22287
22385
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22288
22386
|
};
|
|
22289
22387
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
22290
22388
|
buf.BaseBuffer = void 0;
|
|
22291
|
-
var base_buf_1$1 = __importDefault$
|
|
22389
|
+
var base_buf_1$1 = __importDefault$E(baseBuf);
|
|
22292
22390
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
22293
22391
|
buf.default = base_buf_1$1.default;
|
|
22294
22392
|
|
|
@@ -22310,7 +22408,7 @@ buf.default = base_buf_1$1.default;
|
|
|
22310
22408
|
* See the License for the specific language governing permissions and
|
|
22311
22409
|
* limitations under the License.
|
|
22312
22410
|
*/
|
|
22313
|
-
var __extends$
|
|
22411
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22314
22412
|
var extendStatics = function (d, b) {
|
|
22315
22413
|
extendStatics = Object.setPrototypeOf ||
|
|
22316
22414
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22325,15 +22423,15 @@ var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
22325
22423
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22326
22424
|
};
|
|
22327
22425
|
})();
|
|
22328
|
-
var __importDefault$
|
|
22426
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22329
22427
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22330
22428
|
};
|
|
22331
22429
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
22332
22430
|
channelBuf.alloc = void 0;
|
|
22333
|
-
var buffer_1$1 = __importDefault$
|
|
22334
|
-
var buf_1$1 = __importDefault$
|
|
22431
|
+
var buffer_1$1 = __importDefault$D(buffer);
|
|
22432
|
+
var buf_1$1 = __importDefault$D(buf);
|
|
22335
22433
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
22336
|
-
__extends$
|
|
22434
|
+
__extends$n(ChannelBuffer, _super);
|
|
22337
22435
|
function ChannelBuffer(arg) {
|
|
22338
22436
|
var _this = this;
|
|
22339
22437
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -22401,7 +22499,7 @@ function newChannelJSBuffer(arg) {
|
|
|
22401
22499
|
}
|
|
22402
22500
|
}
|
|
22403
22501
|
|
|
22404
|
-
var __importDefault$
|
|
22502
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22405
22503
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22406
22504
|
};
|
|
22407
22505
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -22424,9 +22522,9 @@ Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
|
22424
22522
|
* limitations under the License.
|
|
22425
22523
|
*/
|
|
22426
22524
|
/* eslint-env browser */
|
|
22427
|
-
var channel_buf_1$3 = __importDefault$
|
|
22428
|
-
var neo4j_driver_core_1$
|
|
22429
|
-
var _a$b = neo4j_driver_core_1$
|
|
22525
|
+
var channel_buf_1$3 = __importDefault$C(channelBuf);
|
|
22526
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
22527
|
+
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
22528
|
var WS_OPEN = 1;
|
|
22431
22529
|
var WS_CLOSED = 3;
|
|
22432
22530
|
/**
|
|
@@ -22491,7 +22589,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22491
22589
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
22492
22590
|
if (this._connectionTimeoutFired) {
|
|
22493
22591
|
// timeout fired - not connected within configured time
|
|
22494
|
-
this._error = (0, neo4j_driver_core_1$
|
|
22592
|
+
this._error = (0, neo4j_driver_core_1$C.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
|
|
22495
22593
|
if (this.onerror) {
|
|
22496
22594
|
this.onerror(this._error);
|
|
22497
22595
|
}
|
|
@@ -22500,7 +22598,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22500
22598
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
22501
22599
|
if (this._open && !this._timedout) {
|
|
22502
22600
|
// 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$
|
|
22601
|
+
this._error = (0, neo4j_driver_core_1$C.newError)('WebSocket connection failure. Due to security ' +
|
|
22504
22602
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
22505
22603
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
22506
22604
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -22539,7 +22637,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22539
22637
|
}
|
|
22540
22638
|
}
|
|
22541
22639
|
else {
|
|
22542
|
-
throw (0, neo4j_driver_core_1$
|
|
22640
|
+
throw (0, neo4j_driver_core_1$C.newError)("Don't know how to send buffer: " + buffer);
|
|
22543
22641
|
}
|
|
22544
22642
|
};
|
|
22545
22643
|
/**
|
|
@@ -22549,10 +22647,10 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22549
22647
|
WebSocketChannel.prototype.close = function () {
|
|
22550
22648
|
var _this = this;
|
|
22551
22649
|
return new Promise(function (resolve, reject) {
|
|
22650
|
+
_this._clearConnectionTimeout();
|
|
22552
22651
|
if (_this._ws && _this._ws.readyState !== WS_CLOSED) {
|
|
22553
22652
|
_this._open = false;
|
|
22554
22653
|
_this.stopReceiveTimeout();
|
|
22555
|
-
_this._clearConnectionTimeout();
|
|
22556
22654
|
_this._ws.onclose = function () { return resolve(); };
|
|
22557
22655
|
_this._ws.close();
|
|
22558
22656
|
}
|
|
@@ -22605,7 +22703,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
22605
22703
|
_this._receiveTimeoutId = null;
|
|
22606
22704
|
_this._timedout = true;
|
|
22607
22705
|
_this.stopReceiveTimeout();
|
|
22608
|
-
_this._error = (0, neo4j_driver_core_1$
|
|
22706
|
+
_this._error = (0, neo4j_driver_core_1$C.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
|
|
22609
22707
|
_this.close();
|
|
22610
22708
|
if (_this.onerror) {
|
|
22611
22709
|
_this.onerror(_this._error);
|
|
@@ -22714,7 +22812,7 @@ function determineWebSocketScheme(config, protocolSupplier) {
|
|
|
22714
22812
|
return { scheme: 'wss', error: null };
|
|
22715
22813
|
}
|
|
22716
22814
|
else {
|
|
22717
|
-
var error = (0, neo4j_driver_core_1$
|
|
22815
|
+
var error = (0, neo4j_driver_core_1$C.newError)('The browser version of this driver only supports one trust ' +
|
|
22718
22816
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
22719
22817
|
trust +
|
|
22720
22818
|
' is not supported. Please ' +
|
|
@@ -22791,7 +22889,7 @@ var browserHostNameResolver = {};
|
|
|
22791
22889
|
* See the License for the specific language governing permissions and
|
|
22792
22890
|
* limitations under the License.
|
|
22793
22891
|
*/
|
|
22794
|
-
var __extends$
|
|
22892
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22795
22893
|
var extendStatics = function (d, b) {
|
|
22796
22894
|
extendStatics = Object.setPrototypeOf ||
|
|
22797
22895
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22807,10 +22905,10 @@ var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
22807
22905
|
};
|
|
22808
22906
|
})();
|
|
22809
22907
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
22810
|
-
var neo4j_driver_core_1$
|
|
22811
|
-
var BaseHostNameResolver = neo4j_driver_core_1$
|
|
22908
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
22909
|
+
var BaseHostNameResolver = neo4j_driver_core_1$B.internal.resolver.BaseHostNameResolver;
|
|
22812
22910
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
22813
|
-
__extends$
|
|
22911
|
+
__extends$m(BrowserHostNameResolver, _super);
|
|
22814
22912
|
function BrowserHostNameResolver() {
|
|
22815
22913
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
22816
22914
|
}
|
|
@@ -22839,13 +22937,13 @@ browserHostNameResolver.default = BrowserHostNameResolver;
|
|
|
22839
22937
|
* See the License for the specific language governing permissions and
|
|
22840
22938
|
* limitations under the License.
|
|
22841
22939
|
*/
|
|
22842
|
-
var __importDefault$
|
|
22940
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22843
22941
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22844
22942
|
};
|
|
22845
22943
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
22846
22944
|
browser.HostNameResolver = browser.Channel = void 0;
|
|
22847
|
-
var browser_channel_1 = __importDefault$
|
|
22848
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
22945
|
+
var browser_channel_1 = __importDefault$B(browserChannel);
|
|
22946
|
+
var browser_host_name_resolver_1 = __importDefault$B(browserHostNameResolver);
|
|
22849
22947
|
/*
|
|
22850
22948
|
|
|
22851
22949
|
This module exports a set of components to be used in browser environment.
|
|
@@ -22881,7 +22979,7 @@ var combinedBuf = {};
|
|
|
22881
22979
|
* See the License for the specific language governing permissions and
|
|
22882
22980
|
* limitations under the License.
|
|
22883
22981
|
*/
|
|
22884
|
-
var __extends$
|
|
22982
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22885
22983
|
var extendStatics = function (d, b) {
|
|
22886
22984
|
extendStatics = Object.setPrototypeOf ||
|
|
22887
22985
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22903,7 +23001,7 @@ var channel_buf_1$2 = channelBuf;
|
|
|
22903
23001
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
22904
23002
|
*/
|
|
22905
23003
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
22906
|
-
__extends$
|
|
23004
|
+
__extends$l(CombinedBuffer, _super);
|
|
22907
23005
|
function CombinedBuffer(buffers) {
|
|
22908
23006
|
var _this = this;
|
|
22909
23007
|
var length = 0;
|
|
@@ -22971,7 +23069,7 @@ combinedBuf.default = CombinedBuffer;
|
|
|
22971
23069
|
* See the License for the specific language governing permissions and
|
|
22972
23070
|
* limitations under the License.
|
|
22973
23071
|
*/
|
|
22974
|
-
var __extends$
|
|
23072
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
22975
23073
|
var extendStatics = function (d, b) {
|
|
22976
23074
|
extendStatics = Object.setPrototypeOf ||
|
|
22977
23075
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22986,14 +23084,14 @@ var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
22986
23084
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22987
23085
|
};
|
|
22988
23086
|
})();
|
|
22989
|
-
var __importDefault$
|
|
23087
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
22990
23088
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22991
23089
|
};
|
|
22992
23090
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
22993
23091
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
22994
|
-
var base_buf_1 = __importDefault$
|
|
23092
|
+
var base_buf_1 = __importDefault$A(baseBuf);
|
|
22995
23093
|
var channel_buf_1$1 = channelBuf;
|
|
22996
|
-
var combined_buf_1 = __importDefault$
|
|
23094
|
+
var combined_buf_1 = __importDefault$A(combinedBuf);
|
|
22997
23095
|
var _CHUNK_HEADER_SIZE = 2;
|
|
22998
23096
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
22999
23097
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -23002,7 +23100,7 @@ var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/m
|
|
|
23002
23100
|
* @access private
|
|
23003
23101
|
*/
|
|
23004
23102
|
var Chunker = /** @class */ (function (_super) {
|
|
23005
|
-
__extends$
|
|
23103
|
+
__extends$k(Chunker, _super);
|
|
23006
23104
|
function Chunker(channel, bufferSize) {
|
|
23007
23105
|
var _this = _super.call(this, 0) || this;
|
|
23008
23106
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -23187,9 +23285,9 @@ var channelConfig = {};
|
|
|
23187
23285
|
* limitations under the License.
|
|
23188
23286
|
*/
|
|
23189
23287
|
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$
|
|
23288
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
23289
|
+
var _a$a = neo4j_driver_core_1$A.internal.util, ENCRYPTION_OFF = _a$a.ENCRYPTION_OFF, ENCRYPTION_ON = _a$a.ENCRYPTION_ON;
|
|
23290
|
+
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$A.error.SERVICE_UNAVAILABLE;
|
|
23193
23291
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
23194
23292
|
null,
|
|
23195
23293
|
undefined,
|
|
@@ -23227,14 +23325,14 @@ channelConfig.default = ChannelConfig;
|
|
|
23227
23325
|
function extractEncrypted(driverConfig) {
|
|
23228
23326
|
var value = driverConfig.encrypted;
|
|
23229
23327
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
23230
|
-
throw (0, neo4j_driver_core_1$
|
|
23328
|
+
throw (0, neo4j_driver_core_1$A.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
|
|
23231
23329
|
}
|
|
23232
23330
|
return value;
|
|
23233
23331
|
}
|
|
23234
23332
|
function extractTrust(driverConfig) {
|
|
23235
23333
|
var value = driverConfig.trust;
|
|
23236
23334
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
23237
|
-
throw (0, neo4j_driver_core_1$
|
|
23335
|
+
throw (0, neo4j_driver_core_1$A.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
|
|
23238
23336
|
}
|
|
23239
23337
|
return value;
|
|
23240
23338
|
}
|
|
@@ -23611,13 +23709,13 @@ function simpleEnd(buf) {
|
|
|
23611
23709
|
* See the License for the specific language governing permissions and
|
|
23612
23710
|
* limitations under the License.
|
|
23613
23711
|
*/
|
|
23614
|
-
var __importDefault$
|
|
23712
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23615
23713
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23616
23714
|
};
|
|
23617
23715
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
23618
|
-
var channel_buf_1 = __importDefault$
|
|
23619
|
-
var neo4j_driver_core_1$
|
|
23620
|
-
var buffer_1 = __importDefault$
|
|
23716
|
+
var channel_buf_1 = __importDefault$z(channelBuf);
|
|
23717
|
+
var neo4j_driver_core_1$z = lib$1;
|
|
23718
|
+
var buffer_1 = __importDefault$z(buffer);
|
|
23621
23719
|
var string_decoder_1 = string_decoder;
|
|
23622
23720
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
23623
23721
|
function encode(str) {
|
|
@@ -23631,7 +23729,7 @@ function decode(buffer, length) {
|
|
|
23631
23729
|
return decodeCombinedBuffer(buffer, length);
|
|
23632
23730
|
}
|
|
23633
23731
|
else {
|
|
23634
|
-
throw (0, neo4j_driver_core_1$
|
|
23732
|
+
throw (0, neo4j_driver_core_1$z.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
|
|
23635
23733
|
}
|
|
23636
23734
|
}
|
|
23637
23735
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -23752,7 +23850,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
23752
23850
|
*/
|
|
23753
23851
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
23754
23852
|
var channel_1$3 = channel;
|
|
23755
|
-
var neo4j_driver_core_1$
|
|
23853
|
+
var neo4j_driver_core_1$y = lib$1;
|
|
23756
23854
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
23757
23855
|
function version(major, minor) {
|
|
23758
23856
|
return {
|
|
@@ -23762,7 +23860,7 @@ function version(major, minor) {
|
|
|
23762
23860
|
}
|
|
23763
23861
|
function createHandshakeMessage(versions) {
|
|
23764
23862
|
if (versions.length > 4) {
|
|
23765
|
-
throw (0, neo4j_driver_core_1$
|
|
23863
|
+
throw (0, neo4j_driver_core_1$y.newError)('It should not have more than 4 versions of the protocol');
|
|
23766
23864
|
}
|
|
23767
23865
|
var handshakeBuffer = (0, channel_1$3.alloc)(5 * 4);
|
|
23768
23866
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -23789,7 +23887,7 @@ function parseNegotiatedResponse(buffer) {
|
|
|
23789
23887
|
buffer.readUInt8()
|
|
23790
23888
|
];
|
|
23791
23889
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
23792
|
-
throw (0, neo4j_driver_core_1$
|
|
23890
|
+
throw (0, neo4j_driver_core_1$y.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
|
|
23793
23891
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
23794
23892
|
}
|
|
23795
23893
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -23800,7 +23898,7 @@ function parseNegotiatedResponse(buffer) {
|
|
|
23800
23898
|
*/
|
|
23801
23899
|
function newHandshakeBuffer() {
|
|
23802
23900
|
return createHandshakeMessage([
|
|
23803
|
-
[version(5,
|
|
23901
|
+
[version(5, 3), version(5, 0)],
|
|
23804
23902
|
[version(4, 4), version(4, 2)],
|
|
23805
23903
|
version(4, 1),
|
|
23806
23904
|
version(3, 0)
|
|
@@ -23864,7 +23962,7 @@ var streamObservers = {};
|
|
|
23864
23962
|
|
|
23865
23963
|
var routingTableRaw = {};
|
|
23866
23964
|
|
|
23867
|
-
var __extends$
|
|
23965
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
23868
23966
|
var extendStatics = function (d, b) {
|
|
23869
23967
|
extendStatics = Object.setPrototypeOf ||
|
|
23870
23968
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23879,7 +23977,7 @@ var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
23879
23977
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23880
23978
|
};
|
|
23881
23979
|
})();
|
|
23882
|
-
var __importDefault$
|
|
23980
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23883
23981
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23884
23982
|
};
|
|
23885
23983
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -23902,7 +24000,7 @@ Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
|
23902
24000
|
* limitations under the License.
|
|
23903
24001
|
*/
|
|
23904
24002
|
// eslint-disable-next-line no-unused-vars
|
|
23905
|
-
__importDefault$
|
|
24003
|
+
__importDefault$y(lib$1);
|
|
23906
24004
|
/**
|
|
23907
24005
|
* Represente the raw version of the routing table
|
|
23908
24006
|
*/
|
|
@@ -23997,7 +24095,7 @@ routingTableRaw.default = RawRoutingTable;
|
|
|
23997
24095
|
* Get the raw routing table information from route message response
|
|
23998
24096
|
*/
|
|
23999
24097
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
24000
|
-
__extends$
|
|
24098
|
+
__extends$j(ResponseRawRoutingTable, _super);
|
|
24001
24099
|
function ResponseRawRoutingTable(response) {
|
|
24002
24100
|
var _this = _super.call(this) || this;
|
|
24003
24101
|
_this._response = response;
|
|
@@ -24037,7 +24135,7 @@ var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
|
24037
24135
|
* Null routing table
|
|
24038
24136
|
*/
|
|
24039
24137
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
24040
|
-
__extends$
|
|
24138
|
+
__extends$j(NullRawRoutingTable, _super);
|
|
24041
24139
|
function NullRawRoutingTable() {
|
|
24042
24140
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24043
24141
|
}
|
|
@@ -24054,7 +24152,7 @@ var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
|
24054
24152
|
* Get the raw routing table information from the record
|
|
24055
24153
|
*/
|
|
24056
24154
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
24057
|
-
__extends$
|
|
24155
|
+
__extends$j(RecordRawRoutingTable, _super);
|
|
24058
24156
|
function RecordRawRoutingTable(record) {
|
|
24059
24157
|
var _this = _super.call(this) || this;
|
|
24060
24158
|
_this._record = record;
|
|
@@ -24091,7 +24189,7 @@ var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
|
24091
24189
|
return RecordRawRoutingTable;
|
|
24092
24190
|
}(RawRoutingTable));
|
|
24093
24191
|
|
|
24094
|
-
var __extends$
|
|
24192
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24095
24193
|
var extendStatics = function (d, b) {
|
|
24096
24194
|
extendStatics = Object.setPrototypeOf ||
|
|
24097
24195
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24106,7 +24204,7 @@ var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
24106
24204
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24107
24205
|
};
|
|
24108
24206
|
})();
|
|
24109
|
-
var __importDefault$
|
|
24207
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24110
24208
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24111
24209
|
};
|
|
24112
24210
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -24129,10 +24227,10 @@ streamObservers.ProcedureRouteObserver = streamObservers.RouteObserver = streamO
|
|
|
24129
24227
|
* See the License for the specific language governing permissions and
|
|
24130
24228
|
* limitations under the License.
|
|
24131
24229
|
*/
|
|
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$
|
|
24230
|
+
var neo4j_driver_core_1$x = lib$1;
|
|
24231
|
+
var routing_table_raw_1 = __importDefault$x(routingTableRaw);
|
|
24232
|
+
var FETCH_ALL$4 = neo4j_driver_core_1$x.internal.constants.FETCH_ALL;
|
|
24233
|
+
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$x.error.PROTOCOL_ERROR;
|
|
24136
24234
|
var StreamObserver = /** @class */ (function () {
|
|
24137
24235
|
function StreamObserver() {
|
|
24138
24236
|
}
|
|
@@ -24153,7 +24251,7 @@ streamObservers.StreamObserver = StreamObserver;
|
|
|
24153
24251
|
* @access private
|
|
24154
24252
|
*/
|
|
24155
24253
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
24156
|
-
__extends$
|
|
24254
|
+
__extends$i(ResultStreamObserver, _super);
|
|
24157
24255
|
/**
|
|
24158
24256
|
*
|
|
24159
24257
|
* @param {Object} param
|
|
@@ -24225,7 +24323,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
24225
24323
|
* @param {Array} rawRecord - An array with the raw record
|
|
24226
24324
|
*/
|
|
24227
24325
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
24228
|
-
var record = new neo4j_driver_core_1$
|
|
24326
|
+
var record = new neo4j_driver_core_1$x.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
24229
24327
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
24230
24328
|
this._observers.forEach(function (o) {
|
|
24231
24329
|
if (o.onNext) {
|
|
@@ -24328,7 +24426,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
24328
24426
|
var _this = this;
|
|
24329
24427
|
var completionMetadata = Object.assign(this._server ? { server: this._server } : {}, this._meta, meta);
|
|
24330
24428
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
24331
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24429
|
+
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
24430
|
return;
|
|
24333
24431
|
}
|
|
24334
24432
|
this._setState(_states.SUCCEEDED);
|
|
@@ -24470,7 +24568,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
24470
24568
|
}(StreamObserver));
|
|
24471
24569
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
24472
24570
|
var LoginObserver = /** @class */ (function (_super) {
|
|
24473
|
-
__extends$
|
|
24571
|
+
__extends$i(LoginObserver, _super);
|
|
24474
24572
|
/**
|
|
24475
24573
|
*
|
|
24476
24574
|
* @param {Object} param -
|
|
@@ -24485,7 +24583,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
24485
24583
|
return _this;
|
|
24486
24584
|
}
|
|
24487
24585
|
LoginObserver.prototype.onNext = function (record) {
|
|
24488
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24586
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$x.json.stringify(record)));
|
|
24489
24587
|
};
|
|
24490
24588
|
LoginObserver.prototype.onError = function (error) {
|
|
24491
24589
|
if (this._onError) {
|
|
@@ -24501,7 +24599,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
24501
24599
|
}(StreamObserver));
|
|
24502
24600
|
streamObservers.LoginObserver = LoginObserver;
|
|
24503
24601
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
24504
|
-
__extends$
|
|
24602
|
+
__extends$i(LogoffObserver, _super);
|
|
24505
24603
|
/**
|
|
24506
24604
|
*
|
|
24507
24605
|
* @param {Object} param -
|
|
@@ -24516,7 +24614,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
24516
24614
|
return _this;
|
|
24517
24615
|
}
|
|
24518
24616
|
LogoffObserver.prototype.onNext = function (record) {
|
|
24519
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24617
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$x.json.stringify(record)));
|
|
24520
24618
|
};
|
|
24521
24619
|
LogoffObserver.prototype.onError = function (error) {
|
|
24522
24620
|
if (this._onError) {
|
|
@@ -24532,7 +24630,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
24532
24630
|
}(StreamObserver));
|
|
24533
24631
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
24534
24632
|
var ResetObserver = /** @class */ (function (_super) {
|
|
24535
|
-
__extends$
|
|
24633
|
+
__extends$i(ResetObserver, _super);
|
|
24536
24634
|
/**
|
|
24537
24635
|
*
|
|
24538
24636
|
* @param {Object} param -
|
|
@@ -24549,8 +24647,8 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
24549
24647
|
return _this;
|
|
24550
24648
|
}
|
|
24551
24649
|
ResetObserver.prototype.onNext = function (record) {
|
|
24552
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24553
|
-
neo4j_driver_core_1$
|
|
24650
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when resetting: received record is: ' +
|
|
24651
|
+
neo4j_driver_core_1$x.json.stringify(record), PROTOCOL_ERROR$5));
|
|
24554
24652
|
};
|
|
24555
24653
|
ResetObserver.prototype.onError = function (error) {
|
|
24556
24654
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -24569,7 +24667,7 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
24569
24667
|
}(StreamObserver));
|
|
24570
24668
|
streamObservers.ResetObserver = ResetObserver;
|
|
24571
24669
|
var FailedObserver = /** @class */ (function (_super) {
|
|
24572
|
-
__extends$
|
|
24670
|
+
__extends$i(FailedObserver, _super);
|
|
24573
24671
|
function FailedObserver(_a) {
|
|
24574
24672
|
var error = _a.error, onError = _a.onError;
|
|
24575
24673
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -24580,7 +24678,7 @@ var FailedObserver = /** @class */ (function (_super) {
|
|
|
24580
24678
|
}(ResultStreamObserver));
|
|
24581
24679
|
streamObservers.FailedObserver = FailedObserver;
|
|
24582
24680
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
24583
|
-
__extends$
|
|
24681
|
+
__extends$i(CompletedObserver, _super);
|
|
24584
24682
|
function CompletedObserver() {
|
|
24585
24683
|
var _this = _super.call(this) || this;
|
|
24586
24684
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -24590,7 +24688,7 @@ var CompletedObserver = /** @class */ (function (_super) {
|
|
|
24590
24688
|
}(ResultStreamObserver));
|
|
24591
24689
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
24592
24690
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
24593
|
-
__extends$
|
|
24691
|
+
__extends$i(ProcedureRouteObserver, _super);
|
|
24594
24692
|
function ProcedureRouteObserver(_a) {
|
|
24595
24693
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
24596
24694
|
var _this = _super.call(this) || this;
|
|
@@ -24615,10 +24713,10 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
24615
24713
|
};
|
|
24616
24714
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
24617
24715
|
if (this._records !== null && this._records.length !== 1) {
|
|
24618
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24716
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Illegal response from router. Received ' +
|
|
24619
24717
|
this._records.length +
|
|
24620
24718
|
' records but expected only one.\n' +
|
|
24621
|
-
neo4j_driver_core_1$
|
|
24719
|
+
neo4j_driver_core_1$x.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
24622
24720
|
return;
|
|
24623
24721
|
}
|
|
24624
24722
|
if (this._onCompleted) {
|
|
@@ -24629,7 +24727,7 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
24629
24727
|
}(StreamObserver));
|
|
24630
24728
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
24631
24729
|
var RouteObserver = /** @class */ (function (_super) {
|
|
24632
|
-
__extends$
|
|
24730
|
+
__extends$i(RouteObserver, _super);
|
|
24633
24731
|
/**
|
|
24634
24732
|
*
|
|
24635
24733
|
* @param {Object} param -
|
|
@@ -24646,8 +24744,8 @@ var RouteObserver = /** @class */ (function (_super) {
|
|
|
24646
24744
|
return _this;
|
|
24647
24745
|
}
|
|
24648
24746
|
RouteObserver.prototype.onNext = function (record) {
|
|
24649
|
-
this.onError((0, neo4j_driver_core_1$
|
|
24650
|
-
neo4j_driver_core_1$
|
|
24747
|
+
this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when resetting: received record is: ' +
|
|
24748
|
+
neo4j_driver_core_1$x.json.stringify(record), PROTOCOL_ERROR$5));
|
|
24651
24749
|
};
|
|
24652
24750
|
RouteObserver.prototype.onError = function (error) {
|
|
24653
24751
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -24751,7 +24849,7 @@ boltProtocolUtil.assertNotificationFilterIsEmpty = boltProtocolUtil.assertImpers
|
|
|
24751
24849
|
* See the License for the specific language governing permissions and
|
|
24752
24850
|
* limitations under the License.
|
|
24753
24851
|
*/
|
|
24754
|
-
var neo4j_driver_core_1$
|
|
24852
|
+
var neo4j_driver_core_1$w = lib$1;
|
|
24755
24853
|
/**
|
|
24756
24854
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
24757
24855
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -24760,7 +24858,7 @@ var neo4j_driver_core_1$v = lib$1;
|
|
|
24760
24858
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
24761
24859
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24762
24860
|
if (txConfig && !txConfig.isEmpty()) {
|
|
24763
|
-
var error = (0, neo4j_driver_core_1$
|
|
24861
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support transaction configuration. ' +
|
|
24764
24862
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
24765
24863
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
24766
24864
|
onProtocolError(error.message);
|
|
@@ -24777,7 +24875,7 @@ boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
|
24777
24875
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
24778
24876
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24779
24877
|
if (database) {
|
|
24780
|
-
var error = (0, neo4j_driver_core_1$
|
|
24878
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support multiple databases. ' +
|
|
24781
24879
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
24782
24880
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
24783
24881
|
onProtocolError(error.message);
|
|
@@ -24795,7 +24893,7 @@ boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
|
24795
24893
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
24796
24894
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24797
24895
|
if (impersonatedUser) {
|
|
24798
|
-
var error = (0, neo4j_driver_core_1$
|
|
24896
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support user impersonation. ' +
|
|
24799
24897
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
24800
24898
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
24801
24899
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -24814,9 +24912,9 @@ boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
|
24814
24912
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
24815
24913
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
24816
24914
|
if (notificationFilter !== undefined) {
|
|
24817
|
-
var error = (0, neo4j_driver_core_1$
|
|
24915
|
+
var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to a database that does not support user notification filters. ' +
|
|
24818
24916
|
'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$
|
|
24917
|
+
"Trying to set notifications to ".concat(neo4j_driver_core_1$w.json.stringify(notificationFilter), "."));
|
|
24820
24918
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
24821
24919
|
onProtocolError(error.message);
|
|
24822
24920
|
observer.onError(error);
|
|
@@ -25002,8 +25100,8 @@ var structure$1 = {};
|
|
|
25002
25100
|
*/
|
|
25003
25101
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
25004
25102
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
25005
|
-
var neo4j_driver_core_1$
|
|
25006
|
-
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$
|
|
25103
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
25104
|
+
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
|
|
25007
25105
|
/**
|
|
25008
25106
|
* A Structure have a signature and fields.
|
|
25009
25107
|
*/
|
|
@@ -25037,7 +25135,7 @@ var Structure = /** @class */ (function () {
|
|
|
25037
25135
|
structure$1.Structure = Structure;
|
|
25038
25136
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
25039
25137
|
if (expectedSize !== actualSize) {
|
|
25040
|
-
throw (0, neo4j_driver_core_1$
|
|
25138
|
+
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
25139
|
}
|
|
25042
25140
|
}
|
|
25043
25141
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -25066,8 +25164,8 @@ packstreamV1.Unpacker = packstreamV1.Packer = void 0;
|
|
|
25066
25164
|
var channel_1$2 = channel;
|
|
25067
25165
|
var lang_1$2 = lang;
|
|
25068
25166
|
var structure_1 = structure$1;
|
|
25069
|
-
var neo4j_driver_core_1$
|
|
25070
|
-
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$
|
|
25167
|
+
var neo4j_driver_core_1$u = lib$1;
|
|
25168
|
+
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$u.error.PROTOCOL_ERROR;
|
|
25071
25169
|
var TINY_STRING = 0x80;
|
|
25072
25170
|
var TINY_LIST = 0x90;
|
|
25073
25171
|
var TINY_MAP = 0xa0;
|
|
@@ -25137,9 +25235,9 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25137
25235
|
return function () { return _this.packString(x); };
|
|
25138
25236
|
}
|
|
25139
25237
|
else if (typeof x === 'bigint') {
|
|
25140
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
25238
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$u.int)(x)); };
|
|
25141
25239
|
}
|
|
25142
|
-
else if ((0, neo4j_driver_core_1$
|
|
25240
|
+
else if ((0, neo4j_driver_core_1$u.isInt)(x)) {
|
|
25143
25241
|
return function () { return _this.packInteger(x); };
|
|
25144
25242
|
}
|
|
25145
25243
|
else if (x instanceof Int8Array) {
|
|
@@ -25193,7 +25291,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25193
25291
|
}
|
|
25194
25292
|
catch (e) {
|
|
25195
25293
|
// handle errors from iterable to array conversion
|
|
25196
|
-
throw (0, neo4j_driver_core_1$
|
|
25294
|
+
throw (0, neo4j_driver_core_1$u.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
25197
25295
|
}
|
|
25198
25296
|
};
|
|
25199
25297
|
/**
|
|
@@ -25263,7 +25361,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25263
25361
|
this._ch.writeBytes(bytes);
|
|
25264
25362
|
}
|
|
25265
25363
|
else {
|
|
25266
|
-
throw (0, neo4j_driver_core_1$
|
|
25364
|
+
throw (0, neo4j_driver_core_1$u.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
25267
25365
|
}
|
|
25268
25366
|
};
|
|
25269
25367
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -25287,7 +25385,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25287
25385
|
this._ch.writeUInt8(size % 256);
|
|
25288
25386
|
}
|
|
25289
25387
|
else {
|
|
25290
|
-
throw (0, neo4j_driver_core_1$
|
|
25388
|
+
throw (0, neo4j_driver_core_1$u.newError)('Lists of size ' + size + ' are not supported');
|
|
25291
25389
|
}
|
|
25292
25390
|
};
|
|
25293
25391
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -25298,7 +25396,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25298
25396
|
}
|
|
25299
25397
|
}
|
|
25300
25398
|
else {
|
|
25301
|
-
throw (0, neo4j_driver_core_1$
|
|
25399
|
+
throw (0, neo4j_driver_core_1$u.newError)('Byte arrays are not supported by the database this driver is connected to');
|
|
25302
25400
|
}
|
|
25303
25401
|
};
|
|
25304
25402
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -25319,7 +25417,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25319
25417
|
this._ch.writeUInt8(size % 256);
|
|
25320
25418
|
}
|
|
25321
25419
|
else {
|
|
25322
|
-
throw (0, neo4j_driver_core_1$
|
|
25420
|
+
throw (0, neo4j_driver_core_1$u.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
25323
25421
|
}
|
|
25324
25422
|
};
|
|
25325
25423
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -25343,7 +25441,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25343
25441
|
this._ch.writeUInt8(size % 256);
|
|
25344
25442
|
}
|
|
25345
25443
|
else {
|
|
25346
|
-
throw (0, neo4j_driver_core_1$
|
|
25444
|
+
throw (0, neo4j_driver_core_1$u.newError)('Maps of size ' + size + ' are not supported');
|
|
25347
25445
|
}
|
|
25348
25446
|
};
|
|
25349
25447
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -25362,7 +25460,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25362
25460
|
this._ch.writeUInt8(size % 256);
|
|
25363
25461
|
}
|
|
25364
25462
|
else {
|
|
25365
|
-
throw (0, neo4j_driver_core_1$
|
|
25463
|
+
throw (0, neo4j_driver_core_1$u.newError)('Structures of size ' + size + ' are not supported');
|
|
25366
25464
|
}
|
|
25367
25465
|
};
|
|
25368
25466
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -25370,7 +25468,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25370
25468
|
};
|
|
25371
25469
|
Packer.prototype._nonPackableValue = function (message) {
|
|
25372
25470
|
return function () {
|
|
25373
|
-
throw (0, neo4j_driver_core_1$
|
|
25471
|
+
throw (0, neo4j_driver_core_1$u.newError)(message, PROTOCOL_ERROR$3);
|
|
25374
25472
|
};
|
|
25375
25473
|
};
|
|
25376
25474
|
return Packer;
|
|
@@ -25406,7 +25504,7 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
25406
25504
|
}
|
|
25407
25505
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
25408
25506
|
if (numberOrInteger !== null) {
|
|
25409
|
-
if ((0, neo4j_driver_core_1$
|
|
25507
|
+
if ((0, neo4j_driver_core_1$u.isInt)(numberOrInteger)) {
|
|
25410
25508
|
if (this._useBigInt) {
|
|
25411
25509
|
return numberOrInteger.toBigInt();
|
|
25412
25510
|
}
|
|
@@ -25436,13 +25534,13 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
25436
25534
|
if (struct !== null) {
|
|
25437
25535
|
return struct;
|
|
25438
25536
|
}
|
|
25439
|
-
throw (0, neo4j_driver_core_1$
|
|
25537
|
+
throw (0, neo4j_driver_core_1$u.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
25440
25538
|
};
|
|
25441
25539
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
25442
25540
|
var marker = buffer.readUInt8();
|
|
25443
25541
|
var result = this._unpackInteger(marker, buffer);
|
|
25444
25542
|
if (result == null) {
|
|
25445
|
-
throw (0, neo4j_driver_core_1$
|
|
25543
|
+
throw (0, neo4j_driver_core_1$u.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
|
|
25446
25544
|
}
|
|
25447
25545
|
return result;
|
|
25448
25546
|
};
|
|
@@ -25467,25 +25565,25 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
25467
25565
|
};
|
|
25468
25566
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
25469
25567
|
if (marker >= 0 && marker < 128) {
|
|
25470
|
-
return (0, neo4j_driver_core_1$
|
|
25568
|
+
return (0, neo4j_driver_core_1$u.int)(marker);
|
|
25471
25569
|
}
|
|
25472
25570
|
else if (marker >= 240 && marker < 256) {
|
|
25473
|
-
return (0, neo4j_driver_core_1$
|
|
25571
|
+
return (0, neo4j_driver_core_1$u.int)(marker - 256);
|
|
25474
25572
|
}
|
|
25475
25573
|
else if (marker === INT_8) {
|
|
25476
|
-
return (0, neo4j_driver_core_1$
|
|
25574
|
+
return (0, neo4j_driver_core_1$u.int)(buffer.readInt8());
|
|
25477
25575
|
}
|
|
25478
25576
|
else if (marker === INT_16) {
|
|
25479
|
-
return (0, neo4j_driver_core_1$
|
|
25577
|
+
return (0, neo4j_driver_core_1$u.int)(buffer.readInt16());
|
|
25480
25578
|
}
|
|
25481
25579
|
else if (marker === INT_32) {
|
|
25482
25580
|
var b = buffer.readInt32();
|
|
25483
|
-
return (0, neo4j_driver_core_1$
|
|
25581
|
+
return (0, neo4j_driver_core_1$u.int)(b);
|
|
25484
25582
|
}
|
|
25485
25583
|
else if (marker === INT_64) {
|
|
25486
25584
|
var high = buffer.readInt32();
|
|
25487
25585
|
var low = buffer.readInt32();
|
|
25488
|
-
return new neo4j_driver_core_1$
|
|
25586
|
+
return new neo4j_driver_core_1$u.Integer(low, high);
|
|
25489
25587
|
}
|
|
25490
25588
|
else {
|
|
25491
25589
|
return null;
|
|
@@ -25630,7 +25728,7 @@ var packstreamV2 = {};
|
|
|
25630
25728
|
* See the License for the specific language governing permissions and
|
|
25631
25729
|
* limitations under the License.
|
|
25632
25730
|
*/
|
|
25633
|
-
var __extends$
|
|
25731
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25634
25732
|
var extendStatics = function (d, b) {
|
|
25635
25733
|
extendStatics = Object.setPrototypeOf ||
|
|
25636
25734
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25672,7 +25770,7 @@ Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
|
25672
25770
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
25673
25771
|
var v1$1 = __importStar$4(packstreamV1);
|
|
25674
25772
|
var Packer = /** @class */ (function (_super) {
|
|
25675
|
-
__extends$
|
|
25773
|
+
__extends$h(Packer, _super);
|
|
25676
25774
|
function Packer() {
|
|
25677
25775
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25678
25776
|
}
|
|
@@ -25683,7 +25781,7 @@ var Packer = /** @class */ (function (_super) {
|
|
|
25683
25781
|
}(v1$1.Packer));
|
|
25684
25782
|
packstreamV2.Packer = Packer;
|
|
25685
25783
|
var Unpacker = /** @class */ (function (_super) {
|
|
25686
|
-
__extends$
|
|
25784
|
+
__extends$h(Unpacker, _super);
|
|
25687
25785
|
/**
|
|
25688
25786
|
* @constructor
|
|
25689
25787
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -25771,8 +25869,8 @@ var requestMessage = {};
|
|
|
25771
25869
|
*/
|
|
25772
25870
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
25773
25871
|
requestMessage.SIGNATURES = void 0;
|
|
25774
|
-
var neo4j_driver_core_1$
|
|
25775
|
-
var _a$9 = neo4j_driver_core_1$
|
|
25872
|
+
var neo4j_driver_core_1$t = lib$1;
|
|
25873
|
+
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
25874
|
/* eslint-disable no-unused-vars */
|
|
25777
25875
|
// Signature bytes for each request message type
|
|
25778
25876
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -25831,7 +25929,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25831
25929
|
* @return {RequestMessage} new RUN message.
|
|
25832
25930
|
*/
|
|
25833
25931
|
RequestMessage.run = function (query, parameters) {
|
|
25834
|
-
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
25932
|
+
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$t.json.stringify(parameters)); });
|
|
25835
25933
|
};
|
|
25836
25934
|
/**
|
|
25837
25935
|
* Get a PULL_ALL message.
|
|
@@ -25902,7 +26000,43 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25902
26000
|
if (routing) {
|
|
25903
26001
|
metadata.routing = routing;
|
|
25904
26002
|
}
|
|
25905
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
26003
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
26004
|
+
};
|
|
26005
|
+
/**
|
|
26006
|
+
* Create a new HELLO message.
|
|
26007
|
+
* @param {string} userAgent the user agent.
|
|
26008
|
+
* @param {string} boltAgent the bolt agent.
|
|
26009
|
+
* @param {NotificationFilter} notificationFilter the notification filter configured
|
|
26010
|
+
* @param {Object} routing server side routing, set to routing context to turn on server side routing (> 4.1)
|
|
26011
|
+
* @return {RequestMessage} new HELLO message.
|
|
26012
|
+
*/
|
|
26013
|
+
RequestMessage.hello5x3 = function (userAgent, boltAgent, notificationFilter, routing) {
|
|
26014
|
+
if (notificationFilter === void 0) { notificationFilter = null; }
|
|
26015
|
+
if (routing === void 0) { routing = null; }
|
|
26016
|
+
var metadata = {};
|
|
26017
|
+
if (userAgent) {
|
|
26018
|
+
metadata.user_agent = userAgent;
|
|
26019
|
+
}
|
|
26020
|
+
if (boltAgent) {
|
|
26021
|
+
metadata.bolt_agent = {
|
|
26022
|
+
product: boltAgent.product,
|
|
26023
|
+
platform: boltAgent.platform,
|
|
26024
|
+
language: boltAgent.language,
|
|
26025
|
+
language_details: boltAgent.languageDetails
|
|
26026
|
+
};
|
|
26027
|
+
}
|
|
26028
|
+
if (notificationFilter) {
|
|
26029
|
+
if (notificationFilter.minimumSeverityLevel) {
|
|
26030
|
+
metadata.notifications_minimum_severity = notificationFilter.minimumSeverityLevel;
|
|
26031
|
+
}
|
|
26032
|
+
if (notificationFilter.disabledCategories) {
|
|
26033
|
+
metadata.notifications_disabled_categories = notificationFilter.disabledCategories;
|
|
26034
|
+
}
|
|
26035
|
+
}
|
|
26036
|
+
if (routing) {
|
|
26037
|
+
metadata.routing = routing;
|
|
26038
|
+
}
|
|
26039
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25906
26040
|
};
|
|
25907
26041
|
/**
|
|
25908
26042
|
* Create a new LOGON message.
|
|
@@ -25934,7 +26068,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25934
26068
|
RequestMessage.begin = function (_a) {
|
|
25935
26069
|
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
26070
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
25937
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
26071
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25938
26072
|
};
|
|
25939
26073
|
/**
|
|
25940
26074
|
* Get a COMMIT message.
|
|
@@ -25965,7 +26099,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25965
26099
|
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
26100
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
25967
26101
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
25968
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
26102
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$t.json.stringify(parameters), " ").concat(neo4j_driver_core_1$t.json.stringify(metadata));
|
|
25969
26103
|
});
|
|
25970
26104
|
};
|
|
25971
26105
|
/**
|
|
@@ -25984,7 +26118,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25984
26118
|
RequestMessage.pull = function (_a) {
|
|
25985
26119
|
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
26120
|
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$
|
|
26121
|
+
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25988
26122
|
};
|
|
25989
26123
|
/**
|
|
25990
26124
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -25995,7 +26129,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
25995
26129
|
RequestMessage.discard = function (_a) {
|
|
25996
26130
|
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
26131
|
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$
|
|
26132
|
+
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
|
|
25999
26133
|
};
|
|
26000
26134
|
/**
|
|
26001
26135
|
* Generate the ROUTE message, this message is used to fetch the routing table from the server
|
|
@@ -26010,7 +26144,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
26010
26144
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
26011
26145
|
if (databaseName === void 0) { databaseName = null; }
|
|
26012
26146
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
26013
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
26147
|
+
return "ROUTE ".concat(neo4j_driver_core_1$t.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$t.json.stringify(bookmarks), " ").concat(databaseName);
|
|
26014
26148
|
});
|
|
26015
26149
|
};
|
|
26016
26150
|
/**
|
|
@@ -26035,7 +26169,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
26035
26169
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
26036
26170
|
}
|
|
26037
26171
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
26038
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
26172
|
+
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
26173
|
});
|
|
26040
26174
|
};
|
|
26041
26175
|
return RequestMessage;
|
|
@@ -26088,9 +26222,9 @@ function buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser,
|
|
|
26088
26222
|
* @returns {Object} a metadata object.
|
|
26089
26223
|
*/
|
|
26090
26224
|
function buildStreamMetadata(stmtId, n) {
|
|
26091
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
26225
|
+
var metadata = { n: (0, neo4j_driver_core_1$t.int)(n) };
|
|
26092
26226
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
26093
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
26227
|
+
metadata.qid = (0, neo4j_driver_core_1$t.int)(stmtId);
|
|
26094
26228
|
}
|
|
26095
26229
|
return metadata;
|
|
26096
26230
|
}
|
|
@@ -26126,8 +26260,8 @@ var transformer = {};
|
|
|
26126
26260
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
26127
26261
|
transformer.TypeTransformer = void 0;
|
|
26128
26262
|
var packstream_1$6 = packstream;
|
|
26129
|
-
var neo4j_driver_core_1$
|
|
26130
|
-
var objectUtil = neo4j_driver_core_1$
|
|
26263
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
26264
|
+
var objectUtil = neo4j_driver_core_1$s.internal.objectUtil;
|
|
26131
26265
|
/**
|
|
26132
26266
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
26133
26267
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -26272,10 +26406,10 @@ var __read$6 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
26272
26406
|
return ar;
|
|
26273
26407
|
};
|
|
26274
26408
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
26275
|
-
var neo4j_driver_core_1$
|
|
26409
|
+
var neo4j_driver_core_1$r = lib$1;
|
|
26276
26410
|
var packstream_1$5 = packstream;
|
|
26277
|
-
var transformer_1$
|
|
26278
|
-
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$
|
|
26411
|
+
var transformer_1$d = transformer;
|
|
26412
|
+
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$r.error.PROTOCOL_ERROR;
|
|
26279
26413
|
var NODE = 0x4e;
|
|
26280
26414
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
26281
26415
|
var RELATIONSHIP = 0x52;
|
|
@@ -26289,16 +26423,16 @@ var PATH_STRUCT_SIZE = 3;
|
|
|
26289
26423
|
* @returns {TypeTransformer}
|
|
26290
26424
|
*/
|
|
26291
26425
|
function createNodeTransformer$1() {
|
|
26292
|
-
return new transformer_1$
|
|
26426
|
+
return new transformer_1$d.TypeTransformer({
|
|
26293
26427
|
signature: NODE,
|
|
26294
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26428
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Node; },
|
|
26295
26429
|
toStructure: function (object) {
|
|
26296
|
-
throw (0, neo4j_driver_core_1$
|
|
26430
|
+
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
26431
|
},
|
|
26298
26432
|
fromStructure: function (struct) {
|
|
26299
26433
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
26300
26434
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
26301
|
-
return new neo4j_driver_core_1$
|
|
26435
|
+
return new neo4j_driver_core_1$r.Node(identity, labels, properties);
|
|
26302
26436
|
}
|
|
26303
26437
|
});
|
|
26304
26438
|
}
|
|
@@ -26307,16 +26441,16 @@ function createNodeTransformer$1() {
|
|
|
26307
26441
|
* @returns {TypeTransformer}
|
|
26308
26442
|
*/
|
|
26309
26443
|
function createRelationshipTransformer$1() {
|
|
26310
|
-
return new transformer_1$
|
|
26444
|
+
return new transformer_1$d.TypeTransformer({
|
|
26311
26445
|
signature: RELATIONSHIP,
|
|
26312
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26446
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Relationship; },
|
|
26313
26447
|
toStructure: function (object) {
|
|
26314
|
-
throw (0, neo4j_driver_core_1$
|
|
26448
|
+
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
26449
|
},
|
|
26316
26450
|
fromStructure: function (struct) {
|
|
26317
26451
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
26318
26452
|
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$
|
|
26453
|
+
return new neo4j_driver_core_1$r.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
26320
26454
|
}
|
|
26321
26455
|
});
|
|
26322
26456
|
}
|
|
@@ -26325,16 +26459,16 @@ function createRelationshipTransformer$1() {
|
|
|
26325
26459
|
* @returns {TypeTransformer}
|
|
26326
26460
|
*/
|
|
26327
26461
|
function createUnboundRelationshipTransformer$1() {
|
|
26328
|
-
return new transformer_1$
|
|
26462
|
+
return new transformer_1$d.TypeTransformer({
|
|
26329
26463
|
signature: UNBOUND_RELATIONSHIP,
|
|
26330
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26464
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.UnboundRelationship; },
|
|
26331
26465
|
toStructure: function (object) {
|
|
26332
|
-
throw (0, neo4j_driver_core_1$
|
|
26466
|
+
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
26467
|
},
|
|
26334
26468
|
fromStructure: function (struct) {
|
|
26335
26469
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
26336
26470
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
26337
|
-
return new neo4j_driver_core_1$
|
|
26471
|
+
return new neo4j_driver_core_1$r.UnboundRelationship(identity, type, properties);
|
|
26338
26472
|
}
|
|
26339
26473
|
});
|
|
26340
26474
|
}
|
|
@@ -26343,11 +26477,11 @@ function createUnboundRelationshipTransformer$1() {
|
|
|
26343
26477
|
* @returns {TypeTransformer}
|
|
26344
26478
|
*/
|
|
26345
26479
|
function createPathTransformer() {
|
|
26346
|
-
return new transformer_1$
|
|
26480
|
+
return new transformer_1$d.TypeTransformer({
|
|
26347
26481
|
signature: PATH,
|
|
26348
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
26482
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Path; },
|
|
26349
26483
|
toStructure: function (object) {
|
|
26350
|
-
throw (0, neo4j_driver_core_1$
|
|
26484
|
+
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
26485
|
},
|
|
26352
26486
|
fromStructure: function (struct) {
|
|
26353
26487
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -26356,11 +26490,11 @@ function createPathTransformer() {
|
|
|
26356
26490
|
var prevNode = nodes[0];
|
|
26357
26491
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
26358
26492
|
var nextNode = nodes[sequence[i + 1]];
|
|
26359
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
26493
|
+
var relIndex = (0, neo4j_driver_core_1$r.toNumber)(sequence[i]);
|
|
26360
26494
|
var rel = void 0;
|
|
26361
26495
|
if (relIndex > 0) {
|
|
26362
26496
|
rel = rels[relIndex - 1];
|
|
26363
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
26497
|
+
if (rel instanceof neo4j_driver_core_1$r.UnboundRelationship) {
|
|
26364
26498
|
// To avoid duplication, relationships in a path do not contain
|
|
26365
26499
|
// information about their start and end nodes, that's instead
|
|
26366
26500
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -26370,16 +26504,16 @@ function createPathTransformer() {
|
|
|
26370
26504
|
}
|
|
26371
26505
|
else {
|
|
26372
26506
|
rel = rels[-relIndex - 1];
|
|
26373
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
26507
|
+
if (rel instanceof neo4j_driver_core_1$r.UnboundRelationship) {
|
|
26374
26508
|
// See above
|
|
26375
26509
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
26376
26510
|
}
|
|
26377
26511
|
}
|
|
26378
26512
|
// Done hydrating one path segment.
|
|
26379
|
-
segments.push(new neo4j_driver_core_1$
|
|
26513
|
+
segments.push(new neo4j_driver_core_1$r.PathSegment(prevNode, rel, nextNode));
|
|
26380
26514
|
prevNode = nextNode;
|
|
26381
26515
|
}
|
|
26382
|
-
return new neo4j_driver_core_1$
|
|
26516
|
+
return new neo4j_driver_core_1$r.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
26383
26517
|
}
|
|
26384
26518
|
});
|
|
26385
26519
|
}
|
|
@@ -26413,7 +26547,7 @@ var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
26413
26547
|
__setModuleDefault$2(result, mod);
|
|
26414
26548
|
return result;
|
|
26415
26549
|
};
|
|
26416
|
-
var __importDefault$
|
|
26550
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26417
26551
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26418
26552
|
};
|
|
26419
26553
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -26437,13 +26571,13 @@ Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
|
26437
26571
|
*/
|
|
26438
26572
|
var bolt_protocol_util_1$7 = boltProtocolUtil;
|
|
26439
26573
|
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$
|
|
26574
|
+
var request_message_1$9 = __importStar$2(requestMessage);
|
|
26575
|
+
var stream_observers_1$9 = streamObservers;
|
|
26576
|
+
var neo4j_driver_core_1$q = lib$1;
|
|
26577
|
+
var bolt_protocol_v1_transformer_1$1 = __importDefault$w(boltProtocolV1_transformer);
|
|
26578
|
+
var transformer_1$c = __importDefault$w(transformer);
|
|
26579
|
+
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;
|
|
26580
|
+
var BoltProtocol$b = /** @class */ (function () {
|
|
26447
26581
|
/**
|
|
26448
26582
|
* @callback CreateResponseHandler Creates the response handler
|
|
26449
26583
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -26482,7 +26616,7 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26482
26616
|
get: function () {
|
|
26483
26617
|
var _this = this;
|
|
26484
26618
|
if (this._transformer === undefined) {
|
|
26485
|
-
this._transformer = new transformer_1$
|
|
26619
|
+
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
26620
|
}
|
|
26487
26621
|
return this._transformer;
|
|
26488
26622
|
},
|
|
@@ -26579,14 +26713,14 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26579
26713
|
*/
|
|
26580
26714
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
26581
26715
|
var _this = this;
|
|
26582
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
26583
|
-
var observer = new stream_observers_1$
|
|
26716
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
26717
|
+
var observer = new stream_observers_1$9.LoginObserver({
|
|
26584
26718
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
26585
26719
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }
|
|
26586
26720
|
});
|
|
26587
26721
|
// passing notification filter on this protocol version throws an error
|
|
26588
26722
|
(0, bolt_protocol_util_1$7.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
26589
|
-
this.write(request_message_1$
|
|
26723
|
+
this.write(request_message_1$9.default.init(userAgent, authToken), observer, true);
|
|
26590
26724
|
return observer;
|
|
26591
26725
|
};
|
|
26592
26726
|
/**
|
|
@@ -26601,12 +26735,12 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26601
26735
|
*/
|
|
26602
26736
|
BoltProtocol.prototype.logoff = function (_a) {
|
|
26603
26737
|
var _b = _a === void 0 ? {} : _a, onComplete = _b.onComplete, onError = _b.onError; _b.flush;
|
|
26604
|
-
var observer = new stream_observers_1$
|
|
26738
|
+
var observer = new stream_observers_1$9.LogoffObserver({
|
|
26605
26739
|
onCompleted: onComplete,
|
|
26606
26740
|
onError: onError
|
|
26607
26741
|
});
|
|
26608
26742
|
// TODO: Verify the Neo4j version in the message
|
|
26609
|
-
var error = (0, neo4j_driver_core_1$
|
|
26743
|
+
var error = (0, neo4j_driver_core_1$q.newError)('Driver is connected to a database that does not support logoff. ' +
|
|
26610
26744
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
26611
26745
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26612
26746
|
this._onProtocolError(error.message);
|
|
@@ -26627,12 +26761,12 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26627
26761
|
BoltProtocol.prototype.logon = function (_a) {
|
|
26628
26762
|
var _this = this;
|
|
26629
26763
|
var _b = _a === void 0 ? {} : _a, authToken = _b.authToken, onComplete = _b.onComplete, onError = _b.onError; _b.flush;
|
|
26630
|
-
var observer = new stream_observers_1$
|
|
26764
|
+
var observer = new stream_observers_1$9.LoginObserver({
|
|
26631
26765
|
onCompleted: function () { return _this._onLoginCompleted({}, authToken, onComplete); },
|
|
26632
26766
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
26633
26767
|
});
|
|
26634
26768
|
// TODO: Verify the Neo4j version in the message
|
|
26635
|
-
var error = (0, neo4j_driver_core_1$
|
|
26769
|
+
var error = (0, neo4j_driver_core_1$q.newError)('Driver is connected to a database that does not support logon. ' +
|
|
26636
26770
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
26637
26771
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26638
26772
|
this._onProtocolError(error.message);
|
|
@@ -26744,7 +26878,7 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26744
26878
|
*/
|
|
26745
26879
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
26746
26880
|
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$
|
|
26881
|
+
var observer = new stream_observers_1$9.ResultStreamObserver({
|
|
26748
26882
|
server: this._server,
|
|
26749
26883
|
beforeKeys: beforeKeys,
|
|
26750
26884
|
afterKeys: afterKeys,
|
|
@@ -26763,8 +26897,8 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26763
26897
|
(0, bolt_protocol_util_1$7.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
26764
26898
|
// passing notification filter on this protocol version throws an error
|
|
26765
26899
|
(0, bolt_protocol_util_1$7.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
26766
|
-
this.write(request_message_1$
|
|
26767
|
-
this.write(request_message_1$
|
|
26900
|
+
this.write(request_message_1$9.default.run(query, parameters), observer, false);
|
|
26901
|
+
this.write(request_message_1$9.default.pullAll(), observer, flush);
|
|
26768
26902
|
return observer;
|
|
26769
26903
|
};
|
|
26770
26904
|
Object.defineProperty(BoltProtocol.prototype, "currentFailure", {
|
|
@@ -26783,12 +26917,12 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26783
26917
|
*/
|
|
26784
26918
|
BoltProtocol.prototype.reset = function (_a) {
|
|
26785
26919
|
var _b = _a === void 0 ? {} : _a, onError = _b.onError, onComplete = _b.onComplete;
|
|
26786
|
-
var observer = new stream_observers_1$
|
|
26920
|
+
var observer = new stream_observers_1$9.ResetObserver({
|
|
26787
26921
|
onProtocolError: this._onProtocolError,
|
|
26788
26922
|
onError: onError,
|
|
26789
26923
|
onComplete: onComplete
|
|
26790
26924
|
});
|
|
26791
|
-
this.write(request_message_1$
|
|
26925
|
+
this.write(request_message_1$9.default.reset(), observer, true);
|
|
26792
26926
|
return observer;
|
|
26793
26927
|
};
|
|
26794
26928
|
BoltProtocol.prototype._createPacker = function (chunker) {
|
|
@@ -26819,11 +26953,11 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26819
26953
|
}
|
|
26820
26954
|
};
|
|
26821
26955
|
BoltProtocol.prototype.isLastMessageLogon = function () {
|
|
26822
|
-
return this._lastMessageSignature === request_message_1$
|
|
26823
|
-
this._lastMessageSignature === request_message_1$
|
|
26956
|
+
return this._lastMessageSignature === request_message_1$9.SIGNATURES.HELLO ||
|
|
26957
|
+
this._lastMessageSignature === request_message_1$9.SIGNATURES.LOGON;
|
|
26824
26958
|
};
|
|
26825
26959
|
BoltProtocol.prototype.isLastMessageReset = function () {
|
|
26826
|
-
return this._lastMessageSignature === request_message_1$
|
|
26960
|
+
return this._lastMessageSignature === request_message_1$9.SIGNATURES.RESET;
|
|
26827
26961
|
};
|
|
26828
26962
|
/**
|
|
26829
26963
|
* Notifies faltal erros to the observers and mark the protocol in the fatal error state.
|
|
@@ -26904,7 +27038,7 @@ var BoltProtocol$a = /** @class */ (function () {
|
|
|
26904
27038
|
};
|
|
26905
27039
|
return BoltProtocol;
|
|
26906
27040
|
}());
|
|
26907
|
-
boltProtocolV1.default = BoltProtocol$
|
|
27041
|
+
boltProtocolV1.default = BoltProtocol$b;
|
|
26908
27042
|
|
|
26909
27043
|
var boltProtocolV2 = {};
|
|
26910
27044
|
|
|
@@ -26932,17 +27066,17 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = temporalFactory.nanoOfDayToL
|
|
|
26932
27066
|
* See the License for the specific language governing permissions and
|
|
26933
27067
|
* limitations under the License.
|
|
26934
27068
|
*/
|
|
26935
|
-
var neo4j_driver_core_1$
|
|
26936
|
-
var _a$7 = neo4j_driver_core_1$
|
|
27069
|
+
var neo4j_driver_core_1$p = lib$1;
|
|
27070
|
+
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
27071
|
/**
|
|
26938
27072
|
* Converts given epoch day to a local date.
|
|
26939
27073
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
26940
27074
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
26941
27075
|
*/
|
|
26942
27076
|
function epochDayToDate(epochDay) {
|
|
26943
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
27077
|
+
epochDay = (0, neo4j_driver_core_1$p.int)(epochDay);
|
|
26944
27078
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
26945
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
27079
|
+
var adjust = (0, neo4j_driver_core_1$p.int)(0);
|
|
26946
27080
|
if (zeroDay.lessThan(0)) {
|
|
26947
27081
|
var adjustCycles = zeroDay
|
|
26948
27082
|
.add(1)
|
|
@@ -26985,7 +27119,7 @@ function epochDayToDate(epochDay) {
|
|
|
26985
27119
|
.div(10))
|
|
26986
27120
|
.add(1);
|
|
26987
27121
|
year = year.add(marchMonth.div(10));
|
|
26988
|
-
return new neo4j_driver_core_1$
|
|
27122
|
+
return new neo4j_driver_core_1$p.Date(year, month, day);
|
|
26989
27123
|
}
|
|
26990
27124
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
26991
27125
|
/**
|
|
@@ -26994,14 +27128,14 @@ temporalFactory.epochDayToDate = epochDayToDate;
|
|
|
26994
27128
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
26995
27129
|
*/
|
|
26996
27130
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
26997
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
27131
|
+
nanoOfDay = (0, neo4j_driver_core_1$p.int)(nanoOfDay);
|
|
26998
27132
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
26999
27133
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
27000
27134
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
27001
27135
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
27002
27136
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
27003
27137
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
27004
|
-
return new neo4j_driver_core_1$
|
|
27138
|
+
return new neo4j_driver_core_1$p.LocalTime(hour, minute, second, nanosecond);
|
|
27005
27139
|
}
|
|
27006
27140
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
27007
27141
|
/**
|
|
@@ -27016,7 +27150,7 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
27016
27150
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
27017
27151
|
var localDate = epochDayToDate(epochDay);
|
|
27018
27152
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
27019
|
-
return new neo4j_driver_core_1$
|
|
27153
|
+
return new neo4j_driver_core_1$p.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
27020
27154
|
}
|
|
27021
27155
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
27022
27156
|
|
|
@@ -27038,8 +27172,8 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDat
|
|
|
27038
27172
|
* See the License for the specific language governing permissions and
|
|
27039
27173
|
* limitations under the License.
|
|
27040
27174
|
*/
|
|
27041
|
-
var __assign$
|
|
27042
|
-
__assign$
|
|
27175
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27176
|
+
__assign$i = Object.assign || function(t) {
|
|
27043
27177
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27044
27178
|
s = arguments[i];
|
|
27045
27179
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27047,7 +27181,7 @@ var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27047
27181
|
}
|
|
27048
27182
|
return t;
|
|
27049
27183
|
};
|
|
27050
|
-
return __assign$
|
|
27184
|
+
return __assign$i.apply(this, arguments);
|
|
27051
27185
|
};
|
|
27052
27186
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
27053
27187
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -27065,16 +27199,16 @@ var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
27065
27199
|
}
|
|
27066
27200
|
return ar;
|
|
27067
27201
|
};
|
|
27068
|
-
var __importDefault$
|
|
27202
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27069
27203
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27070
27204
|
};
|
|
27071
27205
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
27072
|
-
var neo4j_driver_core_1$
|
|
27206
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
27073
27207
|
var packstream_1$3 = packstream;
|
|
27074
|
-
var transformer_1$
|
|
27208
|
+
var transformer_1$b = transformer;
|
|
27075
27209
|
var temporal_factory_1$1 = temporalFactory;
|
|
27076
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
27077
|
-
var _a$6 = neo4j_driver_core_1$
|
|
27210
|
+
var bolt_protocol_v1_transformer_1 = __importDefault$v(boltProtocolV1_transformer);
|
|
27211
|
+
var _a$6 = neo4j_driver_core_1$o.internal.temporalUtil, dateToEpochDay = _a$6.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$6.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$6.localTimeToNanoOfDay;
|
|
27078
27212
|
var POINT_2D = 0x58;
|
|
27079
27213
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
27080
27214
|
var POINT_3D = 0x59;
|
|
@@ -27098,18 +27232,18 @@ var DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1 = 3;
|
|
|
27098
27232
|
* @returns {TypeTransformer}
|
|
27099
27233
|
*/
|
|
27100
27234
|
function createPoint2DTransformer() {
|
|
27101
|
-
return new transformer_1$
|
|
27235
|
+
return new transformer_1$b.TypeTransformer({
|
|
27102
27236
|
signature: POINT_2D,
|
|
27103
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
27237
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$o.isPoint)(point) && (point.z === null || point.z === undefined); },
|
|
27104
27238
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
27105
|
-
(0, neo4j_driver_core_1$
|
|
27239
|
+
(0, neo4j_driver_core_1$o.int)(point.srid),
|
|
27106
27240
|
point.x,
|
|
27107
27241
|
point.y
|
|
27108
27242
|
]); },
|
|
27109
27243
|
fromStructure: function (struct) {
|
|
27110
27244
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
27111
27245
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
27112
|
-
return new neo4j_driver_core_1$
|
|
27246
|
+
return new neo4j_driver_core_1$o.Point(srid, x, y, undefined // z
|
|
27113
27247
|
);
|
|
27114
27248
|
}
|
|
27115
27249
|
});
|
|
@@ -27119,11 +27253,11 @@ function createPoint2DTransformer() {
|
|
|
27119
27253
|
* @returns {TypeTransformer}
|
|
27120
27254
|
*/
|
|
27121
27255
|
function createPoint3DTransformer() {
|
|
27122
|
-
return new transformer_1$
|
|
27256
|
+
return new transformer_1$b.TypeTransformer({
|
|
27123
27257
|
signature: POINT_3D,
|
|
27124
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
27258
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$o.isPoint)(point) && point.z !== null && point.z !== undefined; },
|
|
27125
27259
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
27126
|
-
(0, neo4j_driver_core_1$
|
|
27260
|
+
(0, neo4j_driver_core_1$o.int)(point.srid),
|
|
27127
27261
|
point.x,
|
|
27128
27262
|
point.y,
|
|
27129
27263
|
point.z
|
|
@@ -27131,7 +27265,7 @@ function createPoint3DTransformer() {
|
|
|
27131
27265
|
fromStructure: function (struct) {
|
|
27132
27266
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
27133
27267
|
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$
|
|
27268
|
+
return new neo4j_driver_core_1$o.Point(srid, x, y, z);
|
|
27135
27269
|
}
|
|
27136
27270
|
});
|
|
27137
27271
|
}
|
|
@@ -27140,20 +27274,20 @@ function createPoint3DTransformer() {
|
|
|
27140
27274
|
* @returns {TypeTransformer}
|
|
27141
27275
|
*/
|
|
27142
27276
|
function createDurationTransformer() {
|
|
27143
|
-
return new transformer_1$
|
|
27277
|
+
return new transformer_1$b.TypeTransformer({
|
|
27144
27278
|
signature: DURATION,
|
|
27145
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27279
|
+
isTypeInstance: neo4j_driver_core_1$o.isDuration,
|
|
27146
27280
|
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$
|
|
27281
|
+
var months = (0, neo4j_driver_core_1$o.int)(value.months);
|
|
27282
|
+
var days = (0, neo4j_driver_core_1$o.int)(value.days);
|
|
27283
|
+
var seconds = (0, neo4j_driver_core_1$o.int)(value.seconds);
|
|
27284
|
+
var nanoseconds = (0, neo4j_driver_core_1$o.int)(value.nanoseconds);
|
|
27151
27285
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
27152
27286
|
},
|
|
27153
27287
|
fromStructure: function (struct) {
|
|
27154
27288
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
27155
27289
|
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$
|
|
27290
|
+
return new neo4j_driver_core_1$o.Duration(months, days, seconds, nanoseconds);
|
|
27157
27291
|
}
|
|
27158
27292
|
});
|
|
27159
27293
|
}
|
|
@@ -27166,9 +27300,9 @@ function createDurationTransformer() {
|
|
|
27166
27300
|
*/
|
|
27167
27301
|
function createLocalTimeTransformer(_a) {
|
|
27168
27302
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27169
|
-
return new transformer_1$
|
|
27303
|
+
return new transformer_1$b.TypeTransformer({
|
|
27170
27304
|
signature: LOCAL_TIME,
|
|
27171
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27305
|
+
isTypeInstance: neo4j_driver_core_1$o.isLocalTime,
|
|
27172
27306
|
toStructure: function (value) {
|
|
27173
27307
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
27174
27308
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -27190,19 +27324,19 @@ function createLocalTimeTransformer(_a) {
|
|
|
27190
27324
|
*/
|
|
27191
27325
|
function createTimeTransformer(_a) {
|
|
27192
27326
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27193
|
-
return new transformer_1$
|
|
27327
|
+
return new transformer_1$b.TypeTransformer({
|
|
27194
27328
|
signature: TIME,
|
|
27195
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27329
|
+
isTypeInstance: neo4j_driver_core_1$o.isTime,
|
|
27196
27330
|
toStructure: function (value) {
|
|
27197
27331
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
27198
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
27332
|
+
var offsetSeconds = (0, neo4j_driver_core_1$o.int)(value.timeZoneOffsetSeconds);
|
|
27199
27333
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
27200
27334
|
},
|
|
27201
27335
|
fromStructure: function (struct) {
|
|
27202
27336
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
27203
27337
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
27204
27338
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
27205
|
-
var result = new neo4j_driver_core_1$
|
|
27339
|
+
var result = new neo4j_driver_core_1$o.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
|
|
27206
27340
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
27207
27341
|
}
|
|
27208
27342
|
});
|
|
@@ -27216,9 +27350,9 @@ function createTimeTransformer(_a) {
|
|
|
27216
27350
|
*/
|
|
27217
27351
|
function createDateTransformer(_a) {
|
|
27218
27352
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27219
|
-
return new transformer_1$
|
|
27353
|
+
return new transformer_1$b.TypeTransformer({
|
|
27220
27354
|
signature: DATE,
|
|
27221
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27355
|
+
isTypeInstance: neo4j_driver_core_1$o.isDate,
|
|
27222
27356
|
toStructure: function (value) {
|
|
27223
27357
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
27224
27358
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -27240,12 +27374,12 @@ function createDateTransformer(_a) {
|
|
|
27240
27374
|
*/
|
|
27241
27375
|
function createLocalDateTimeTransformer(_a) {
|
|
27242
27376
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27243
|
-
return new transformer_1$
|
|
27377
|
+
return new transformer_1$b.TypeTransformer({
|
|
27244
27378
|
signature: LOCAL_DATE_TIME,
|
|
27245
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
27379
|
+
isTypeInstance: neo4j_driver_core_1$o.isLocalDateTime,
|
|
27246
27380
|
toStructure: function (value) {
|
|
27247
27381
|
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$
|
|
27382
|
+
var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
|
|
27249
27383
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
27250
27384
|
},
|
|
27251
27385
|
fromStructure: function (struct) {
|
|
@@ -27265,12 +27399,12 @@ function createLocalDateTimeTransformer(_a) {
|
|
|
27265
27399
|
*/
|
|
27266
27400
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
27267
27401
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27268
|
-
return new transformer_1$
|
|
27402
|
+
return new transformer_1$b.TypeTransformer({
|
|
27269
27403
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
27270
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
27404
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$o.isDateTime)(object) && object.timeZoneId != null; },
|
|
27271
27405
|
toStructure: function (value) {
|
|
27272
27406
|
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$
|
|
27407
|
+
var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
|
|
27274
27408
|
var timeZoneId = value.timeZoneId;
|
|
27275
27409
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
27276
27410
|
},
|
|
@@ -27278,7 +27412,7 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
27278
27412
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
27279
27413
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
27280
27414
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
27281
|
-
var result = new neo4j_driver_core_1$
|
|
27415
|
+
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
27416
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
27283
27417
|
}
|
|
27284
27418
|
});
|
|
@@ -27292,20 +27426,20 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
27292
27426
|
*/
|
|
27293
27427
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
27294
27428
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
27295
|
-
return new transformer_1$
|
|
27429
|
+
return new transformer_1$b.TypeTransformer({
|
|
27296
27430
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
27297
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
27431
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$o.isDateTime)(object) && object.timeZoneId == null; },
|
|
27298
27432
|
toStructure: function (value) {
|
|
27299
27433
|
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$
|
|
27434
|
+
var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
|
|
27435
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$o.int)(value.timeZoneOffsetSeconds);
|
|
27302
27436
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
27303
27437
|
},
|
|
27304
27438
|
fromStructure: function (struct) {
|
|
27305
27439
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
27306
27440
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
27307
27441
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
27308
|
-
var result = new neo4j_driver_core_1$
|
|
27442
|
+
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
27443
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
27310
27444
|
}
|
|
27311
27445
|
});
|
|
@@ -27321,15 +27455,15 @@ function convertIntegerPropsIfNeeded$1(obj, disableLosslessIntegers, useBigInt)
|
|
|
27321
27455
|
for (var prop in obj) {
|
|
27322
27456
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
27323
27457
|
var value = obj[prop];
|
|
27324
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
27458
|
+
clone[prop] = (0, neo4j_driver_core_1$o.isInt)(value) ? convert(value) : value;
|
|
27325
27459
|
}
|
|
27326
27460
|
}
|
|
27327
27461
|
Object.freeze(clone);
|
|
27328
27462
|
return clone;
|
|
27329
27463
|
}
|
|
27330
|
-
boltProtocolV2_transformer.default = __assign$
|
|
27464
|
+
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
27465
|
|
|
27332
|
-
var __extends$
|
|
27466
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27333
27467
|
var extendStatics = function (d, b) {
|
|
27334
27468
|
extendStatics = Object.setPrototypeOf ||
|
|
27335
27469
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27344,7 +27478,7 @@ var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27344
27478
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27345
27479
|
};
|
|
27346
27480
|
})();
|
|
27347
|
-
var __importDefault$
|
|
27481
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27348
27482
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27349
27483
|
};
|
|
27350
27484
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -27366,14 +27500,14 @@ Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
|
27366
27500
|
* See the License for the specific language governing permissions and
|
|
27367
27501
|
* limitations under the License.
|
|
27368
27502
|
*/
|
|
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$
|
|
27503
|
+
var bolt_protocol_v1_1$1 = __importDefault$u(boltProtocolV1);
|
|
27504
|
+
var packstream_1$2 = __importDefault$u(packstream);
|
|
27505
|
+
var neo4j_driver_core_1$n = lib$1;
|
|
27506
|
+
var bolt_protocol_v2_transformer_1$1 = __importDefault$u(boltProtocolV2_transformer);
|
|
27507
|
+
var transformer_1$a = __importDefault$u(transformer);
|
|
27508
|
+
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V2;
|
|
27509
|
+
var BoltProtocol$a = /** @class */ (function (_super) {
|
|
27510
|
+
__extends$g(BoltProtocol, _super);
|
|
27377
27511
|
function BoltProtocol() {
|
|
27378
27512
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27379
27513
|
}
|
|
@@ -27387,7 +27521,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
27387
27521
|
get: function () {
|
|
27388
27522
|
var _this = this;
|
|
27389
27523
|
if (this._transformer === undefined) {
|
|
27390
|
-
this._transformer = new transformer_1$
|
|
27524
|
+
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
27525
|
}
|
|
27392
27526
|
return this._transformer;
|
|
27393
27527
|
},
|
|
@@ -27403,7 +27537,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
27403
27537
|
});
|
|
27404
27538
|
return BoltProtocol;
|
|
27405
27539
|
}(bolt_protocol_v1_1$1.default));
|
|
27406
|
-
boltProtocolV2.default = BoltProtocol$
|
|
27540
|
+
boltProtocolV2.default = BoltProtocol$a;
|
|
27407
27541
|
|
|
27408
27542
|
var boltProtocolV3 = {};
|
|
27409
27543
|
|
|
@@ -27427,8 +27561,8 @@ var boltProtocolV3_transformer = {};
|
|
|
27427
27561
|
* See the License for the specific language governing permissions and
|
|
27428
27562
|
* limitations under the License.
|
|
27429
27563
|
*/
|
|
27430
|
-
var __assign$
|
|
27431
|
-
__assign$
|
|
27564
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27565
|
+
__assign$h = Object.assign || function(t) {
|
|
27432
27566
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27433
27567
|
s = arguments[i];
|
|
27434
27568
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27436,16 +27570,16 @@ var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27436
27570
|
}
|
|
27437
27571
|
return t;
|
|
27438
27572
|
};
|
|
27439
|
-
return __assign$
|
|
27573
|
+
return __assign$h.apply(this, arguments);
|
|
27440
27574
|
};
|
|
27441
|
-
var __importDefault$
|
|
27575
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27442
27576
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27443
27577
|
};
|
|
27444
27578
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
27445
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
27446
|
-
boltProtocolV3_transformer.default = __assign$
|
|
27579
|
+
var bolt_protocol_v2_transformer_1 = __importDefault$t(boltProtocolV2_transformer);
|
|
27580
|
+
boltProtocolV3_transformer.default = __assign$h({}, bolt_protocol_v2_transformer_1.default);
|
|
27447
27581
|
|
|
27448
|
-
var __extends$
|
|
27582
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27449
27583
|
var extendStatics = function (d, b) {
|
|
27450
27584
|
extendStatics = Object.setPrototypeOf ||
|
|
27451
27585
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27460,8 +27594,8 @@ var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27460
27594
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27461
27595
|
};
|
|
27462
27596
|
})();
|
|
27463
|
-
var __assign$
|
|
27464
|
-
__assign$
|
|
27597
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27598
|
+
__assign$g = Object.assign || function(t) {
|
|
27465
27599
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27466
27600
|
s = arguments[i];
|
|
27467
27601
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27469,9 +27603,9 @@ var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27469
27603
|
}
|
|
27470
27604
|
return t;
|
|
27471
27605
|
};
|
|
27472
|
-
return __assign$
|
|
27606
|
+
return __assign$g.apply(this, arguments);
|
|
27473
27607
|
};
|
|
27474
|
-
var __importDefault$
|
|
27608
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27475
27609
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27476
27610
|
};
|
|
27477
27611
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -27493,19 +27627,19 @@ Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
|
27493
27627
|
* See the License for the specific language governing permissions and
|
|
27494
27628
|
* limitations under the License.
|
|
27495
27629
|
*/
|
|
27496
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
27497
|
-
var request_message_1$
|
|
27630
|
+
var bolt_protocol_v2_1$1 = __importDefault$s(boltProtocolV2);
|
|
27631
|
+
var request_message_1$8 = __importDefault$s(requestMessage);
|
|
27498
27632
|
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$
|
|
27633
|
+
var stream_observers_1$8 = streamObservers;
|
|
27634
|
+
var bolt_protocol_v3_transformer_1$1 = __importDefault$s(boltProtocolV3_transformer);
|
|
27635
|
+
var transformer_1$9 = __importDefault$s(transformer);
|
|
27636
|
+
var neo4j_driver_core_1$m = lib$1;
|
|
27637
|
+
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
27638
|
var CONTEXT$1 = 'context';
|
|
27505
27639
|
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$
|
|
27640
|
+
var noOpObserver = new stream_observers_1$8.StreamObserver();
|
|
27641
|
+
var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
27642
|
+
__extends$f(BoltProtocol, _super);
|
|
27509
27643
|
function BoltProtocol() {
|
|
27510
27644
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27511
27645
|
}
|
|
@@ -27520,7 +27654,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27520
27654
|
get: function () {
|
|
27521
27655
|
var _this = this;
|
|
27522
27656
|
if (this._transformer === undefined) {
|
|
27523
|
-
this._transformer = new transformer_1$
|
|
27657
|
+
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
27658
|
}
|
|
27525
27659
|
return this._transformer;
|
|
27526
27660
|
},
|
|
@@ -27544,22 +27678,22 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27544
27678
|
};
|
|
27545
27679
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
27546
27680
|
var _this = this;
|
|
27547
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
27548
|
-
var observer = new stream_observers_1$
|
|
27681
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
27682
|
+
var observer = new stream_observers_1$8.LoginObserver({
|
|
27549
27683
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
27550
27684
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
|
|
27551
27685
|
});
|
|
27552
27686
|
// passing notification filter on this protocol version throws an error
|
|
27553
27687
|
(0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27554
|
-
this.write(request_message_1$
|
|
27688
|
+
this.write(request_message_1$8.default.hello(userAgent, authToken), observer, true);
|
|
27555
27689
|
return observer;
|
|
27556
27690
|
};
|
|
27557
27691
|
BoltProtocol.prototype.prepareToClose = function () {
|
|
27558
|
-
this.write(request_message_1$
|
|
27692
|
+
this.write(request_message_1$8.default.goodbye(), noOpObserver, true);
|
|
27559
27693
|
};
|
|
27560
27694
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
27561
27695
|
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$
|
|
27696
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27563
27697
|
server: this._server,
|
|
27564
27698
|
beforeError: beforeError,
|
|
27565
27699
|
afterError: afterError,
|
|
@@ -27573,12 +27707,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27573
27707
|
(0, bolt_protocol_util_1$6.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
27574
27708
|
// passing notification filter on this protocol version throws an error
|
|
27575
27709
|
(0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27576
|
-
this.write(request_message_1$
|
|
27710
|
+
this.write(request_message_1$8.default.begin({ bookmarks: bookmarks, txConfig: txConfig, mode: mode }), observer, true);
|
|
27577
27711
|
return observer;
|
|
27578
27712
|
};
|
|
27579
27713
|
BoltProtocol.prototype.commitTransaction = function (_a) {
|
|
27580
27714
|
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$
|
|
27715
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27582
27716
|
server: this._server,
|
|
27583
27717
|
beforeError: beforeError,
|
|
27584
27718
|
afterError: afterError,
|
|
@@ -27586,12 +27720,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27586
27720
|
afterComplete: afterComplete
|
|
27587
27721
|
});
|
|
27588
27722
|
observer.prepareToHandleSingleResponse();
|
|
27589
|
-
this.write(request_message_1$
|
|
27723
|
+
this.write(request_message_1$8.default.commit(), observer, true);
|
|
27590
27724
|
return observer;
|
|
27591
27725
|
};
|
|
27592
27726
|
BoltProtocol.prototype.rollbackTransaction = function (_a) {
|
|
27593
27727
|
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$
|
|
27728
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27595
27729
|
server: this._server,
|
|
27596
27730
|
beforeError: beforeError,
|
|
27597
27731
|
afterError: afterError,
|
|
@@ -27599,12 +27733,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27599
27733
|
afterComplete: afterComplete
|
|
27600
27734
|
});
|
|
27601
27735
|
observer.prepareToHandleSingleResponse();
|
|
27602
|
-
this.write(request_message_1$
|
|
27736
|
+
this.write(request_message_1$8.default.rollback(), observer, true);
|
|
27603
27737
|
return observer;
|
|
27604
27738
|
};
|
|
27605
27739
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
27606
27740
|
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$
|
|
27741
|
+
var observer = new stream_observers_1$8.ResultStreamObserver({
|
|
27608
27742
|
server: this._server,
|
|
27609
27743
|
beforeKeys: beforeKeys,
|
|
27610
27744
|
afterKeys: afterKeys,
|
|
@@ -27621,12 +27755,12 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27621
27755
|
(0, bolt_protocol_util_1$6.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
27622
27756
|
// passing notification filter on this protocol version throws an error
|
|
27623
27757
|
(0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27624
|
-
this.write(request_message_1$
|
|
27758
|
+
this.write(request_message_1$8.default.runWithMetadata(query, parameters, {
|
|
27625
27759
|
bookmarks: bookmarks,
|
|
27626
27760
|
txConfig: txConfig,
|
|
27627
27761
|
mode: mode
|
|
27628
27762
|
}), observer, false);
|
|
27629
|
-
this.write(request_message_1$
|
|
27763
|
+
this.write(request_message_1$8.default.pullAll(), observer, flush);
|
|
27630
27764
|
return observer;
|
|
27631
27765
|
};
|
|
27632
27766
|
/**
|
|
@@ -27647,8 +27781,8 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27647
27781
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
27648
27782
|
var _b;
|
|
27649
27783
|
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$
|
|
27784
|
+
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$g(__assign$g({}, sessionContext), { txConfig: TxConfig$1.empty() }));
|
|
27785
|
+
return new stream_observers_1$8.ProcedureRouteObserver({
|
|
27652
27786
|
resultObserver: resultObserver,
|
|
27653
27787
|
onProtocolError: this._onProtocolError,
|
|
27654
27788
|
onError: onError,
|
|
@@ -27657,7 +27791,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
27657
27791
|
};
|
|
27658
27792
|
return BoltProtocol;
|
|
27659
27793
|
}(bolt_protocol_v2_1$1.default));
|
|
27660
|
-
boltProtocolV3.default = BoltProtocol$
|
|
27794
|
+
boltProtocolV3.default = BoltProtocol$9;
|
|
27661
27795
|
|
|
27662
27796
|
var boltProtocolV4x0 = {};
|
|
27663
27797
|
|
|
@@ -27681,8 +27815,8 @@ var boltProtocolV4x0_transformer = {};
|
|
|
27681
27815
|
* See the License for the specific language governing permissions and
|
|
27682
27816
|
* limitations under the License.
|
|
27683
27817
|
*/
|
|
27684
|
-
var __assign$
|
|
27685
|
-
__assign$
|
|
27818
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27819
|
+
__assign$f = Object.assign || function(t) {
|
|
27686
27820
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27687
27821
|
s = arguments[i];
|
|
27688
27822
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27690,16 +27824,16 @@ var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27690
27824
|
}
|
|
27691
27825
|
return t;
|
|
27692
27826
|
};
|
|
27693
|
-
return __assign$
|
|
27827
|
+
return __assign$f.apply(this, arguments);
|
|
27694
27828
|
};
|
|
27695
|
-
var __importDefault$
|
|
27829
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27696
27830
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27697
27831
|
};
|
|
27698
27832
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
27699
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
27700
|
-
boltProtocolV4x0_transformer.default = __assign$
|
|
27833
|
+
var bolt_protocol_v3_transformer_1 = __importDefault$r(boltProtocolV3_transformer);
|
|
27834
|
+
boltProtocolV4x0_transformer.default = __assign$f({}, bolt_protocol_v3_transformer_1.default);
|
|
27701
27835
|
|
|
27702
|
-
var __extends$
|
|
27836
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27703
27837
|
var extendStatics = function (d, b) {
|
|
27704
27838
|
extendStatics = Object.setPrototypeOf ||
|
|
27705
27839
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27714,8 +27848,8 @@ var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27714
27848
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27715
27849
|
};
|
|
27716
27850
|
})();
|
|
27717
|
-
var __assign$
|
|
27718
|
-
__assign$
|
|
27851
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
27852
|
+
__assign$e = Object.assign || function(t) {
|
|
27719
27853
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27720
27854
|
s = arguments[i];
|
|
27721
27855
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27723,9 +27857,9 @@ var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27723
27857
|
}
|
|
27724
27858
|
return t;
|
|
27725
27859
|
};
|
|
27726
|
-
return __assign$
|
|
27860
|
+
return __assign$e.apply(this, arguments);
|
|
27727
27861
|
};
|
|
27728
|
-
var __importDefault$
|
|
27862
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27729
27863
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27730
27864
|
};
|
|
27731
27865
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -27747,19 +27881,19 @@ Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
|
27747
27881
|
* See the License for the specific language governing permissions and
|
|
27748
27882
|
* limitations under the License.
|
|
27749
27883
|
*/
|
|
27750
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
27751
|
-
var request_message_1$
|
|
27884
|
+
var bolt_protocol_v3_1$1 = __importDefault$q(boltProtocolV3);
|
|
27885
|
+
var request_message_1$7 = __importDefault$q(requestMessage);
|
|
27752
27886
|
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$
|
|
27887
|
+
var stream_observers_1$7 = streamObservers;
|
|
27888
|
+
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$q(boltProtocolV4x0_transformer);
|
|
27889
|
+
var transformer_1$8 = __importDefault$q(transformer);
|
|
27890
|
+
var neo4j_driver_core_1$l = lib$1;
|
|
27891
|
+
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
27892
|
var CONTEXT = 'context';
|
|
27759
27893
|
var DATABASE = 'database';
|
|
27760
27894
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
27761
|
-
var BoltProtocol$
|
|
27762
|
-
__extends$
|
|
27895
|
+
var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
27896
|
+
__extends$e(BoltProtocol, _super);
|
|
27763
27897
|
function BoltProtocol() {
|
|
27764
27898
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27765
27899
|
}
|
|
@@ -27774,7 +27908,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27774
27908
|
get: function () {
|
|
27775
27909
|
var _this = this;
|
|
27776
27910
|
if (this._transformer === undefined) {
|
|
27777
|
-
this._transformer = new transformer_1$
|
|
27911
|
+
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
27912
|
}
|
|
27779
27913
|
return this._transformer;
|
|
27780
27914
|
},
|
|
@@ -27783,7 +27917,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27783
27917
|
});
|
|
27784
27918
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
27785
27919
|
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$
|
|
27920
|
+
var observer = new stream_observers_1$7.ResultStreamObserver({
|
|
27787
27921
|
server: this._server,
|
|
27788
27922
|
beforeError: beforeError,
|
|
27789
27923
|
afterError: afterError,
|
|
@@ -27795,12 +27929,12 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27795
27929
|
(0, bolt_protocol_util_1$5.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
|
|
27796
27930
|
// passing notification filter on this protocol version throws an error
|
|
27797
27931
|
(0, bolt_protocol_util_1$5.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27798
|
-
this.write(request_message_1$
|
|
27932
|
+
this.write(request_message_1$7.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode }), observer, true);
|
|
27799
27933
|
return observer;
|
|
27800
27934
|
};
|
|
27801
27935
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
27802
27936
|
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$
|
|
27937
|
+
var observer = new stream_observers_1$7.ResultStreamObserver({
|
|
27804
27938
|
server: this._server,
|
|
27805
27939
|
reactive: reactive,
|
|
27806
27940
|
fetchSize: fetchSize,
|
|
@@ -27820,22 +27954,22 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27820
27954
|
// passing notification filter on this protocol version throws an error
|
|
27821
27955
|
(0, bolt_protocol_util_1$5.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
27822
27956
|
var flushRun = reactive;
|
|
27823
|
-
this.write(request_message_1$
|
|
27957
|
+
this.write(request_message_1$7.default.runWithMetadata(query, parameters, {
|
|
27824
27958
|
bookmarks: bookmarks,
|
|
27825
27959
|
txConfig: txConfig,
|
|
27826
27960
|
database: database,
|
|
27827
27961
|
mode: mode
|
|
27828
27962
|
}), observer, flushRun && flush);
|
|
27829
27963
|
if (!reactive) {
|
|
27830
|
-
this.write(request_message_1$
|
|
27964
|
+
this.write(request_message_1$7.default.pull({ n: fetchSize }), observer, flush);
|
|
27831
27965
|
}
|
|
27832
27966
|
return observer;
|
|
27833
27967
|
};
|
|
27834
27968
|
BoltProtocol.prototype._requestMore = function (stmtId, n, observer) {
|
|
27835
|
-
this.write(request_message_1$
|
|
27969
|
+
this.write(request_message_1$7.default.pull({ stmtId: stmtId, n: n }), observer, true);
|
|
27836
27970
|
};
|
|
27837
27971
|
BoltProtocol.prototype._requestDiscard = function (stmtId, observer) {
|
|
27838
|
-
this.write(request_message_1$
|
|
27972
|
+
this.write(request_message_1$7.default.discard({ stmtId: stmtId }), observer, true);
|
|
27839
27973
|
};
|
|
27840
27974
|
BoltProtocol.prototype._noOp = function () { };
|
|
27841
27975
|
/**
|
|
@@ -27859,8 +27993,8 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27859
27993
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
27860
27994
|
_b[CONTEXT] = routingContext,
|
|
27861
27995
|
_b[DATABASE] = databaseName,
|
|
27862
|
-
_b), __assign$
|
|
27863
|
-
return new stream_observers_1$
|
|
27996
|
+
_b), __assign$e(__assign$e({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
27997
|
+
return new stream_observers_1$7.ProcedureRouteObserver({
|
|
27864
27998
|
resultObserver: resultObserver,
|
|
27865
27999
|
onProtocolError: this._onProtocolError,
|
|
27866
28000
|
onError: onError,
|
|
@@ -27869,7 +28003,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
27869
28003
|
};
|
|
27870
28004
|
return BoltProtocol;
|
|
27871
28005
|
}(bolt_protocol_v3_1$1.default));
|
|
27872
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
28006
|
+
boltProtocolV4x0.default = BoltProtocol$8;
|
|
27873
28007
|
|
|
27874
28008
|
var boltProtocolV4x1 = {};
|
|
27875
28009
|
|
|
@@ -27893,8 +28027,8 @@ var boltProtocolV4x1_transformer = {};
|
|
|
27893
28027
|
* See the License for the specific language governing permissions and
|
|
27894
28028
|
* limitations under the License.
|
|
27895
28029
|
*/
|
|
27896
|
-
var __assign$
|
|
27897
|
-
__assign$
|
|
28030
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28031
|
+
__assign$d = Object.assign || function(t) {
|
|
27898
28032
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27899
28033
|
s = arguments[i];
|
|
27900
28034
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -27902,16 +28036,16 @@ var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
27902
28036
|
}
|
|
27903
28037
|
return t;
|
|
27904
28038
|
};
|
|
27905
|
-
return __assign$
|
|
28039
|
+
return __assign$d.apply(this, arguments);
|
|
27906
28040
|
};
|
|
27907
|
-
var __importDefault$
|
|
28041
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27908
28042
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27909
28043
|
};
|
|
27910
28044
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
27911
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
27912
|
-
boltProtocolV4x1_transformer.default = __assign$
|
|
28045
|
+
var bolt_protocol_v4x0_transformer_1 = __importDefault$p(boltProtocolV4x0_transformer);
|
|
28046
|
+
boltProtocolV4x1_transformer.default = __assign$d({}, bolt_protocol_v4x0_transformer_1.default);
|
|
27913
28047
|
|
|
27914
|
-
var __extends$
|
|
28048
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27915
28049
|
var extendStatics = function (d, b) {
|
|
27916
28050
|
extendStatics = Object.setPrototypeOf ||
|
|
27917
28051
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27926,7 +28060,7 @@ var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
27926
28060
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27927
28061
|
};
|
|
27928
28062
|
})();
|
|
27929
|
-
var __importDefault$
|
|
28063
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
27930
28064
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27931
28065
|
};
|
|
27932
28066
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -27948,16 +28082,16 @@ Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
|
27948
28082
|
* See the License for the specific language governing permissions and
|
|
27949
28083
|
* limitations under the License.
|
|
27950
28084
|
*/
|
|
27951
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
27952
|
-
var request_message_1$
|
|
27953
|
-
var stream_observers_1$
|
|
27954
|
-
var neo4j_driver_core_1$
|
|
28085
|
+
var bolt_protocol_v4x0_1$1 = __importDefault$o(boltProtocolV4x0);
|
|
28086
|
+
var request_message_1$6 = __importDefault$o(requestMessage);
|
|
28087
|
+
var stream_observers_1$6 = streamObservers;
|
|
28088
|
+
var neo4j_driver_core_1$k = lib$1;
|
|
27955
28089
|
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$
|
|
28090
|
+
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$o(boltProtocolV4x1_transformer);
|
|
28091
|
+
var transformer_1$7 = __importDefault$o(transformer);
|
|
28092
|
+
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$k.internal.constants.BOLT_PROTOCOL_V4_1;
|
|
28093
|
+
var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
28094
|
+
__extends$d(BoltProtocol, _super);
|
|
27961
28095
|
/**
|
|
27962
28096
|
* @constructor
|
|
27963
28097
|
* @param {Object} server the server informatio.
|
|
@@ -27987,7 +28121,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
27987
28121
|
get: function () {
|
|
27988
28122
|
var _this = this;
|
|
27989
28123
|
if (this._transformer === undefined) {
|
|
27990
|
-
this._transformer = new transformer_1$
|
|
28124
|
+
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
28125
|
}
|
|
27992
28126
|
return this._transformer;
|
|
27993
28127
|
},
|
|
@@ -27996,19 +28130,19 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
27996
28130
|
});
|
|
27997
28131
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
27998
28132
|
var _this = this;
|
|
27999
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
28000
|
-
var observer = new stream_observers_1$
|
|
28133
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
28134
|
+
var observer = new stream_observers_1$6.LoginObserver({
|
|
28001
28135
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
28002
28136
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
|
|
28003
28137
|
});
|
|
28004
28138
|
// passing notification filter on this protocol version throws an error
|
|
28005
28139
|
(0, bolt_protocol_util_1$4.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28006
|
-
this.write(request_message_1$
|
|
28140
|
+
this.write(request_message_1$6.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
|
|
28007
28141
|
return observer;
|
|
28008
28142
|
};
|
|
28009
28143
|
return BoltProtocol;
|
|
28010
28144
|
}(bolt_protocol_v4x0_1$1.default));
|
|
28011
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
28145
|
+
boltProtocolV4x1.default = BoltProtocol$7;
|
|
28012
28146
|
|
|
28013
28147
|
var boltProtocolV4x2 = {};
|
|
28014
28148
|
|
|
@@ -28032,8 +28166,8 @@ var boltProtocolV4x2_transformer = {};
|
|
|
28032
28166
|
* See the License for the specific language governing permissions and
|
|
28033
28167
|
* limitations under the License.
|
|
28034
28168
|
*/
|
|
28035
|
-
var __assign$
|
|
28036
|
-
__assign$
|
|
28169
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28170
|
+
__assign$c = Object.assign || function(t) {
|
|
28037
28171
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28038
28172
|
s = arguments[i];
|
|
28039
28173
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28041,16 +28175,16 @@ var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28041
28175
|
}
|
|
28042
28176
|
return t;
|
|
28043
28177
|
};
|
|
28044
|
-
return __assign$
|
|
28178
|
+
return __assign$c.apply(this, arguments);
|
|
28045
28179
|
};
|
|
28046
|
-
var __importDefault$
|
|
28180
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28047
28181
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28048
28182
|
};
|
|
28049
28183
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
28050
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
28051
|
-
boltProtocolV4x2_transformer.default = __assign$
|
|
28184
|
+
var bolt_protocol_v4x1_transformer_1 = __importDefault$n(boltProtocolV4x1_transformer);
|
|
28185
|
+
boltProtocolV4x2_transformer.default = __assign$c({}, bolt_protocol_v4x1_transformer_1.default);
|
|
28052
28186
|
|
|
28053
|
-
var __extends$
|
|
28187
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28054
28188
|
var extendStatics = function (d, b) {
|
|
28055
28189
|
extendStatics = Object.setPrototypeOf ||
|
|
28056
28190
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28065,7 +28199,7 @@ var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28065
28199
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28066
28200
|
};
|
|
28067
28201
|
})();
|
|
28068
|
-
var __importDefault$
|
|
28202
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28069
28203
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28070
28204
|
};
|
|
28071
28205
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -28087,13 +28221,13 @@ Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
|
28087
28221
|
* See the License for the specific language governing permissions and
|
|
28088
28222
|
* limitations under the License.
|
|
28089
28223
|
*/
|
|
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$
|
|
28224
|
+
var bolt_protocol_v4x1_1$1 = __importDefault$m(boltProtocolV4x1);
|
|
28225
|
+
var neo4j_driver_core_1$j = lib$1;
|
|
28226
|
+
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$m(boltProtocolV4x2_transformer);
|
|
28227
|
+
var transformer_1$6 = __importDefault$m(transformer);
|
|
28228
|
+
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$j.internal.constants.BOLT_PROTOCOL_V4_2;
|
|
28229
|
+
var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
28230
|
+
__extends$c(BoltProtocol, _super);
|
|
28097
28231
|
function BoltProtocol() {
|
|
28098
28232
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28099
28233
|
}
|
|
@@ -28108,7 +28242,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
28108
28242
|
get: function () {
|
|
28109
28243
|
var _this = this;
|
|
28110
28244
|
if (this._transformer === undefined) {
|
|
28111
|
-
this._transformer = new transformer_1$
|
|
28245
|
+
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
28246
|
}
|
|
28113
28247
|
return this._transformer;
|
|
28114
28248
|
},
|
|
@@ -28117,7 +28251,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
28117
28251
|
});
|
|
28118
28252
|
return BoltProtocol;
|
|
28119
28253
|
}(bolt_protocol_v4x1_1$1.default));
|
|
28120
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
28254
|
+
boltProtocolV4x2.default = BoltProtocol$6;
|
|
28121
28255
|
|
|
28122
28256
|
var boltProtocolV4x3 = {};
|
|
28123
28257
|
|
|
@@ -28141,8 +28275,8 @@ var boltProtocolV4x3_transformer = {};
|
|
|
28141
28275
|
* See the License for the specific language governing permissions and
|
|
28142
28276
|
* limitations under the License.
|
|
28143
28277
|
*/
|
|
28144
|
-
var __assign$
|
|
28145
|
-
__assign$
|
|
28278
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28279
|
+
__assign$b = Object.assign || function(t) {
|
|
28146
28280
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28147
28281
|
s = arguments[i];
|
|
28148
28282
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28150,14 +28284,14 @@ var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28150
28284
|
}
|
|
28151
28285
|
return t;
|
|
28152
28286
|
};
|
|
28153
|
-
return __assign$
|
|
28287
|
+
return __assign$b.apply(this, arguments);
|
|
28154
28288
|
};
|
|
28155
|
-
var __importDefault$
|
|
28289
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28156
28290
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28157
28291
|
};
|
|
28158
28292
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
28159
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
28160
|
-
boltProtocolV4x3_transformer.default = __assign$
|
|
28293
|
+
var bolt_protocol_v4x2_transformer_1 = __importDefault$l(boltProtocolV4x2_transformer);
|
|
28294
|
+
boltProtocolV4x3_transformer.default = __assign$b({}, bolt_protocol_v4x2_transformer_1.default);
|
|
28161
28295
|
|
|
28162
28296
|
var boltProtocolV5x0_utc_transformer = {};
|
|
28163
28297
|
|
|
@@ -28181,8 +28315,8 @@ var boltProtocolV4x4_transformer = {};
|
|
|
28181
28315
|
* See the License for the specific language governing permissions and
|
|
28182
28316
|
* limitations under the License.
|
|
28183
28317
|
*/
|
|
28184
|
-
var __assign$
|
|
28185
|
-
__assign$
|
|
28318
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28319
|
+
__assign$a = Object.assign || function(t) {
|
|
28186
28320
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28187
28321
|
s = arguments[i];
|
|
28188
28322
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28190,14 +28324,14 @@ var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28190
28324
|
}
|
|
28191
28325
|
return t;
|
|
28192
28326
|
};
|
|
28193
|
-
return __assign$
|
|
28327
|
+
return __assign$a.apply(this, arguments);
|
|
28194
28328
|
};
|
|
28195
|
-
var __importDefault$
|
|
28329
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28196
28330
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28197
28331
|
};
|
|
28198
28332
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
28199
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
28200
|
-
boltProtocolV4x4_transformer.default = __assign$
|
|
28333
|
+
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$k(boltProtocolV4x3_transformer);
|
|
28334
|
+
boltProtocolV4x4_transformer.default = __assign$a({}, bolt_protocol_v4x3_transformer_1$1.default);
|
|
28201
28335
|
|
|
28202
28336
|
/**
|
|
28203
28337
|
* Copyright (c) "Neo4j"
|
|
@@ -28233,16 +28367,16 @@ var __read$4 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28233
28367
|
}
|
|
28234
28368
|
return ar;
|
|
28235
28369
|
};
|
|
28236
|
-
var __importDefault$
|
|
28370
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28237
28371
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28238
28372
|
};
|
|
28239
28373
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
28240
28374
|
var packstream_1$1 = packstream;
|
|
28241
|
-
var neo4j_driver_core_1$
|
|
28242
|
-
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$
|
|
28375
|
+
var neo4j_driver_core_1$i = lib$1;
|
|
28376
|
+
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$j(boltProtocolV4x4_transformer);
|
|
28243
28377
|
var temporal_factory_1 = temporalFactory;
|
|
28244
28378
|
var functional_1 = functional;
|
|
28245
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
28379
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$i.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
28246
28380
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
28247
28381
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
28248
28382
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -28256,7 +28390,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
28256
28390
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
28257
28391
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
28258
28392
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
28259
|
-
var result = new neo4j_driver_core_1$
|
|
28393
|
+
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
28394
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
28261
28395
|
},
|
|
28262
28396
|
toStructure: function (value) {
|
|
@@ -28270,7 +28404,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
28270
28404
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
28271
28405
|
}
|
|
28272
28406
|
var utc = epochSecond.subtract(offset);
|
|
28273
|
-
var nano = (0, neo4j_driver_core_1$
|
|
28407
|
+
var nano = (0, neo4j_driver_core_1$i.int)(value.nanosecond);
|
|
28274
28408
|
var timeZoneId = value.timeZoneId;
|
|
28275
28409
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
28276
28410
|
}
|
|
@@ -28324,9 +28458,9 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
28324
28458
|
hour12: false,
|
|
28325
28459
|
era: 'narrow'
|
|
28326
28460
|
});
|
|
28327
|
-
var utc = (0, neo4j_driver_core_1$
|
|
28461
|
+
var utc = (0, neo4j_driver_core_1$i.int)(epochSecond)
|
|
28328
28462
|
.multiply(1000)
|
|
28329
|
-
.add((0, neo4j_driver_core_1$
|
|
28463
|
+
.add((0, neo4j_driver_core_1$i.int)(nano).div(1000000))
|
|
28330
28464
|
.toNumber();
|
|
28331
28465
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
28332
28466
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -28337,7 +28471,7 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
28337
28471
|
: functional_1.identity;
|
|
28338
28472
|
}
|
|
28339
28473
|
else if (currentValue.type !== 'literal') {
|
|
28340
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
28474
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$i.int)(currentValue.value);
|
|
28341
28475
|
}
|
|
28342
28476
|
return obj;
|
|
28343
28477
|
}, {});
|
|
@@ -28354,17 +28488,17 @@ function createDateTimeWithOffsetTransformer(config) {
|
|
|
28354
28488
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
28355
28489
|
toStructure: function (value) {
|
|
28356
28490
|
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$
|
|
28491
|
+
var nano = (0, neo4j_driver_core_1$i.int)(value.nanosecond);
|
|
28492
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$i.int)(value.timeZoneOffsetSeconds);
|
|
28359
28493
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
28360
28494
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
28361
28495
|
},
|
|
28362
28496
|
fromStructure: function (struct) {
|
|
28363
28497
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
28364
28498
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
28365
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
28499
|
+
var epochSecond = (0, neo4j_driver_core_1$i.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
28366
28500
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
28367
|
-
var result = new neo4j_driver_core_1$
|
|
28501
|
+
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
28502
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
28369
28503
|
}
|
|
28370
28504
|
});
|
|
@@ -28380,7 +28514,7 @@ function convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {
|
|
|
28380
28514
|
for (var prop in obj) {
|
|
28381
28515
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
28382
28516
|
var value = obj[prop];
|
|
28383
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
28517
|
+
clone[prop] = (0, neo4j_driver_core_1$i.isInt)(value) ? convert(value) : value;
|
|
28384
28518
|
}
|
|
28385
28519
|
}
|
|
28386
28520
|
Object.freeze(clone);
|
|
@@ -28391,7 +28525,7 @@ boltProtocolV5x0_utc_transformer.default = {
|
|
|
28391
28525
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
28392
28526
|
};
|
|
28393
28527
|
|
|
28394
|
-
var __extends$
|
|
28528
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28395
28529
|
var extendStatics = function (d, b) {
|
|
28396
28530
|
extendStatics = Object.setPrototypeOf ||
|
|
28397
28531
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28406,8 +28540,8 @@ var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28406
28540
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28407
28541
|
};
|
|
28408
28542
|
})();
|
|
28409
|
-
var __assign$
|
|
28410
|
-
__assign$
|
|
28543
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28544
|
+
__assign$9 = Object.assign || function(t) {
|
|
28411
28545
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28412
28546
|
s = arguments[i];
|
|
28413
28547
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28415,9 +28549,9 @@ var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28415
28549
|
}
|
|
28416
28550
|
return t;
|
|
28417
28551
|
};
|
|
28418
|
-
return __assign$
|
|
28552
|
+
return __assign$9.apply(this, arguments);
|
|
28419
28553
|
};
|
|
28420
|
-
var __importDefault$
|
|
28554
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28421
28555
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28422
28556
|
};
|
|
28423
28557
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -28439,17 +28573,17 @@ Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
|
28439
28573
|
* See the License for the specific language governing permissions and
|
|
28440
28574
|
* limitations under the License.
|
|
28441
28575
|
*/
|
|
28442
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
28443
|
-
var request_message_1$
|
|
28444
|
-
var stream_observers_1$
|
|
28576
|
+
var bolt_protocol_v4x2_1$1 = __importDefault$i(boltProtocolV4x2);
|
|
28577
|
+
var request_message_1$5 = __importDefault$i(requestMessage);
|
|
28578
|
+
var stream_observers_1$5 = streamObservers;
|
|
28445
28579
|
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$
|
|
28580
|
+
var bolt_protocol_v4x3_transformer_1 = __importDefault$i(boltProtocolV4x3_transformer);
|
|
28581
|
+
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$i(boltProtocolV5x0_utc_transformer);
|
|
28582
|
+
var transformer_1$5 = __importDefault$i(transformer);
|
|
28583
|
+
var neo4j_driver_core_1$h = lib$1;
|
|
28584
|
+
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;
|
|
28585
|
+
var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
28586
|
+
__extends$b(BoltProtocol, _super);
|
|
28453
28587
|
function BoltProtocol() {
|
|
28454
28588
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28455
28589
|
}
|
|
@@ -28464,7 +28598,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28464
28598
|
get: function () {
|
|
28465
28599
|
var _this = this;
|
|
28466
28600
|
if (this._transformer === undefined) {
|
|
28467
|
-
this._transformer = new transformer_1$
|
|
28601
|
+
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
28602
|
}
|
|
28469
28603
|
return this._transformer;
|
|
28470
28604
|
},
|
|
@@ -28485,13 +28619,13 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28485
28619
|
*/
|
|
28486
28620
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
28487
28621
|
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$
|
|
28622
|
+
var observer = new stream_observers_1$5.RouteObserver({
|
|
28489
28623
|
onProtocolError: this._onProtocolError,
|
|
28490
28624
|
onError: onError,
|
|
28491
28625
|
onCompleted: onCompleted
|
|
28492
28626
|
});
|
|
28493
28627
|
var bookmarks = sessionContext.bookmarks || Bookmarks$2.empty();
|
|
28494
|
-
this.write(request_message_1$
|
|
28628
|
+
this.write(request_message_1$5.default.route(routingContext, bookmarks.values(), databaseName), observer, true);
|
|
28495
28629
|
return observer;
|
|
28496
28630
|
};
|
|
28497
28631
|
/**
|
|
@@ -28507,8 +28641,8 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28507
28641
|
*/
|
|
28508
28642
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
28509
28643
|
var _this = this;
|
|
28510
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
28511
|
-
var observer = new stream_observers_1$
|
|
28644
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
28645
|
+
var observer = new stream_observers_1$5.LoginObserver({
|
|
28512
28646
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
28513
28647
|
onCompleted: function (metadata) {
|
|
28514
28648
|
if (metadata.patch_bolt !== undefined) {
|
|
@@ -28519,7 +28653,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28519
28653
|
});
|
|
28520
28654
|
// passing notification filter on this protocol version throws an error
|
|
28521
28655
|
(0, bolt_protocol_util_1$3.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28522
|
-
this.write(request_message_1$
|
|
28656
|
+
this.write(request_message_1$5.default.hello(userAgent, authToken, this._serversideRouting, ['utc']), observer, true);
|
|
28523
28657
|
return observer;
|
|
28524
28658
|
};
|
|
28525
28659
|
/**
|
|
@@ -28533,15 +28667,15 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
28533
28667
|
};
|
|
28534
28668
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
28535
28669
|
var _this = this;
|
|
28536
|
-
this._transformer = new transformer_1$
|
|
28670
|
+
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
28671
|
};
|
|
28538
28672
|
return BoltProtocol;
|
|
28539
28673
|
}(bolt_protocol_v4x2_1$1.default));
|
|
28540
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
28674
|
+
boltProtocolV4x3.default = BoltProtocol$5;
|
|
28541
28675
|
|
|
28542
28676
|
var boltProtocolV4x4 = {};
|
|
28543
28677
|
|
|
28544
|
-
var __extends$
|
|
28678
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28545
28679
|
var extendStatics = function (d, b) {
|
|
28546
28680
|
extendStatics = Object.setPrototypeOf ||
|
|
28547
28681
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28556,8 +28690,8 @@ var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28556
28690
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28557
28691
|
};
|
|
28558
28692
|
})();
|
|
28559
|
-
var __assign$
|
|
28560
|
-
__assign$
|
|
28693
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28694
|
+
__assign$8 = Object.assign || function(t) {
|
|
28561
28695
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28562
28696
|
s = arguments[i];
|
|
28563
28697
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28565,9 +28699,9 @@ var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28565
28699
|
}
|
|
28566
28700
|
return t;
|
|
28567
28701
|
};
|
|
28568
|
-
return __assign$
|
|
28702
|
+
return __assign$8.apply(this, arguments);
|
|
28569
28703
|
};
|
|
28570
|
-
var __importDefault$
|
|
28704
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28571
28705
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28572
28706
|
};
|
|
28573
28707
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -28589,17 +28723,17 @@ Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
|
28589
28723
|
* See the License for the specific language governing permissions and
|
|
28590
28724
|
* limitations under the License.
|
|
28591
28725
|
*/
|
|
28592
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
28593
|
-
var neo4j_driver_core_1$
|
|
28594
|
-
var request_message_1$
|
|
28595
|
-
var stream_observers_1$
|
|
28726
|
+
var bolt_protocol_v4x3_1$1 = __importDefault$h(boltProtocolV4x3);
|
|
28727
|
+
var neo4j_driver_core_1$g = lib$1;
|
|
28728
|
+
var request_message_1$4 = __importDefault$h(requestMessage);
|
|
28729
|
+
var stream_observers_1$4 = streamObservers;
|
|
28596
28730
|
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$
|
|
28731
|
+
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$h(boltProtocolV4x4_transformer);
|
|
28732
|
+
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$h(boltProtocolV5x0_utc_transformer);
|
|
28733
|
+
var transformer_1$4 = __importDefault$h(transformer);
|
|
28734
|
+
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;
|
|
28735
|
+
var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
28736
|
+
__extends$a(BoltProtocol, _super);
|
|
28603
28737
|
function BoltProtocol() {
|
|
28604
28738
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28605
28739
|
}
|
|
@@ -28614,7 +28748,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28614
28748
|
get: function () {
|
|
28615
28749
|
var _this = this;
|
|
28616
28750
|
if (this._transformer === undefined) {
|
|
28617
|
-
this._transformer = new transformer_1$
|
|
28751
|
+
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
28752
|
}
|
|
28619
28753
|
return this._transformer;
|
|
28620
28754
|
},
|
|
@@ -28635,18 +28769,18 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28635
28769
|
*/
|
|
28636
28770
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
28637
28771
|
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$
|
|
28772
|
+
var observer = new stream_observers_1$4.RouteObserver({
|
|
28639
28773
|
onProtocolError: this._onProtocolError,
|
|
28640
28774
|
onError: onError,
|
|
28641
28775
|
onCompleted: onCompleted
|
|
28642
28776
|
});
|
|
28643
28777
|
var bookmarks = sessionContext.bookmarks || Bookmarks$1.empty();
|
|
28644
|
-
this.write(request_message_1$
|
|
28778
|
+
this.write(request_message_1$4.default.routeV4x4(routingContext, bookmarks.values(), { databaseName: databaseName, impersonatedUser: impersonatedUser }), observer, true);
|
|
28645
28779
|
return observer;
|
|
28646
28780
|
};
|
|
28647
28781
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
28648
28782
|
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$
|
|
28783
|
+
var observer = new stream_observers_1$4.ResultStreamObserver({
|
|
28650
28784
|
server: this._server,
|
|
28651
28785
|
reactive: reactive,
|
|
28652
28786
|
fetchSize: fetchSize,
|
|
@@ -28664,7 +28798,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28664
28798
|
// passing notification filter on this protocol version throws an error
|
|
28665
28799
|
(0, bolt_protocol_util_1$2.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28666
28800
|
var flushRun = reactive;
|
|
28667
|
-
this.write(request_message_1$
|
|
28801
|
+
this.write(request_message_1$4.default.runWithMetadata(query, parameters, {
|
|
28668
28802
|
bookmarks: bookmarks,
|
|
28669
28803
|
txConfig: txConfig,
|
|
28670
28804
|
database: database,
|
|
@@ -28672,13 +28806,13 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28672
28806
|
impersonatedUser: impersonatedUser
|
|
28673
28807
|
}), observer, flushRun && flush);
|
|
28674
28808
|
if (!reactive) {
|
|
28675
|
-
this.write(request_message_1$
|
|
28809
|
+
this.write(request_message_1$4.default.pull({ n: fetchSize }), observer, flush);
|
|
28676
28810
|
}
|
|
28677
28811
|
return observer;
|
|
28678
28812
|
};
|
|
28679
28813
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
28680
28814
|
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$
|
|
28815
|
+
var observer = new stream_observers_1$4.ResultStreamObserver({
|
|
28682
28816
|
server: this._server,
|
|
28683
28817
|
beforeError: beforeError,
|
|
28684
28818
|
afterError: afterError,
|
|
@@ -28688,16 +28822,16 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
28688
28822
|
observer.prepareToHandleSingleResponse();
|
|
28689
28823
|
// passing notification filter on this protocol version throws an error
|
|
28690
28824
|
(0, bolt_protocol_util_1$2.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28691
|
-
this.write(request_message_1$
|
|
28825
|
+
this.write(request_message_1$4.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser }), observer, true);
|
|
28692
28826
|
return observer;
|
|
28693
28827
|
};
|
|
28694
28828
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
28695
28829
|
var _this = this;
|
|
28696
|
-
this._transformer = new transformer_1$
|
|
28830
|
+
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
28831
|
};
|
|
28698
28832
|
return BoltProtocol;
|
|
28699
28833
|
}(bolt_protocol_v4x3_1$1.default));
|
|
28700
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
28834
|
+
boltProtocolV4x4.default = BoltProtocol$4;
|
|
28701
28835
|
|
|
28702
28836
|
var boltProtocolV5x0 = {};
|
|
28703
28837
|
|
|
@@ -28721,8 +28855,8 @@ var boltProtocolV5x0_transformer = {};
|
|
|
28721
28855
|
* See the License for the specific language governing permissions and
|
|
28722
28856
|
* limitations under the License.
|
|
28723
28857
|
*/
|
|
28724
|
-
var __assign$
|
|
28725
|
-
__assign$
|
|
28858
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28859
|
+
__assign$7 = Object.assign || function(t) {
|
|
28726
28860
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28727
28861
|
s = arguments[i];
|
|
28728
28862
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28730,7 +28864,7 @@ var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28730
28864
|
}
|
|
28731
28865
|
return t;
|
|
28732
28866
|
};
|
|
28733
|
-
return __assign$
|
|
28867
|
+
return __assign$7.apply(this, arguments);
|
|
28734
28868
|
};
|
|
28735
28869
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
28736
28870
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -28748,14 +28882,14 @@ var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28748
28882
|
}
|
|
28749
28883
|
return ar;
|
|
28750
28884
|
};
|
|
28751
|
-
var __importDefault$
|
|
28885
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28752
28886
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28753
28887
|
};
|
|
28754
28888
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
28755
28889
|
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$
|
|
28890
|
+
var neo4j_driver_core_1$f = lib$1;
|
|
28891
|
+
var bolt_protocol_v4x4_transformer_1 = __importDefault$g(boltProtocolV4x4_transformer);
|
|
28892
|
+
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$g(boltProtocolV5x0_utc_transformer);
|
|
28759
28893
|
var NODE_STRUCT_SIZE = 4;
|
|
28760
28894
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
28761
28895
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -28770,7 +28904,7 @@ function createNodeTransformer(config) {
|
|
|
28770
28904
|
fromStructure: function (struct) {
|
|
28771
28905
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
28772
28906
|
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$
|
|
28907
|
+
return new neo4j_driver_core_1$f.Node(identity, lables, properties, elementId);
|
|
28774
28908
|
}
|
|
28775
28909
|
});
|
|
28776
28910
|
}
|
|
@@ -28785,7 +28919,7 @@ function createRelationshipTransformer(config) {
|
|
|
28785
28919
|
fromStructure: function (struct) {
|
|
28786
28920
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
28787
28921
|
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$
|
|
28922
|
+
return new neo4j_driver_core_1$f.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
28789
28923
|
}
|
|
28790
28924
|
});
|
|
28791
28925
|
}
|
|
@@ -28800,13 +28934,13 @@ function createUnboundRelationshipTransformer(config) {
|
|
|
28800
28934
|
fromStructure: function (struct) {
|
|
28801
28935
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
28802
28936
|
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$
|
|
28937
|
+
return new neo4j_driver_core_1$f.UnboundRelationship(identity, type, properties, elementId);
|
|
28804
28938
|
}
|
|
28805
28939
|
});
|
|
28806
28940
|
}
|
|
28807
|
-
boltProtocolV5x0_transformer.default = __assign$
|
|
28941
|
+
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
28942
|
|
|
28809
|
-
var __extends$
|
|
28943
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28810
28944
|
var extendStatics = function (d, b) {
|
|
28811
28945
|
extendStatics = Object.setPrototypeOf ||
|
|
28812
28946
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28821,7 +28955,7 @@ var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28821
28955
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28822
28956
|
};
|
|
28823
28957
|
})();
|
|
28824
|
-
var __importDefault$
|
|
28958
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28825
28959
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28826
28960
|
};
|
|
28827
28961
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -28843,16 +28977,16 @@ Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
|
28843
28977
|
* See the License for the specific language governing permissions and
|
|
28844
28978
|
* limitations under the License.
|
|
28845
28979
|
*/
|
|
28846
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
28980
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$f(boltProtocolV4x4);
|
|
28847
28981
|
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$
|
|
28982
|
+
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$f(boltProtocolV5x0_transformer);
|
|
28983
|
+
var transformer_1$3 = __importDefault$f(transformer);
|
|
28984
|
+
var request_message_1$3 = __importDefault$f(requestMessage);
|
|
28985
|
+
var stream_observers_1$3 = streamObservers;
|
|
28986
|
+
var neo4j_driver_core_1$e = lib$1;
|
|
28987
|
+
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_0;
|
|
28988
|
+
var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
28989
|
+
__extends$9(BoltProtocol, _super);
|
|
28856
28990
|
function BoltProtocol() {
|
|
28857
28991
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28858
28992
|
}
|
|
@@ -28867,7 +29001,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
28867
29001
|
get: function () {
|
|
28868
29002
|
var _this = this;
|
|
28869
29003
|
if (this._transformer === undefined) {
|
|
28870
|
-
this._transformer = new transformer_1$
|
|
29004
|
+
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
29005
|
}
|
|
28872
29006
|
return this._transformer;
|
|
28873
29007
|
},
|
|
@@ -28887,19 +29021,19 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
28887
29021
|
*/
|
|
28888
29022
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
28889
29023
|
var _this = this;
|
|
28890
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
28891
|
-
var observer = new stream_observers_1$
|
|
29024
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
29025
|
+
var observer = new stream_observers_1$3.LoginObserver({
|
|
28892
29026
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
28893
29027
|
onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
|
|
28894
29028
|
});
|
|
28895
29029
|
// passing notification filter on this protocol version throws an error
|
|
28896
29030
|
(0, bolt_protocol_util_1$1.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
28897
|
-
this.write(request_message_1$
|
|
29031
|
+
this.write(request_message_1$3.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
|
|
28898
29032
|
return observer;
|
|
28899
29033
|
};
|
|
28900
29034
|
return BoltProtocol;
|
|
28901
29035
|
}(bolt_protocol_v4x4_1$1.default));
|
|
28902
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
29036
|
+
boltProtocolV5x0.default = BoltProtocol$3;
|
|
28903
29037
|
|
|
28904
29038
|
var boltProtocolV5x1 = {};
|
|
28905
29039
|
|
|
@@ -28923,8 +29057,8 @@ var boltProtocolV5x1_transformer = {};
|
|
|
28923
29057
|
* See the License for the specific language governing permissions and
|
|
28924
29058
|
* limitations under the License.
|
|
28925
29059
|
*/
|
|
28926
|
-
var __assign$
|
|
28927
|
-
__assign$
|
|
29060
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29061
|
+
__assign$6 = Object.assign || function(t) {
|
|
28928
29062
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28929
29063
|
s = arguments[i];
|
|
28930
29064
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28932,16 +29066,16 @@ var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28932
29066
|
}
|
|
28933
29067
|
return t;
|
|
28934
29068
|
};
|
|
28935
|
-
return __assign$
|
|
29069
|
+
return __assign$6.apply(this, arguments);
|
|
28936
29070
|
};
|
|
28937
|
-
var __importDefault$
|
|
29071
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28938
29072
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28939
29073
|
};
|
|
28940
29074
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
28941
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
28942
|
-
boltProtocolV5x1_transformer.default = __assign$
|
|
29075
|
+
var bolt_protocol_v5x0_transformer_1 = __importDefault$e(boltProtocolV5x0_transformer);
|
|
29076
|
+
boltProtocolV5x1_transformer.default = __assign$6({}, bolt_protocol_v5x0_transformer_1.default);
|
|
28943
29077
|
|
|
28944
|
-
var __extends$
|
|
29078
|
+
var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28945
29079
|
var extendStatics = function (d, b) {
|
|
28946
29080
|
extendStatics = Object.setPrototypeOf ||
|
|
28947
29081
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28956,8 +29090,8 @@ var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
28956
29090
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28957
29091
|
};
|
|
28958
29092
|
})();
|
|
28959
|
-
var __assign$
|
|
28960
|
-
__assign$
|
|
29093
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29094
|
+
__assign$5 = Object.assign || function(t) {
|
|
28961
29095
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28962
29096
|
s = arguments[i];
|
|
28963
29097
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28965,9 +29099,9 @@ var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28965
29099
|
}
|
|
28966
29100
|
return t;
|
|
28967
29101
|
};
|
|
28968
|
-
return __assign$
|
|
29102
|
+
return __assign$5.apply(this, arguments);
|
|
28969
29103
|
};
|
|
28970
|
-
var __importDefault$
|
|
29104
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28971
29105
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28972
29106
|
};
|
|
28973
29107
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -28989,16 +29123,16 @@ Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
|
28989
29123
|
* See the License for the specific language governing permissions and
|
|
28990
29124
|
* limitations under the License.
|
|
28991
29125
|
*/
|
|
28992
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
29126
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$d(boltProtocolV5x0);
|
|
28993
29127
|
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$
|
|
29128
|
+
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$d(boltProtocolV5x1_transformer);
|
|
29129
|
+
var transformer_1$2 = __importDefault$d(transformer);
|
|
29130
|
+
var request_message_1$2 = __importDefault$d(requestMessage);
|
|
29131
|
+
var stream_observers_1$2 = streamObservers;
|
|
29132
|
+
var neo4j_driver_core_1$d = lib$1;
|
|
29133
|
+
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$d.internal.constants.BOLT_PROTOCOL_V5_1;
|
|
29134
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
29135
|
+
__extends$8(BoltProtocol, _super);
|
|
29002
29136
|
function BoltProtocol() {
|
|
29003
29137
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29004
29138
|
}
|
|
@@ -29013,7 +29147,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29013
29147
|
get: function () {
|
|
29014
29148
|
var _this = this;
|
|
29015
29149
|
if (this._transformer === undefined) {
|
|
29016
|
-
this._transformer = new transformer_1$
|
|
29150
|
+
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
29151
|
}
|
|
29018
29152
|
return this._transformer;
|
|
29019
29153
|
},
|
|
@@ -29040,9 +29174,9 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29040
29174
|
*/
|
|
29041
29175
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
29042
29176
|
var _this = this;
|
|
29043
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
29177
|
+
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
29178
|
var state = {};
|
|
29045
|
-
var observer = new stream_observers_1$
|
|
29179
|
+
var observer = new stream_observers_1$2.LoginObserver({
|
|
29046
29180
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
29047
29181
|
onCompleted: function (metadata) {
|
|
29048
29182
|
state.metadata = metadata;
|
|
@@ -29051,10 +29185,10 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29051
29185
|
});
|
|
29052
29186
|
// passing notification filter on this protocol version throws an error
|
|
29053
29187
|
(0, bolt_protocol_util_1.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
|
|
29054
|
-
this.write(request_message_1$
|
|
29188
|
+
this.write(request_message_1$2.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
29055
29189
|
return this.logon({
|
|
29056
29190
|
authToken: authToken,
|
|
29057
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
29191
|
+
onComplete: function (metadata) { return onComplete(__assign$5(__assign$5({}, metadata), state.metadata)); },
|
|
29058
29192
|
onError: onError,
|
|
29059
29193
|
flush: true
|
|
29060
29194
|
});
|
|
@@ -29073,11 +29207,11 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29073
29207
|
BoltProtocol.prototype.logon = function (_a) {
|
|
29074
29208
|
var _this = this;
|
|
29075
29209
|
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$
|
|
29210
|
+
var observer = new stream_observers_1$2.LoginObserver({
|
|
29077
29211
|
onCompleted: function () { return _this._onLoginCompleted(null, authToken, onComplete); },
|
|
29078
29212
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
29079
29213
|
});
|
|
29080
|
-
this.write(request_message_1$
|
|
29214
|
+
this.write(request_message_1$2.default.logon(authToken), observer, flush);
|
|
29081
29215
|
return observer;
|
|
29082
29216
|
};
|
|
29083
29217
|
/**
|
|
@@ -29092,16 +29226,16 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
29092
29226
|
*/
|
|
29093
29227
|
BoltProtocol.prototype.logoff = function (_a) {
|
|
29094
29228
|
var _b = _a === void 0 ? {} : _a, onComplete = _b.onComplete, onError = _b.onError, flush = _b.flush;
|
|
29095
|
-
var observer = new stream_observers_1$
|
|
29229
|
+
var observer = new stream_observers_1$2.LogoffObserver({
|
|
29096
29230
|
onCompleted: onComplete,
|
|
29097
29231
|
onError: onError
|
|
29098
29232
|
});
|
|
29099
|
-
this.write(request_message_1$
|
|
29233
|
+
this.write(request_message_1$2.default.logoff(), observer, flush);
|
|
29100
29234
|
return observer;
|
|
29101
29235
|
};
|
|
29102
29236
|
return BoltProtocol;
|
|
29103
29237
|
}(bolt_protocol_v5x0_1$1.default));
|
|
29104
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
29238
|
+
boltProtocolV5x1.default = BoltProtocol$2;
|
|
29105
29239
|
|
|
29106
29240
|
var boltProtocolV5x2 = {};
|
|
29107
29241
|
|
|
@@ -29125,8 +29259,8 @@ var boltProtocolV5x2_transformer = {};
|
|
|
29125
29259
|
* See the License for the specific language governing permissions and
|
|
29126
29260
|
* limitations under the License.
|
|
29127
29261
|
*/
|
|
29128
|
-
var __assign$
|
|
29129
|
-
__assign$
|
|
29262
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29263
|
+
__assign$4 = Object.assign || function(t) {
|
|
29130
29264
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29131
29265
|
s = arguments[i];
|
|
29132
29266
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29134,16 +29268,16 @@ var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29134
29268
|
}
|
|
29135
29269
|
return t;
|
|
29136
29270
|
};
|
|
29137
|
-
return __assign$
|
|
29271
|
+
return __assign$4.apply(this, arguments);
|
|
29138
29272
|
};
|
|
29139
|
-
var __importDefault$
|
|
29273
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29140
29274
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29141
29275
|
};
|
|
29142
29276
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
29143
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
29144
|
-
boltProtocolV5x2_transformer.default = __assign$
|
|
29277
|
+
var bolt_protocol_v5x1_transformer_1 = __importDefault$c(boltProtocolV5x1_transformer);
|
|
29278
|
+
boltProtocolV5x2_transformer.default = __assign$4({}, bolt_protocol_v5x1_transformer_1.default);
|
|
29145
29279
|
|
|
29146
|
-
var __extends$
|
|
29280
|
+
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29147
29281
|
var extendStatics = function (d, b) {
|
|
29148
29282
|
extendStatics = Object.setPrototypeOf ||
|
|
29149
29283
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29158,8 +29292,8 @@ var __extends$6 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29158
29292
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29159
29293
|
};
|
|
29160
29294
|
})();
|
|
29161
|
-
var __assign$
|
|
29162
|
-
__assign$
|
|
29295
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29296
|
+
__assign$3 = Object.assign || function(t) {
|
|
29163
29297
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29164
29298
|
s = arguments[i];
|
|
29165
29299
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29167,9 +29301,9 @@ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29167
29301
|
}
|
|
29168
29302
|
return t;
|
|
29169
29303
|
};
|
|
29170
|
-
return __assign$
|
|
29304
|
+
return __assign$3.apply(this, arguments);
|
|
29171
29305
|
};
|
|
29172
|
-
var __importDefault$
|
|
29306
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29173
29307
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29174
29308
|
};
|
|
29175
29309
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -29191,15 +29325,15 @@ Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
|
29191
29325
|
* See the License for the specific language governing permissions and
|
|
29192
29326
|
* limitations under the License.
|
|
29193
29327
|
*/
|
|
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$
|
|
29328
|
+
var bolt_protocol_v5x1_1$1 = __importDefault$b(boltProtocolV5x1);
|
|
29329
|
+
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$b(boltProtocolV5x2_transformer);
|
|
29330
|
+
var transformer_1$1 = __importDefault$b(transformer);
|
|
29331
|
+
var request_message_1$1 = __importDefault$b(requestMessage);
|
|
29332
|
+
var stream_observers_1$1 = streamObservers;
|
|
29333
|
+
var neo4j_driver_core_1$c = lib$1;
|
|
29334
|
+
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;
|
|
29335
|
+
var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
29336
|
+
__extends$7(BoltProtocol, _super);
|
|
29203
29337
|
function BoltProtocol() {
|
|
29204
29338
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29205
29339
|
}
|
|
@@ -29214,7 +29348,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29214
29348
|
get: function () {
|
|
29215
29349
|
var _this = this;
|
|
29216
29350
|
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); }));
|
|
29351
|
+
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
29352
|
}
|
|
29219
29353
|
return this._transformer;
|
|
29220
29354
|
},
|
|
@@ -29233,6 +29367,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29233
29367
|
*
|
|
29234
29368
|
* @param {Object} args The params
|
|
29235
29369
|
* @param {string} args.userAgent The user agent
|
|
29370
|
+
* @param {string} args.boltAgent The bolt agent
|
|
29236
29371
|
* @param {any} args.authToken The auth token
|
|
29237
29372
|
* @param {NotificationFilter} args.notificationFilter The notification filters.
|
|
29238
29373
|
* @param {function(error)} args.onError On error callback
|
|
@@ -29241,26 +29376,28 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29241
29376
|
*/
|
|
29242
29377
|
BoltProtocol.prototype.initialize = function (_a) {
|
|
29243
29378
|
var _this = this;
|
|
29244
|
-
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent
|
|
29379
|
+
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
29380
|
var state = {};
|
|
29246
|
-
var observer = new stream_observers_1.LoginObserver({
|
|
29381
|
+
var observer = new stream_observers_1$1.LoginObserver({
|
|
29247
29382
|
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
29248
29383
|
onCompleted: function (metadata) {
|
|
29249
29384
|
state.metadata = metadata;
|
|
29250
29385
|
return _this._onLoginCompleted(metadata);
|
|
29251
29386
|
}
|
|
29252
29387
|
});
|
|
29253
|
-
this.write(
|
|
29388
|
+
this.write(
|
|
29389
|
+
// if useragent is null then for all versions before 5.3 it should be bolt agent by default
|
|
29390
|
+
request_message_1$1.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
29254
29391
|
return this.logon({
|
|
29255
29392
|
authToken: authToken,
|
|
29256
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
29393
|
+
onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
|
|
29257
29394
|
onError: onError,
|
|
29258
29395
|
flush: true
|
|
29259
29396
|
});
|
|
29260
29397
|
};
|
|
29261
29398
|
BoltProtocol.prototype.beginTransaction = function (_a) {
|
|
29262
29399
|
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({
|
|
29400
|
+
var observer = new stream_observers_1$1.ResultStreamObserver({
|
|
29264
29401
|
server: this._server,
|
|
29265
29402
|
beforeError: beforeError,
|
|
29266
29403
|
afterError: afterError,
|
|
@@ -29268,12 +29405,12 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29268
29405
|
afterComplete: afterComplete
|
|
29269
29406
|
});
|
|
29270
29407
|
observer.prepareToHandleSingleResponse();
|
|
29271
|
-
this.write(request_message_1.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser, notificationFilter: notificationFilter }), observer, true);
|
|
29408
|
+
this.write(request_message_1$1.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser, notificationFilter: notificationFilter }), observer, true);
|
|
29272
29409
|
return observer;
|
|
29273
29410
|
};
|
|
29274
29411
|
BoltProtocol.prototype.run = function (query, parameters, _a) {
|
|
29275
29412
|
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({
|
|
29413
|
+
var observer = new stream_observers_1$1.ResultStreamObserver({
|
|
29277
29414
|
server: this._server,
|
|
29278
29415
|
reactive: reactive,
|
|
29279
29416
|
fetchSize: fetchSize,
|
|
@@ -29289,7 +29426,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29289
29426
|
lowRecordWatermark: lowRecordWatermark
|
|
29290
29427
|
});
|
|
29291
29428
|
var flushRun = reactive;
|
|
29292
|
-
this.write(request_message_1.default.runWithMetadata(query, parameters, {
|
|
29429
|
+
this.write(request_message_1$1.default.runWithMetadata(query, parameters, {
|
|
29293
29430
|
bookmarks: bookmarks,
|
|
29294
29431
|
txConfig: txConfig,
|
|
29295
29432
|
database: database,
|
|
@@ -29298,13 +29435,165 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
29298
29435
|
notificationFilter: notificationFilter
|
|
29299
29436
|
}), observer, flushRun && flush);
|
|
29300
29437
|
if (!reactive) {
|
|
29301
|
-
this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);
|
|
29438
|
+
this.write(request_message_1$1.default.pull({ n: fetchSize }), observer, flush);
|
|
29302
29439
|
}
|
|
29303
29440
|
return observer;
|
|
29304
29441
|
};
|
|
29305
29442
|
return BoltProtocol;
|
|
29306
29443
|
}(bolt_protocol_v5x1_1$1.default));
|
|
29307
|
-
boltProtocolV5x2.default = BoltProtocol;
|
|
29444
|
+
boltProtocolV5x2.default = BoltProtocol$1;
|
|
29445
|
+
|
|
29446
|
+
var boltProtocolV5x3 = {};
|
|
29447
|
+
|
|
29448
|
+
var boltProtocolV5x3_transformer = {};
|
|
29449
|
+
|
|
29450
|
+
/**
|
|
29451
|
+
* Copyright (c) "Neo4j"
|
|
29452
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
29453
|
+
*
|
|
29454
|
+
* This file is part of Neo4j.
|
|
29455
|
+
*
|
|
29456
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29457
|
+
* you may not use this file except in compliance with the License.
|
|
29458
|
+
* You may obtain a copy of the License at
|
|
29459
|
+
*
|
|
29460
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29461
|
+
*
|
|
29462
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
29463
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29464
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29465
|
+
* See the License for the specific language governing permissions and
|
|
29466
|
+
* limitations under the License.
|
|
29467
|
+
*/
|
|
29468
|
+
var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29469
|
+
__assign$2 = Object.assign || function(t) {
|
|
29470
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29471
|
+
s = arguments[i];
|
|
29472
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
29473
|
+
t[p] = s[p];
|
|
29474
|
+
}
|
|
29475
|
+
return t;
|
|
29476
|
+
};
|
|
29477
|
+
return __assign$2.apply(this, arguments);
|
|
29478
|
+
};
|
|
29479
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29480
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29481
|
+
};
|
|
29482
|
+
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
29483
|
+
var bolt_protocol_v5x2_transformer_1 = __importDefault$a(boltProtocolV5x2_transformer);
|
|
29484
|
+
boltProtocolV5x3_transformer.default = __assign$2({}, bolt_protocol_v5x2_transformer_1.default);
|
|
29485
|
+
|
|
29486
|
+
var __extends$6 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29487
|
+
var extendStatics = function (d, b) {
|
|
29488
|
+
extendStatics = Object.setPrototypeOf ||
|
|
29489
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
29490
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
29491
|
+
return extendStatics(d, b);
|
|
29492
|
+
};
|
|
29493
|
+
return function (d, b) {
|
|
29494
|
+
if (typeof b !== "function" && b !== null)
|
|
29495
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
29496
|
+
extendStatics(d, b);
|
|
29497
|
+
function __() { this.constructor = d; }
|
|
29498
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29499
|
+
};
|
|
29500
|
+
})();
|
|
29501
|
+
var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29502
|
+
__assign$1 = Object.assign || function(t) {
|
|
29503
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29504
|
+
s = arguments[i];
|
|
29505
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
29506
|
+
t[p] = s[p];
|
|
29507
|
+
}
|
|
29508
|
+
return t;
|
|
29509
|
+
};
|
|
29510
|
+
return __assign$1.apply(this, arguments);
|
|
29511
|
+
};
|
|
29512
|
+
var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29513
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29514
|
+
};
|
|
29515
|
+
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
29516
|
+
/**
|
|
29517
|
+
* Copyright (c) "Neo4j"
|
|
29518
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
29519
|
+
*
|
|
29520
|
+
* This file is part of Neo4j.
|
|
29521
|
+
*
|
|
29522
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29523
|
+
* you may not use this file except in compliance with the License.
|
|
29524
|
+
* You may obtain a copy of the License at
|
|
29525
|
+
*
|
|
29526
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29527
|
+
*
|
|
29528
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
29529
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29530
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29531
|
+
* See the License for the specific language governing permissions and
|
|
29532
|
+
* limitations under the License.
|
|
29533
|
+
*/
|
|
29534
|
+
var bolt_protocol_v5x2_1$1 = __importDefault$9(boltProtocolV5x2);
|
|
29535
|
+
var bolt_protocol_v5x3_transformer_1 = __importDefault$9(boltProtocolV5x3_transformer);
|
|
29536
|
+
var transformer_1 = __importDefault$9(transformer);
|
|
29537
|
+
var request_message_1 = __importDefault$9(requestMessage);
|
|
29538
|
+
var stream_observers_1 = streamObservers;
|
|
29539
|
+
var neo4j_driver_core_1$b = lib$1;
|
|
29540
|
+
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_3;
|
|
29541
|
+
var BoltProtocol = /** @class */ (function (_super) {
|
|
29542
|
+
__extends$6(BoltProtocol, _super);
|
|
29543
|
+
function BoltProtocol() {
|
|
29544
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29545
|
+
}
|
|
29546
|
+
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
29547
|
+
get: function () {
|
|
29548
|
+
return BOLT_PROTOCOL_V5_3;
|
|
29549
|
+
},
|
|
29550
|
+
enumerable: false,
|
|
29551
|
+
configurable: true
|
|
29552
|
+
});
|
|
29553
|
+
Object.defineProperty(BoltProtocol.prototype, "transformer", {
|
|
29554
|
+
get: function () {
|
|
29555
|
+
var _this = this;
|
|
29556
|
+
if (this._transformer === undefined) {
|
|
29557
|
+
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29558
|
+
}
|
|
29559
|
+
return this._transformer;
|
|
29560
|
+
},
|
|
29561
|
+
enumerable: false,
|
|
29562
|
+
configurable: true
|
|
29563
|
+
});
|
|
29564
|
+
/**
|
|
29565
|
+
* Initialize a connection with the server
|
|
29566
|
+
*
|
|
29567
|
+
* @param {Object} args The params
|
|
29568
|
+
* @param {string} args.userAgent The user agent
|
|
29569
|
+
* @param {any} args.authToken The auth token
|
|
29570
|
+
* @param {NotificationFilter} args.notificationFilter The notification filters.
|
|
29571
|
+
* @param {function(error)} args.onError On error callback
|
|
29572
|
+
* @param {function(onComplete)} args.onComplete On complete callback
|
|
29573
|
+
* @returns {LoginObserver} The Login observer
|
|
29574
|
+
*/
|
|
29575
|
+
BoltProtocol.prototype.initialize = function (_a) {
|
|
29576
|
+
var _this = this;
|
|
29577
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, boltAgent = _b.boltAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
|
|
29578
|
+
var state = {};
|
|
29579
|
+
var observer = new stream_observers_1.LoginObserver({
|
|
29580
|
+
onError: function (error) { return _this._onLoginError(error, onError); },
|
|
29581
|
+
onCompleted: function (metadata) {
|
|
29582
|
+
state.metadata = metadata;
|
|
29583
|
+
return _this._onLoginCompleted(metadata);
|
|
29584
|
+
}
|
|
29585
|
+
});
|
|
29586
|
+
this.write(request_message_1.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
29587
|
+
return this.logon({
|
|
29588
|
+
authToken: authToken,
|
|
29589
|
+
onComplete: function (metadata) { return onComplete(__assign$1(__assign$1({}, metadata), state.metadata)); },
|
|
29590
|
+
onError: onError,
|
|
29591
|
+
flush: true
|
|
29592
|
+
});
|
|
29593
|
+
};
|
|
29594
|
+
return BoltProtocol;
|
|
29595
|
+
}(bolt_protocol_v5x2_1$1.default));
|
|
29596
|
+
boltProtocolV5x3.default = BoltProtocol;
|
|
29308
29597
|
|
|
29309
29598
|
var responseHandler = {};
|
|
29310
29599
|
|
|
@@ -29549,6 +29838,7 @@ var bolt_protocol_v4x4_1 = __importDefault$8(boltProtocolV4x4);
|
|
|
29549
29838
|
var bolt_protocol_v5x0_1 = __importDefault$8(boltProtocolV5x0);
|
|
29550
29839
|
var bolt_protocol_v5x1_1 = __importDefault$8(boltProtocolV5x1);
|
|
29551
29840
|
var bolt_protocol_v5x2_1 = __importDefault$8(boltProtocolV5x2);
|
|
29841
|
+
var bolt_protocol_v5x3_1 = __importDefault$8(boltProtocolV5x3);
|
|
29552
29842
|
var response_handler_1 = __importDefault$8(responseHandler);
|
|
29553
29843
|
/**
|
|
29554
29844
|
* Creates a protocol with a given version
|
|
@@ -29615,6 +29905,8 @@ function createProtocol(version, server, chunker, packingConfig, serversideRouti
|
|
|
29615
29905
|
return new bolt_protocol_v5x1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
29616
29906
|
case 5.2:
|
|
29617
29907
|
return new bolt_protocol_v5x2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
29908
|
+
case 5.3:
|
|
29909
|
+
return new bolt_protocol_v5x3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
29618
29910
|
default:
|
|
29619
29911
|
throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
|
|
29620
29912
|
}
|
|
@@ -30494,10 +30786,12 @@ var Connection = /** @class */ (function () {
|
|
|
30494
30786
|
/**
|
|
30495
30787
|
* Connect to the target address, negotiate Bolt protocol and send initialization message.
|
|
30496
30788
|
* @param {string} userAgent the user agent for this driver.
|
|
30789
|
+
* @param {string} boltAgent the bolt agent for this driver.
|
|
30497
30790
|
* @param {Object} authToken the object containing auth information.
|
|
30791
|
+
* @param {boolean} shouldWaitReAuth whether ot not the connection will wait for re-authentication to happen
|
|
30498
30792
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
30499
30793
|
*/
|
|
30500
|
-
Connection.prototype.connect = function (userAgent, authToken) {
|
|
30794
|
+
Connection.prototype.connect = function (userAgent, boltAgent, authToken, shouldWaitReAuth) {
|
|
30501
30795
|
throw new Error('not implemented');
|
|
30502
30796
|
};
|
|
30503
30797
|
/**
|
|
@@ -30760,10 +31054,12 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
30760
31054
|
/**
|
|
30761
31055
|
* Send initialization message.
|
|
30762
31056
|
* @param {string} userAgent the user agent for this driver.
|
|
31057
|
+
* @param {string} boltAgent the bolt agent for this driver.
|
|
30763
31058
|
* @param {Object} authToken the object containing auth information.
|
|
31059
|
+
* @param {boolean} waitReAuth whether ot not the connection will wait for re-authentication to happen
|
|
30764
31060
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
30765
31061
|
*/
|
|
30766
|
-
ChannelConnection.prototype.connect = function (userAgent, authToken, waitReAuth) {
|
|
31062
|
+
ChannelConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
30767
31063
|
return __awaiter$4(this, void 0, void 0, function () {
|
|
30768
31064
|
var _this = this;
|
|
30769
31065
|
return __generator$4(this, function (_a) {
|
|
@@ -30774,7 +31070,7 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
30774
31070
|
}
|
|
30775
31071
|
this._authToken = authToken;
|
|
30776
31072
|
if (!!this._protocol.initialized) return [3 /*break*/, 2];
|
|
30777
|
-
return [4 /*yield*/, this._initialize(userAgent, authToken)];
|
|
31073
|
+
return [4 /*yield*/, this._initialize(userAgent, boltAgent, authToken)];
|
|
30778
31074
|
case 1: return [2 /*return*/, _a.sent()];
|
|
30779
31075
|
case 2:
|
|
30780
31076
|
if (!waitReAuth) return [3 /*break*/, 4];
|
|
@@ -30801,15 +31097,17 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
30801
31097
|
/**
|
|
30802
31098
|
* Perform protocol-specific initialization which includes authentication.
|
|
30803
31099
|
* @param {string} userAgent the user agent for this driver.
|
|
31100
|
+
* @param {string} boltAgent the bolt agent for this driver.
|
|
30804
31101
|
* @param {Object} authToken the object containing auth information.
|
|
30805
31102
|
* @return {Promise<Connection>} promise resolved with the current connection if initialization is successful. Rejected promise otherwise.
|
|
30806
31103
|
*/
|
|
30807
|
-
ChannelConnection.prototype._initialize = function (userAgent, authToken) {
|
|
31104
|
+
ChannelConnection.prototype._initialize = function (userAgent, boltAgent, authToken) {
|
|
30808
31105
|
var _this = this;
|
|
30809
31106
|
var self = this;
|
|
30810
31107
|
return new Promise(function (resolve, reject) {
|
|
30811
31108
|
_this._protocol.initialize({
|
|
30812
31109
|
userAgent: userAgent,
|
|
31110
|
+
boltAgent: boltAgent,
|
|
30813
31111
|
authToken: authToken,
|
|
30814
31112
|
notificationFilter: _this._notificationFilter,
|
|
30815
31113
|
onError: function (err) { return reject(err); },
|
|
@@ -31184,8 +31482,8 @@ var DelegateConnection = /** @class */ (function (_super) {
|
|
|
31184
31482
|
DelegateConnection.prototype.protocol = function () {
|
|
31185
31483
|
return this._delegate.protocol();
|
|
31186
31484
|
};
|
|
31187
|
-
DelegateConnection.prototype.connect = function (userAgent, authToken, waitReAuth) {
|
|
31188
|
-
return this._delegate.connect(userAgent, authToken, waitReAuth);
|
|
31485
|
+
DelegateConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
31486
|
+
return this._delegate.connect(userAgent, boltAgent, authToken, waitReAuth);
|
|
31189
31487
|
};
|
|
31190
31488
|
DelegateConnection.prototype.write = function (message, observer, flush) {
|
|
31191
31489
|
return this._delegate.write(message, observer, flush);
|
|
@@ -31417,11 +31715,12 @@ var lang_1$1 = lang;
|
|
|
31417
31715
|
*/
|
|
31418
31716
|
var AuthenticationProvider = /** @class */ (function () {
|
|
31419
31717
|
function AuthenticationProvider(_a) {
|
|
31420
|
-
var authTokenManager = _a.authTokenManager, userAgent = _a.userAgent;
|
|
31718
|
+
var authTokenManager = _a.authTokenManager, userAgent = _a.userAgent, boltAgent = _a.boltAgent;
|
|
31421
31719
|
this._authTokenManager = authTokenManager || (0, neo4j_driver_core_1$4.expirationBasedAuthTokenManager)({
|
|
31422
31720
|
tokenProvider: function () { }
|
|
31423
31721
|
});
|
|
31424
31722
|
this._userAgent = userAgent;
|
|
31723
|
+
this._boltAgent = boltAgent;
|
|
31425
31724
|
}
|
|
31426
31725
|
AuthenticationProvider.prototype.authenticate = function (_a) {
|
|
31427
31726
|
var connection = _a.connection, auth = _a.auth, skipReAuth = _a.skipReAuth, waitReAuth = _a.waitReAuth, forceReAuth = _a.forceReAuth;
|
|
@@ -31434,14 +31733,14 @@ var AuthenticationProvider = /** @class */ (function () {
|
|
|
31434
31733
|
shouldReAuth = connection.supportsReAuth === true && ((!lang_1$1.object.equals(connection.authToken, auth) && skipReAuth !== true) ||
|
|
31435
31734
|
forceReAuth === true);
|
|
31436
31735
|
if (!(connection.authToken == null || shouldReAuth)) return [3 /*break*/, 2];
|
|
31437
|
-
return [4 /*yield*/, connection.connect(this._userAgent, auth, waitReAuth || false)];
|
|
31736
|
+
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, auth, waitReAuth || false)];
|
|
31438
31737
|
case 1: return [2 /*return*/, _b.sent()];
|
|
31439
31738
|
case 2: return [2 /*return*/, connection];
|
|
31440
31739
|
case 3: return [4 /*yield*/, this._authTokenManager.getToken()];
|
|
31441
31740
|
case 4:
|
|
31442
31741
|
authToken = _b.sent();
|
|
31443
31742
|
if (!!lang_1$1.object.equals(authToken, connection.authToken)) return [3 /*break*/, 6];
|
|
31444
|
-
return [4 /*yield*/, connection.connect(this._userAgent, authToken)];
|
|
31743
|
+
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, authToken, false)];
|
|
31445
31744
|
case 5: return [2 /*return*/, _b.sent()];
|
|
31446
31745
|
case 6: return [2 /*return*/, connection];
|
|
31447
31746
|
}
|
|
@@ -31598,7 +31897,7 @@ var AUTHENTICATION_ERRORS = [
|
|
|
31598
31897
|
var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
31599
31898
|
__extends$2(PooledConnectionProvider, _super);
|
|
31600
31899
|
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 () {
|
|
31900
|
+
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
31901
|
var args = [];
|
|
31603
31902
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
31604
31903
|
args[_i] = arguments[_i];
|
|
@@ -31611,7 +31910,9 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
31611
31910
|
_this._config = config;
|
|
31612
31911
|
_this._log = log;
|
|
31613
31912
|
_this._authTokenManager = authTokenManager;
|
|
31614
|
-
_this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent });
|
|
31913
|
+
_this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent, boltAgent: boltAgent });
|
|
31914
|
+
_this._userAgent = userAgent;
|
|
31915
|
+
_this._boltAgent = boltAgent;
|
|
31615
31916
|
_this._createChannelConnection =
|
|
31616
31917
|
createChannelConnectionHook ||
|
|
31617
31918
|
(function (address) {
|
|
@@ -31627,7 +31928,6 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
31627
31928
|
config: pool_1.PoolConfig.fromDriverConfig(config),
|
|
31628
31929
|
log: _this._log
|
|
31629
31930
|
});
|
|
31630
|
-
_this._userAgent = userAgent;
|
|
31631
31931
|
_this._openConnections = {};
|
|
31632
31932
|
return _this;
|
|
31633
31933
|
}
|
|
@@ -31946,8 +32246,8 @@ var SERVICE_UNAVAILABLE$1 = neo4j_driver_core_1$2.error.SERVICE_UNAVAILABLE;
|
|
|
31946
32246
|
var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
31947
32247
|
__extends$1(DirectConnectionProvider, _super);
|
|
31948
32248
|
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;
|
|
32249
|
+
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;
|
|
32250
|
+
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }) || this;
|
|
31951
32251
|
_this._address = address;
|
|
31952
32252
|
return _this;
|
|
31953
32253
|
}
|
|
@@ -32590,8 +32890,8 @@ var DEFAULT_ROUTING_TABLE_PURGE_DELAY = (0, neo4j_driver_core_1.int)(30000);
|
|
|
32590
32890
|
var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
32591
32891
|
__extends(RoutingConnectionProvider, _super);
|
|
32592
32892
|
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) {
|
|
32893
|
+
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;
|
|
32894
|
+
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) {
|
|
32595
32895
|
return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log, _this._routingContext);
|
|
32596
32896
|
}) || this;
|
|
32597
32897
|
_this._routingContext = __assign(__assign({}, routingContext), { address: address.toString() });
|
|
@@ -33518,6 +33818,7 @@ exports.RxManagedTransaction = transaction_managed_rx_1.default;
|
|
|
33518
33818
|
var result_rx_1 = __importDefault(resultRx);
|
|
33519
33819
|
exports.RxResult = result_rx_1.default;
|
|
33520
33820
|
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;
|
|
33821
|
+
var USER_AGENT = 'neo4j-javascript/' + version_1.default;
|
|
33521
33822
|
function isAuthTokenManager(value) {
|
|
33522
33823
|
return typeof value === 'object' &&
|
|
33523
33824
|
value != null &&
|
|
@@ -33717,6 +34018,7 @@ function driver(url, authToken, config) {
|
|
|
33717
34018
|
var authTokenManager = createAuthManager(authToken);
|
|
33718
34019
|
// Use default user agent or user agent specified by user.
|
|
33719
34020
|
config.userAgent = config.userAgent || USER_AGENT;
|
|
34021
|
+
config.boltAgent = neo4j_driver_core_1.internal.boltAgent.fromVersion('neo4j-javascript/' + version_1.default);
|
|
33720
34022
|
var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);
|
|
33721
34023
|
var meta = {
|
|
33722
34024
|
address: address,
|
|
@@ -33735,6 +34037,7 @@ function driver(url, authToken, config) {
|
|
|
33735
34037
|
authTokenManager: authTokenManager,
|
|
33736
34038
|
address: address,
|
|
33737
34039
|
userAgent: config.userAgent,
|
|
34040
|
+
boltAgent: config.boltAgent,
|
|
33738
34041
|
routingContext: parsedUrl.query
|
|
33739
34042
|
});
|
|
33740
34043
|
};
|
|
@@ -33750,7 +34053,8 @@ function driver(url, authToken, config) {
|
|
|
33750
34053
|
log: log,
|
|
33751
34054
|
authTokenManager: authTokenManager,
|
|
33752
34055
|
address: address,
|
|
33753
|
-
userAgent: config.userAgent
|
|
34056
|
+
userAgent: config.userAgent,
|
|
34057
|
+
boltAgent: config.boltAgent
|
|
33754
34058
|
});
|
|
33755
34059
|
};
|
|
33756
34060
|
}
|
|
@@ -33791,7 +34095,6 @@ function hasReachableServer(url, config) {
|
|
|
33791
34095
|
});
|
|
33792
34096
|
}
|
|
33793
34097
|
exports.hasReachableServer = hasReachableServer;
|
|
33794
|
-
var USER_AGENT = 'neo4j-javascript/' + version_1.default;
|
|
33795
34098
|
/**
|
|
33796
34099
|
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
33797
34100
|
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|