neo4j-driver 5.22.0 → 5.23.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/lib/browser/neo4j-web.esm.js +736 -635
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +736 -635
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/lib/browser/neo4j-web.js
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* See the License for the specific language governing permissions and
|
|
35
35
|
* limitations under the License.
|
|
36
36
|
*/
|
|
37
|
-
var __extends$
|
|
37
|
+
var __extends$Q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
38
38
|
var extendStatics = function (d, b) {
|
|
39
39
|
extendStatics = Object.setPrototypeOf ||
|
|
40
40
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
* Class for all errors thrown/returned by the driver.
|
|
82
82
|
*/
|
|
83
83
|
var Neo4jError = /** @class */ (function (_super) {
|
|
84
|
-
__extends$
|
|
84
|
+
__extends$Q(Neo4jError, _super);
|
|
85
85
|
/**
|
|
86
86
|
* @constructor
|
|
87
87
|
* @param {string} message - the error message
|
|
@@ -3844,7 +3844,7 @@
|
|
|
3844
3844
|
* limitations under the License.
|
|
3845
3845
|
*/
|
|
3846
3846
|
Object.defineProperty(constants$1, "__esModule", { value: true });
|
|
3847
|
-
constants$1.TELEMETRY_APIS = constants$1.BOLT_PROTOCOL_V5_5 = constants$1.BOLT_PROTOCOL_V5_4 = 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;
|
|
3847
|
+
constants$1.TELEMETRY_APIS = constants$1.BOLT_PROTOCOL_V5_6 = constants$1.BOLT_PROTOCOL_V5_5 = constants$1.BOLT_PROTOCOL_V5_4 = 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;
|
|
3848
3848
|
var FETCH_ALL$7 = -1;
|
|
3849
3849
|
constants$1.FETCH_ALL = FETCH_ALL$7;
|
|
3850
3850
|
var DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds
|
|
@@ -3885,6 +3885,8 @@
|
|
|
3885
3885
|
constants$1.BOLT_PROTOCOL_V5_4 = BOLT_PROTOCOL_V5_4$1;
|
|
3886
3886
|
var BOLT_PROTOCOL_V5_5$1 = 5.5;
|
|
3887
3887
|
constants$1.BOLT_PROTOCOL_V5_5 = BOLT_PROTOCOL_V5_5$1;
|
|
3888
|
+
var BOLT_PROTOCOL_V5_6$1 = 5.6;
|
|
3889
|
+
constants$1.BOLT_PROTOCOL_V5_6 = BOLT_PROTOCOL_V5_6$1;
|
|
3888
3890
|
var TELEMETRY_APIS$1 = {
|
|
3889
3891
|
MANAGED_TRANSACTION: 0,
|
|
3890
3892
|
UNMANAGED_TRANSACTION: 1,
|
|
@@ -3897,7 +3899,7 @@
|
|
|
3897
3899
|
|
|
3898
3900
|
var logger$1 = {};
|
|
3899
3901
|
|
|
3900
|
-
var __extends$
|
|
3902
|
+
var __extends$P = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
3901
3903
|
var extendStatics = function (d, b) {
|
|
3902
3904
|
extendStatics = Object.setPrototypeOf ||
|
|
3903
3905
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4045,7 +4047,7 @@
|
|
|
4045
4047
|
}());
|
|
4046
4048
|
logger$1.Logger = Logger$2;
|
|
4047
4049
|
var NoOpLogger = /** @class */ (function (_super) {
|
|
4048
|
-
__extends$
|
|
4050
|
+
__extends$P(NoOpLogger, _super);
|
|
4049
4051
|
function NoOpLogger() {
|
|
4050
4052
|
return _super.call(this, INFO, function (level, message) { }) || this;
|
|
4051
4053
|
}
|
|
@@ -4126,7 +4128,7 @@
|
|
|
4126
4128
|
* limitations under the License.
|
|
4127
4129
|
*/
|
|
4128
4130
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
4129
|
-
var __extends$
|
|
4131
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4130
4132
|
var extendStatics = function (d, b) {
|
|
4131
4133
|
extendStatics = Object.setPrototypeOf ||
|
|
4132
4134
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4344,7 +4346,7 @@
|
|
|
4344
4346
|
* releasing or initilizing
|
|
4345
4347
|
*/
|
|
4346
4348
|
var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
4347
|
-
__extends$
|
|
4349
|
+
__extends$O(ReadOnlyConnectionHolder, _super);
|
|
4348
4350
|
/**
|
|
4349
4351
|
* Constructor
|
|
4350
4352
|
* @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
|
|
@@ -4399,7 +4401,7 @@
|
|
|
4399
4401
|
connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
|
|
4400
4402
|
connectionHolder$1.default = ReadOnlyConnectionHolder;
|
|
4401
4403
|
var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
4402
|
-
__extends$
|
|
4404
|
+
__extends$O(EmptyConnectionHolder, _super);
|
|
4403
4405
|
function EmptyConnectionHolder() {
|
|
4404
4406
|
return _super.call(this, {
|
|
4405
4407
|
// Empty logger
|
|
@@ -4583,8 +4585,8 @@
|
|
|
4583
4585
|
|
|
4584
4586
|
var transactionExecutor$1 = {};
|
|
4585
4587
|
|
|
4586
|
-
var __assign$
|
|
4587
|
-
__assign$
|
|
4588
|
+
var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4589
|
+
__assign$r = Object.assign || function(t) {
|
|
4588
4590
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4589
4591
|
s = arguments[i];
|
|
4590
4592
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4592,7 +4594,7 @@
|
|
|
4592
4594
|
}
|
|
4593
4595
|
return t;
|
|
4594
4596
|
};
|
|
4595
|
-
return __assign$
|
|
4597
|
+
return __assign$r.apply(this, arguments);
|
|
4596
4598
|
};
|
|
4597
4599
|
var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4598
4600
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -4760,7 +4762,7 @@
|
|
|
4760
4762
|
case 0:
|
|
4761
4763
|
_b.trys.push([0, 4, , 5]);
|
|
4762
4764
|
txPromise = transactionCreator((executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) != null
|
|
4763
|
-
? __assign$
|
|
4765
|
+
? __assign$r({}, executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) : undefined);
|
|
4764
4766
|
if (!this.pipelineBegin) return [3 /*break*/, 1];
|
|
4765
4767
|
_a = txPromise;
|
|
4766
4768
|
return [3 /*break*/, 3];
|
|
@@ -4885,8 +4887,8 @@
|
|
|
4885
4887
|
* See the License for the specific language governing permissions and
|
|
4886
4888
|
* limitations under the License.
|
|
4887
4889
|
*/
|
|
4888
|
-
var __assign$
|
|
4889
|
-
__assign$
|
|
4890
|
+
var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4891
|
+
__assign$q = Object.assign || function(t) {
|
|
4890
4892
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4891
4893
|
s = arguments[i];
|
|
4892
4894
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4894,7 +4896,7 @@
|
|
|
4894
4896
|
}
|
|
4895
4897
|
return t;
|
|
4896
4898
|
};
|
|
4897
|
-
return __assign$
|
|
4899
|
+
return __assign$q.apply(this, arguments);
|
|
4898
4900
|
};
|
|
4899
4901
|
var __read$t = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
4900
4902
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -5156,7 +5158,7 @@
|
|
|
5156
5158
|
// Parse authority and path
|
|
5157
5159
|
if (value.startsWith('//')) {
|
|
5158
5160
|
parts = partition(value.substr(2), '/');
|
|
5159
|
-
parsed = __assign$
|
|
5161
|
+
parsed = __assign$q(__assign$q({}, parsed), parseAuthority(parts[0]));
|
|
5160
5162
|
parsed.path = parts[1] + parts[2];
|
|
5161
5163
|
}
|
|
5162
5164
|
else {
|
|
@@ -5330,7 +5332,7 @@
|
|
|
5330
5332
|
}());
|
|
5331
5333
|
configuredCustomResolver.default = ConfiguredCustomResolver;
|
|
5332
5334
|
|
|
5333
|
-
var __importDefault$
|
|
5335
|
+
var __importDefault$X = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5334
5336
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5335
5337
|
};
|
|
5336
5338
|
Object.defineProperty(resolver$1, "__esModule", { value: true });
|
|
@@ -5351,9 +5353,9 @@
|
|
|
5351
5353
|
* See the License for the specific language governing permissions and
|
|
5352
5354
|
* limitations under the License.
|
|
5353
5355
|
*/
|
|
5354
|
-
var base_host_name_resolver_1 = __importDefault$
|
|
5356
|
+
var base_host_name_resolver_1 = __importDefault$X(baseHostNameResolver);
|
|
5355
5357
|
resolver$1.BaseHostNameResolver = base_host_name_resolver_1.default;
|
|
5356
|
-
var configured_custom_resolver_1$1 = __importDefault$
|
|
5358
|
+
var configured_custom_resolver_1$1 = __importDefault$X(configuredCustomResolver);
|
|
5357
5359
|
resolver$1.ConfiguredCustomResolver = configured_custom_resolver_1$1.default;
|
|
5358
5360
|
|
|
5359
5361
|
var browser$1 = {};
|
|
@@ -5516,8 +5518,8 @@
|
|
|
5516
5518
|
|
|
5517
5519
|
var notification = {};
|
|
5518
5520
|
|
|
5519
|
-
var __assign$
|
|
5520
|
-
__assign$
|
|
5521
|
+
var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5522
|
+
__assign$p = Object.assign || function(t) {
|
|
5521
5523
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5522
5524
|
s = arguments[i];
|
|
5523
5525
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -5525,7 +5527,7 @@
|
|
|
5525
5527
|
}
|
|
5526
5528
|
return t;
|
|
5527
5529
|
};
|
|
5528
|
-
return __assign$
|
|
5530
|
+
return __assign$p.apply(this, arguments);
|
|
5529
5531
|
};
|
|
5530
5532
|
var __createBinding$7 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5531
5533
|
if (k2 === undefined) k2 = k;
|
|
@@ -5926,7 +5928,7 @@
|
|
|
5926
5928
|
return new Notification$1({
|
|
5927
5929
|
code: status.neo4j_code,
|
|
5928
5930
|
title: status.title,
|
|
5929
|
-
description: status.
|
|
5931
|
+
description: status.description,
|
|
5930
5932
|
severity: (_a = status.diagnostic_record) === null || _a === void 0 ? void 0 : _a._severity,
|
|
5931
5933
|
category: (_b = status.diagnostic_record) === null || _b === void 0 ? void 0 : _b._classification,
|
|
5932
5934
|
position: (_c = status.diagnostic_record) === null || _c === void 0 ? void 0 : _c._position
|
|
@@ -5946,7 +5948,7 @@
|
|
|
5946
5948
|
status_description: (_a = notification.description) !== null && _a !== void 0 ? _a : defaultStatus.status_description,
|
|
5947
5949
|
neo4j_code: notification.code,
|
|
5948
5950
|
title: notification.title,
|
|
5949
|
-
diagnostic_record: __assign$
|
|
5951
|
+
diagnostic_record: __assign$p({}, rawPolyfilledDiagnosticRecord)
|
|
5950
5952
|
};
|
|
5951
5953
|
if (notification.severity != null) {
|
|
5952
5954
|
polyfilledRawObj.diagnostic_record._severity = notification.severity;
|
|
@@ -5982,7 +5984,7 @@
|
|
|
5982
5984
|
status_description: 'note: no data',
|
|
5983
5985
|
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
5984
5986
|
}),
|
|
5985
|
-
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$
|
|
5987
|
+
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$p(__assign$p({}, unknownGqlStatus.NO_DATA), { diagnostic_record: rawPolyfilledDiagnosticRecord })),
|
|
5986
5988
|
OMITTED_RESULT: new GqlStatusObject({
|
|
5987
5989
|
gql_status: '00001',
|
|
5988
5990
|
status_description: 'note: successful completion - omitted result',
|
|
@@ -6653,13 +6655,13 @@
|
|
|
6653
6655
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6654
6656
|
}
|
|
6655
6657
|
};
|
|
6656
|
-
var __importDefault$
|
|
6658
|
+
var __importDefault$W = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6657
6659
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6658
6660
|
};
|
|
6659
6661
|
var _a$f;
|
|
6660
6662
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
6661
6663
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
6662
|
-
var result_summary_1 = __importDefault$
|
|
6664
|
+
var result_summary_1 = __importDefault$W(resultSummary);
|
|
6663
6665
|
var internal_1$1 = internal;
|
|
6664
6666
|
var error_1$4 = error;
|
|
6665
6667
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -7603,7 +7605,7 @@
|
|
|
7603
7605
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7604
7606
|
}
|
|
7605
7607
|
};
|
|
7606
|
-
var __importDefault$
|
|
7608
|
+
var __importDefault$V = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7607
7609
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7608
7610
|
};
|
|
7609
7611
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -7614,7 +7616,7 @@
|
|
|
7614
7616
|
var tx_config_1$1 = txConfig$1;
|
|
7615
7617
|
var observers_1$1 = observers;
|
|
7616
7618
|
var error_1$3 = error;
|
|
7617
|
-
var result_1$1 = __importDefault$
|
|
7619
|
+
var result_1$1 = __importDefault$V(result);
|
|
7618
7620
|
/**
|
|
7619
7621
|
* Represents a transaction in the Neo4j database.
|
|
7620
7622
|
*
|
|
@@ -8162,7 +8164,7 @@
|
|
|
8162
8164
|
* See the License for the specific language governing permissions and
|
|
8163
8165
|
* limitations under the License.
|
|
8164
8166
|
*/
|
|
8165
|
-
var __extends$
|
|
8167
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
8166
8168
|
var extendStatics = function (d, b) {
|
|
8167
8169
|
extendStatics = Object.setPrototypeOf ||
|
|
8168
8170
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8177,8 +8179,8 @@
|
|
|
8177
8179
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8178
8180
|
};
|
|
8179
8181
|
})();
|
|
8180
|
-
var __assign$
|
|
8181
|
-
__assign$
|
|
8182
|
+
var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
8183
|
+
__assign$o = Object.assign || function(t) {
|
|
8182
8184
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8183
8185
|
s = arguments[i];
|
|
8184
8186
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -8186,15 +8188,15 @@
|
|
|
8186
8188
|
}
|
|
8187
8189
|
return t;
|
|
8188
8190
|
};
|
|
8189
|
-
return __assign$
|
|
8191
|
+
return __assign$o.apply(this, arguments);
|
|
8190
8192
|
};
|
|
8191
|
-
var __importDefault$
|
|
8193
|
+
var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8192
8194
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8193
8195
|
};
|
|
8194
8196
|
var _a$e;
|
|
8195
8197
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
8196
8198
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
8197
|
-
var transaction_1 = __importDefault$
|
|
8199
|
+
var transaction_1 = __importDefault$U(transaction);
|
|
8198
8200
|
/**
|
|
8199
8201
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
8200
8202
|
*
|
|
@@ -8206,7 +8208,7 @@
|
|
|
8206
8208
|
* @access public
|
|
8207
8209
|
*/
|
|
8208
8210
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
8209
|
-
__extends$
|
|
8211
|
+
__extends$N(TransactionPromise, _super);
|
|
8210
8212
|
/**
|
|
8211
8213
|
* @constructor
|
|
8212
8214
|
* @param {object} args
|
|
@@ -8287,7 +8289,7 @@
|
|
|
8287
8289
|
* @access private
|
|
8288
8290
|
*/
|
|
8289
8291
|
TransactionPromise.prototype._toTransaction = function () {
|
|
8290
|
-
return __assign$
|
|
8292
|
+
return __assign$o(__assign$o({}, 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) });
|
|
8291
8293
|
};
|
|
8292
8294
|
/**
|
|
8293
8295
|
* @access private
|
|
@@ -8402,7 +8404,7 @@
|
|
|
8402
8404
|
}
|
|
8403
8405
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
8404
8406
|
};
|
|
8405
|
-
var __importDefault$
|
|
8407
|
+
var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8406
8408
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8407
8409
|
};
|
|
8408
8410
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -8411,13 +8413,13 @@
|
|
|
8411
8413
|
var util_1$1 = util$4;
|
|
8412
8414
|
var constants_1$2 = constants$1;
|
|
8413
8415
|
var error_1$2 = error;
|
|
8414
|
-
var result_1 = __importDefault$
|
|
8416
|
+
var result_1 = __importDefault$T(result);
|
|
8415
8417
|
var connection_holder_1 = connectionHolder$1;
|
|
8416
8418
|
var transaction_executor_1 = transactionExecutor$1;
|
|
8417
8419
|
var bookmarks_1$1 = bookmarks$1;
|
|
8418
8420
|
var tx_config_1 = txConfig$1;
|
|
8419
|
-
var transaction_promise_1 = __importDefault$
|
|
8420
|
-
var transaction_managed_1 = __importDefault$
|
|
8421
|
+
var transaction_promise_1 = __importDefault$T(transactionPromise);
|
|
8422
|
+
var transaction_managed_1 = __importDefault$T(transactionManaged);
|
|
8421
8423
|
/**
|
|
8422
8424
|
* A Session instance is used for handling the connection and
|
|
8423
8425
|
* sending queries through the connection.
|
|
@@ -9229,11 +9231,11 @@
|
|
|
9229
9231
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
9230
9232
|
}
|
|
9231
9233
|
};
|
|
9232
|
-
var __importDefault$
|
|
9234
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9233
9235
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9234
9236
|
};
|
|
9235
9237
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
9236
|
-
var result_eager_1 = __importDefault$
|
|
9238
|
+
var result_eager_1 = __importDefault$S(resultEager);
|
|
9237
9239
|
var error_1$1 = error;
|
|
9238
9240
|
/**
|
|
9239
9241
|
* Protocol for transforming {@link Result}.
|
|
@@ -9742,20 +9744,20 @@
|
|
|
9742
9744
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
9743
9745
|
}
|
|
9744
9746
|
};
|
|
9745
|
-
var __importDefault$
|
|
9747
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9746
9748
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9747
9749
|
};
|
|
9748
9750
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
9749
9751
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
9750
9752
|
var bookmarks_1 = bookmarks$1;
|
|
9751
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
9753
|
+
var configured_custom_resolver_1 = __importDefault$R(configuredCustomResolver);
|
|
9752
9754
|
var constants_1 = constants$1;
|
|
9753
9755
|
var logger_1 = logger$1;
|
|
9754
|
-
var session_1 = __importDefault$
|
|
9756
|
+
var session_1 = __importDefault$R(session);
|
|
9755
9757
|
var util_1 = util$4;
|
|
9756
9758
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
9757
|
-
var result_transformers_1 = __importDefault$
|
|
9758
|
-
var query_executor_1 = __importDefault$
|
|
9759
|
+
var result_transformers_1 = __importDefault$R(resultTransformers$1);
|
|
9760
|
+
var query_executor_1 = __importDefault$R(queryExecutor);
|
|
9759
9761
|
var error_1 = error;
|
|
9760
9762
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
9761
9763
|
/**
|
|
@@ -10740,12 +10742,12 @@
|
|
|
10740
10742
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10741
10743
|
}
|
|
10742
10744
|
};
|
|
10743
|
-
var __importDefault$
|
|
10745
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10744
10746
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10745
10747
|
};
|
|
10746
10748
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
10747
10749
|
authTokenManager.staticAuthTokenManager = authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
10748
|
-
var auth_1 = __importDefault$
|
|
10750
|
+
var auth_1 = __importDefault$Q(auth$1);
|
|
10749
10751
|
var internal_1 = internal;
|
|
10750
10752
|
/**
|
|
10751
10753
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11009,7 +11011,7 @@
|
|
|
11009
11011
|
* See the License for the specific language governing permissions and
|
|
11010
11012
|
* limitations under the License.
|
|
11011
11013
|
*/
|
|
11012
|
-
var __extends$
|
|
11014
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11013
11015
|
var extendStatics = function (d, b) {
|
|
11014
11016
|
extendStatics = Object.setPrototypeOf ||
|
|
11015
11017
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11292,7 +11294,7 @@
|
|
|
11292
11294
|
}());
|
|
11293
11295
|
types$1.Config = Config;
|
|
11294
11296
|
var InternalConfig = /** @class */ (function (_super) {
|
|
11295
|
-
__extends$
|
|
11297
|
+
__extends$M(InternalConfig, _super);
|
|
11296
11298
|
function InternalConfig() {
|
|
11297
11299
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11298
11300
|
}
|
|
@@ -11318,7 +11320,7 @@
|
|
|
11318
11320
|
* See the License for the specific language governing permissions and
|
|
11319
11321
|
* limitations under the License.
|
|
11320
11322
|
*/
|
|
11321
|
-
var __extends$
|
|
11323
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11322
11324
|
var extendStatics = function (d, b) {
|
|
11323
11325
|
extendStatics = Object.setPrototypeOf ||
|
|
11324
11326
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11333,8 +11335,8 @@
|
|
|
11333
11335
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11334
11336
|
};
|
|
11335
11337
|
})();
|
|
11336
|
-
var __assign$
|
|
11337
|
-
__assign$
|
|
11338
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
11339
|
+
__assign$n = Object.assign || function(t) {
|
|
11338
11340
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11339
11341
|
s = arguments[i];
|
|
11340
11342
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -11342,7 +11344,7 @@
|
|
|
11342
11344
|
}
|
|
11343
11345
|
return t;
|
|
11344
11346
|
};
|
|
11345
|
-
return __assign$
|
|
11347
|
+
return __assign$n.apply(this, arguments);
|
|
11346
11348
|
};
|
|
11347
11349
|
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11348
11350
|
if (k2 === undefined) k2 = k;
|
|
@@ -11468,7 +11470,7 @@
|
|
|
11468
11470
|
* @since 5.19
|
|
11469
11471
|
*/
|
|
11470
11472
|
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
11471
|
-
__extends$
|
|
11473
|
+
__extends$L(RotatingClientCertificateProvider, _super);
|
|
11472
11474
|
function RotatingClientCertificateProvider() {
|
|
11473
11475
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11474
11476
|
}
|
|
@@ -11508,7 +11510,7 @@
|
|
|
11508
11510
|
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
11509
11511
|
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
11510
11512
|
}
|
|
11511
|
-
var certificate = __assign$
|
|
11513
|
+
var certificate = __assign$n({}, initialCertificate);
|
|
11512
11514
|
return new InternalRotatingClientCertificateProvider(certificate);
|
|
11513
11515
|
};
|
|
11514
11516
|
return ClientCertificateProviders;
|
|
@@ -11541,7 +11543,7 @@
|
|
|
11541
11543
|
return input;
|
|
11542
11544
|
}
|
|
11543
11545
|
if (isClientClientCertificate(input)) {
|
|
11544
|
-
var certificate_1 = __assign$
|
|
11546
|
+
var certificate_1 = __assign$n({}, input);
|
|
11545
11547
|
return {
|
|
11546
11548
|
getClientCertificate: function () { return certificate_1; },
|
|
11547
11549
|
hasUpdate: function () { return false; }
|
|
@@ -11663,7 +11665,7 @@
|
|
|
11663
11665
|
if (!isClientClientCertificate(certificate)) {
|
|
11664
11666
|
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
11665
11667
|
}
|
|
11666
|
-
this._certificate = __assign$
|
|
11668
|
+
this._certificate = __assign$n({}, certificate);
|
|
11667
11669
|
this._updated = true;
|
|
11668
11670
|
};
|
|
11669
11671
|
return InternalRotatingClientCertificateProvider;
|
|
@@ -12661,7 +12663,7 @@
|
|
|
12661
12663
|
|
|
12662
12664
|
var OperatorSubscriber$1 = {};
|
|
12663
12665
|
|
|
12664
|
-
var __extends$
|
|
12666
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12665
12667
|
var extendStatics = function (d, b) {
|
|
12666
12668
|
extendStatics = Object.setPrototypeOf ||
|
|
12667
12669
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12684,7 +12686,7 @@
|
|
|
12684
12686
|
}
|
|
12685
12687
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
12686
12688
|
var OperatorSubscriber = (function (_super) {
|
|
12687
|
-
__extends$
|
|
12689
|
+
__extends$K(OperatorSubscriber, _super);
|
|
12688
12690
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
12689
12691
|
var _this = _super.call(this, destination) || this;
|
|
12690
12692
|
_this.onFinalize = onFinalize;
|
|
@@ -12768,7 +12770,7 @@
|
|
|
12768
12770
|
}
|
|
12769
12771
|
refCount$1.refCount = refCount;
|
|
12770
12772
|
|
|
12771
|
-
var __extends$
|
|
12773
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12772
12774
|
var extendStatics = function (d, b) {
|
|
12773
12775
|
extendStatics = Object.setPrototypeOf ||
|
|
12774
12776
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12791,7 +12793,7 @@
|
|
|
12791
12793
|
var OperatorSubscriber_1$U = OperatorSubscriber$1;
|
|
12792
12794
|
var lift_1$13 = lift;
|
|
12793
12795
|
var ConnectableObservable = (function (_super) {
|
|
12794
|
-
__extends$
|
|
12796
|
+
__extends$J(ConnectableObservable, _super);
|
|
12795
12797
|
function ConnectableObservable(source, subjectFactory) {
|
|
12796
12798
|
var _this = _super.call(this) || this;
|
|
12797
12799
|
_this.source = source;
|
|
@@ -12978,7 +12980,7 @@
|
|
|
12978
12980
|
};
|
|
12979
12981
|
});
|
|
12980
12982
|
|
|
12981
|
-
var __extends$
|
|
12983
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12982
12984
|
var extendStatics = function (d, b) {
|
|
12983
12985
|
extendStatics = Object.setPrototypeOf ||
|
|
12984
12986
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13012,7 +13014,7 @@
|
|
|
13012
13014
|
var arrRemove_1$6 = arrRemove$1;
|
|
13013
13015
|
var errorContext_1 = errorContext$1;
|
|
13014
13016
|
var Subject = (function (_super) {
|
|
13015
|
-
__extends$
|
|
13017
|
+
__extends$I(Subject, _super);
|
|
13016
13018
|
function Subject() {
|
|
13017
13019
|
var _this = _super.call(this) || this;
|
|
13018
13020
|
_this.closed = false;
|
|
@@ -13140,7 +13142,7 @@
|
|
|
13140
13142
|
}(Observable_1$l.Observable));
|
|
13141
13143
|
Subject$1.Subject = Subject;
|
|
13142
13144
|
var AnonymousSubject = (function (_super) {
|
|
13143
|
-
__extends$
|
|
13145
|
+
__extends$I(AnonymousSubject, _super);
|
|
13144
13146
|
function AnonymousSubject(destination, source) {
|
|
13145
13147
|
var _this = _super.call(this) || this;
|
|
13146
13148
|
_this.destination = destination;
|
|
@@ -13169,7 +13171,7 @@
|
|
|
13169
13171
|
|
|
13170
13172
|
var BehaviorSubject$1 = {};
|
|
13171
13173
|
|
|
13172
|
-
var __extends$
|
|
13174
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13173
13175
|
var extendStatics = function (d, b) {
|
|
13174
13176
|
extendStatics = Object.setPrototypeOf ||
|
|
13175
13177
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13188,7 +13190,7 @@
|
|
|
13188
13190
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
13189
13191
|
var Subject_1$e = Subject$1;
|
|
13190
13192
|
var BehaviorSubject = (function (_super) {
|
|
13191
|
-
__extends$
|
|
13193
|
+
__extends$H(BehaviorSubject, _super);
|
|
13192
13194
|
function BehaviorSubject(_value) {
|
|
13193
13195
|
var _this = _super.call(this) || this;
|
|
13194
13196
|
_this._value = _value;
|
|
@@ -13237,7 +13239,7 @@
|
|
|
13237
13239
|
|
|
13238
13240
|
}(dateTimestampProvider));
|
|
13239
13241
|
|
|
13240
|
-
var __extends$
|
|
13242
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13241
13243
|
var extendStatics = function (d, b) {
|
|
13242
13244
|
extendStatics = Object.setPrototypeOf ||
|
|
13243
13245
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13257,7 +13259,7 @@
|
|
|
13257
13259
|
var Subject_1$d = Subject$1;
|
|
13258
13260
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
13259
13261
|
var ReplaySubject = (function (_super) {
|
|
13260
|
-
__extends$
|
|
13262
|
+
__extends$G(ReplaySubject, _super);
|
|
13261
13263
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
13262
13264
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
13263
13265
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -13313,7 +13315,7 @@
|
|
|
13313
13315
|
|
|
13314
13316
|
var AsyncSubject$1 = {};
|
|
13315
13317
|
|
|
13316
|
-
var __extends$
|
|
13318
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13317
13319
|
var extendStatics = function (d, b) {
|
|
13318
13320
|
extendStatics = Object.setPrototypeOf ||
|
|
13319
13321
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13332,7 +13334,7 @@
|
|
|
13332
13334
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
13333
13335
|
var Subject_1$c = Subject$1;
|
|
13334
13336
|
var AsyncSubject = (function (_super) {
|
|
13335
|
-
__extends$
|
|
13337
|
+
__extends$F(AsyncSubject, _super);
|
|
13336
13338
|
function AsyncSubject() {
|
|
13337
13339
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13338
13340
|
_this._value = null;
|
|
@@ -13376,7 +13378,7 @@
|
|
|
13376
13378
|
|
|
13377
13379
|
var Action$1 = {};
|
|
13378
13380
|
|
|
13379
|
-
var __extends$
|
|
13381
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13380
13382
|
var extendStatics = function (d, b) {
|
|
13381
13383
|
extendStatics = Object.setPrototypeOf ||
|
|
13382
13384
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13395,7 +13397,7 @@
|
|
|
13395
13397
|
Action$1.Action = void 0;
|
|
13396
13398
|
var Subscription_1$5 = Subscription$1;
|
|
13397
13399
|
var Action = (function (_super) {
|
|
13398
|
-
__extends$
|
|
13400
|
+
__extends$E(Action, _super);
|
|
13399
13401
|
function Action(scheduler, work) {
|
|
13400
13402
|
return _super.call(this) || this;
|
|
13401
13403
|
}
|
|
@@ -13453,7 +13455,7 @@
|
|
|
13453
13455
|
|
|
13454
13456
|
}(intervalProvider));
|
|
13455
13457
|
|
|
13456
|
-
var __extends$
|
|
13458
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13457
13459
|
var extendStatics = function (d, b) {
|
|
13458
13460
|
extendStatics = Object.setPrototypeOf ||
|
|
13459
13461
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13474,7 +13476,7 @@
|
|
|
13474
13476
|
var intervalProvider_1 = intervalProvider;
|
|
13475
13477
|
var arrRemove_1$5 = arrRemove$1;
|
|
13476
13478
|
var AsyncAction = (function (_super) {
|
|
13477
|
-
__extends$
|
|
13479
|
+
__extends$D(AsyncAction, _super);
|
|
13478
13480
|
function AsyncAction(scheduler, work) {
|
|
13479
13481
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13480
13482
|
_this.scheduler = scheduler;
|
|
@@ -13639,7 +13641,7 @@
|
|
|
13639
13641
|
|
|
13640
13642
|
}(immediateProvider));
|
|
13641
13643
|
|
|
13642
|
-
var __extends$
|
|
13644
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13643
13645
|
var extendStatics = function (d, b) {
|
|
13644
13646
|
extendStatics = Object.setPrototypeOf ||
|
|
13645
13647
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13659,7 +13661,7 @@
|
|
|
13659
13661
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
13660
13662
|
var immediateProvider_1 = immediateProvider;
|
|
13661
13663
|
var AsapAction = (function (_super) {
|
|
13662
|
-
__extends$
|
|
13664
|
+
__extends$C(AsapAction, _super);
|
|
13663
13665
|
function AsapAction(scheduler, work) {
|
|
13664
13666
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13665
13667
|
_this.scheduler = scheduler;
|
|
@@ -13717,7 +13719,7 @@
|
|
|
13717
13719
|
}());
|
|
13718
13720
|
Scheduler$1.Scheduler = Scheduler;
|
|
13719
13721
|
|
|
13720
|
-
var __extends$
|
|
13722
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13721
13723
|
var extendStatics = function (d, b) {
|
|
13722
13724
|
extendStatics = Object.setPrototypeOf ||
|
|
13723
13725
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13736,7 +13738,7 @@
|
|
|
13736
13738
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
13737
13739
|
var Scheduler_1 = Scheduler$1;
|
|
13738
13740
|
var AsyncScheduler = (function (_super) {
|
|
13739
|
-
__extends$
|
|
13741
|
+
__extends$B(AsyncScheduler, _super);
|
|
13740
13742
|
function AsyncScheduler(SchedulerAction, now) {
|
|
13741
13743
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
13742
13744
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -13769,7 +13771,7 @@
|
|
|
13769
13771
|
}(Scheduler_1.Scheduler));
|
|
13770
13772
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
13771
13773
|
|
|
13772
|
-
var __extends$
|
|
13774
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13773
13775
|
var extendStatics = function (d, b) {
|
|
13774
13776
|
extendStatics = Object.setPrototypeOf ||
|
|
13775
13777
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13788,7 +13790,7 @@
|
|
|
13788
13790
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
13789
13791
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
13790
13792
|
var AsapScheduler = (function (_super) {
|
|
13791
|
-
__extends$
|
|
13793
|
+
__extends$A(AsapScheduler, _super);
|
|
13792
13794
|
function AsapScheduler() {
|
|
13793
13795
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
13794
13796
|
}
|
|
@@ -13842,7 +13844,7 @@
|
|
|
13842
13844
|
|
|
13843
13845
|
var QueueAction$1 = {};
|
|
13844
13846
|
|
|
13845
|
-
var __extends$
|
|
13847
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13846
13848
|
var extendStatics = function (d, b) {
|
|
13847
13849
|
extendStatics = Object.setPrototypeOf ||
|
|
13848
13850
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13861,7 +13863,7 @@
|
|
|
13861
13863
|
QueueAction$1.QueueAction = void 0;
|
|
13862
13864
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
13863
13865
|
var QueueAction = (function (_super) {
|
|
13864
|
-
__extends$
|
|
13866
|
+
__extends$z(QueueAction, _super);
|
|
13865
13867
|
function QueueAction(scheduler, work) {
|
|
13866
13868
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13867
13869
|
_this.scheduler = scheduler;
|
|
@@ -13895,7 +13897,7 @@
|
|
|
13895
13897
|
|
|
13896
13898
|
var QueueScheduler$1 = {};
|
|
13897
13899
|
|
|
13898
|
-
var __extends$
|
|
13900
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13899
13901
|
var extendStatics = function (d, b) {
|
|
13900
13902
|
extendStatics = Object.setPrototypeOf ||
|
|
13901
13903
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13914,7 +13916,7 @@
|
|
|
13914
13916
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
13915
13917
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
13916
13918
|
var QueueScheduler = (function (_super) {
|
|
13917
|
-
__extends$
|
|
13919
|
+
__extends$y(QueueScheduler, _super);
|
|
13918
13920
|
function QueueScheduler() {
|
|
13919
13921
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
13920
13922
|
}
|
|
@@ -13936,7 +13938,7 @@
|
|
|
13936
13938
|
|
|
13937
13939
|
var AnimationFrameAction$1 = {};
|
|
13938
13940
|
|
|
13939
|
-
var __extends$
|
|
13941
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13940
13942
|
var extendStatics = function (d, b) {
|
|
13941
13943
|
extendStatics = Object.setPrototypeOf ||
|
|
13942
13944
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13956,7 +13958,7 @@
|
|
|
13956
13958
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
13957
13959
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
13958
13960
|
var AnimationFrameAction = (function (_super) {
|
|
13959
|
-
__extends$
|
|
13961
|
+
__extends$x(AnimationFrameAction, _super);
|
|
13960
13962
|
function AnimationFrameAction(scheduler, work) {
|
|
13961
13963
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13962
13964
|
_this.scheduler = scheduler;
|
|
@@ -13990,7 +13992,7 @@
|
|
|
13990
13992
|
|
|
13991
13993
|
var AnimationFrameScheduler$1 = {};
|
|
13992
13994
|
|
|
13993
|
-
var __extends$
|
|
13995
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13994
13996
|
var extendStatics = function (d, b) {
|
|
13995
13997
|
extendStatics = Object.setPrototypeOf ||
|
|
13996
13998
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14009,7 +14011,7 @@
|
|
|
14009
14011
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
14010
14012
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
14011
14013
|
var AnimationFrameScheduler = (function (_super) {
|
|
14012
|
-
__extends$
|
|
14014
|
+
__extends$w(AnimationFrameScheduler, _super);
|
|
14013
14015
|
function AnimationFrameScheduler() {
|
|
14014
14016
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14015
14017
|
}
|
|
@@ -14049,7 +14051,7 @@
|
|
|
14049
14051
|
|
|
14050
14052
|
var VirtualTimeScheduler$1 = {};
|
|
14051
14053
|
|
|
14052
|
-
var __extends$
|
|
14054
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14053
14055
|
var extendStatics = function (d, b) {
|
|
14054
14056
|
extendStatics = Object.setPrototypeOf ||
|
|
14055
14057
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14070,7 +14072,7 @@
|
|
|
14070
14072
|
var Subscription_1$4 = Subscription$1;
|
|
14071
14073
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
14072
14074
|
var VirtualTimeScheduler = (function (_super) {
|
|
14073
|
-
__extends$
|
|
14075
|
+
__extends$v(VirtualTimeScheduler, _super);
|
|
14074
14076
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
14075
14077
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
14076
14078
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -14103,7 +14105,7 @@
|
|
|
14103
14105
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
14104
14106
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
14105
14107
|
var VirtualAction = (function (_super) {
|
|
14106
|
-
__extends$
|
|
14108
|
+
__extends$v(VirtualAction, _super);
|
|
14107
14109
|
function VirtualAction(scheduler, work, index) {
|
|
14108
14110
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
14109
14111
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -19925,7 +19927,7 @@
|
|
|
19925
19927
|
* limitations under the License.
|
|
19926
19928
|
*/
|
|
19927
19929
|
/* eslint-disable-next-line no-unused-vars */
|
|
19928
|
-
var neo4j_driver_core_1$
|
|
19930
|
+
var neo4j_driver_core_1$L = lib$1;
|
|
19929
19931
|
var rxjs_1$3 = cjs;
|
|
19930
19932
|
var operators_1$2 = operators;
|
|
19931
19933
|
var States = {
|
|
@@ -20059,7 +20061,7 @@
|
|
|
20059
20061
|
});
|
|
20060
20062
|
}
|
|
20061
20063
|
else if (recordsObserver) {
|
|
20062
|
-
recordsObserver.error((0, neo4j_driver_core_1$
|
|
20064
|
+
recordsObserver.error((0, neo4j_driver_core_1$L.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
|
|
20063
20065
|
}
|
|
20064
20066
|
return function () {
|
|
20065
20067
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -20250,7 +20252,7 @@
|
|
|
20250
20252
|
|
|
20251
20253
|
var transactionRx = {};
|
|
20252
20254
|
|
|
20253
|
-
var __importDefault$
|
|
20255
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20254
20256
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20255
20257
|
};
|
|
20256
20258
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -20271,9 +20273,9 @@
|
|
|
20271
20273
|
* limitations under the License.
|
|
20272
20274
|
*/
|
|
20273
20275
|
var rxjs_1$2 = cjs;
|
|
20274
|
-
var result_rx_1$1 = __importDefault$
|
|
20276
|
+
var result_rx_1$1 = __importDefault$P(resultRx);
|
|
20275
20277
|
// eslint-disable-next-line no-unused-vars
|
|
20276
|
-
__importDefault$
|
|
20278
|
+
__importDefault$P(lib$1);
|
|
20277
20279
|
/**
|
|
20278
20280
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
20279
20281
|
*/
|
|
@@ -20372,7 +20374,7 @@
|
|
|
20372
20374
|
|
|
20373
20375
|
var transactionManagedRx = {};
|
|
20374
20376
|
|
|
20375
|
-
var __importDefault$
|
|
20377
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20376
20378
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20377
20379
|
};
|
|
20378
20380
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -20393,9 +20395,9 @@
|
|
|
20393
20395
|
* limitations under the License.
|
|
20394
20396
|
*/
|
|
20395
20397
|
// eslint-disable-next-line no-unused-vars
|
|
20396
|
-
__importDefault$
|
|
20398
|
+
__importDefault$O(resultRx);
|
|
20397
20399
|
// eslint-disable-next-line no-unused-vars
|
|
20398
|
-
__importDefault$
|
|
20400
|
+
__importDefault$O(transactionRx);
|
|
20399
20401
|
/**
|
|
20400
20402
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
20401
20403
|
*
|
|
@@ -20453,13 +20455,13 @@
|
|
|
20453
20455
|
* limitations under the License.
|
|
20454
20456
|
*/
|
|
20455
20457
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
20456
|
-
var neo4j_driver_core_1$
|
|
20458
|
+
var neo4j_driver_core_1$K = lib$1;
|
|
20457
20459
|
// eslint-disable-next-line no-unused-vars
|
|
20458
20460
|
var rxjs_1$1 = cjs;
|
|
20459
20461
|
var operators_1$1 = operators;
|
|
20460
20462
|
// eslint-disable-next-line no-unused-vars
|
|
20461
|
-
neo4j_driver_core_1$
|
|
20462
|
-
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$
|
|
20463
|
+
neo4j_driver_core_1$K.internal.logger.Logger;
|
|
20464
|
+
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$K.error.SERVICE_UNAVAILABLE;
|
|
20463
20465
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
20464
20466
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
20465
20467
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -20490,13 +20492,13 @@
|
|
|
20490
20492
|
var retryCount = 1;
|
|
20491
20493
|
var delayDuration = _this._initialDelay;
|
|
20492
20494
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
20493
|
-
if (!(0, neo4j_driver_core_1$
|
|
20495
|
+
if (!(0, neo4j_driver_core_1$K.isRetriableError)(err)) {
|
|
20494
20496
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
20495
20497
|
}
|
|
20496
20498
|
handledExceptions.push(err);
|
|
20497
20499
|
if (retryCount >= 2 &&
|
|
20498
20500
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
20499
|
-
var error_1 = (0, neo4j_driver_core_1$
|
|
20501
|
+
var error_1 = (0, neo4j_driver_core_1$K.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);
|
|
20500
20502
|
error_1.seenErrors = handledExceptions;
|
|
20501
20503
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
20502
20504
|
}
|
|
@@ -20524,7 +20526,7 @@
|
|
|
20524
20526
|
return defaultValue;
|
|
20525
20527
|
}
|
|
20526
20528
|
|
|
20527
|
-
var __importDefault$
|
|
20529
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20528
20530
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20529
20531
|
};
|
|
20530
20532
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -20546,13 +20548,13 @@
|
|
|
20546
20548
|
*/
|
|
20547
20549
|
var rxjs_1 = cjs;
|
|
20548
20550
|
var operators_1 = operators;
|
|
20549
|
-
var result_rx_1 = __importDefault$
|
|
20551
|
+
var result_rx_1 = __importDefault$N(resultRx);
|
|
20550
20552
|
// eslint-disable-next-line no-unused-vars
|
|
20551
|
-
var neo4j_driver_core_1$
|
|
20552
|
-
var transaction_rx_1 = __importDefault$
|
|
20553
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
20554
|
-
var retry_logic_rx_1 = __importDefault$
|
|
20555
|
-
var _a$d = neo4j_driver_core_1$
|
|
20553
|
+
var neo4j_driver_core_1$J = lib$1;
|
|
20554
|
+
var transaction_rx_1 = __importDefault$N(transactionRx);
|
|
20555
|
+
var transaction_managed_rx_1 = __importDefault$N(transactionManagedRx);
|
|
20556
|
+
var retry_logic_rx_1 = __importDefault$N(retryLogicRx);
|
|
20557
|
+
var _a$d = neo4j_driver_core_1$J.internal.constants, ACCESS_MODE_READ$1 = _a$d.ACCESS_MODE_READ, ACCESS_MODE_WRITE$1 = _a$d.ACCESS_MODE_WRITE, TELEMETRY_APIS = _a$d.TELEMETRY_APIS, TxConfig$3 = neo4j_driver_core_1$J.internal.txConfig.TxConfig;
|
|
20556
20558
|
/**
|
|
20557
20559
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
20558
20560
|
*/
|
|
@@ -20790,7 +20792,7 @@
|
|
|
20790
20792
|
* See the License for the specific language governing permissions and
|
|
20791
20793
|
* limitations under the License.
|
|
20792
20794
|
*/
|
|
20793
|
-
var __extends$
|
|
20795
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
20794
20796
|
var extendStatics = function (d, b) {
|
|
20795
20797
|
extendStatics = Object.setPrototypeOf ||
|
|
20796
20798
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -20805,15 +20807,15 @@
|
|
|
20805
20807
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20806
20808
|
};
|
|
20807
20809
|
})();
|
|
20808
|
-
var __importDefault$
|
|
20810
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20809
20811
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20810
20812
|
};
|
|
20811
20813
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
20812
20814
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
20813
|
-
var neo4j_driver_core_1$
|
|
20814
|
-
var session_rx_1 = __importDefault$
|
|
20815
|
-
var FETCH_ALL$6 = neo4j_driver_core_1$
|
|
20816
|
-
var READ$2 = neo4j_driver_core_1$
|
|
20815
|
+
var neo4j_driver_core_1$I = lib$1;
|
|
20816
|
+
var session_rx_1 = __importDefault$M(sessionRx);
|
|
20817
|
+
var FETCH_ALL$6 = neo4j_driver_core_1$I.internal.constants.FETCH_ALL;
|
|
20818
|
+
var READ$2 = neo4j_driver_core_1$I.driver.READ, WRITE$2 = neo4j_driver_core_1$I.driver.WRITE;
|
|
20817
20819
|
driver$1.READ = READ$2;
|
|
20818
20820
|
driver$1.WRITE = WRITE$2;
|
|
20819
20821
|
/**
|
|
@@ -20827,7 +20829,7 @@
|
|
|
20827
20829
|
* @access public
|
|
20828
20830
|
*/
|
|
20829
20831
|
var Driver = /** @class */ (function (_super) {
|
|
20830
|
-
__extends$
|
|
20832
|
+
__extends$u(Driver, _super);
|
|
20831
20833
|
function Driver() {
|
|
20832
20834
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
20833
20835
|
}
|
|
@@ -20866,7 +20868,7 @@
|
|
|
20866
20868
|
});
|
|
20867
20869
|
};
|
|
20868
20870
|
return Driver;
|
|
20869
|
-
}(neo4j_driver_core_1$
|
|
20871
|
+
}(neo4j_driver_core_1$I.Driver));
|
|
20870
20872
|
driver$1.Driver = Driver;
|
|
20871
20873
|
/**
|
|
20872
20874
|
* @private
|
|
@@ -20912,7 +20914,7 @@
|
|
|
20912
20914
|
// This is set up this way to keep the version in the code in
|
|
20913
20915
|
// sync with the npm package version, and to allow the build
|
|
20914
20916
|
// system to control version names at packaging time.
|
|
20915
|
-
version$1.default = '5.
|
|
20917
|
+
version$1.default = '5.23.0';
|
|
20916
20918
|
|
|
20917
20919
|
var lib = {};
|
|
20918
20920
|
|
|
@@ -21012,7 +21014,7 @@
|
|
|
21012
21014
|
}());
|
|
21013
21015
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
21014
21016
|
|
|
21015
|
-
var __extends$
|
|
21017
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21016
21018
|
var extendStatics = function (d, b) {
|
|
21017
21019
|
extendStatics = Object.setPrototypeOf ||
|
|
21018
21020
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21027,7 +21029,7 @@
|
|
|
21027
21029
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21028
21030
|
};
|
|
21029
21031
|
})();
|
|
21030
|
-
var __importDefault$
|
|
21032
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21031
21033
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21032
21034
|
};
|
|
21033
21035
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -21047,10 +21049,10 @@
|
|
|
21047
21049
|
* See the License for the specific language governing permissions and
|
|
21048
21050
|
* limitations under the License.
|
|
21049
21051
|
*/
|
|
21050
|
-
var round_robin_array_index_1 = __importDefault$
|
|
21051
|
-
var load_balancing_strategy_1$1 = __importDefault$
|
|
21052
|
+
var round_robin_array_index_1 = __importDefault$L(roundRobinArrayIndex);
|
|
21053
|
+
var load_balancing_strategy_1$1 = __importDefault$L(loadBalancingStrategy);
|
|
21052
21054
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
21053
|
-
__extends$
|
|
21055
|
+
__extends$t(LeastConnectedLoadBalancingStrategy, _super);
|
|
21054
21056
|
/**
|
|
21055
21057
|
* @constructor
|
|
21056
21058
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -21106,7 +21108,7 @@
|
|
|
21106
21108
|
}(load_balancing_strategy_1$1.default));
|
|
21107
21109
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
21108
21110
|
|
|
21109
|
-
var __importDefault$
|
|
21111
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21110
21112
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21111
21113
|
};
|
|
21112
21114
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -21127,9 +21129,9 @@
|
|
|
21127
21129
|
* See the License for the specific language governing permissions and
|
|
21128
21130
|
* limitations under the License.
|
|
21129
21131
|
*/
|
|
21130
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
21132
|
+
var load_balancing_strategy_1 = __importDefault$K(loadBalancingStrategy);
|
|
21131
21133
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
21132
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
21134
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$K(leastConnectedLoadBalancingStrategy);
|
|
21133
21135
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
21134
21136
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
21135
21137
|
|
|
@@ -23514,7 +23516,7 @@
|
|
|
23514
23516
|
* See the License for the specific language governing permissions and
|
|
23515
23517
|
* limitations under the License.
|
|
23516
23518
|
*/
|
|
23517
|
-
var __extends$
|
|
23519
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
23518
23520
|
var extendStatics = function (d, b) {
|
|
23519
23521
|
extendStatics = Object.setPrototypeOf ||
|
|
23520
23522
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23850,7 +23852,7 @@
|
|
|
23850
23852
|
* @access private
|
|
23851
23853
|
*/
|
|
23852
23854
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
23853
|
-
__extends$
|
|
23855
|
+
__extends$s(SliceBuffer, _super);
|
|
23854
23856
|
function SliceBuffer(start, length, inner) {
|
|
23855
23857
|
var _this = _super.call(this, length) || this;
|
|
23856
23858
|
_this._start = start;
|
|
@@ -23894,12 +23896,12 @@
|
|
|
23894
23896
|
* See the License for the specific language governing permissions and
|
|
23895
23897
|
* limitations under the License.
|
|
23896
23898
|
*/
|
|
23897
|
-
var __importDefault$
|
|
23899
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23898
23900
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23899
23901
|
};
|
|
23900
23902
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
23901
23903
|
buf.BaseBuffer = void 0;
|
|
23902
|
-
var base_buf_1$1 = __importDefault$
|
|
23904
|
+
var base_buf_1$1 = __importDefault$J(baseBuf);
|
|
23903
23905
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
23904
23906
|
buf.default = base_buf_1$1.default;
|
|
23905
23907
|
|
|
@@ -23919,7 +23921,7 @@
|
|
|
23919
23921
|
* See the License for the specific language governing permissions and
|
|
23920
23922
|
* limitations under the License.
|
|
23921
23923
|
*/
|
|
23922
|
-
var __extends$
|
|
23924
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
23923
23925
|
var extendStatics = function (d, b) {
|
|
23924
23926
|
extendStatics = Object.setPrototypeOf ||
|
|
23925
23927
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23934,15 +23936,15 @@
|
|
|
23934
23936
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23935
23937
|
};
|
|
23936
23938
|
})();
|
|
23937
|
-
var __importDefault$
|
|
23939
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23938
23940
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23939
23941
|
};
|
|
23940
23942
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
23941
23943
|
channelBuf.alloc = void 0;
|
|
23942
|
-
var buffer_1$1 = __importDefault$
|
|
23943
|
-
var buf_1$1 = __importDefault$
|
|
23944
|
+
var buffer_1$1 = __importDefault$I(buffer);
|
|
23945
|
+
var buf_1$1 = __importDefault$I(buf);
|
|
23944
23946
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
23945
|
-
__extends$
|
|
23947
|
+
__extends$r(ChannelBuffer, _super);
|
|
23946
23948
|
function ChannelBuffer(arg) {
|
|
23947
23949
|
var _this = this;
|
|
23948
23950
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -24010,7 +24012,7 @@
|
|
|
24010
24012
|
}
|
|
24011
24013
|
}
|
|
24012
24014
|
|
|
24013
|
-
var __importDefault$
|
|
24015
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24014
24016
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24015
24017
|
};
|
|
24016
24018
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -24031,9 +24033,9 @@
|
|
|
24031
24033
|
* limitations under the License.
|
|
24032
24034
|
*/
|
|
24033
24035
|
/* eslint-env browser */
|
|
24034
|
-
var channel_buf_1$3 = __importDefault$
|
|
24035
|
-
var neo4j_driver_core_1$
|
|
24036
|
-
var _a$c = neo4j_driver_core_1$
|
|
24036
|
+
var channel_buf_1$3 = __importDefault$H(channelBuf);
|
|
24037
|
+
var neo4j_driver_core_1$H = lib$1;
|
|
24038
|
+
var _a$c = neo4j_driver_core_1$H.internal.util, ENCRYPTION_OFF$1 = _a$c.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$c.ENCRYPTION_ON;
|
|
24037
24039
|
var WS_OPEN = 1;
|
|
24038
24040
|
var WS_CLOSED = 3;
|
|
24039
24041
|
/**
|
|
@@ -24099,7 +24101,7 @@
|
|
|
24099
24101
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
24100
24102
|
if (this._connectionTimeoutFired) {
|
|
24101
24103
|
// timeout fired - not connected within configured time
|
|
24102
|
-
this._error = (0, neo4j_driver_core_1$
|
|
24104
|
+
this._error = (0, neo4j_driver_core_1$H.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
|
|
24103
24105
|
if (this.onerror) {
|
|
24104
24106
|
this.onerror(this._error);
|
|
24105
24107
|
}
|
|
@@ -24108,7 +24110,7 @@
|
|
|
24108
24110
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
24109
24111
|
if (this._open && !this._timedout) {
|
|
24110
24112
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
24111
|
-
this._error = (0, neo4j_driver_core_1$
|
|
24113
|
+
this._error = (0, neo4j_driver_core_1$H.newError)('WebSocket connection failure. Due to security ' +
|
|
24112
24114
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
24113
24115
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
24114
24116
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -24147,7 +24149,7 @@
|
|
|
24147
24149
|
}
|
|
24148
24150
|
}
|
|
24149
24151
|
else {
|
|
24150
|
-
throw (0, neo4j_driver_core_1$
|
|
24152
|
+
throw (0, neo4j_driver_core_1$H.newError)("Don't know how to send buffer: " + buffer);
|
|
24151
24153
|
}
|
|
24152
24154
|
};
|
|
24153
24155
|
/**
|
|
@@ -24218,7 +24220,7 @@
|
|
|
24218
24220
|
_this._receiveTimeoutId = null;
|
|
24219
24221
|
_this._timedout = true;
|
|
24220
24222
|
_this.stopReceiveTimeout();
|
|
24221
|
-
_this._error = (0, neo4j_driver_core_1$
|
|
24223
|
+
_this._error = (0, neo4j_driver_core_1$H.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
|
|
24222
24224
|
_this.close();
|
|
24223
24225
|
if (_this.onerror) {
|
|
24224
24226
|
_this.onerror(_this._error);
|
|
@@ -24327,7 +24329,7 @@
|
|
|
24327
24329
|
return { scheme: 'wss', error: null };
|
|
24328
24330
|
}
|
|
24329
24331
|
else {
|
|
24330
|
-
var error = (0, neo4j_driver_core_1$
|
|
24332
|
+
var error = (0, neo4j_driver_core_1$H.newError)('The browser version of this driver only supports one trust ' +
|
|
24331
24333
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
24332
24334
|
trust +
|
|
24333
24335
|
' is not supported. Please ' +
|
|
@@ -24402,7 +24404,7 @@
|
|
|
24402
24404
|
* See the License for the specific language governing permissions and
|
|
24403
24405
|
* limitations under the License.
|
|
24404
24406
|
*/
|
|
24405
|
-
var __extends$
|
|
24407
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24406
24408
|
var extendStatics = function (d, b) {
|
|
24407
24409
|
extendStatics = Object.setPrototypeOf ||
|
|
24408
24410
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24418,10 +24420,10 @@
|
|
|
24418
24420
|
};
|
|
24419
24421
|
})();
|
|
24420
24422
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
24421
|
-
var neo4j_driver_core_1$
|
|
24422
|
-
var BaseHostNameResolver = neo4j_driver_core_1$
|
|
24423
|
+
var neo4j_driver_core_1$G = lib$1;
|
|
24424
|
+
var BaseHostNameResolver = neo4j_driver_core_1$G.internal.resolver.BaseHostNameResolver;
|
|
24423
24425
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
24424
|
-
__extends$
|
|
24426
|
+
__extends$q(BrowserHostNameResolver, _super);
|
|
24425
24427
|
function BrowserHostNameResolver() {
|
|
24426
24428
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24427
24429
|
}
|
|
@@ -24513,14 +24515,14 @@
|
|
|
24513
24515
|
* See the License for the specific language governing permissions and
|
|
24514
24516
|
* limitations under the License.
|
|
24515
24517
|
*/
|
|
24516
|
-
var __importDefault$
|
|
24518
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24517
24519
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24518
24520
|
};
|
|
24519
24521
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
24520
24522
|
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
24521
|
-
var browser_channel_1 = __importDefault$
|
|
24522
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
24523
|
-
var browser_client_certificates_loader_1 = __importDefault$
|
|
24523
|
+
var browser_channel_1 = __importDefault$G(browserChannel);
|
|
24524
|
+
var browser_host_name_resolver_1 = __importDefault$G(browserHostNameResolver);
|
|
24525
|
+
var browser_client_certificates_loader_1 = __importDefault$G(browserClientCertificatesLoader);
|
|
24524
24526
|
/*
|
|
24525
24527
|
|
|
24526
24528
|
This module exports a set of components to be used in browser environment.
|
|
@@ -24555,7 +24557,7 @@
|
|
|
24555
24557
|
* See the License for the specific language governing permissions and
|
|
24556
24558
|
* limitations under the License.
|
|
24557
24559
|
*/
|
|
24558
|
-
var __extends$
|
|
24560
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24559
24561
|
var extendStatics = function (d, b) {
|
|
24560
24562
|
extendStatics = Object.setPrototypeOf ||
|
|
24561
24563
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24577,7 +24579,7 @@
|
|
|
24577
24579
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
24578
24580
|
*/
|
|
24579
24581
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
24580
|
-
__extends$
|
|
24582
|
+
__extends$p(CombinedBuffer, _super);
|
|
24581
24583
|
function CombinedBuffer(buffers) {
|
|
24582
24584
|
var _this = this;
|
|
24583
24585
|
var length = 0;
|
|
@@ -24643,7 +24645,7 @@
|
|
|
24643
24645
|
* See the License for the specific language governing permissions and
|
|
24644
24646
|
* limitations under the License.
|
|
24645
24647
|
*/
|
|
24646
|
-
var __extends$
|
|
24648
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24647
24649
|
var extendStatics = function (d, b) {
|
|
24648
24650
|
extendStatics = Object.setPrototypeOf ||
|
|
24649
24651
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24658,14 +24660,14 @@
|
|
|
24658
24660
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24659
24661
|
};
|
|
24660
24662
|
})();
|
|
24661
|
-
var __importDefault$
|
|
24663
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24662
24664
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24663
24665
|
};
|
|
24664
24666
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
24665
24667
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
24666
|
-
var base_buf_1 = __importDefault$
|
|
24668
|
+
var base_buf_1 = __importDefault$F(baseBuf);
|
|
24667
24669
|
var channel_buf_1$1 = channelBuf;
|
|
24668
|
-
var combined_buf_1 = __importDefault$
|
|
24670
|
+
var combined_buf_1 = __importDefault$F(combinedBuf);
|
|
24669
24671
|
var _CHUNK_HEADER_SIZE = 2;
|
|
24670
24672
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
24671
24673
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -24674,7 +24676,7 @@
|
|
|
24674
24676
|
* @access private
|
|
24675
24677
|
*/
|
|
24676
24678
|
var Chunker = /** @class */ (function (_super) {
|
|
24677
|
-
__extends$
|
|
24679
|
+
__extends$o(Chunker, _super);
|
|
24678
24680
|
function Chunker(channel, bufferSize) {
|
|
24679
24681
|
var _this = _super.call(this, 0) || this;
|
|
24680
24682
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -24857,9 +24859,9 @@
|
|
|
24857
24859
|
* limitations under the License.
|
|
24858
24860
|
*/
|
|
24859
24861
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
24860
|
-
var neo4j_driver_core_1$
|
|
24861
|
-
var _a$b = neo4j_driver_core_1$
|
|
24862
|
-
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$
|
|
24862
|
+
var neo4j_driver_core_1$F = lib$1;
|
|
24863
|
+
var _a$b = neo4j_driver_core_1$F.internal.util, ENCRYPTION_OFF = _a$b.ENCRYPTION_OFF, ENCRYPTION_ON = _a$b.ENCRYPTION_ON;
|
|
24864
|
+
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
|
|
24863
24865
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
24864
24866
|
null,
|
|
24865
24867
|
undefined,
|
|
@@ -24899,14 +24901,14 @@
|
|
|
24899
24901
|
function extractEncrypted(driverConfig) {
|
|
24900
24902
|
var value = driverConfig.encrypted;
|
|
24901
24903
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
24902
|
-
throw (0, neo4j_driver_core_1$
|
|
24904
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
|
|
24903
24905
|
}
|
|
24904
24906
|
return value;
|
|
24905
24907
|
}
|
|
24906
24908
|
function extractTrust(driverConfig) {
|
|
24907
24909
|
var value = driverConfig.trust;
|
|
24908
24910
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
24909
|
-
throw (0, neo4j_driver_core_1$
|
|
24911
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
|
|
24910
24912
|
}
|
|
24911
24913
|
return value;
|
|
24912
24914
|
}
|
|
@@ -25281,13 +25283,13 @@
|
|
|
25281
25283
|
* See the License for the specific language governing permissions and
|
|
25282
25284
|
* limitations under the License.
|
|
25283
25285
|
*/
|
|
25284
|
-
var __importDefault$
|
|
25286
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25285
25287
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25286
25288
|
};
|
|
25287
25289
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
25288
|
-
var channel_buf_1 = __importDefault$
|
|
25289
|
-
var neo4j_driver_core_1$
|
|
25290
|
-
var buffer_1 = __importDefault$
|
|
25290
|
+
var channel_buf_1 = __importDefault$E(channelBuf);
|
|
25291
|
+
var neo4j_driver_core_1$E = lib$1;
|
|
25292
|
+
var buffer_1 = __importDefault$E(buffer);
|
|
25291
25293
|
var string_decoder_1 = string_decoder;
|
|
25292
25294
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
25293
25295
|
function encode(str) {
|
|
@@ -25301,7 +25303,7 @@
|
|
|
25301
25303
|
return decodeCombinedBuffer(buffer, length);
|
|
25302
25304
|
}
|
|
25303
25305
|
else {
|
|
25304
|
-
throw (0, neo4j_driver_core_1$
|
|
25306
|
+
throw (0, neo4j_driver_core_1$E.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
|
|
25305
25307
|
}
|
|
25306
25308
|
}
|
|
25307
25309
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -25418,7 +25420,7 @@
|
|
|
25418
25420
|
*/
|
|
25419
25421
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
25420
25422
|
var channel_1$4 = channel;
|
|
25421
|
-
var neo4j_driver_core_1$
|
|
25423
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
25422
25424
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
25423
25425
|
function version(major, minor) {
|
|
25424
25426
|
return {
|
|
@@ -25428,7 +25430,7 @@
|
|
|
25428
25430
|
}
|
|
25429
25431
|
function createHandshakeMessage(versions) {
|
|
25430
25432
|
if (versions.length > 4) {
|
|
25431
|
-
throw (0, neo4j_driver_core_1$
|
|
25433
|
+
throw (0, neo4j_driver_core_1$D.newError)('It should not have more than 4 versions of the protocol');
|
|
25432
25434
|
}
|
|
25433
25435
|
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
25434
25436
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -25456,7 +25458,7 @@
|
|
|
25456
25458
|
];
|
|
25457
25459
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
25458
25460
|
log.error('Handshake failed since server responded with HTTP.');
|
|
25459
|
-
throw (0, neo4j_driver_core_1$
|
|
25461
|
+
throw (0, neo4j_driver_core_1$D.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
|
|
25460
25462
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
25461
25463
|
}
|
|
25462
25464
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -25467,7 +25469,7 @@
|
|
|
25467
25469
|
*/
|
|
25468
25470
|
function newHandshakeBuffer() {
|
|
25469
25471
|
return createHandshakeMessage([
|
|
25470
|
-
[version(5,
|
|
25472
|
+
[version(5, 6), version(5, 0)],
|
|
25471
25473
|
[version(4, 4), version(4, 2)],
|
|
25472
25474
|
version(4, 1),
|
|
25473
25475
|
version(3, 0)
|
|
@@ -25532,7 +25534,7 @@
|
|
|
25532
25534
|
|
|
25533
25535
|
var routingTableRaw = {};
|
|
25534
25536
|
|
|
25535
|
-
var __extends$
|
|
25537
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25536
25538
|
var extendStatics = function (d, b) {
|
|
25537
25539
|
extendStatics = Object.setPrototypeOf ||
|
|
25538
25540
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25547,7 +25549,7 @@
|
|
|
25547
25549
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25548
25550
|
};
|
|
25549
25551
|
})();
|
|
25550
|
-
var __importDefault$
|
|
25552
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25551
25553
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25552
25554
|
};
|
|
25553
25555
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -25568,7 +25570,7 @@
|
|
|
25568
25570
|
* limitations under the License.
|
|
25569
25571
|
*/
|
|
25570
25572
|
// eslint-disable-next-line no-unused-vars
|
|
25571
|
-
__importDefault$
|
|
25573
|
+
__importDefault$D(lib$1);
|
|
25572
25574
|
/**
|
|
25573
25575
|
* Represente the raw version of the routing table
|
|
25574
25576
|
*/
|
|
@@ -25663,7 +25665,7 @@
|
|
|
25663
25665
|
* Get the raw routing table information from route message response
|
|
25664
25666
|
*/
|
|
25665
25667
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
25666
|
-
__extends$
|
|
25668
|
+
__extends$n(ResponseRawRoutingTable, _super);
|
|
25667
25669
|
function ResponseRawRoutingTable(response) {
|
|
25668
25670
|
var _this = _super.call(this) || this;
|
|
25669
25671
|
_this._response = response;
|
|
@@ -25703,7 +25705,7 @@
|
|
|
25703
25705
|
* Null routing table
|
|
25704
25706
|
*/
|
|
25705
25707
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
25706
|
-
__extends$
|
|
25708
|
+
__extends$n(NullRawRoutingTable, _super);
|
|
25707
25709
|
function NullRawRoutingTable() {
|
|
25708
25710
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25709
25711
|
}
|
|
@@ -25720,7 +25722,7 @@
|
|
|
25720
25722
|
* Get the raw routing table information from the record
|
|
25721
25723
|
*/
|
|
25722
25724
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
25723
|
-
__extends$
|
|
25725
|
+
__extends$n(RecordRawRoutingTable, _super);
|
|
25724
25726
|
function RecordRawRoutingTable(record) {
|
|
25725
25727
|
var _this = _super.call(this) || this;
|
|
25726
25728
|
_this._record = record;
|
|
@@ -25779,7 +25781,7 @@
|
|
|
25779
25781
|
*/
|
|
25780
25782
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
25781
25783
|
functional.reuseOngoingRequest = functional.identity = void 0;
|
|
25782
|
-
var neo4j_driver_core_1$
|
|
25784
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
25783
25785
|
/**
|
|
25784
25786
|
* Identity function.
|
|
25785
25787
|
*
|
|
@@ -25807,7 +25809,7 @@
|
|
|
25807
25809
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
25808
25810
|
args[_i] = arguments[_i];
|
|
25809
25811
|
}
|
|
25810
|
-
var key = neo4j_driver_core_1$
|
|
25812
|
+
var key = neo4j_driver_core_1$C.json.stringify(args);
|
|
25811
25813
|
if (ongoingRequests.has(key)) {
|
|
25812
25814
|
return ongoingRequests.get(key);
|
|
25813
25815
|
}
|
|
@@ -25930,7 +25932,7 @@
|
|
|
25930
25932
|
lang.functional = __importStar$5(functional);
|
|
25931
25933
|
lang.object = __importStar$5(object);
|
|
25932
25934
|
|
|
25933
|
-
var __extends$
|
|
25935
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25934
25936
|
var extendStatics = function (d, b) {
|
|
25935
25937
|
extendStatics = Object.setPrototypeOf ||
|
|
25936
25938
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25945,7 +25947,7 @@
|
|
|
25945
25947
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25946
25948
|
};
|
|
25947
25949
|
})();
|
|
25948
|
-
var __importDefault$
|
|
25950
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25949
25951
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25950
25952
|
};
|
|
25951
25953
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -25966,11 +25968,11 @@
|
|
|
25966
25968
|
* See the License for the specific language governing permissions and
|
|
25967
25969
|
* limitations under the License.
|
|
25968
25970
|
*/
|
|
25969
|
-
var neo4j_driver_core_1$
|
|
25970
|
-
var routing_table_raw_1 = __importDefault$
|
|
25971
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
25972
|
+
var routing_table_raw_1 = __importDefault$C(routingTableRaw);
|
|
25971
25973
|
var lang_1$4 = lang;
|
|
25972
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
25973
|
-
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$
|
|
25974
|
+
var FETCH_ALL$5 = neo4j_driver_core_1$B.internal.constants.FETCH_ALL;
|
|
25975
|
+
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$B.error.PROTOCOL_ERROR;
|
|
25974
25976
|
var StreamObserver = /** @class */ (function () {
|
|
25975
25977
|
function StreamObserver() {
|
|
25976
25978
|
}
|
|
@@ -25991,7 +25993,7 @@
|
|
|
25991
25993
|
* @access private
|
|
25992
25994
|
*/
|
|
25993
25995
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
25994
|
-
__extends$
|
|
25996
|
+
__extends$m(ResultStreamObserver, _super);
|
|
25995
25997
|
/**
|
|
25996
25998
|
*
|
|
25997
25999
|
* @param {Object} param
|
|
@@ -26068,7 +26070,7 @@
|
|
|
26068
26070
|
*/
|
|
26069
26071
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
26070
26072
|
this._haveRecordStreamed = true;
|
|
26071
|
-
var record = new neo4j_driver_core_1$
|
|
26073
|
+
var record = new neo4j_driver_core_1$B.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
26072
26074
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
26073
26075
|
this._observers.forEach(function (o) {
|
|
26074
26076
|
if (o.onNext) {
|
|
@@ -26177,7 +26179,7 @@
|
|
|
26177
26179
|
}
|
|
26178
26180
|
}, meta));
|
|
26179
26181
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
26180
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26182
|
+
this.onError((0, neo4j_driver_core_1$B.newError)("Server returned invalid query type. Expected one of [undefined, null, \"r\", \"w\", \"rw\", \"s\"] but got '".concat(completionMetadata.type, "'"), PROTOCOL_ERROR$5));
|
|
26181
26183
|
return;
|
|
26182
26184
|
}
|
|
26183
26185
|
this._setState(_states.SUCCEEDED);
|
|
@@ -26322,7 +26324,7 @@
|
|
|
26322
26324
|
}(StreamObserver));
|
|
26323
26325
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
26324
26326
|
var LoginObserver = /** @class */ (function (_super) {
|
|
26325
|
-
__extends$
|
|
26327
|
+
__extends$m(LoginObserver, _super);
|
|
26326
26328
|
/**
|
|
26327
26329
|
*
|
|
26328
26330
|
* @param {Object} param -
|
|
@@ -26337,7 +26339,7 @@
|
|
|
26337
26339
|
return _this;
|
|
26338
26340
|
}
|
|
26339
26341
|
LoginObserver.prototype.onNext = function (record) {
|
|
26340
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26342
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
26341
26343
|
};
|
|
26342
26344
|
LoginObserver.prototype.onError = function (error) {
|
|
26343
26345
|
if (this._onError) {
|
|
@@ -26353,7 +26355,7 @@
|
|
|
26353
26355
|
}(StreamObserver));
|
|
26354
26356
|
streamObservers.LoginObserver = LoginObserver;
|
|
26355
26357
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
26356
|
-
__extends$
|
|
26358
|
+
__extends$m(LogoffObserver, _super);
|
|
26357
26359
|
/**
|
|
26358
26360
|
*
|
|
26359
26361
|
* @param {Object} param -
|
|
@@ -26368,7 +26370,7 @@
|
|
|
26368
26370
|
return _this;
|
|
26369
26371
|
}
|
|
26370
26372
|
LogoffObserver.prototype.onNext = function (record) {
|
|
26371
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26373
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
26372
26374
|
};
|
|
26373
26375
|
LogoffObserver.prototype.onError = function (error) {
|
|
26374
26376
|
if (this._onError) {
|
|
@@ -26384,7 +26386,7 @@
|
|
|
26384
26386
|
}(StreamObserver));
|
|
26385
26387
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
26386
26388
|
var ResetObserver = /** @class */ (function (_super) {
|
|
26387
|
-
__extends$
|
|
26389
|
+
__extends$m(ResetObserver, _super);
|
|
26388
26390
|
/**
|
|
26389
26391
|
*
|
|
26390
26392
|
* @param {Object} param -
|
|
@@ -26401,8 +26403,8 @@
|
|
|
26401
26403
|
return _this;
|
|
26402
26404
|
}
|
|
26403
26405
|
ResetObserver.prototype.onNext = function (record) {
|
|
26404
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26405
|
-
neo4j_driver_core_1$
|
|
26406
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
26407
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
26406
26408
|
};
|
|
26407
26409
|
ResetObserver.prototype.onError = function (error) {
|
|
26408
26410
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -26421,7 +26423,7 @@
|
|
|
26421
26423
|
}(StreamObserver));
|
|
26422
26424
|
streamObservers.ResetObserver = ResetObserver;
|
|
26423
26425
|
var TelemetryObserver = /** @class */ (function (_super) {
|
|
26424
|
-
__extends$
|
|
26426
|
+
__extends$m(TelemetryObserver, _super);
|
|
26425
26427
|
/**
|
|
26426
26428
|
*
|
|
26427
26429
|
* @param {Object} param -
|
|
@@ -26436,7 +26438,7 @@
|
|
|
26436
26438
|
return _this;
|
|
26437
26439
|
}
|
|
26438
26440
|
TelemetryObserver.prototype.onNext = function (record) {
|
|
26439
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26441
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when sending telemetry ' + neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
26440
26442
|
};
|
|
26441
26443
|
TelemetryObserver.prototype.onError = function (error) {
|
|
26442
26444
|
if (this._onError) {
|
|
@@ -26452,7 +26454,7 @@
|
|
|
26452
26454
|
}(ResultStreamObserver));
|
|
26453
26455
|
streamObservers.TelemetryObserver = TelemetryObserver;
|
|
26454
26456
|
var FailedObserver = /** @class */ (function (_super) {
|
|
26455
|
-
__extends$
|
|
26457
|
+
__extends$m(FailedObserver, _super);
|
|
26456
26458
|
function FailedObserver(_a) {
|
|
26457
26459
|
var error = _a.error, onError = _a.onError;
|
|
26458
26460
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -26463,7 +26465,7 @@
|
|
|
26463
26465
|
}(ResultStreamObserver));
|
|
26464
26466
|
streamObservers.FailedObserver = FailedObserver;
|
|
26465
26467
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
26466
|
-
__extends$
|
|
26468
|
+
__extends$m(CompletedObserver, _super);
|
|
26467
26469
|
function CompletedObserver() {
|
|
26468
26470
|
var _this = _super.call(this) || this;
|
|
26469
26471
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -26473,7 +26475,7 @@
|
|
|
26473
26475
|
}(ResultStreamObserver));
|
|
26474
26476
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
26475
26477
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
26476
|
-
__extends$
|
|
26478
|
+
__extends$m(ProcedureRouteObserver, _super);
|
|
26477
26479
|
function ProcedureRouteObserver(_a) {
|
|
26478
26480
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
26479
26481
|
var _this = _super.call(this) || this;
|
|
@@ -26498,10 +26500,10 @@
|
|
|
26498
26500
|
};
|
|
26499
26501
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
26500
26502
|
if (this._records !== null && this._records.length !== 1) {
|
|
26501
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26503
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Illegal response from router. Received ' +
|
|
26502
26504
|
this._records.length +
|
|
26503
26505
|
' records but expected only one.\n' +
|
|
26504
|
-
neo4j_driver_core_1$
|
|
26506
|
+
neo4j_driver_core_1$B.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
26505
26507
|
return;
|
|
26506
26508
|
}
|
|
26507
26509
|
if (this._onCompleted) {
|
|
@@ -26512,7 +26514,7 @@
|
|
|
26512
26514
|
}(StreamObserver));
|
|
26513
26515
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
26514
26516
|
var RouteObserver = /** @class */ (function (_super) {
|
|
26515
|
-
__extends$
|
|
26517
|
+
__extends$m(RouteObserver, _super);
|
|
26516
26518
|
/**
|
|
26517
26519
|
*
|
|
26518
26520
|
* @param {Object} param -
|
|
@@ -26529,8 +26531,8 @@
|
|
|
26529
26531
|
return _this;
|
|
26530
26532
|
}
|
|
26531
26533
|
RouteObserver.prototype.onNext = function (record) {
|
|
26532
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26533
|
-
neo4j_driver_core_1$
|
|
26534
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
26535
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
26534
26536
|
};
|
|
26535
26537
|
RouteObserver.prototype.onError = function (error) {
|
|
26536
26538
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -26632,7 +26634,7 @@
|
|
|
26632
26634
|
* See the License for the specific language governing permissions and
|
|
26633
26635
|
* limitations under the License.
|
|
26634
26636
|
*/
|
|
26635
|
-
var neo4j_driver_core_1$
|
|
26637
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
26636
26638
|
/**
|
|
26637
26639
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
26638
26640
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -26641,7 +26643,7 @@
|
|
|
26641
26643
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
26642
26644
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26643
26645
|
if (txConfig && !txConfig.isEmpty()) {
|
|
26644
|
-
var error = (0, neo4j_driver_core_1$
|
|
26646
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support transaction configuration. ' +
|
|
26645
26647
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
26646
26648
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26647
26649
|
onProtocolError(error.message);
|
|
@@ -26658,7 +26660,7 @@
|
|
|
26658
26660
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
26659
26661
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26660
26662
|
if (database) {
|
|
26661
|
-
var error = (0, neo4j_driver_core_1$
|
|
26663
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support multiple databases. ' +
|
|
26662
26664
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
26663
26665
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26664
26666
|
onProtocolError(error.message);
|
|
@@ -26676,7 +26678,7 @@
|
|
|
26676
26678
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
26677
26679
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26678
26680
|
if (impersonatedUser) {
|
|
26679
|
-
var error = (0, neo4j_driver_core_1$
|
|
26681
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support user impersonation. ' +
|
|
26680
26682
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
26681
26683
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
26682
26684
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -26695,9 +26697,9 @@
|
|
|
26695
26697
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
26696
26698
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26697
26699
|
if (notificationFilter !== undefined) {
|
|
26698
|
-
var error = (0, neo4j_driver_core_1$
|
|
26700
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to a database that does not support user notification filters. ' +
|
|
26699
26701
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
26700
|
-
"Trying to set notifications to ".concat(neo4j_driver_core_1$
|
|
26702
|
+
"Trying to set notifications to ".concat(neo4j_driver_core_1$A.json.stringify(notificationFilter), "."));
|
|
26701
26703
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26702
26704
|
onProtocolError(error.message);
|
|
26703
26705
|
observer.onError(error);
|
|
@@ -26730,8 +26732,8 @@
|
|
|
26730
26732
|
*/
|
|
26731
26733
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
26732
26734
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
26733
|
-
var neo4j_driver_core_1$
|
|
26734
|
-
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$
|
|
26735
|
+
var neo4j_driver_core_1$z = lib$1;
|
|
26736
|
+
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$z.error.PROTOCOL_ERROR;
|
|
26735
26737
|
/**
|
|
26736
26738
|
* A Structure have a signature and fields.
|
|
26737
26739
|
*/
|
|
@@ -26765,7 +26767,7 @@
|
|
|
26765
26767
|
structure$1.Structure = Structure;
|
|
26766
26768
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
26767
26769
|
if (expectedSize !== actualSize) {
|
|
26768
|
-
throw (0, neo4j_driver_core_1$
|
|
26770
|
+
throw (0, neo4j_driver_core_1$z.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
26769
26771
|
}
|
|
26770
26772
|
}
|
|
26771
26773
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -26792,8 +26794,8 @@
|
|
|
26792
26794
|
var channel_1$3 = channel;
|
|
26793
26795
|
var lang_1$3 = lang;
|
|
26794
26796
|
var structure_1 = structure$1;
|
|
26795
|
-
var neo4j_driver_core_1$
|
|
26796
|
-
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$
|
|
26797
|
+
var neo4j_driver_core_1$y = lib$1;
|
|
26798
|
+
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$y.error.PROTOCOL_ERROR;
|
|
26797
26799
|
var TINY_STRING = 0x80;
|
|
26798
26800
|
var TINY_LIST = 0x90;
|
|
26799
26801
|
var TINY_MAP = 0xa0;
|
|
@@ -26863,9 +26865,9 @@
|
|
|
26863
26865
|
return function () { return _this.packString(x); };
|
|
26864
26866
|
}
|
|
26865
26867
|
else if (typeof x === 'bigint') {
|
|
26866
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
26868
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$y.int)(x)); };
|
|
26867
26869
|
}
|
|
26868
|
-
else if ((0, neo4j_driver_core_1$
|
|
26870
|
+
else if ((0, neo4j_driver_core_1$y.isInt)(x)) {
|
|
26869
26871
|
return function () { return _this.packInteger(x); };
|
|
26870
26872
|
}
|
|
26871
26873
|
else if (x instanceof Int8Array) {
|
|
@@ -26919,7 +26921,7 @@
|
|
|
26919
26921
|
}
|
|
26920
26922
|
catch (e) {
|
|
26921
26923
|
// handle errors from iterable to array conversion
|
|
26922
|
-
throw (0, neo4j_driver_core_1$
|
|
26924
|
+
throw (0, neo4j_driver_core_1$y.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
26923
26925
|
}
|
|
26924
26926
|
};
|
|
26925
26927
|
/**
|
|
@@ -26989,7 +26991,7 @@
|
|
|
26989
26991
|
this._ch.writeBytes(bytes);
|
|
26990
26992
|
}
|
|
26991
26993
|
else {
|
|
26992
|
-
throw (0, neo4j_driver_core_1$
|
|
26994
|
+
throw (0, neo4j_driver_core_1$y.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
26993
26995
|
}
|
|
26994
26996
|
};
|
|
26995
26997
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -27013,7 +27015,7 @@
|
|
|
27013
27015
|
this._ch.writeUInt8(size % 256);
|
|
27014
27016
|
}
|
|
27015
27017
|
else {
|
|
27016
|
-
throw (0, neo4j_driver_core_1$
|
|
27018
|
+
throw (0, neo4j_driver_core_1$y.newError)('Lists of size ' + size + ' are not supported');
|
|
27017
27019
|
}
|
|
27018
27020
|
};
|
|
27019
27021
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -27024,7 +27026,7 @@
|
|
|
27024
27026
|
}
|
|
27025
27027
|
}
|
|
27026
27028
|
else {
|
|
27027
|
-
throw (0, neo4j_driver_core_1$
|
|
27029
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays are not supported by the database this driver is connected to');
|
|
27028
27030
|
}
|
|
27029
27031
|
};
|
|
27030
27032
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -27045,7 +27047,7 @@
|
|
|
27045
27047
|
this._ch.writeUInt8(size % 256);
|
|
27046
27048
|
}
|
|
27047
27049
|
else {
|
|
27048
|
-
throw (0, neo4j_driver_core_1$
|
|
27050
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
27049
27051
|
}
|
|
27050
27052
|
};
|
|
27051
27053
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -27069,7 +27071,7 @@
|
|
|
27069
27071
|
this._ch.writeUInt8(size % 256);
|
|
27070
27072
|
}
|
|
27071
27073
|
else {
|
|
27072
|
-
throw (0, neo4j_driver_core_1$
|
|
27074
|
+
throw (0, neo4j_driver_core_1$y.newError)('Maps of size ' + size + ' are not supported');
|
|
27073
27075
|
}
|
|
27074
27076
|
};
|
|
27075
27077
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -27088,7 +27090,7 @@
|
|
|
27088
27090
|
this._ch.writeUInt8(size % 256);
|
|
27089
27091
|
}
|
|
27090
27092
|
else {
|
|
27091
|
-
throw (0, neo4j_driver_core_1$
|
|
27093
|
+
throw (0, neo4j_driver_core_1$y.newError)('Structures of size ' + size + ' are not supported');
|
|
27092
27094
|
}
|
|
27093
27095
|
};
|
|
27094
27096
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -27096,7 +27098,7 @@
|
|
|
27096
27098
|
};
|
|
27097
27099
|
Packer.prototype._nonPackableValue = function (message) {
|
|
27098
27100
|
return function () {
|
|
27099
|
-
throw (0, neo4j_driver_core_1$
|
|
27101
|
+
throw (0, neo4j_driver_core_1$y.newError)(message, PROTOCOL_ERROR$3);
|
|
27100
27102
|
};
|
|
27101
27103
|
};
|
|
27102
27104
|
return Packer;
|
|
@@ -27132,7 +27134,7 @@
|
|
|
27132
27134
|
}
|
|
27133
27135
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
27134
27136
|
if (numberOrInteger !== null) {
|
|
27135
|
-
if ((0, neo4j_driver_core_1$
|
|
27137
|
+
if ((0, neo4j_driver_core_1$y.isInt)(numberOrInteger)) {
|
|
27136
27138
|
if (this._useBigInt) {
|
|
27137
27139
|
return numberOrInteger.toBigInt();
|
|
27138
27140
|
}
|
|
@@ -27162,13 +27164,13 @@
|
|
|
27162
27164
|
if (struct !== null) {
|
|
27163
27165
|
return struct;
|
|
27164
27166
|
}
|
|
27165
|
-
throw (0, neo4j_driver_core_1$
|
|
27167
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
27166
27168
|
};
|
|
27167
27169
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
27168
27170
|
var marker = buffer.readUInt8();
|
|
27169
27171
|
var result = this._unpackInteger(marker, buffer);
|
|
27170
27172
|
if (result == null) {
|
|
27171
|
-
throw (0, neo4j_driver_core_1$
|
|
27173
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
|
|
27172
27174
|
}
|
|
27173
27175
|
return result;
|
|
27174
27176
|
};
|
|
@@ -27193,25 +27195,25 @@
|
|
|
27193
27195
|
};
|
|
27194
27196
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
27195
27197
|
if (marker >= 0 && marker < 128) {
|
|
27196
|
-
return (0, neo4j_driver_core_1$
|
|
27198
|
+
return (0, neo4j_driver_core_1$y.int)(marker);
|
|
27197
27199
|
}
|
|
27198
27200
|
else if (marker >= 240 && marker < 256) {
|
|
27199
|
-
return (0, neo4j_driver_core_1$
|
|
27201
|
+
return (0, neo4j_driver_core_1$y.int)(marker - 256);
|
|
27200
27202
|
}
|
|
27201
27203
|
else if (marker === INT_8) {
|
|
27202
|
-
return (0, neo4j_driver_core_1$
|
|
27204
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt8());
|
|
27203
27205
|
}
|
|
27204
27206
|
else if (marker === INT_16) {
|
|
27205
|
-
return (0, neo4j_driver_core_1$
|
|
27207
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt16());
|
|
27206
27208
|
}
|
|
27207
27209
|
else if (marker === INT_32) {
|
|
27208
27210
|
var b = buffer.readInt32();
|
|
27209
|
-
return (0, neo4j_driver_core_1$
|
|
27211
|
+
return (0, neo4j_driver_core_1$y.int)(b);
|
|
27210
27212
|
}
|
|
27211
27213
|
else if (marker === INT_64) {
|
|
27212
27214
|
var high = buffer.readInt32();
|
|
27213
27215
|
var low = buffer.readInt32();
|
|
27214
|
-
return new neo4j_driver_core_1$
|
|
27216
|
+
return new neo4j_driver_core_1$y.Integer(low, high);
|
|
27215
27217
|
}
|
|
27216
27218
|
else {
|
|
27217
27219
|
return null;
|
|
@@ -27354,7 +27356,7 @@
|
|
|
27354
27356
|
* See the License for the specific language governing permissions and
|
|
27355
27357
|
* limitations under the License.
|
|
27356
27358
|
*/
|
|
27357
|
-
var __extends$
|
|
27359
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27358
27360
|
var extendStatics = function (d, b) {
|
|
27359
27361
|
extendStatics = Object.setPrototypeOf ||
|
|
27360
27362
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27396,7 +27398,7 @@
|
|
|
27396
27398
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
27397
27399
|
var v1$1 = __importStar$4(packstreamV1);
|
|
27398
27400
|
var Packer = /** @class */ (function (_super) {
|
|
27399
|
-
__extends$
|
|
27401
|
+
__extends$l(Packer, _super);
|
|
27400
27402
|
function Packer() {
|
|
27401
27403
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27402
27404
|
}
|
|
@@ -27407,7 +27409,7 @@
|
|
|
27407
27409
|
}(v1$1.Packer));
|
|
27408
27410
|
packstreamV2.Packer = Packer;
|
|
27409
27411
|
var Unpacker = /** @class */ (function (_super) {
|
|
27410
|
-
__extends$
|
|
27412
|
+
__extends$l(Unpacker, _super);
|
|
27411
27413
|
/**
|
|
27412
27414
|
* @constructor
|
|
27413
27415
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -27491,8 +27493,8 @@
|
|
|
27491
27493
|
*/
|
|
27492
27494
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
27493
27495
|
requestMessage.SIGNATURES = void 0;
|
|
27494
|
-
var neo4j_driver_core_1$
|
|
27495
|
-
var _a$a = neo4j_driver_core_1$
|
|
27496
|
+
var neo4j_driver_core_1$x = lib$1;
|
|
27497
|
+
var _a$a = neo4j_driver_core_1$x.internal.constants, ACCESS_MODE_READ = _a$a.ACCESS_MODE_READ, FETCH_ALL$4 = _a$a.FETCH_ALL, assertString = neo4j_driver_core_1$x.internal.util.assertString;
|
|
27496
27498
|
/* eslint-disable no-unused-vars */
|
|
27497
27499
|
// Signature bytes for each request message type
|
|
27498
27500
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -27553,7 +27555,7 @@
|
|
|
27553
27555
|
* @return {RequestMessage} new RUN message.
|
|
27554
27556
|
*/
|
|
27555
27557
|
RequestMessage.run = function (query, parameters) {
|
|
27556
|
-
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
27558
|
+
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters)); });
|
|
27557
27559
|
};
|
|
27558
27560
|
/**
|
|
27559
27561
|
* Get a PULL_ALL message.
|
|
@@ -27617,7 +27619,7 @@
|
|
|
27617
27619
|
if (routing) {
|
|
27618
27620
|
metadata.routing = routing;
|
|
27619
27621
|
}
|
|
27620
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
27622
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27621
27623
|
};
|
|
27622
27624
|
/**
|
|
27623
27625
|
* Create a new HELLO message.
|
|
@@ -27646,7 +27648,7 @@
|
|
|
27646
27648
|
if (routing) {
|
|
27647
27649
|
metadata.routing = routing;
|
|
27648
27650
|
}
|
|
27649
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
27651
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27650
27652
|
};
|
|
27651
27653
|
/**
|
|
27652
27654
|
* Create a new HELLO message.
|
|
@@ -27675,7 +27677,7 @@
|
|
|
27675
27677
|
if (routing) {
|
|
27676
27678
|
metadata.routing = routing;
|
|
27677
27679
|
}
|
|
27678
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
27680
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27679
27681
|
};
|
|
27680
27682
|
/**
|
|
27681
27683
|
* Create a new LOGON message.
|
|
@@ -27707,7 +27709,7 @@
|
|
|
27707
27709
|
RequestMessage.begin = function (_a) {
|
|
27708
27710
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
27709
27711
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
27710
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
27712
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27711
27713
|
};
|
|
27712
27714
|
/**
|
|
27713
27715
|
* Create a new BEGIN message.
|
|
@@ -27724,7 +27726,7 @@
|
|
|
27724
27726
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter, {
|
|
27725
27727
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
27726
27728
|
});
|
|
27727
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
27729
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27728
27730
|
};
|
|
27729
27731
|
/**
|
|
27730
27732
|
* Get a COMMIT message.
|
|
@@ -27757,7 +27759,7 @@
|
|
|
27757
27759
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
27758
27760
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
27759
27761
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
27760
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
27762
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
27761
27763
|
});
|
|
27762
27764
|
};
|
|
27763
27765
|
/**
|
|
@@ -27779,7 +27781,7 @@
|
|
|
27779
27781
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
27780
27782
|
});
|
|
27781
27783
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
27782
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
27784
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
27783
27785
|
});
|
|
27784
27786
|
};
|
|
27785
27787
|
/**
|
|
@@ -27798,7 +27800,7 @@
|
|
|
27798
27800
|
RequestMessage.pull = function (_a) {
|
|
27799
27801
|
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$4 : _d;
|
|
27800
27802
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
27801
|
-
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$
|
|
27803
|
+
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27802
27804
|
};
|
|
27803
27805
|
/**
|
|
27804
27806
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -27809,11 +27811,11 @@
|
|
|
27809
27811
|
RequestMessage.discard = function (_a) {
|
|
27810
27812
|
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$4 : _d;
|
|
27811
27813
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
27812
|
-
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$
|
|
27814
|
+
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27813
27815
|
};
|
|
27814
27816
|
RequestMessage.telemetry = function (_a) {
|
|
27815
27817
|
var api = _a.api;
|
|
27816
|
-
var parsedApi = (0, neo4j_driver_core_1$
|
|
27818
|
+
var parsedApi = (0, neo4j_driver_core_1$x.int)(api);
|
|
27817
27819
|
return new RequestMessage(TELEMETRY, [parsedApi], function () { return "TELEMETRY ".concat(parsedApi.toString()); });
|
|
27818
27820
|
};
|
|
27819
27821
|
/**
|
|
@@ -27829,7 +27831,7 @@
|
|
|
27829
27831
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
27830
27832
|
if (databaseName === void 0) { databaseName = null; }
|
|
27831
27833
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
27832
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
27834
|
+
return "ROUTE ".concat(neo4j_driver_core_1$x.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$x.json.stringify(bookmarks), " ").concat(databaseName);
|
|
27833
27835
|
});
|
|
27834
27836
|
};
|
|
27835
27837
|
/**
|
|
@@ -27854,7 +27856,7 @@
|
|
|
27854
27856
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
27855
27857
|
}
|
|
27856
27858
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
27857
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
27859
|
+
return "ROUTE ".concat(neo4j_driver_core_1$x.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$x.json.stringify(bookmarks), " ").concat(neo4j_driver_core_1$x.json.stringify(dbContext));
|
|
27858
27860
|
});
|
|
27859
27861
|
};
|
|
27860
27862
|
return RequestMessage;
|
|
@@ -27905,9 +27907,9 @@
|
|
|
27905
27907
|
* @returns {Object} a metadata object.
|
|
27906
27908
|
*/
|
|
27907
27909
|
function buildStreamMetadata(stmtId, n) {
|
|
27908
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
27910
|
+
var metadata = { n: (0, neo4j_driver_core_1$x.int)(n) };
|
|
27909
27911
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
27910
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
27912
|
+
metadata.qid = (0, neo4j_driver_core_1$x.int)(stmtId);
|
|
27911
27913
|
}
|
|
27912
27914
|
return metadata;
|
|
27913
27915
|
}
|
|
@@ -27967,8 +27969,8 @@
|
|
|
27967
27969
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
27968
27970
|
transformer.TypeTransformer = void 0;
|
|
27969
27971
|
var packstream_1$6 = packstream;
|
|
27970
|
-
var neo4j_driver_core_1$
|
|
27971
|
-
var objectUtil = neo4j_driver_core_1$
|
|
27972
|
+
var neo4j_driver_core_1$w = lib$1;
|
|
27973
|
+
var objectUtil = neo4j_driver_core_1$w.internal.objectUtil;
|
|
27972
27974
|
/**
|
|
27973
27975
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
27974
27976
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -28111,10 +28113,10 @@
|
|
|
28111
28113
|
return ar;
|
|
28112
28114
|
};
|
|
28113
28115
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
28114
|
-
var neo4j_driver_core_1$
|
|
28116
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
28115
28117
|
var packstream_1$5 = packstream;
|
|
28116
|
-
var transformer_1$
|
|
28117
|
-
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$
|
|
28118
|
+
var transformer_1$g = transformer;
|
|
28119
|
+
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
|
|
28118
28120
|
var NODE = 0x4e;
|
|
28119
28121
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
28120
28122
|
var RELATIONSHIP = 0x52;
|
|
@@ -28128,16 +28130,16 @@
|
|
|
28128
28130
|
* @returns {TypeTransformer}
|
|
28129
28131
|
*/
|
|
28130
28132
|
function createNodeTransformer$1() {
|
|
28131
|
-
return new transformer_1$
|
|
28133
|
+
return new transformer_1$g.TypeTransformer({
|
|
28132
28134
|
signature: NODE,
|
|
28133
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28135
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Node; },
|
|
28134
28136
|
toStructure: function (object) {
|
|
28135
|
-
throw (0, neo4j_driver_core_1$
|
|
28137
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28136
28138
|
},
|
|
28137
28139
|
fromStructure: function (struct) {
|
|
28138
28140
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
28139
28141
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
28140
|
-
return new neo4j_driver_core_1$
|
|
28142
|
+
return new neo4j_driver_core_1$v.Node(identity, labels, properties);
|
|
28141
28143
|
}
|
|
28142
28144
|
});
|
|
28143
28145
|
}
|
|
@@ -28146,16 +28148,16 @@
|
|
|
28146
28148
|
* @returns {TypeTransformer}
|
|
28147
28149
|
*/
|
|
28148
28150
|
function createRelationshipTransformer$1() {
|
|
28149
|
-
return new transformer_1$
|
|
28151
|
+
return new transformer_1$g.TypeTransformer({
|
|
28150
28152
|
signature: RELATIONSHIP,
|
|
28151
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28153
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Relationship; },
|
|
28152
28154
|
toStructure: function (object) {
|
|
28153
|
-
throw (0, neo4j_driver_core_1$
|
|
28155
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28154
28156
|
},
|
|
28155
28157
|
fromStructure: function (struct) {
|
|
28156
28158
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28157
28159
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
28158
|
-
return new neo4j_driver_core_1$
|
|
28160
|
+
return new neo4j_driver_core_1$v.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
28159
28161
|
}
|
|
28160
28162
|
});
|
|
28161
28163
|
}
|
|
@@ -28164,16 +28166,16 @@
|
|
|
28164
28166
|
* @returns {TypeTransformer}
|
|
28165
28167
|
*/
|
|
28166
28168
|
function createUnboundRelationshipTransformer$1() {
|
|
28167
|
-
return new transformer_1$
|
|
28169
|
+
return new transformer_1$g.TypeTransformer({
|
|
28168
28170
|
signature: UNBOUND_RELATIONSHIP,
|
|
28169
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28171
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.UnboundRelationship; },
|
|
28170
28172
|
toStructure: function (object) {
|
|
28171
|
-
throw (0, neo4j_driver_core_1$
|
|
28173
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28172
28174
|
},
|
|
28173
28175
|
fromStructure: function (struct) {
|
|
28174
28176
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28175
28177
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
28176
|
-
return new neo4j_driver_core_1$
|
|
28178
|
+
return new neo4j_driver_core_1$v.UnboundRelationship(identity, type, properties);
|
|
28177
28179
|
}
|
|
28178
28180
|
});
|
|
28179
28181
|
}
|
|
@@ -28182,11 +28184,11 @@
|
|
|
28182
28184
|
* @returns {TypeTransformer}
|
|
28183
28185
|
*/
|
|
28184
28186
|
function createPathTransformer() {
|
|
28185
|
-
return new transformer_1$
|
|
28187
|
+
return new transformer_1$g.TypeTransformer({
|
|
28186
28188
|
signature: PATH,
|
|
28187
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28189
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Path; },
|
|
28188
28190
|
toStructure: function (object) {
|
|
28189
|
-
throw (0, neo4j_driver_core_1$
|
|
28191
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28190
28192
|
},
|
|
28191
28193
|
fromStructure: function (struct) {
|
|
28192
28194
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -28195,11 +28197,11 @@
|
|
|
28195
28197
|
var prevNode = nodes[0];
|
|
28196
28198
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
28197
28199
|
var nextNode = nodes[sequence[i + 1]];
|
|
28198
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
28200
|
+
var relIndex = (0, neo4j_driver_core_1$v.toNumber)(sequence[i]);
|
|
28199
28201
|
var rel = void 0;
|
|
28200
28202
|
if (relIndex > 0) {
|
|
28201
28203
|
rel = rels[relIndex - 1];
|
|
28202
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
28204
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28203
28205
|
// To avoid duplication, relationships in a path do not contain
|
|
28204
28206
|
// information about their start and end nodes, that's instead
|
|
28205
28207
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -28209,16 +28211,16 @@
|
|
|
28209
28211
|
}
|
|
28210
28212
|
else {
|
|
28211
28213
|
rel = rels[-relIndex - 1];
|
|
28212
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
28214
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28213
28215
|
// See above
|
|
28214
28216
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
28215
28217
|
}
|
|
28216
28218
|
}
|
|
28217
28219
|
// Done hydrating one path segment.
|
|
28218
|
-
segments.push(new neo4j_driver_core_1$
|
|
28220
|
+
segments.push(new neo4j_driver_core_1$v.PathSegment(prevNode, rel, nextNode));
|
|
28219
28221
|
prevNode = nextNode;
|
|
28220
28222
|
}
|
|
28221
|
-
return new neo4j_driver_core_1$
|
|
28223
|
+
return new neo4j_driver_core_1$v.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
28222
28224
|
}
|
|
28223
28225
|
});
|
|
28224
28226
|
}
|
|
@@ -28252,7 +28254,7 @@
|
|
|
28252
28254
|
__setModuleDefault$2(result, mod);
|
|
28253
28255
|
return result;
|
|
28254
28256
|
};
|
|
28255
|
-
var __importDefault$
|
|
28257
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28256
28258
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28257
28259
|
};
|
|
28258
28260
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -28276,11 +28278,11 @@
|
|
|
28276
28278
|
var packstream_1$4 = packstream;
|
|
28277
28279
|
var request_message_1$b = __importStar$2(requestMessage);
|
|
28278
28280
|
var stream_observers_1$b = streamObservers;
|
|
28279
|
-
var neo4j_driver_core_1$
|
|
28280
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
28281
|
-
var transformer_1$
|
|
28282
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
28283
|
-
var BoltProtocol$
|
|
28281
|
+
var neo4j_driver_core_1$u = lib$1;
|
|
28282
|
+
var bolt_protocol_v1_transformer_1$1 = __importDefault$B(boltProtocolV1_transformer);
|
|
28283
|
+
var transformer_1$f = __importDefault$B(transformer);
|
|
28284
|
+
var Bookmarks$3 = neo4j_driver_core_1$u.internal.bookmarks.Bookmarks, _a$9 = neo4j_driver_core_1$u.internal.constants, ACCESS_MODE_WRITE = _a$9.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a$9.BOLT_PROTOCOL_V1; neo4j_driver_core_1$u.internal.logger.Logger; var TxConfig$2 = neo4j_driver_core_1$u.internal.txConfig.TxConfig;
|
|
28285
|
+
var BoltProtocol$e = /** @class */ (function () {
|
|
28284
28286
|
/**
|
|
28285
28287
|
* @callback CreateResponseHandler Creates the response handler
|
|
28286
28288
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -28319,7 +28321,7 @@
|
|
|
28319
28321
|
get: function () {
|
|
28320
28322
|
var _this = this;
|
|
28321
28323
|
if (this._transformer === undefined) {
|
|
28322
|
-
this._transformer = new transformer_1$
|
|
28324
|
+
this._transformer = new transformer_1$f.default(Object.values(bolt_protocol_v1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
28323
28325
|
}
|
|
28324
28326
|
return this._transformer;
|
|
28325
28327
|
},
|
|
@@ -28443,7 +28445,7 @@
|
|
|
28443
28445
|
onError: onError
|
|
28444
28446
|
});
|
|
28445
28447
|
// TODO: Verify the Neo4j version in the message
|
|
28446
|
-
var error = (0, neo4j_driver_core_1$
|
|
28448
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logoff. ' +
|
|
28447
28449
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
28448
28450
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
28449
28451
|
this._onProtocolError(error.message);
|
|
@@ -28469,7 +28471,7 @@
|
|
|
28469
28471
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
28470
28472
|
});
|
|
28471
28473
|
// TODO: Verify the Neo4j version in the message
|
|
28472
|
-
var error = (0, neo4j_driver_core_1$
|
|
28474
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logon. ' +
|
|
28473
28475
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
28474
28476
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
28475
28477
|
this._onProtocolError(error.message);
|
|
@@ -28760,7 +28762,7 @@
|
|
|
28760
28762
|
};
|
|
28761
28763
|
return BoltProtocol;
|
|
28762
28764
|
}());
|
|
28763
|
-
boltProtocolV1.default = BoltProtocol$
|
|
28765
|
+
boltProtocolV1.default = BoltProtocol$e;
|
|
28764
28766
|
|
|
28765
28767
|
var boltProtocolV2 = {};
|
|
28766
28768
|
|
|
@@ -28786,17 +28788,17 @@
|
|
|
28786
28788
|
* See the License for the specific language governing permissions and
|
|
28787
28789
|
* limitations under the License.
|
|
28788
28790
|
*/
|
|
28789
|
-
var neo4j_driver_core_1$
|
|
28790
|
-
var _a$8 = neo4j_driver_core_1$
|
|
28791
|
+
var neo4j_driver_core_1$t = lib$1;
|
|
28792
|
+
var _a$8 = neo4j_driver_core_1$t.internal.temporalUtil, DAYS_0000_TO_1970 = _a$8.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a$8.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a$8.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a$8.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a$8.NANOS_PER_SECOND, SECONDS_PER_DAY = _a$8.SECONDS_PER_DAY, floorDiv = _a$8.floorDiv, floorMod = _a$8.floorMod;
|
|
28791
28793
|
/**
|
|
28792
28794
|
* Converts given epoch day to a local date.
|
|
28793
28795
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
28794
28796
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
28795
28797
|
*/
|
|
28796
28798
|
function epochDayToDate(epochDay) {
|
|
28797
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
28799
|
+
epochDay = (0, neo4j_driver_core_1$t.int)(epochDay);
|
|
28798
28800
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
28799
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
28801
|
+
var adjust = (0, neo4j_driver_core_1$t.int)(0);
|
|
28800
28802
|
if (zeroDay.lessThan(0)) {
|
|
28801
28803
|
var adjustCycles = zeroDay
|
|
28802
28804
|
.add(1)
|
|
@@ -28839,7 +28841,7 @@
|
|
|
28839
28841
|
.div(10))
|
|
28840
28842
|
.add(1);
|
|
28841
28843
|
year = year.add(marchMonth.div(10));
|
|
28842
|
-
return new neo4j_driver_core_1$
|
|
28844
|
+
return new neo4j_driver_core_1$t.Date(year, month, day);
|
|
28843
28845
|
}
|
|
28844
28846
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
28845
28847
|
/**
|
|
@@ -28848,14 +28850,14 @@
|
|
|
28848
28850
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
28849
28851
|
*/
|
|
28850
28852
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
28851
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
28853
|
+
nanoOfDay = (0, neo4j_driver_core_1$t.int)(nanoOfDay);
|
|
28852
28854
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
28853
28855
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
28854
28856
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
28855
28857
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
28856
28858
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
28857
28859
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
28858
|
-
return new neo4j_driver_core_1$
|
|
28860
|
+
return new neo4j_driver_core_1$t.LocalTime(hour, minute, second, nanosecond);
|
|
28859
28861
|
}
|
|
28860
28862
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
28861
28863
|
/**
|
|
@@ -28870,7 +28872,7 @@
|
|
|
28870
28872
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
28871
28873
|
var localDate = epochDayToDate(epochDay);
|
|
28872
28874
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
28873
|
-
return new neo4j_driver_core_1$
|
|
28875
|
+
return new neo4j_driver_core_1$t.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
28874
28876
|
}
|
|
28875
28877
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
28876
28878
|
|
|
@@ -28890,8 +28892,8 @@
|
|
|
28890
28892
|
* See the License for the specific language governing permissions and
|
|
28891
28893
|
* limitations under the License.
|
|
28892
28894
|
*/
|
|
28893
|
-
var __assign$
|
|
28894
|
-
__assign$
|
|
28895
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28896
|
+
__assign$m = Object.assign || function(t) {
|
|
28895
28897
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28896
28898
|
s = arguments[i];
|
|
28897
28899
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28899,7 +28901,7 @@
|
|
|
28899
28901
|
}
|
|
28900
28902
|
return t;
|
|
28901
28903
|
};
|
|
28902
|
-
return __assign$
|
|
28904
|
+
return __assign$m.apply(this, arguments);
|
|
28903
28905
|
};
|
|
28904
28906
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
28905
28907
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -28917,16 +28919,16 @@
|
|
|
28917
28919
|
}
|
|
28918
28920
|
return ar;
|
|
28919
28921
|
};
|
|
28920
|
-
var __importDefault$
|
|
28922
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28921
28923
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28922
28924
|
};
|
|
28923
28925
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
28924
|
-
var neo4j_driver_core_1$
|
|
28926
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
28925
28927
|
var packstream_1$3 = packstream;
|
|
28926
|
-
var transformer_1$
|
|
28928
|
+
var transformer_1$e = transformer;
|
|
28927
28929
|
var temporal_factory_1$1 = temporalFactory;
|
|
28928
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
28929
|
-
var _a$7 = neo4j_driver_core_1$
|
|
28930
|
+
var bolt_protocol_v1_transformer_1 = __importDefault$A(boltProtocolV1_transformer);
|
|
28931
|
+
var _a$7 = neo4j_driver_core_1$s.internal.temporalUtil, dateToEpochDay = _a$7.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$7.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$7.localTimeToNanoOfDay;
|
|
28930
28932
|
var POINT_2D = 0x58;
|
|
28931
28933
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
28932
28934
|
var POINT_3D = 0x59;
|
|
@@ -28950,18 +28952,18 @@
|
|
|
28950
28952
|
* @returns {TypeTransformer}
|
|
28951
28953
|
*/
|
|
28952
28954
|
function createPoint2DTransformer() {
|
|
28953
|
-
return new transformer_1$
|
|
28955
|
+
return new transformer_1$e.TypeTransformer({
|
|
28954
28956
|
signature: POINT_2D,
|
|
28955
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
28957
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && (point.z === null || point.z === undefined); },
|
|
28956
28958
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
28957
|
-
(0, neo4j_driver_core_1$
|
|
28959
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
28958
28960
|
point.x,
|
|
28959
28961
|
point.y
|
|
28960
28962
|
]); },
|
|
28961
28963
|
fromStructure: function (struct) {
|
|
28962
28964
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
28963
28965
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
28964
|
-
return new neo4j_driver_core_1$
|
|
28966
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, undefined // z
|
|
28965
28967
|
);
|
|
28966
28968
|
}
|
|
28967
28969
|
});
|
|
@@ -28971,11 +28973,11 @@
|
|
|
28971
28973
|
* @returns {TypeTransformer}
|
|
28972
28974
|
*/
|
|
28973
28975
|
function createPoint3DTransformer() {
|
|
28974
|
-
return new transformer_1$
|
|
28976
|
+
return new transformer_1$e.TypeTransformer({
|
|
28975
28977
|
signature: POINT_3D,
|
|
28976
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
28978
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && point.z !== null && point.z !== undefined; },
|
|
28977
28979
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
28978
|
-
(0, neo4j_driver_core_1$
|
|
28980
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
28979
28981
|
point.x,
|
|
28980
28982
|
point.y,
|
|
28981
28983
|
point.z
|
|
@@ -28983,7 +28985,7 @@
|
|
|
28983
28985
|
fromStructure: function (struct) {
|
|
28984
28986
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
28985
28987
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
28986
|
-
return new neo4j_driver_core_1$
|
|
28988
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, z);
|
|
28987
28989
|
}
|
|
28988
28990
|
});
|
|
28989
28991
|
}
|
|
@@ -28992,20 +28994,20 @@
|
|
|
28992
28994
|
* @returns {TypeTransformer}
|
|
28993
28995
|
*/
|
|
28994
28996
|
function createDurationTransformer() {
|
|
28995
|
-
return new transformer_1$
|
|
28997
|
+
return new transformer_1$e.TypeTransformer({
|
|
28996
28998
|
signature: DURATION,
|
|
28997
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
28999
|
+
isTypeInstance: neo4j_driver_core_1$s.isDuration,
|
|
28998
29000
|
toStructure: function (value) {
|
|
28999
|
-
var months = (0, neo4j_driver_core_1$
|
|
29000
|
-
var days = (0, neo4j_driver_core_1$
|
|
29001
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
29002
|
-
var nanoseconds = (0, neo4j_driver_core_1$
|
|
29001
|
+
var months = (0, neo4j_driver_core_1$s.int)(value.months);
|
|
29002
|
+
var days = (0, neo4j_driver_core_1$s.int)(value.days);
|
|
29003
|
+
var seconds = (0, neo4j_driver_core_1$s.int)(value.seconds);
|
|
29004
|
+
var nanoseconds = (0, neo4j_driver_core_1$s.int)(value.nanoseconds);
|
|
29003
29005
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
29004
29006
|
},
|
|
29005
29007
|
fromStructure: function (struct) {
|
|
29006
29008
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
29007
29009
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
29008
|
-
return new neo4j_driver_core_1$
|
|
29010
|
+
return new neo4j_driver_core_1$s.Duration(months, days, seconds, nanoseconds);
|
|
29009
29011
|
}
|
|
29010
29012
|
});
|
|
29011
29013
|
}
|
|
@@ -29018,9 +29020,9 @@
|
|
|
29018
29020
|
*/
|
|
29019
29021
|
function createLocalTimeTransformer(_a) {
|
|
29020
29022
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29021
|
-
return new transformer_1$
|
|
29023
|
+
return new transformer_1$e.TypeTransformer({
|
|
29022
29024
|
signature: LOCAL_TIME,
|
|
29023
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29025
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalTime,
|
|
29024
29026
|
toStructure: function (value) {
|
|
29025
29027
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29026
29028
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -29042,19 +29044,19 @@
|
|
|
29042
29044
|
*/
|
|
29043
29045
|
function createTimeTransformer(_a) {
|
|
29044
29046
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29045
|
-
return new transformer_1$
|
|
29047
|
+
return new transformer_1$e.TypeTransformer({
|
|
29046
29048
|
signature: TIME,
|
|
29047
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29049
|
+
isTypeInstance: neo4j_driver_core_1$s.isTime,
|
|
29048
29050
|
toStructure: function (value) {
|
|
29049
29051
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29050
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
29052
|
+
var offsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29051
29053
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
29052
29054
|
},
|
|
29053
29055
|
fromStructure: function (struct) {
|
|
29054
29056
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
29055
29057
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
29056
29058
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
29057
|
-
var result = new neo4j_driver_core_1$
|
|
29059
|
+
var result = new neo4j_driver_core_1$s.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
|
|
29058
29060
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29059
29061
|
}
|
|
29060
29062
|
});
|
|
@@ -29068,9 +29070,9 @@
|
|
|
29068
29070
|
*/
|
|
29069
29071
|
function createDateTransformer(_a) {
|
|
29070
29072
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29071
|
-
return new transformer_1$
|
|
29073
|
+
return new transformer_1$e.TypeTransformer({
|
|
29072
29074
|
signature: DATE,
|
|
29073
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29075
|
+
isTypeInstance: neo4j_driver_core_1$s.isDate,
|
|
29074
29076
|
toStructure: function (value) {
|
|
29075
29077
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
29076
29078
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -29092,12 +29094,12 @@
|
|
|
29092
29094
|
*/
|
|
29093
29095
|
function createLocalDateTimeTransformer(_a) {
|
|
29094
29096
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29095
|
-
return new transformer_1$
|
|
29097
|
+
return new transformer_1$e.TypeTransformer({
|
|
29096
29098
|
signature: LOCAL_DATE_TIME,
|
|
29097
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29099
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalDateTime,
|
|
29098
29100
|
toStructure: function (value) {
|
|
29099
29101
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29100
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29102
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29101
29103
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
29102
29104
|
},
|
|
29103
29105
|
fromStructure: function (struct) {
|
|
@@ -29117,12 +29119,12 @@
|
|
|
29117
29119
|
*/
|
|
29118
29120
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
29119
29121
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29120
|
-
return new transformer_1$
|
|
29122
|
+
return new transformer_1$e.TypeTransformer({
|
|
29121
29123
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
29122
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
29124
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId != null; },
|
|
29123
29125
|
toStructure: function (value) {
|
|
29124
29126
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29125
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29127
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29126
29128
|
var timeZoneId = value.timeZoneId;
|
|
29127
29129
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
29128
29130
|
},
|
|
@@ -29130,7 +29132,7 @@
|
|
|
29130
29132
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
29131
29133
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
29132
29134
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29133
|
-
var result = new neo4j_driver_core_1$
|
|
29135
|
+
var result = new neo4j_driver_core_1$s.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);
|
|
29134
29136
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29135
29137
|
}
|
|
29136
29138
|
});
|
|
@@ -29144,20 +29146,20 @@
|
|
|
29144
29146
|
*/
|
|
29145
29147
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
29146
29148
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29147
|
-
return new transformer_1$
|
|
29149
|
+
return new transformer_1$e.TypeTransformer({
|
|
29148
29150
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
29149
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
29151
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId == null; },
|
|
29150
29152
|
toStructure: function (value) {
|
|
29151
29153
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29152
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29153
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
29154
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29155
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29154
29156
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
29155
29157
|
},
|
|
29156
29158
|
fromStructure: function (struct) {
|
|
29157
29159
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
29158
29160
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
29159
29161
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29160
|
-
var result = new neo4j_driver_core_1$
|
|
29162
|
+
var result = new neo4j_driver_core_1$s.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
|
|
29161
29163
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29162
29164
|
}
|
|
29163
29165
|
});
|
|
@@ -29173,15 +29175,15 @@
|
|
|
29173
29175
|
for (var prop in obj) {
|
|
29174
29176
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
29175
29177
|
var value = obj[prop];
|
|
29176
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
29178
|
+
clone[prop] = (0, neo4j_driver_core_1$s.isInt)(value) ? convert(value) : value;
|
|
29177
29179
|
}
|
|
29178
29180
|
}
|
|
29179
29181
|
Object.freeze(clone);
|
|
29180
29182
|
return clone;
|
|
29181
29183
|
}
|
|
29182
|
-
boltProtocolV2_transformer.default = __assign$
|
|
29184
|
+
boltProtocolV2_transformer.default = __assign$m(__assign$m({}, 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 });
|
|
29183
29185
|
|
|
29184
|
-
var __extends$
|
|
29186
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29185
29187
|
var extendStatics = function (d, b) {
|
|
29186
29188
|
extendStatics = Object.setPrototypeOf ||
|
|
29187
29189
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29196,7 +29198,7 @@
|
|
|
29196
29198
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29197
29199
|
};
|
|
29198
29200
|
})();
|
|
29199
|
-
var __importDefault$
|
|
29201
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29200
29202
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29201
29203
|
};
|
|
29202
29204
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -29216,14 +29218,14 @@
|
|
|
29216
29218
|
* See the License for the specific language governing permissions and
|
|
29217
29219
|
* limitations under the License.
|
|
29218
29220
|
*/
|
|
29219
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
29220
|
-
var packstream_1$2 = __importDefault$
|
|
29221
|
-
var neo4j_driver_core_1$
|
|
29222
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
29223
|
-
var transformer_1$
|
|
29224
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
29225
|
-
var BoltProtocol$
|
|
29226
|
-
__extends$
|
|
29221
|
+
var bolt_protocol_v1_1$1 = __importDefault$z(boltProtocolV1);
|
|
29222
|
+
var packstream_1$2 = __importDefault$z(packstream);
|
|
29223
|
+
var neo4j_driver_core_1$r = lib$1;
|
|
29224
|
+
var bolt_protocol_v2_transformer_1$1 = __importDefault$z(boltProtocolV2_transformer);
|
|
29225
|
+
var transformer_1$d = __importDefault$z(transformer);
|
|
29226
|
+
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$r.internal.constants.BOLT_PROTOCOL_V2;
|
|
29227
|
+
var BoltProtocol$d = /** @class */ (function (_super) {
|
|
29228
|
+
__extends$k(BoltProtocol, _super);
|
|
29227
29229
|
function BoltProtocol() {
|
|
29228
29230
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29229
29231
|
}
|
|
@@ -29237,7 +29239,7 @@
|
|
|
29237
29239
|
get: function () {
|
|
29238
29240
|
var _this = this;
|
|
29239
29241
|
if (this._transformer === undefined) {
|
|
29240
|
-
this._transformer = new transformer_1$
|
|
29242
|
+
this._transformer = new transformer_1$d.default(Object.values(bolt_protocol_v2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29241
29243
|
}
|
|
29242
29244
|
return this._transformer;
|
|
29243
29245
|
},
|
|
@@ -29253,7 +29255,7 @@
|
|
|
29253
29255
|
});
|
|
29254
29256
|
return BoltProtocol;
|
|
29255
29257
|
}(bolt_protocol_v1_1$1.default));
|
|
29256
|
-
boltProtocolV2.default = BoltProtocol$
|
|
29258
|
+
boltProtocolV2.default = BoltProtocol$d;
|
|
29257
29259
|
|
|
29258
29260
|
var boltProtocolV3 = {};
|
|
29259
29261
|
|
|
@@ -29275,8 +29277,8 @@
|
|
|
29275
29277
|
* See the License for the specific language governing permissions and
|
|
29276
29278
|
* limitations under the License.
|
|
29277
29279
|
*/
|
|
29278
|
-
var __assign$
|
|
29279
|
-
__assign$
|
|
29280
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29281
|
+
__assign$l = Object.assign || function(t) {
|
|
29280
29282
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29281
29283
|
s = arguments[i];
|
|
29282
29284
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29284,16 +29286,16 @@
|
|
|
29284
29286
|
}
|
|
29285
29287
|
return t;
|
|
29286
29288
|
};
|
|
29287
|
-
return __assign$
|
|
29289
|
+
return __assign$l.apply(this, arguments);
|
|
29288
29290
|
};
|
|
29289
|
-
var __importDefault$
|
|
29291
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29290
29292
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29291
29293
|
};
|
|
29292
29294
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
29293
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
29294
|
-
boltProtocolV3_transformer.default = __assign$
|
|
29295
|
+
var bolt_protocol_v2_transformer_1 = __importDefault$y(boltProtocolV2_transformer);
|
|
29296
|
+
boltProtocolV3_transformer.default = __assign$l({}, bolt_protocol_v2_transformer_1.default);
|
|
29295
29297
|
|
|
29296
|
-
var __extends$
|
|
29298
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29297
29299
|
var extendStatics = function (d, b) {
|
|
29298
29300
|
extendStatics = Object.setPrototypeOf ||
|
|
29299
29301
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29308,8 +29310,8 @@
|
|
|
29308
29310
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29309
29311
|
};
|
|
29310
29312
|
})();
|
|
29311
|
-
var __assign$
|
|
29312
|
-
__assign$
|
|
29313
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29314
|
+
__assign$k = Object.assign || function(t) {
|
|
29313
29315
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29314
29316
|
s = arguments[i];
|
|
29315
29317
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29317,9 +29319,9 @@
|
|
|
29317
29319
|
}
|
|
29318
29320
|
return t;
|
|
29319
29321
|
};
|
|
29320
|
-
return __assign$
|
|
29322
|
+
return __assign$k.apply(this, arguments);
|
|
29321
29323
|
};
|
|
29322
|
-
var __importDefault$
|
|
29324
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29323
29325
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29324
29326
|
};
|
|
29325
29327
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -29339,19 +29341,19 @@
|
|
|
29339
29341
|
* See the License for the specific language governing permissions and
|
|
29340
29342
|
* limitations under the License.
|
|
29341
29343
|
*/
|
|
29342
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
29343
|
-
var request_message_1$a = __importDefault$
|
|
29344
|
+
var bolt_protocol_v2_1$1 = __importDefault$x(boltProtocolV2);
|
|
29345
|
+
var request_message_1$a = __importDefault$x(requestMessage);
|
|
29344
29346
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
29345
29347
|
var stream_observers_1$a = streamObservers;
|
|
29346
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
29347
|
-
var transformer_1$
|
|
29348
|
-
var neo4j_driver_core_1$
|
|
29349
|
-
neo4j_driver_core_1$
|
|
29348
|
+
var bolt_protocol_v3_transformer_1$1 = __importDefault$x(boltProtocolV3_transformer);
|
|
29349
|
+
var transformer_1$c = __importDefault$x(transformer);
|
|
29350
|
+
var neo4j_driver_core_1$q = lib$1;
|
|
29351
|
+
neo4j_driver_core_1$q.internal.bookmarks.Bookmarks; var BOLT_PROTOCOL_V3$2 = neo4j_driver_core_1$q.internal.constants.BOLT_PROTOCOL_V3, TxConfig$1 = neo4j_driver_core_1$q.internal.txConfig.TxConfig;
|
|
29350
29352
|
var CONTEXT$1 = 'context';
|
|
29351
29353
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
29352
29354
|
var noOpObserver = new stream_observers_1$a.StreamObserver();
|
|
29353
|
-
var BoltProtocol$
|
|
29354
|
-
__extends$
|
|
29355
|
+
var BoltProtocol$c = /** @class */ (function (_super) {
|
|
29356
|
+
__extends$j(BoltProtocol, _super);
|
|
29355
29357
|
function BoltProtocol() {
|
|
29356
29358
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29357
29359
|
}
|
|
@@ -29366,7 +29368,7 @@
|
|
|
29366
29368
|
get: function () {
|
|
29367
29369
|
var _this = this;
|
|
29368
29370
|
if (this._transformer === undefined) {
|
|
29369
|
-
this._transformer = new transformer_1$
|
|
29371
|
+
this._transformer = new transformer_1$c.default(Object.values(bolt_protocol_v3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29370
29372
|
}
|
|
29371
29373
|
return this._transformer;
|
|
29372
29374
|
},
|
|
@@ -29493,7 +29495,7 @@
|
|
|
29493
29495
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
29494
29496
|
var _b;
|
|
29495
29497
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
29496
|
-
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$
|
|
29498
|
+
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$k(__assign$k({}, sessionContext), { txConfig: TxConfig$1.empty() }));
|
|
29497
29499
|
return new stream_observers_1$a.ProcedureRouteObserver({
|
|
29498
29500
|
resultObserver: resultObserver,
|
|
29499
29501
|
onProtocolError: this._onProtocolError,
|
|
@@ -29503,7 +29505,7 @@
|
|
|
29503
29505
|
};
|
|
29504
29506
|
return BoltProtocol;
|
|
29505
29507
|
}(bolt_protocol_v2_1$1.default));
|
|
29506
|
-
boltProtocolV3.default = BoltProtocol$
|
|
29508
|
+
boltProtocolV3.default = BoltProtocol$c;
|
|
29507
29509
|
|
|
29508
29510
|
var boltProtocolV4x0 = {};
|
|
29509
29511
|
|
|
@@ -29525,8 +29527,8 @@
|
|
|
29525
29527
|
* See the License for the specific language governing permissions and
|
|
29526
29528
|
* limitations under the License.
|
|
29527
29529
|
*/
|
|
29528
|
-
var __assign$
|
|
29529
|
-
__assign$
|
|
29530
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29531
|
+
__assign$j = Object.assign || function(t) {
|
|
29530
29532
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29531
29533
|
s = arguments[i];
|
|
29532
29534
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29534,16 +29536,16 @@
|
|
|
29534
29536
|
}
|
|
29535
29537
|
return t;
|
|
29536
29538
|
};
|
|
29537
|
-
return __assign$
|
|
29539
|
+
return __assign$j.apply(this, arguments);
|
|
29538
29540
|
};
|
|
29539
|
-
var __importDefault$
|
|
29541
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29540
29542
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29541
29543
|
};
|
|
29542
29544
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
29543
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
29544
|
-
boltProtocolV4x0_transformer.default = __assign$
|
|
29545
|
+
var bolt_protocol_v3_transformer_1 = __importDefault$w(boltProtocolV3_transformer);
|
|
29546
|
+
boltProtocolV4x0_transformer.default = __assign$j({}, bolt_protocol_v3_transformer_1.default);
|
|
29545
29547
|
|
|
29546
|
-
var __extends$
|
|
29548
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29547
29549
|
var extendStatics = function (d, b) {
|
|
29548
29550
|
extendStatics = Object.setPrototypeOf ||
|
|
29549
29551
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29558,8 +29560,8 @@
|
|
|
29558
29560
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29559
29561
|
};
|
|
29560
29562
|
})();
|
|
29561
|
-
var __assign$
|
|
29562
|
-
__assign$
|
|
29563
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29564
|
+
__assign$i = Object.assign || function(t) {
|
|
29563
29565
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29564
29566
|
s = arguments[i];
|
|
29565
29567
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29567,9 +29569,9 @@
|
|
|
29567
29569
|
}
|
|
29568
29570
|
return t;
|
|
29569
29571
|
};
|
|
29570
|
-
return __assign$
|
|
29572
|
+
return __assign$i.apply(this, arguments);
|
|
29571
29573
|
};
|
|
29572
|
-
var __importDefault$
|
|
29574
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29573
29575
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29574
29576
|
};
|
|
29575
29577
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -29589,19 +29591,19 @@
|
|
|
29589
29591
|
* See the License for the specific language governing permissions and
|
|
29590
29592
|
* limitations under the License.
|
|
29591
29593
|
*/
|
|
29592
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
29593
|
-
var request_message_1$9 = __importDefault$
|
|
29594
|
+
var bolt_protocol_v3_1$1 = __importDefault$v(boltProtocolV3);
|
|
29595
|
+
var request_message_1$9 = __importDefault$v(requestMessage);
|
|
29594
29596
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
29595
29597
|
var stream_observers_1$9 = streamObservers;
|
|
29596
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
29597
|
-
var transformer_1$
|
|
29598
|
-
var neo4j_driver_core_1$
|
|
29599
|
-
neo4j_driver_core_1$
|
|
29598
|
+
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$v(boltProtocolV4x0_transformer);
|
|
29599
|
+
var transformer_1$b = __importDefault$v(transformer);
|
|
29600
|
+
var neo4j_driver_core_1$p = lib$1;
|
|
29601
|
+
neo4j_driver_core_1$p.internal.bookmarks.Bookmarks; var _a$6 = neo4j_driver_core_1$p.internal.constants, BOLT_PROTOCOL_V4_0$2 = _a$6.BOLT_PROTOCOL_V4_0, FETCH_ALL$3 = _a$6.FETCH_ALL, TxConfig = neo4j_driver_core_1$p.internal.txConfig.TxConfig;
|
|
29600
29602
|
var CONTEXT = 'context';
|
|
29601
29603
|
var DATABASE = 'database';
|
|
29602
29604
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
29603
|
-
var BoltProtocol$
|
|
29604
|
-
__extends$
|
|
29605
|
+
var BoltProtocol$b = /** @class */ (function (_super) {
|
|
29606
|
+
__extends$i(BoltProtocol, _super);
|
|
29605
29607
|
function BoltProtocol() {
|
|
29606
29608
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29607
29609
|
}
|
|
@@ -29616,7 +29618,7 @@
|
|
|
29616
29618
|
get: function () {
|
|
29617
29619
|
var _this = this;
|
|
29618
29620
|
if (this._transformer === undefined) {
|
|
29619
|
-
this._transformer = new transformer_1$
|
|
29621
|
+
this._transformer = new transformer_1$b.default(Object.values(bolt_protocol_v4x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29620
29622
|
}
|
|
29621
29623
|
return this._transformer;
|
|
29622
29624
|
},
|
|
@@ -29701,7 +29703,7 @@
|
|
|
29701
29703
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
29702
29704
|
_b[CONTEXT] = routingContext,
|
|
29703
29705
|
_b[DATABASE] = databaseName,
|
|
29704
|
-
_b), __assign$
|
|
29706
|
+
_b), __assign$i(__assign$i({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
29705
29707
|
return new stream_observers_1$9.ProcedureRouteObserver({
|
|
29706
29708
|
resultObserver: resultObserver,
|
|
29707
29709
|
onProtocolError: this._onProtocolError,
|
|
@@ -29711,7 +29713,7 @@
|
|
|
29711
29713
|
};
|
|
29712
29714
|
return BoltProtocol;
|
|
29713
29715
|
}(bolt_protocol_v3_1$1.default));
|
|
29714
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
29716
|
+
boltProtocolV4x0.default = BoltProtocol$b;
|
|
29715
29717
|
|
|
29716
29718
|
var boltProtocolV4x1 = {};
|
|
29717
29719
|
|
|
@@ -29733,8 +29735,8 @@
|
|
|
29733
29735
|
* See the License for the specific language governing permissions and
|
|
29734
29736
|
* limitations under the License.
|
|
29735
29737
|
*/
|
|
29736
|
-
var __assign$
|
|
29737
|
-
__assign$
|
|
29738
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29739
|
+
__assign$h = Object.assign || function(t) {
|
|
29738
29740
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29739
29741
|
s = arguments[i];
|
|
29740
29742
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29742,16 +29744,16 @@
|
|
|
29742
29744
|
}
|
|
29743
29745
|
return t;
|
|
29744
29746
|
};
|
|
29745
|
-
return __assign$
|
|
29747
|
+
return __assign$h.apply(this, arguments);
|
|
29746
29748
|
};
|
|
29747
|
-
var __importDefault$
|
|
29749
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29748
29750
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29749
29751
|
};
|
|
29750
29752
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
29751
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
29752
|
-
boltProtocolV4x1_transformer.default = __assign$
|
|
29753
|
+
var bolt_protocol_v4x0_transformer_1 = __importDefault$u(boltProtocolV4x0_transformer);
|
|
29754
|
+
boltProtocolV4x1_transformer.default = __assign$h({}, bolt_protocol_v4x0_transformer_1.default);
|
|
29753
29755
|
|
|
29754
|
-
var __extends$
|
|
29756
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29755
29757
|
var extendStatics = function (d, b) {
|
|
29756
29758
|
extendStatics = Object.setPrototypeOf ||
|
|
29757
29759
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29766,7 +29768,7 @@
|
|
|
29766
29768
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29767
29769
|
};
|
|
29768
29770
|
})();
|
|
29769
|
-
var __importDefault$
|
|
29771
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29770
29772
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29771
29773
|
};
|
|
29772
29774
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -29786,16 +29788,16 @@
|
|
|
29786
29788
|
* See the License for the specific language governing permissions and
|
|
29787
29789
|
* limitations under the License.
|
|
29788
29790
|
*/
|
|
29789
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
29790
|
-
var request_message_1$8 = __importDefault$
|
|
29791
|
+
var bolt_protocol_v4x0_1$1 = __importDefault$t(boltProtocolV4x0);
|
|
29792
|
+
var request_message_1$8 = __importDefault$t(requestMessage);
|
|
29791
29793
|
var stream_observers_1$8 = streamObservers;
|
|
29792
|
-
var neo4j_driver_core_1$
|
|
29794
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
29793
29795
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
29794
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
29795
|
-
var transformer_1$
|
|
29796
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
29797
|
-
var BoltProtocol$
|
|
29798
|
-
__extends$
|
|
29796
|
+
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$t(boltProtocolV4x1_transformer);
|
|
29797
|
+
var transformer_1$a = __importDefault$t(transformer);
|
|
29798
|
+
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$o.internal.constants.BOLT_PROTOCOL_V4_1;
|
|
29799
|
+
var BoltProtocol$a = /** @class */ (function (_super) {
|
|
29800
|
+
__extends$h(BoltProtocol, _super);
|
|
29799
29801
|
/**
|
|
29800
29802
|
* @constructor
|
|
29801
29803
|
* @param {Object} server the server informatio.
|
|
@@ -29825,7 +29827,7 @@
|
|
|
29825
29827
|
get: function () {
|
|
29826
29828
|
var _this = this;
|
|
29827
29829
|
if (this._transformer === undefined) {
|
|
29828
|
-
this._transformer = new transformer_1$
|
|
29830
|
+
this._transformer = new transformer_1$a.default(Object.values(bolt_protocol_v4x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29829
29831
|
}
|
|
29830
29832
|
return this._transformer;
|
|
29831
29833
|
},
|
|
@@ -29846,7 +29848,7 @@
|
|
|
29846
29848
|
};
|
|
29847
29849
|
return BoltProtocol;
|
|
29848
29850
|
}(bolt_protocol_v4x0_1$1.default));
|
|
29849
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
29851
|
+
boltProtocolV4x1.default = BoltProtocol$a;
|
|
29850
29852
|
|
|
29851
29853
|
var boltProtocolV4x2 = {};
|
|
29852
29854
|
|
|
@@ -29868,8 +29870,8 @@
|
|
|
29868
29870
|
* See the License for the specific language governing permissions and
|
|
29869
29871
|
* limitations under the License.
|
|
29870
29872
|
*/
|
|
29871
|
-
var __assign$
|
|
29872
|
-
__assign$
|
|
29873
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29874
|
+
__assign$g = Object.assign || function(t) {
|
|
29873
29875
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29874
29876
|
s = arguments[i];
|
|
29875
29877
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29877,16 +29879,16 @@
|
|
|
29877
29879
|
}
|
|
29878
29880
|
return t;
|
|
29879
29881
|
};
|
|
29880
|
-
return __assign$
|
|
29882
|
+
return __assign$g.apply(this, arguments);
|
|
29881
29883
|
};
|
|
29882
|
-
var __importDefault$
|
|
29884
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29883
29885
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29884
29886
|
};
|
|
29885
29887
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
29886
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
29887
|
-
boltProtocolV4x2_transformer.default = __assign$
|
|
29888
|
+
var bolt_protocol_v4x1_transformer_1 = __importDefault$s(boltProtocolV4x1_transformer);
|
|
29889
|
+
boltProtocolV4x2_transformer.default = __assign$g({}, bolt_protocol_v4x1_transformer_1.default);
|
|
29888
29890
|
|
|
29889
|
-
var __extends$
|
|
29891
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29890
29892
|
var extendStatics = function (d, b) {
|
|
29891
29893
|
extendStatics = Object.setPrototypeOf ||
|
|
29892
29894
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29901,7 +29903,7 @@
|
|
|
29901
29903
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29902
29904
|
};
|
|
29903
29905
|
})();
|
|
29904
|
-
var __importDefault$
|
|
29906
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29905
29907
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29906
29908
|
};
|
|
29907
29909
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -29921,13 +29923,13 @@
|
|
|
29921
29923
|
* See the License for the specific language governing permissions and
|
|
29922
29924
|
* limitations under the License.
|
|
29923
29925
|
*/
|
|
29924
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
29925
|
-
var neo4j_driver_core_1$
|
|
29926
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
29927
|
-
var transformer_1$
|
|
29928
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
29929
|
-
var BoltProtocol$
|
|
29930
|
-
__extends$
|
|
29926
|
+
var bolt_protocol_v4x1_1$1 = __importDefault$r(boltProtocolV4x1);
|
|
29927
|
+
var neo4j_driver_core_1$n = lib$1;
|
|
29928
|
+
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$r(boltProtocolV4x2_transformer);
|
|
29929
|
+
var transformer_1$9 = __importDefault$r(transformer);
|
|
29930
|
+
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V4_2;
|
|
29931
|
+
var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
29932
|
+
__extends$g(BoltProtocol, _super);
|
|
29931
29933
|
function BoltProtocol() {
|
|
29932
29934
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29933
29935
|
}
|
|
@@ -29942,7 +29944,7 @@
|
|
|
29942
29944
|
get: function () {
|
|
29943
29945
|
var _this = this;
|
|
29944
29946
|
if (this._transformer === undefined) {
|
|
29945
|
-
this._transformer = new transformer_1$
|
|
29947
|
+
this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v4x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29946
29948
|
}
|
|
29947
29949
|
return this._transformer;
|
|
29948
29950
|
},
|
|
@@ -29951,7 +29953,7 @@
|
|
|
29951
29953
|
});
|
|
29952
29954
|
return BoltProtocol;
|
|
29953
29955
|
}(bolt_protocol_v4x1_1$1.default));
|
|
29954
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
29956
|
+
boltProtocolV4x2.default = BoltProtocol$9;
|
|
29955
29957
|
|
|
29956
29958
|
var boltProtocolV4x3 = {};
|
|
29957
29959
|
|
|
@@ -29973,8 +29975,8 @@
|
|
|
29973
29975
|
* See the License for the specific language governing permissions and
|
|
29974
29976
|
* limitations under the License.
|
|
29975
29977
|
*/
|
|
29976
|
-
var __assign$
|
|
29977
|
-
__assign$
|
|
29978
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29979
|
+
__assign$f = Object.assign || function(t) {
|
|
29978
29980
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29979
29981
|
s = arguments[i];
|
|
29980
29982
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29982,14 +29984,14 @@
|
|
|
29982
29984
|
}
|
|
29983
29985
|
return t;
|
|
29984
29986
|
};
|
|
29985
|
-
return __assign$
|
|
29987
|
+
return __assign$f.apply(this, arguments);
|
|
29986
29988
|
};
|
|
29987
|
-
var __importDefault$
|
|
29989
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29988
29990
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29989
29991
|
};
|
|
29990
29992
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
29991
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
29992
|
-
boltProtocolV4x3_transformer.default = __assign$
|
|
29993
|
+
var bolt_protocol_v4x2_transformer_1 = __importDefault$q(boltProtocolV4x2_transformer);
|
|
29994
|
+
boltProtocolV4x3_transformer.default = __assign$f({}, bolt_protocol_v4x2_transformer_1.default);
|
|
29993
29995
|
|
|
29994
29996
|
var boltProtocolV5x0_utc_transformer = {};
|
|
29995
29997
|
|
|
@@ -30011,8 +30013,8 @@
|
|
|
30011
30013
|
* See the License for the specific language governing permissions and
|
|
30012
30014
|
* limitations under the License.
|
|
30013
30015
|
*/
|
|
30014
|
-
var __assign$
|
|
30015
|
-
__assign$
|
|
30016
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30017
|
+
__assign$e = Object.assign || function(t) {
|
|
30016
30018
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30017
30019
|
s = arguments[i];
|
|
30018
30020
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30020,14 +30022,14 @@
|
|
|
30020
30022
|
}
|
|
30021
30023
|
return t;
|
|
30022
30024
|
};
|
|
30023
|
-
return __assign$
|
|
30025
|
+
return __assign$e.apply(this, arguments);
|
|
30024
30026
|
};
|
|
30025
|
-
var __importDefault$
|
|
30027
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30026
30028
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30027
30029
|
};
|
|
30028
30030
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
30029
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
30030
|
-
boltProtocolV4x4_transformer.default = __assign$
|
|
30031
|
+
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$p(boltProtocolV4x3_transformer);
|
|
30032
|
+
boltProtocolV4x4_transformer.default = __assign$e({}, bolt_protocol_v4x3_transformer_1$1.default);
|
|
30031
30033
|
|
|
30032
30034
|
/**
|
|
30033
30035
|
* Copyright (c) "Neo4j"
|
|
@@ -30061,16 +30063,16 @@
|
|
|
30061
30063
|
}
|
|
30062
30064
|
return ar;
|
|
30063
30065
|
};
|
|
30064
|
-
var __importDefault$
|
|
30066
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30065
30067
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30066
30068
|
};
|
|
30067
30069
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
30068
30070
|
var packstream_1$1 = packstream;
|
|
30069
|
-
var neo4j_driver_core_1$
|
|
30070
|
-
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$
|
|
30071
|
+
var neo4j_driver_core_1$m = lib$1;
|
|
30072
|
+
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$o(boltProtocolV4x4_transformer);
|
|
30071
30073
|
var temporal_factory_1 = temporalFactory;
|
|
30072
30074
|
var functional_1 = functional;
|
|
30073
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
30075
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$m.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
30074
30076
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
30075
30077
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
30076
30078
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -30084,7 +30086,7 @@
|
|
|
30084
30086
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
30085
30087
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
30086
30088
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
30087
|
-
var result = new neo4j_driver_core_1$
|
|
30089
|
+
var result = new neo4j_driver_core_1$m.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1$m.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);
|
|
30088
30090
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30089
30091
|
},
|
|
30090
30092
|
toStructure: function (value) {
|
|
@@ -30098,7 +30100,7 @@
|
|
|
30098
30100
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
30099
30101
|
}
|
|
30100
30102
|
var utc = epochSecond.subtract(offset);
|
|
30101
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30103
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30102
30104
|
var timeZoneId = value.timeZoneId;
|
|
30103
30105
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
30104
30106
|
}
|
|
@@ -30160,9 +30162,9 @@
|
|
|
30160
30162
|
}
|
|
30161
30163
|
function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
30162
30164
|
var formatter = getDateTimeFormatForZoneId(timeZoneId);
|
|
30163
|
-
var utc = (0, neo4j_driver_core_1$
|
|
30165
|
+
var utc = (0, neo4j_driver_core_1$m.int)(epochSecond)
|
|
30164
30166
|
.multiply(1000)
|
|
30165
|
-
.add((0, neo4j_driver_core_1$
|
|
30167
|
+
.add((0, neo4j_driver_core_1$m.int)(nano).div(1000000))
|
|
30166
30168
|
.toNumber();
|
|
30167
30169
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
30168
30170
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -30173,10 +30175,10 @@
|
|
|
30173
30175
|
: functional_1.identity;
|
|
30174
30176
|
}
|
|
30175
30177
|
else if (currentValue.type === 'hour') {
|
|
30176
|
-
obj.hour = (0, neo4j_driver_core_1$
|
|
30178
|
+
obj.hour = (0, neo4j_driver_core_1$m.int)(currentValue.value).modulo(24);
|
|
30177
30179
|
}
|
|
30178
30180
|
else if (currentValue.type !== 'literal') {
|
|
30179
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
30181
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$m.int)(currentValue.value);
|
|
30180
30182
|
}
|
|
30181
30183
|
return obj;
|
|
30182
30184
|
}, {});
|
|
@@ -30193,17 +30195,17 @@
|
|
|
30193
30195
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
30194
30196
|
toStructure: function (value) {
|
|
30195
30197
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
30196
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30197
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
30198
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30199
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$m.int)(value.timeZoneOffsetSeconds);
|
|
30198
30200
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
30199
30201
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
30200
30202
|
},
|
|
30201
30203
|
fromStructure: function (struct) {
|
|
30202
30204
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
30203
30205
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
30204
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
30206
|
+
var epochSecond = (0, neo4j_driver_core_1$m.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
30205
30207
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
30206
|
-
var result = new neo4j_driver_core_1$
|
|
30208
|
+
var result = new neo4j_driver_core_1$m.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
|
|
30207
30209
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30208
30210
|
}
|
|
30209
30211
|
});
|
|
@@ -30219,7 +30221,7 @@
|
|
|
30219
30221
|
for (var prop in obj) {
|
|
30220
30222
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
30221
30223
|
var value = obj[prop];
|
|
30222
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
30224
|
+
clone[prop] = (0, neo4j_driver_core_1$m.isInt)(value) ? convert(value) : value;
|
|
30223
30225
|
}
|
|
30224
30226
|
}
|
|
30225
30227
|
Object.freeze(clone);
|
|
@@ -30230,7 +30232,7 @@
|
|
|
30230
30232
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
30231
30233
|
};
|
|
30232
30234
|
|
|
30233
|
-
var __extends$
|
|
30235
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30234
30236
|
var extendStatics = function (d, b) {
|
|
30235
30237
|
extendStatics = Object.setPrototypeOf ||
|
|
30236
30238
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30245,8 +30247,8 @@
|
|
|
30245
30247
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30246
30248
|
};
|
|
30247
30249
|
})();
|
|
30248
|
-
var __assign$
|
|
30249
|
-
__assign$
|
|
30250
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30251
|
+
__assign$d = Object.assign || function(t) {
|
|
30250
30252
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30251
30253
|
s = arguments[i];
|
|
30252
30254
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30254,9 +30256,9 @@
|
|
|
30254
30256
|
}
|
|
30255
30257
|
return t;
|
|
30256
30258
|
};
|
|
30257
|
-
return __assign$
|
|
30259
|
+
return __assign$d.apply(this, arguments);
|
|
30258
30260
|
};
|
|
30259
|
-
var __importDefault$
|
|
30261
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30260
30262
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30261
30263
|
};
|
|
30262
30264
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -30276,17 +30278,17 @@
|
|
|
30276
30278
|
* See the License for the specific language governing permissions and
|
|
30277
30279
|
* limitations under the License.
|
|
30278
30280
|
*/
|
|
30279
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
30280
|
-
var request_message_1$7 = __importDefault$
|
|
30281
|
+
var bolt_protocol_v4x2_1$1 = __importDefault$n(boltProtocolV4x2);
|
|
30282
|
+
var request_message_1$7 = __importDefault$n(requestMessage);
|
|
30281
30283
|
var stream_observers_1$7 = streamObservers;
|
|
30282
30284
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
30283
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
30284
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
30285
|
-
var transformer_1$
|
|
30286
|
-
var neo4j_driver_core_1$
|
|
30287
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
30288
|
-
var BoltProtocol$
|
|
30289
|
-
__extends$
|
|
30285
|
+
var bolt_protocol_v4x3_transformer_1 = __importDefault$n(boltProtocolV4x3_transformer);
|
|
30286
|
+
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$n(boltProtocolV5x0_utc_transformer);
|
|
30287
|
+
var transformer_1$8 = __importDefault$n(transformer);
|
|
30288
|
+
var neo4j_driver_core_1$l = lib$1;
|
|
30289
|
+
var Bookmarks$2 = neo4j_driver_core_1$l.internal.bookmarks.Bookmarks, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1$l.internal.constants.BOLT_PROTOCOL_V4_3;
|
|
30290
|
+
var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
30291
|
+
__extends$f(BoltProtocol, _super);
|
|
30290
30292
|
function BoltProtocol() {
|
|
30291
30293
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30292
30294
|
}
|
|
@@ -30301,7 +30303,7 @@
|
|
|
30301
30303
|
get: function () {
|
|
30302
30304
|
var _this = this;
|
|
30303
30305
|
if (this._transformer === undefined) {
|
|
30304
|
-
this._transformer = new transformer_1$
|
|
30306
|
+
this._transformer = new transformer_1$8.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30305
30307
|
}
|
|
30306
30308
|
return this._transformer;
|
|
30307
30309
|
},
|
|
@@ -30370,15 +30372,15 @@
|
|
|
30370
30372
|
};
|
|
30371
30373
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
30372
30374
|
var _this = this;
|
|
30373
|
-
this._transformer = new transformer_1$
|
|
30375
|
+
this._transformer = new transformer_1$8.default(Object.values(__assign$d(__assign$d({}, bolt_protocol_v4x3_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1$2.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
30374
30376
|
};
|
|
30375
30377
|
return BoltProtocol;
|
|
30376
30378
|
}(bolt_protocol_v4x2_1$1.default));
|
|
30377
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
30379
|
+
boltProtocolV4x3.default = BoltProtocol$8;
|
|
30378
30380
|
|
|
30379
30381
|
var boltProtocolV4x4 = {};
|
|
30380
30382
|
|
|
30381
|
-
var __extends$
|
|
30383
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30382
30384
|
var extendStatics = function (d, b) {
|
|
30383
30385
|
extendStatics = Object.setPrototypeOf ||
|
|
30384
30386
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30393,8 +30395,8 @@
|
|
|
30393
30395
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30394
30396
|
};
|
|
30395
30397
|
})();
|
|
30396
|
-
var __assign$
|
|
30397
|
-
__assign$
|
|
30398
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30399
|
+
__assign$c = Object.assign || function(t) {
|
|
30398
30400
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30399
30401
|
s = arguments[i];
|
|
30400
30402
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30402,9 +30404,9 @@
|
|
|
30402
30404
|
}
|
|
30403
30405
|
return t;
|
|
30404
30406
|
};
|
|
30405
|
-
return __assign$
|
|
30407
|
+
return __assign$c.apply(this, arguments);
|
|
30406
30408
|
};
|
|
30407
|
-
var __importDefault$
|
|
30409
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30408
30410
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30409
30411
|
};
|
|
30410
30412
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -30424,17 +30426,17 @@
|
|
|
30424
30426
|
* See the License for the specific language governing permissions and
|
|
30425
30427
|
* limitations under the License.
|
|
30426
30428
|
*/
|
|
30427
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
30428
|
-
var neo4j_driver_core_1$
|
|
30429
|
-
var request_message_1$6 = __importDefault$
|
|
30429
|
+
var bolt_protocol_v4x3_1$1 = __importDefault$m(boltProtocolV4x3);
|
|
30430
|
+
var neo4j_driver_core_1$k = lib$1;
|
|
30431
|
+
var request_message_1$6 = __importDefault$m(requestMessage);
|
|
30430
30432
|
var stream_observers_1$6 = streamObservers;
|
|
30431
30433
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
30432
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
30433
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
30434
|
-
var transformer_1$
|
|
30435
|
-
var _a$5 = neo4j_driver_core_1$
|
|
30436
|
-
var BoltProtocol$
|
|
30437
|
-
__extends$
|
|
30434
|
+
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$m(boltProtocolV4x4_transformer);
|
|
30435
|
+
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$m(boltProtocolV5x0_utc_transformer);
|
|
30436
|
+
var transformer_1$7 = __importDefault$m(transformer);
|
|
30437
|
+
var _a$5 = neo4j_driver_core_1$k.internal.constants, BOLT_PROTOCOL_V4_4$2 = _a$5.BOLT_PROTOCOL_V4_4, FETCH_ALL$2 = _a$5.FETCH_ALL, Bookmarks$1 = neo4j_driver_core_1$k.internal.bookmarks.Bookmarks;
|
|
30438
|
+
var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
30439
|
+
__extends$e(BoltProtocol, _super);
|
|
30438
30440
|
function BoltProtocol() {
|
|
30439
30441
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30440
30442
|
}
|
|
@@ -30449,7 +30451,7 @@
|
|
|
30449
30451
|
get: function () {
|
|
30450
30452
|
var _this = this;
|
|
30451
30453
|
if (this._transformer === undefined) {
|
|
30452
|
-
this._transformer = new transformer_1$
|
|
30454
|
+
this._transformer = new transformer_1$7.default(Object.values(bolt_protocol_v4x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30453
30455
|
}
|
|
30454
30456
|
return this._transformer;
|
|
30455
30457
|
},
|
|
@@ -30528,11 +30530,11 @@
|
|
|
30528
30530
|
};
|
|
30529
30531
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
30530
30532
|
var _this = this;
|
|
30531
|
-
this._transformer = new transformer_1$
|
|
30533
|
+
this._transformer = new transformer_1$7.default(Object.values(__assign$c(__assign$c({}, bolt_protocol_v4x4_transformer_1$1.default), bolt_protocol_v5x0_utc_transformer_1$1.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
30532
30534
|
};
|
|
30533
30535
|
return BoltProtocol;
|
|
30534
30536
|
}(bolt_protocol_v4x3_1$1.default));
|
|
30535
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
30537
|
+
boltProtocolV4x4.default = BoltProtocol$7;
|
|
30536
30538
|
|
|
30537
30539
|
var boltProtocolV5x0 = {};
|
|
30538
30540
|
|
|
@@ -30554,8 +30556,8 @@
|
|
|
30554
30556
|
* See the License for the specific language governing permissions and
|
|
30555
30557
|
* limitations under the License.
|
|
30556
30558
|
*/
|
|
30557
|
-
var __assign$
|
|
30558
|
-
__assign$
|
|
30559
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30560
|
+
__assign$b = Object.assign || function(t) {
|
|
30559
30561
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30560
30562
|
s = arguments[i];
|
|
30561
30563
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30563,7 +30565,7 @@
|
|
|
30563
30565
|
}
|
|
30564
30566
|
return t;
|
|
30565
30567
|
};
|
|
30566
|
-
return __assign$
|
|
30568
|
+
return __assign$b.apply(this, arguments);
|
|
30567
30569
|
};
|
|
30568
30570
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
30569
30571
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -30581,14 +30583,14 @@
|
|
|
30581
30583
|
}
|
|
30582
30584
|
return ar;
|
|
30583
30585
|
};
|
|
30584
|
-
var __importDefault$
|
|
30586
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30585
30587
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30586
30588
|
};
|
|
30587
30589
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
30588
30590
|
var packstream_1 = packstream;
|
|
30589
|
-
var neo4j_driver_core_1$
|
|
30590
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
30591
|
-
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$
|
|
30591
|
+
var neo4j_driver_core_1$j = lib$1;
|
|
30592
|
+
var bolt_protocol_v4x4_transformer_1 = __importDefault$l(boltProtocolV4x4_transformer);
|
|
30593
|
+
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$l(boltProtocolV5x0_utc_transformer);
|
|
30592
30594
|
var NODE_STRUCT_SIZE = 4;
|
|
30593
30595
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
30594
30596
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -30603,7 +30605,7 @@
|
|
|
30603
30605
|
fromStructure: function (struct) {
|
|
30604
30606
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
30605
30607
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
30606
|
-
return new neo4j_driver_core_1$
|
|
30608
|
+
return new neo4j_driver_core_1$j.Node(identity, lables, properties, elementId);
|
|
30607
30609
|
}
|
|
30608
30610
|
});
|
|
30609
30611
|
}
|
|
@@ -30618,7 +30620,7 @@
|
|
|
30618
30620
|
fromStructure: function (struct) {
|
|
30619
30621
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
30620
30622
|
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];
|
|
30621
|
-
return new neo4j_driver_core_1$
|
|
30623
|
+
return new neo4j_driver_core_1$j.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
30622
30624
|
}
|
|
30623
30625
|
});
|
|
30624
30626
|
}
|
|
@@ -30633,13 +30635,13 @@
|
|
|
30633
30635
|
fromStructure: function (struct) {
|
|
30634
30636
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
30635
30637
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
30636
|
-
return new neo4j_driver_core_1$
|
|
30638
|
+
return new neo4j_driver_core_1$j.UnboundRelationship(identity, type, properties, elementId);
|
|
30637
30639
|
}
|
|
30638
30640
|
});
|
|
30639
30641
|
}
|
|
30640
|
-
boltProtocolV5x0_transformer.default = __assign$
|
|
30642
|
+
boltProtocolV5x0_transformer.default = __assign$b(__assign$b(__assign$b({}, bolt_protocol_v4x4_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1.default), { createNodeTransformer: createNodeTransformer, createRelationshipTransformer: createRelationshipTransformer, createUnboundRelationshipTransformer: createUnboundRelationshipTransformer });
|
|
30641
30643
|
|
|
30642
|
-
var __extends$
|
|
30644
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30643
30645
|
var extendStatics = function (d, b) {
|
|
30644
30646
|
extendStatics = Object.setPrototypeOf ||
|
|
30645
30647
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30654,7 +30656,7 @@
|
|
|
30654
30656
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30655
30657
|
};
|
|
30656
30658
|
})();
|
|
30657
|
-
var __importDefault$
|
|
30659
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30658
30660
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30659
30661
|
};
|
|
30660
30662
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -30674,16 +30676,16 @@
|
|
|
30674
30676
|
* See the License for the specific language governing permissions and
|
|
30675
30677
|
* limitations under the License.
|
|
30676
30678
|
*/
|
|
30677
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
30679
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$k(boltProtocolV4x4);
|
|
30678
30680
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
30679
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
30680
|
-
var transformer_1$
|
|
30681
|
-
var request_message_1$5 = __importDefault$
|
|
30681
|
+
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$k(boltProtocolV5x0_transformer);
|
|
30682
|
+
var transformer_1$6 = __importDefault$k(transformer);
|
|
30683
|
+
var request_message_1$5 = __importDefault$k(requestMessage);
|
|
30682
30684
|
var stream_observers_1$5 = streamObservers;
|
|
30683
|
-
var neo4j_driver_core_1$
|
|
30684
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
30685
|
-
var BoltProtocol$
|
|
30686
|
-
__extends$
|
|
30685
|
+
var neo4j_driver_core_1$i = lib$1;
|
|
30686
|
+
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$i.internal.constants.BOLT_PROTOCOL_V5_0;
|
|
30687
|
+
var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
30688
|
+
__extends$d(BoltProtocol, _super);
|
|
30687
30689
|
function BoltProtocol() {
|
|
30688
30690
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30689
30691
|
}
|
|
@@ -30698,7 +30700,7 @@
|
|
|
30698
30700
|
get: function () {
|
|
30699
30701
|
var _this = this;
|
|
30700
30702
|
if (this._transformer === undefined) {
|
|
30701
|
-
this._transformer = new transformer_1$
|
|
30703
|
+
this._transformer = new transformer_1$6.default(Object.values(bolt_protocol_v5x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30702
30704
|
}
|
|
30703
30705
|
return this._transformer;
|
|
30704
30706
|
},
|
|
@@ -30730,7 +30732,7 @@
|
|
|
30730
30732
|
};
|
|
30731
30733
|
return BoltProtocol;
|
|
30732
30734
|
}(bolt_protocol_v4x4_1$1.default));
|
|
30733
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
30735
|
+
boltProtocolV5x0.default = BoltProtocol$6;
|
|
30734
30736
|
|
|
30735
30737
|
var boltProtocolV5x1 = {};
|
|
30736
30738
|
|
|
@@ -30752,8 +30754,8 @@
|
|
|
30752
30754
|
* See the License for the specific language governing permissions and
|
|
30753
30755
|
* limitations under the License.
|
|
30754
30756
|
*/
|
|
30755
|
-
var __assign$
|
|
30756
|
-
__assign$
|
|
30757
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30758
|
+
__assign$a = Object.assign || function(t) {
|
|
30757
30759
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30758
30760
|
s = arguments[i];
|
|
30759
30761
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30761,16 +30763,16 @@
|
|
|
30761
30763
|
}
|
|
30762
30764
|
return t;
|
|
30763
30765
|
};
|
|
30764
|
-
return __assign$
|
|
30766
|
+
return __assign$a.apply(this, arguments);
|
|
30765
30767
|
};
|
|
30766
|
-
var __importDefault$
|
|
30768
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30767
30769
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30768
30770
|
};
|
|
30769
30771
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
30770
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
30771
|
-
boltProtocolV5x1_transformer.default = __assign$
|
|
30772
|
+
var bolt_protocol_v5x0_transformer_1 = __importDefault$j(boltProtocolV5x0_transformer);
|
|
30773
|
+
boltProtocolV5x1_transformer.default = __assign$a({}, bolt_protocol_v5x0_transformer_1.default);
|
|
30772
30774
|
|
|
30773
|
-
var __extends$
|
|
30775
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30774
30776
|
var extendStatics = function (d, b) {
|
|
30775
30777
|
extendStatics = Object.setPrototypeOf ||
|
|
30776
30778
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30785,8 +30787,8 @@
|
|
|
30785
30787
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30786
30788
|
};
|
|
30787
30789
|
})();
|
|
30788
|
-
var __assign$
|
|
30789
|
-
__assign$
|
|
30790
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30791
|
+
__assign$9 = Object.assign || function(t) {
|
|
30790
30792
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30791
30793
|
s = arguments[i];
|
|
30792
30794
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30794,9 +30796,9 @@
|
|
|
30794
30796
|
}
|
|
30795
30797
|
return t;
|
|
30796
30798
|
};
|
|
30797
|
-
return __assign$
|
|
30799
|
+
return __assign$9.apply(this, arguments);
|
|
30798
30800
|
};
|
|
30799
|
-
var __importDefault$
|
|
30801
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30800
30802
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30801
30803
|
};
|
|
30802
30804
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -30816,16 +30818,16 @@
|
|
|
30816
30818
|
* See the License for the specific language governing permissions and
|
|
30817
30819
|
* limitations under the License.
|
|
30818
30820
|
*/
|
|
30819
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
30821
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$i(boltProtocolV5x0);
|
|
30820
30822
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
30821
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
30822
|
-
var transformer_1$
|
|
30823
|
-
var request_message_1$4 = __importDefault$
|
|
30823
|
+
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$i(boltProtocolV5x1_transformer);
|
|
30824
|
+
var transformer_1$5 = __importDefault$i(transformer);
|
|
30825
|
+
var request_message_1$4 = __importDefault$i(requestMessage);
|
|
30824
30826
|
var stream_observers_1$4 = streamObservers;
|
|
30825
|
-
var neo4j_driver_core_1$
|
|
30826
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
30827
|
-
var BoltProtocol$
|
|
30828
|
-
__extends$
|
|
30827
|
+
var neo4j_driver_core_1$h = lib$1;
|
|
30828
|
+
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$h.internal.constants.BOLT_PROTOCOL_V5_1;
|
|
30829
|
+
var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
30830
|
+
__extends$c(BoltProtocol, _super);
|
|
30829
30831
|
function BoltProtocol() {
|
|
30830
30832
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30831
30833
|
}
|
|
@@ -30840,7 +30842,7 @@
|
|
|
30840
30842
|
get: function () {
|
|
30841
30843
|
var _this = this;
|
|
30842
30844
|
if (this._transformer === undefined) {
|
|
30843
|
-
this._transformer = new transformer_1$
|
|
30845
|
+
this._transformer = new transformer_1$5.default(Object.values(bolt_protocol_v5x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30844
30846
|
}
|
|
30845
30847
|
return this._transformer;
|
|
30846
30848
|
},
|
|
@@ -30881,7 +30883,7 @@
|
|
|
30881
30883
|
this.write(request_message_1$4.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
30882
30884
|
return this.logon({
|
|
30883
30885
|
authToken: authToken,
|
|
30884
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
30886
|
+
onComplete: function (metadata) { return onComplete(__assign$9(__assign$9({}, metadata), state.metadata)); },
|
|
30885
30887
|
onError: onError,
|
|
30886
30888
|
flush: true
|
|
30887
30889
|
});
|
|
@@ -30928,7 +30930,7 @@
|
|
|
30928
30930
|
};
|
|
30929
30931
|
return BoltProtocol;
|
|
30930
30932
|
}(bolt_protocol_v5x0_1$1.default));
|
|
30931
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
30933
|
+
boltProtocolV5x1.default = BoltProtocol$5;
|
|
30932
30934
|
|
|
30933
30935
|
var boltProtocolV5x2 = {};
|
|
30934
30936
|
|
|
@@ -30950,8 +30952,8 @@
|
|
|
30950
30952
|
* See the License for the specific language governing permissions and
|
|
30951
30953
|
* limitations under the License.
|
|
30952
30954
|
*/
|
|
30953
|
-
var __assign$
|
|
30954
|
-
__assign$
|
|
30955
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30956
|
+
__assign$8 = Object.assign || function(t) {
|
|
30955
30957
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30956
30958
|
s = arguments[i];
|
|
30957
30959
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30959,16 +30961,16 @@
|
|
|
30959
30961
|
}
|
|
30960
30962
|
return t;
|
|
30961
30963
|
};
|
|
30962
|
-
return __assign$
|
|
30964
|
+
return __assign$8.apply(this, arguments);
|
|
30963
30965
|
};
|
|
30964
|
-
var __importDefault$
|
|
30966
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30965
30967
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30966
30968
|
};
|
|
30967
30969
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
30968
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
30969
|
-
boltProtocolV5x2_transformer.default = __assign$
|
|
30970
|
+
var bolt_protocol_v5x1_transformer_1 = __importDefault$h(boltProtocolV5x1_transformer);
|
|
30971
|
+
boltProtocolV5x2_transformer.default = __assign$8({}, bolt_protocol_v5x1_transformer_1.default);
|
|
30970
30972
|
|
|
30971
|
-
var __extends$
|
|
30973
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30972
30974
|
var extendStatics = function (d, b) {
|
|
30973
30975
|
extendStatics = Object.setPrototypeOf ||
|
|
30974
30976
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30983,8 +30985,8 @@
|
|
|
30983
30985
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30984
30986
|
};
|
|
30985
30987
|
})();
|
|
30986
|
-
var __assign$
|
|
30987
|
-
__assign$
|
|
30988
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30989
|
+
__assign$7 = Object.assign || function(t) {
|
|
30988
30990
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30989
30991
|
s = arguments[i];
|
|
30990
30992
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30992,9 +30994,9 @@
|
|
|
30992
30994
|
}
|
|
30993
30995
|
return t;
|
|
30994
30996
|
};
|
|
30995
|
-
return __assign$
|
|
30997
|
+
return __assign$7.apply(this, arguments);
|
|
30996
30998
|
};
|
|
30997
|
-
var __importDefault$
|
|
30999
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30998
31000
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30999
31001
|
};
|
|
31000
31002
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -31014,15 +31016,15 @@
|
|
|
31014
31016
|
* See the License for the specific language governing permissions and
|
|
31015
31017
|
* limitations under the License.
|
|
31016
31018
|
*/
|
|
31017
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
31018
|
-
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$
|
|
31019
|
-
var transformer_1$
|
|
31020
|
-
var request_message_1$3 = __importDefault$
|
|
31019
|
+
var bolt_protocol_v5x1_1$1 = __importDefault$g(boltProtocolV5x1);
|
|
31020
|
+
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$g(boltProtocolV5x2_transformer);
|
|
31021
|
+
var transformer_1$4 = __importDefault$g(transformer);
|
|
31022
|
+
var request_message_1$3 = __importDefault$g(requestMessage);
|
|
31021
31023
|
var stream_observers_1$3 = streamObservers;
|
|
31022
|
-
var neo4j_driver_core_1$
|
|
31023
|
-
var _a$4 = neo4j_driver_core_1$
|
|
31024
|
-
var BoltProtocol$
|
|
31025
|
-
__extends$
|
|
31024
|
+
var neo4j_driver_core_1$g = lib$1;
|
|
31025
|
+
var _a$4 = neo4j_driver_core_1$g.internal.constants, BOLT_PROTOCOL_V5_2 = _a$4.BOLT_PROTOCOL_V5_2, FETCH_ALL$1 = _a$4.FETCH_ALL;
|
|
31026
|
+
var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
31027
|
+
__extends$b(BoltProtocol, _super);
|
|
31026
31028
|
function BoltProtocol() {
|
|
31027
31029
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31028
31030
|
}
|
|
@@ -31037,7 +31039,7 @@
|
|
|
31037
31039
|
get: function () {
|
|
31038
31040
|
var _this = this;
|
|
31039
31041
|
if (this._transformer === undefined) {
|
|
31040
|
-
this._transformer = new transformer_1$
|
|
31042
|
+
this._transformer = new transformer_1$4.default(Object.values(bolt_protocol_v5x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31041
31043
|
}
|
|
31042
31044
|
return this._transformer;
|
|
31043
31045
|
},
|
|
@@ -31079,7 +31081,7 @@
|
|
|
31079
31081
|
request_message_1$3.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31080
31082
|
return this.logon({
|
|
31081
31083
|
authToken: authToken,
|
|
31082
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31084
|
+
onComplete: function (metadata) { return onComplete(__assign$7(__assign$7({}, metadata), state.metadata)); },
|
|
31083
31085
|
onError: onError,
|
|
31084
31086
|
flush: true
|
|
31085
31087
|
});
|
|
@@ -31130,7 +31132,7 @@
|
|
|
31130
31132
|
};
|
|
31131
31133
|
return BoltProtocol;
|
|
31132
31134
|
}(bolt_protocol_v5x1_1$1.default));
|
|
31133
|
-
boltProtocolV5x2.default = BoltProtocol$
|
|
31135
|
+
boltProtocolV5x2.default = BoltProtocol$4;
|
|
31134
31136
|
|
|
31135
31137
|
var boltProtocolV5x3 = {};
|
|
31136
31138
|
|
|
@@ -31152,8 +31154,8 @@
|
|
|
31152
31154
|
* See the License for the specific language governing permissions and
|
|
31153
31155
|
* limitations under the License.
|
|
31154
31156
|
*/
|
|
31155
|
-
var __assign$
|
|
31156
|
-
__assign$
|
|
31157
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31158
|
+
__assign$6 = Object.assign || function(t) {
|
|
31157
31159
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31158
31160
|
s = arguments[i];
|
|
31159
31161
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31161,16 +31163,16 @@
|
|
|
31161
31163
|
}
|
|
31162
31164
|
return t;
|
|
31163
31165
|
};
|
|
31164
|
-
return __assign$
|
|
31166
|
+
return __assign$6.apply(this, arguments);
|
|
31165
31167
|
};
|
|
31166
|
-
var __importDefault$
|
|
31168
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31167
31169
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31168
31170
|
};
|
|
31169
31171
|
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
31170
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
31171
|
-
boltProtocolV5x3_transformer.default = __assign$
|
|
31172
|
+
var bolt_protocol_v5x2_transformer_1 = __importDefault$f(boltProtocolV5x2_transformer);
|
|
31173
|
+
boltProtocolV5x3_transformer.default = __assign$6({}, bolt_protocol_v5x2_transformer_1.default);
|
|
31172
31174
|
|
|
31173
|
-
var __extends$
|
|
31175
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31174
31176
|
var extendStatics = function (d, b) {
|
|
31175
31177
|
extendStatics = Object.setPrototypeOf ||
|
|
31176
31178
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31185,8 +31187,8 @@
|
|
|
31185
31187
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31186
31188
|
};
|
|
31187
31189
|
})();
|
|
31188
|
-
var __assign$
|
|
31189
|
-
__assign$
|
|
31190
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31191
|
+
__assign$5 = Object.assign || function(t) {
|
|
31190
31192
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31191
31193
|
s = arguments[i];
|
|
31192
31194
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31194,9 +31196,9 @@
|
|
|
31194
31196
|
}
|
|
31195
31197
|
return t;
|
|
31196
31198
|
};
|
|
31197
|
-
return __assign$
|
|
31199
|
+
return __assign$5.apply(this, arguments);
|
|
31198
31200
|
};
|
|
31199
|
-
var __importDefault$
|
|
31201
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31200
31202
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31201
31203
|
};
|
|
31202
31204
|
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
@@ -31216,15 +31218,15 @@
|
|
|
31216
31218
|
* See the License for the specific language governing permissions and
|
|
31217
31219
|
* limitations under the License.
|
|
31218
31220
|
*/
|
|
31219
|
-
var bolt_protocol_v5x2_1$1 = __importDefault$
|
|
31220
|
-
var bolt_protocol_v5x3_transformer_1$
|
|
31221
|
-
var transformer_1$
|
|
31222
|
-
var request_message_1$2 = __importDefault$
|
|
31221
|
+
var bolt_protocol_v5x2_1$1 = __importDefault$e(boltProtocolV5x2);
|
|
31222
|
+
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$e(boltProtocolV5x3_transformer);
|
|
31223
|
+
var transformer_1$3 = __importDefault$e(transformer);
|
|
31224
|
+
var request_message_1$2 = __importDefault$e(requestMessage);
|
|
31223
31225
|
var stream_observers_1$2 = streamObservers;
|
|
31224
|
-
var neo4j_driver_core_1$
|
|
31225
|
-
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$
|
|
31226
|
-
var BoltProtocol$
|
|
31227
|
-
__extends$
|
|
31226
|
+
var neo4j_driver_core_1$f = lib$1;
|
|
31227
|
+
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$f.internal.constants.BOLT_PROTOCOL_V5_3;
|
|
31228
|
+
var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
31229
|
+
__extends$a(BoltProtocol, _super);
|
|
31228
31230
|
function BoltProtocol() {
|
|
31229
31231
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31230
31232
|
}
|
|
@@ -31239,7 +31241,7 @@
|
|
|
31239
31241
|
get: function () {
|
|
31240
31242
|
var _this = this;
|
|
31241
31243
|
if (this._transformer === undefined) {
|
|
31242
|
-
this._transformer = new transformer_1$
|
|
31244
|
+
this._transformer = new transformer_1$3.default(Object.values(bolt_protocol_v5x3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31243
31245
|
}
|
|
31244
31246
|
return this._transformer;
|
|
31245
31247
|
},
|
|
@@ -31271,14 +31273,14 @@
|
|
|
31271
31273
|
this.write(request_message_1$2.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31272
31274
|
return this.logon({
|
|
31273
31275
|
authToken: authToken,
|
|
31274
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31276
|
+
onComplete: function (metadata) { return onComplete(__assign$5(__assign$5({}, metadata), state.metadata)); },
|
|
31275
31277
|
onError: onError,
|
|
31276
31278
|
flush: true
|
|
31277
31279
|
});
|
|
31278
31280
|
};
|
|
31279
31281
|
return BoltProtocol;
|
|
31280
31282
|
}(bolt_protocol_v5x2_1$1.default));
|
|
31281
|
-
boltProtocolV5x3.default = BoltProtocol$
|
|
31283
|
+
boltProtocolV5x3.default = BoltProtocol$3;
|
|
31282
31284
|
|
|
31283
31285
|
var boltProtocolV5x4 = {};
|
|
31284
31286
|
|
|
@@ -31300,8 +31302,8 @@
|
|
|
31300
31302
|
* See the License for the specific language governing permissions and
|
|
31301
31303
|
* limitations under the License.
|
|
31302
31304
|
*/
|
|
31303
|
-
var __assign$
|
|
31304
|
-
__assign$
|
|
31305
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31306
|
+
__assign$4 = Object.assign || function(t) {
|
|
31305
31307
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31306
31308
|
s = arguments[i];
|
|
31307
31309
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31309,16 +31311,16 @@
|
|
|
31309
31311
|
}
|
|
31310
31312
|
return t;
|
|
31311
31313
|
};
|
|
31312
|
-
return __assign$
|
|
31314
|
+
return __assign$4.apply(this, arguments);
|
|
31313
31315
|
};
|
|
31314
|
-
var __importDefault$
|
|
31316
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31315
31317
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31316
31318
|
};
|
|
31317
31319
|
Object.defineProperty(boltProtocolV5x4_transformer, "__esModule", { value: true });
|
|
31318
|
-
var bolt_protocol_v5x3_transformer_1
|
|
31319
|
-
boltProtocolV5x4_transformer.default = __assign$
|
|
31320
|
+
var bolt_protocol_v5x3_transformer_1 = __importDefault$d(boltProtocolV5x3_transformer);
|
|
31321
|
+
boltProtocolV5x4_transformer.default = __assign$4({}, bolt_protocol_v5x3_transformer_1.default);
|
|
31320
31322
|
|
|
31321
|
-
var __extends$
|
|
31323
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31322
31324
|
var extendStatics = function (d, b) {
|
|
31323
31325
|
extendStatics = Object.setPrototypeOf ||
|
|
31324
31326
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31333,7 +31335,7 @@
|
|
|
31333
31335
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31334
31336
|
};
|
|
31335
31337
|
})();
|
|
31336
|
-
var __importDefault$
|
|
31338
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31337
31339
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31338
31340
|
};
|
|
31339
31341
|
Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
@@ -31353,15 +31355,15 @@
|
|
|
31353
31355
|
* See the License for the specific language governing permissions and
|
|
31354
31356
|
* limitations under the License.
|
|
31355
31357
|
*/
|
|
31356
|
-
var bolt_protocol_v5x3_1$1 = __importDefault$
|
|
31357
|
-
var bolt_protocol_v5x4_transformer_1 = __importDefault$
|
|
31358
|
-
var request_message_1$1 = __importDefault$
|
|
31358
|
+
var bolt_protocol_v5x3_1$1 = __importDefault$c(boltProtocolV5x3);
|
|
31359
|
+
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$c(boltProtocolV5x4_transformer);
|
|
31360
|
+
var request_message_1$1 = __importDefault$c(requestMessage);
|
|
31359
31361
|
var stream_observers_1$1 = streamObservers;
|
|
31360
|
-
var transformer_1$
|
|
31361
|
-
var neo4j_driver_core_1$
|
|
31362
|
-
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$
|
|
31363
|
-
var BoltProtocol$
|
|
31364
|
-
__extends$
|
|
31362
|
+
var transformer_1$2 = __importDefault$c(transformer);
|
|
31363
|
+
var neo4j_driver_core_1$e = lib$1;
|
|
31364
|
+
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_4;
|
|
31365
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
31366
|
+
__extends$9(BoltProtocol, _super);
|
|
31365
31367
|
function BoltProtocol() {
|
|
31366
31368
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31367
31369
|
}
|
|
@@ -31376,7 +31378,7 @@
|
|
|
31376
31378
|
get: function () {
|
|
31377
31379
|
var _this = this;
|
|
31378
31380
|
if (this._transformer === undefined) {
|
|
31379
|
-
this._transformer = new transformer_1$
|
|
31381
|
+
this._transformer = new transformer_1$2.default(Object.values(bolt_protocol_v5x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31380
31382
|
}
|
|
31381
31383
|
return this._transformer;
|
|
31382
31384
|
},
|
|
@@ -31402,7 +31404,7 @@
|
|
|
31402
31404
|
};
|
|
31403
31405
|
return BoltProtocol;
|
|
31404
31406
|
}(bolt_protocol_v5x3_1$1.default));
|
|
31405
|
-
boltProtocolV5x4.default = BoltProtocol$
|
|
31407
|
+
boltProtocolV5x4.default = BoltProtocol$2;
|
|
31406
31408
|
|
|
31407
31409
|
var boltProtocolV5x5 = {};
|
|
31408
31410
|
|
|
@@ -31424,8 +31426,8 @@
|
|
|
31424
31426
|
* See the License for the specific language governing permissions and
|
|
31425
31427
|
* limitations under the License.
|
|
31426
31428
|
*/
|
|
31427
|
-
var __assign$
|
|
31428
|
-
__assign$
|
|
31429
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31430
|
+
__assign$3 = Object.assign || function(t) {
|
|
31429
31431
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31430
31432
|
s = arguments[i];
|
|
31431
31433
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31433,16 +31435,16 @@
|
|
|
31433
31435
|
}
|
|
31434
31436
|
return t;
|
|
31435
31437
|
};
|
|
31436
|
-
return __assign$
|
|
31438
|
+
return __assign$3.apply(this, arguments);
|
|
31437
31439
|
};
|
|
31438
|
-
var __importDefault$
|
|
31440
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31439
31441
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31440
31442
|
};
|
|
31441
31443
|
Object.defineProperty(boltProtocolV5x5_transformer, "__esModule", { value: true });
|
|
31442
|
-
var
|
|
31443
|
-
boltProtocolV5x5_transformer.default = __assign$
|
|
31444
|
+
var bolt_protocol_v5x4_transformer_1 = __importDefault$b(boltProtocolV5x4_transformer);
|
|
31445
|
+
boltProtocolV5x5_transformer.default = __assign$3({}, bolt_protocol_v5x4_transformer_1.default);
|
|
31444
31446
|
|
|
31445
|
-
var __extends$
|
|
31447
|
+
var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31446
31448
|
var extendStatics = function (d, b) {
|
|
31447
31449
|
extendStatics = Object.setPrototypeOf ||
|
|
31448
31450
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31457,8 +31459,8 @@
|
|
|
31457
31459
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31458
31460
|
};
|
|
31459
31461
|
})();
|
|
31460
|
-
var __assign$
|
|
31461
|
-
__assign$
|
|
31462
|
+
var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31463
|
+
__assign$2 = Object.assign || function(t) {
|
|
31462
31464
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31463
31465
|
s = arguments[i];
|
|
31464
31466
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31466,9 +31468,9 @@
|
|
|
31466
31468
|
}
|
|
31467
31469
|
return t;
|
|
31468
31470
|
};
|
|
31469
|
-
return __assign$
|
|
31471
|
+
return __assign$2.apply(this, arguments);
|
|
31470
31472
|
};
|
|
31471
|
-
var __importDefault$
|
|
31473
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31472
31474
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31473
31475
|
};
|
|
31474
31476
|
Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
@@ -31488,20 +31490,20 @@
|
|
|
31488
31490
|
* See the License for the specific language governing permissions and
|
|
31489
31491
|
* limitations under the License.
|
|
31490
31492
|
*/
|
|
31491
|
-
var bolt_protocol_v5x4_1$1 = __importDefault$
|
|
31492
|
-
var bolt_protocol_v5x5_transformer_1 = __importDefault$
|
|
31493
|
-
var transformer_1 = __importDefault$
|
|
31494
|
-
var request_message_1 = __importDefault$
|
|
31493
|
+
var bolt_protocol_v5x4_1$1 = __importDefault$a(boltProtocolV5x4);
|
|
31494
|
+
var bolt_protocol_v5x5_transformer_1$1 = __importDefault$a(boltProtocolV5x5_transformer);
|
|
31495
|
+
var transformer_1$1 = __importDefault$a(transformer);
|
|
31496
|
+
var request_message_1 = __importDefault$a(requestMessage);
|
|
31495
31497
|
var stream_observers_1 = streamObservers;
|
|
31496
|
-
var neo4j_driver_core_1$
|
|
31497
|
-
var _a$3 = neo4j_driver_core_1$
|
|
31498
|
-
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
31498
|
+
var neo4j_driver_core_1$d = lib$1;
|
|
31499
|
+
var _a$3 = neo4j_driver_core_1$d.internal.constants, BOLT_PROTOCOL_V5_5 = _a$3.BOLT_PROTOCOL_V5_5, FETCH_ALL = _a$3.FETCH_ALL;
|
|
31500
|
+
var DEFAULT_DIAGNOSTIC_RECORD$1 = Object.freeze({
|
|
31499
31501
|
OPERATION: '',
|
|
31500
31502
|
OPERATION_CODE: '0',
|
|
31501
31503
|
CURRENT_SCHEMA: '/'
|
|
31502
31504
|
});
|
|
31503
|
-
var BoltProtocol = /** @class */ (function (_super) {
|
|
31504
|
-
__extends$
|
|
31505
|
+
var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
31506
|
+
__extends$8(BoltProtocol, _super);
|
|
31505
31507
|
function BoltProtocol() {
|
|
31506
31508
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31507
31509
|
}
|
|
@@ -31516,7 +31518,7 @@
|
|
|
31516
31518
|
get: function () {
|
|
31517
31519
|
var _this = this;
|
|
31518
31520
|
if (this._transformer === undefined) {
|
|
31519
|
-
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x5_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31521
|
+
this._transformer = new transformer_1$1.default(Object.values(bolt_protocol_v5x5_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31520
31522
|
}
|
|
31521
31523
|
return this._transformer;
|
|
31522
31524
|
},
|
|
@@ -31548,7 +31550,7 @@
|
|
|
31548
31550
|
this.write(request_message_1.default.hello5x5(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31549
31551
|
return this.logon({
|
|
31550
31552
|
authToken: authToken,
|
|
31551
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31553
|
+
onComplete: function (metadata) { return onComplete(__assign$2(__assign$2({}, metadata), state.metadata)); },
|
|
31552
31554
|
onError: onError,
|
|
31553
31555
|
flush: true
|
|
31554
31556
|
});
|
|
@@ -31582,7 +31584,7 @@
|
|
|
31582
31584
|
afterComplete: afterComplete,
|
|
31583
31585
|
highRecordWatermark: highRecordWatermark,
|
|
31584
31586
|
lowRecordWatermark: lowRecordWatermark,
|
|
31585
|
-
enrichMetadata:
|
|
31587
|
+
enrichMetadata: this._enrichMetadata
|
|
31586
31588
|
});
|
|
31587
31589
|
var flushRun = reactive;
|
|
31588
31590
|
this.write(request_message_1.default.runWithMetadata5x5(query, parameters, {
|
|
@@ -31603,15 +31605,111 @@
|
|
|
31603
31605
|
* @param {object} metadata
|
|
31604
31606
|
* @returns {object}
|
|
31605
31607
|
*/
|
|
31606
|
-
BoltProtocol._enrichMetadata = function (metadata) {
|
|
31608
|
+
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
31607
31609
|
if (Array.isArray(metadata.statuses)) {
|
|
31608
|
-
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$
|
|
31610
|
+
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$2(__assign$2({}, status), { description: status.neo4j_code != null ? status.status_description : status.description, diagnostic_record: status.diagnostic_record !== null ? __assign$2(__assign$2({}, DEFAULT_DIAGNOSTIC_RECORD$1), status.diagnostic_record) : null })); });
|
|
31609
31611
|
}
|
|
31610
31612
|
return metadata;
|
|
31611
31613
|
};
|
|
31612
31614
|
return BoltProtocol;
|
|
31613
31615
|
}(bolt_protocol_v5x4_1$1.default));
|
|
31614
|
-
boltProtocolV5x5.default = BoltProtocol;
|
|
31616
|
+
boltProtocolV5x5.default = BoltProtocol$1;
|
|
31617
|
+
|
|
31618
|
+
var boltProtocolV5x6 = {};
|
|
31619
|
+
|
|
31620
|
+
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31621
|
+
var extendStatics = function (d, b) {
|
|
31622
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31623
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31624
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
31625
|
+
return extendStatics(d, b);
|
|
31626
|
+
};
|
|
31627
|
+
return function (d, b) {
|
|
31628
|
+
if (typeof b !== "function" && b !== null)
|
|
31629
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
31630
|
+
extendStatics(d, b);
|
|
31631
|
+
function __() { this.constructor = d; }
|
|
31632
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31633
|
+
};
|
|
31634
|
+
})();
|
|
31635
|
+
var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31636
|
+
__assign$1 = Object.assign || function(t) {
|
|
31637
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31638
|
+
s = arguments[i];
|
|
31639
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
31640
|
+
t[p] = s[p];
|
|
31641
|
+
}
|
|
31642
|
+
return t;
|
|
31643
|
+
};
|
|
31644
|
+
return __assign$1.apply(this, arguments);
|
|
31645
|
+
};
|
|
31646
|
+
var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31647
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31648
|
+
};
|
|
31649
|
+
Object.defineProperty(boltProtocolV5x6, "__esModule", { value: true });
|
|
31650
|
+
/**
|
|
31651
|
+
* Copyright (c) "Neo4j"
|
|
31652
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
31653
|
+
*
|
|
31654
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
31655
|
+
* you may not use this file except in compliance with the License.
|
|
31656
|
+
* You may obtain a copy of the License at
|
|
31657
|
+
*
|
|
31658
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
31659
|
+
*
|
|
31660
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
31661
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
31662
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
31663
|
+
* See the License for the specific language governing permissions and
|
|
31664
|
+
* limitations under the License.
|
|
31665
|
+
*/
|
|
31666
|
+
var bolt_protocol_v5x5_1$1 = __importDefault$9(boltProtocolV5x5);
|
|
31667
|
+
var bolt_protocol_v5x5_transformer_1 = __importDefault$9(boltProtocolV5x5_transformer);
|
|
31668
|
+
var transformer_1 = __importDefault$9(transformer);
|
|
31669
|
+
var neo4j_driver_core_1$c = lib$1;
|
|
31670
|
+
var BOLT_PROTOCOL_V5_6 = neo4j_driver_core_1$c.internal.constants.BOLT_PROTOCOL_V5_6;
|
|
31671
|
+
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
31672
|
+
OPERATION: '',
|
|
31673
|
+
OPERATION_CODE: '0',
|
|
31674
|
+
CURRENT_SCHEMA: '/'
|
|
31675
|
+
});
|
|
31676
|
+
var BoltProtocol = /** @class */ (function (_super) {
|
|
31677
|
+
__extends$7(BoltProtocol, _super);
|
|
31678
|
+
function BoltProtocol() {
|
|
31679
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31680
|
+
}
|
|
31681
|
+
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
31682
|
+
get: function () {
|
|
31683
|
+
return BOLT_PROTOCOL_V5_6;
|
|
31684
|
+
},
|
|
31685
|
+
enumerable: false,
|
|
31686
|
+
configurable: true
|
|
31687
|
+
});
|
|
31688
|
+
Object.defineProperty(BoltProtocol.prototype, "transformer", {
|
|
31689
|
+
get: function () {
|
|
31690
|
+
var _this = this;
|
|
31691
|
+
if (this._transformer === undefined) {
|
|
31692
|
+
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x5_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31693
|
+
}
|
|
31694
|
+
return this._transformer;
|
|
31695
|
+
},
|
|
31696
|
+
enumerable: false,
|
|
31697
|
+
configurable: true
|
|
31698
|
+
});
|
|
31699
|
+
/**
|
|
31700
|
+
*
|
|
31701
|
+
* @param {object} metadata
|
|
31702
|
+
* @returns {object}
|
|
31703
|
+
*/
|
|
31704
|
+
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
31705
|
+
if (Array.isArray(metadata.statuses)) {
|
|
31706
|
+
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$1(__assign$1({}, status), { diagnostic_record: status.diagnostic_record !== null ? __assign$1(__assign$1({}, DEFAULT_DIAGNOSTIC_RECORD), status.diagnostic_record) : null })); });
|
|
31707
|
+
}
|
|
31708
|
+
return metadata;
|
|
31709
|
+
};
|
|
31710
|
+
return BoltProtocol;
|
|
31711
|
+
}(bolt_protocol_v5x5_1$1.default));
|
|
31712
|
+
boltProtocolV5x6.default = BoltProtocol;
|
|
31615
31713
|
|
|
31616
31714
|
var responseHandler = {};
|
|
31617
31715
|
|
|
@@ -31862,6 +31960,7 @@
|
|
|
31862
31960
|
var bolt_protocol_v5x3_1 = __importDefault$8(boltProtocolV5x3);
|
|
31863
31961
|
var bolt_protocol_v5x4_1 = __importDefault$8(boltProtocolV5x4);
|
|
31864
31962
|
var bolt_protocol_v5x5_1 = __importDefault$8(boltProtocolV5x5);
|
|
31963
|
+
var bolt_protocol_v5x6_1 = __importDefault$8(boltProtocolV5x6);
|
|
31865
31964
|
var response_handler_1 = __importDefault$8(responseHandler);
|
|
31866
31965
|
/**
|
|
31867
31966
|
* Creates a protocol with a given version
|
|
@@ -31934,6 +32033,8 @@
|
|
|
31934
32033
|
return new bolt_protocol_v5x4_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
31935
32034
|
case 5.5:
|
|
31936
32035
|
return new bolt_protocol_v5x5_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32036
|
+
case 5.6:
|
|
32037
|
+
return new bolt_protocol_v5x6_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
31937
32038
|
default:
|
|
31938
32039
|
throw (0, neo4j_driver_core_1$a.newError)('Unknown Bolt protocol version: ' + version);
|
|
31939
32040
|
}
|