neo4j-driver 5.24.1 → 5.26.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 +1145 -845
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +1145 -845
- 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
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
|
|
19
19
|
var error = {};
|
|
20
20
|
|
|
21
|
+
var json$3 = {};
|
|
22
|
+
|
|
23
|
+
var objectUtil$2 = {};
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(objectUtil$2, "__esModule", { value: true });
|
|
26
|
+
objectUtil$2.getBrokenObjectReason = objectUtil$2.isBrokenObject = objectUtil$2.createBrokenObject = void 0;
|
|
21
27
|
/**
|
|
22
28
|
* Copyright (c) "Neo4j"
|
|
23
29
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -34,7 +40,150 @@
|
|
|
34
40
|
* See the License for the specific language governing permissions and
|
|
35
41
|
* limitations under the License.
|
|
36
42
|
*/
|
|
37
|
-
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
44
|
+
var __isBrokenObject__ = '__isBrokenObject__';
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
46
|
+
var __reason__ = '__reason__';
|
|
47
|
+
/**
|
|
48
|
+
* Creates a object which all method call will throw the given error
|
|
49
|
+
*
|
|
50
|
+
* @param {Error} error The error
|
|
51
|
+
* @param {any} object The object. Default: {}
|
|
52
|
+
* @returns {any} A broken object
|
|
53
|
+
*/
|
|
54
|
+
function createBrokenObject(error, object) {
|
|
55
|
+
if (object === void 0) { object = {}; }
|
|
56
|
+
var fail = function () {
|
|
57
|
+
throw error;
|
|
58
|
+
};
|
|
59
|
+
return new Proxy(object, {
|
|
60
|
+
get: function (_, p) {
|
|
61
|
+
if (p === __isBrokenObject__) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
else if (p === __reason__) {
|
|
65
|
+
return error;
|
|
66
|
+
}
|
|
67
|
+
else if (p === 'toJSON') {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
fail();
|
|
71
|
+
},
|
|
72
|
+
set: fail,
|
|
73
|
+
apply: fail,
|
|
74
|
+
construct: fail,
|
|
75
|
+
defineProperty: fail,
|
|
76
|
+
deleteProperty: fail,
|
|
77
|
+
getOwnPropertyDescriptor: fail,
|
|
78
|
+
getPrototypeOf: fail,
|
|
79
|
+
has: fail,
|
|
80
|
+
isExtensible: fail,
|
|
81
|
+
ownKeys: fail,
|
|
82
|
+
preventExtensions: fail,
|
|
83
|
+
setPrototypeOf: fail
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
87
|
+
/**
|
|
88
|
+
* Verifies if it is a Broken Object
|
|
89
|
+
* @param {any} object The object
|
|
90
|
+
* @returns {boolean} If it was created with createBrokenObject
|
|
91
|
+
*/
|
|
92
|
+
function isBrokenObject(object) {
|
|
93
|
+
return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;
|
|
94
|
+
}
|
|
95
|
+
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
96
|
+
/**
|
|
97
|
+
* Returns if the reason the object is broken.
|
|
98
|
+
*
|
|
99
|
+
* This method should only be called with instances create with {@link createBrokenObject}
|
|
100
|
+
*
|
|
101
|
+
* @param {any} object The object
|
|
102
|
+
* @returns {Error} The reason the object is broken
|
|
103
|
+
*/
|
|
104
|
+
function getBrokenObjectReason(object) {
|
|
105
|
+
return object[__reason__];
|
|
106
|
+
}
|
|
107
|
+
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Copyright (c) "Neo4j"
|
|
111
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
112
|
+
*
|
|
113
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
114
|
+
* you may not use this file except in compliance with the License.
|
|
115
|
+
* You may obtain a copy of the License at
|
|
116
|
+
*
|
|
117
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
118
|
+
*
|
|
119
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
120
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
121
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
122
|
+
* See the License for the specific language governing permissions and
|
|
123
|
+
* limitations under the License.
|
|
124
|
+
*/
|
|
125
|
+
Object.defineProperty(json$3, "__esModule", { value: true });
|
|
126
|
+
json$3.stringify = void 0;
|
|
127
|
+
var object_util_1 = objectUtil$2;
|
|
128
|
+
/**
|
|
129
|
+
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
130
|
+
* @private
|
|
131
|
+
* @param val A JavaScript value, usually an object or array, to be converted.
|
|
132
|
+
* @returns A JSON string representing the given value.
|
|
133
|
+
*/
|
|
134
|
+
function stringify(val, opts) {
|
|
135
|
+
return JSON.stringify(val, function (_, value) {
|
|
136
|
+
if ((0, object_util_1.isBrokenObject)(value)) {
|
|
137
|
+
return {
|
|
138
|
+
__isBrokenObject__: true,
|
|
139
|
+
__reason__: (0, object_util_1.getBrokenObjectReason)(value)
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
if (typeof value === 'bigint') {
|
|
143
|
+
return "".concat(value, "n");
|
|
144
|
+
}
|
|
145
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.useCustomToString) === true &&
|
|
146
|
+
typeof value === 'object' &&
|
|
147
|
+
!Array.isArray(value) &&
|
|
148
|
+
typeof value.toString === 'function' &&
|
|
149
|
+
value.toString !== Object.prototype.toString) {
|
|
150
|
+
return value === null || value === void 0 ? void 0 : value.toString();
|
|
151
|
+
}
|
|
152
|
+
return value;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
json$3.stringify = stringify;
|
|
156
|
+
|
|
157
|
+
var gqlConstants = {};
|
|
158
|
+
|
|
159
|
+
(function (exports) {
|
|
160
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
161
|
+
exports.rawPolyfilledDiagnosticRecord = void 0;
|
|
162
|
+
exports.rawPolyfilledDiagnosticRecord = {
|
|
163
|
+
OPERATION: '',
|
|
164
|
+
OPERATION_CODE: '0',
|
|
165
|
+
CURRENT_SCHEMA: '/'
|
|
166
|
+
};
|
|
167
|
+
Object.freeze(exports.rawPolyfilledDiagnosticRecord);
|
|
168
|
+
}(gqlConstants));
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Copyright (c) "Neo4j"
|
|
172
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
173
|
+
*
|
|
174
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
175
|
+
* you may not use this file except in compliance with the License.
|
|
176
|
+
* You may obtain a copy of the License at
|
|
177
|
+
*
|
|
178
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
179
|
+
*
|
|
180
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
181
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
182
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
183
|
+
* See the License for the specific language governing permissions and
|
|
184
|
+
* limitations under the License.
|
|
185
|
+
*/
|
|
186
|
+
var __extends$R = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
38
187
|
var extendStatics = function (d, b) {
|
|
39
188
|
extendStatics = Object.setPrototypeOf ||
|
|
40
189
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -49,10 +198,47 @@
|
|
|
49
198
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
50
199
|
};
|
|
51
200
|
})();
|
|
201
|
+
var __createBinding$d = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
202
|
+
if (k2 === undefined) k2 = k;
|
|
203
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
204
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
205
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
206
|
+
}
|
|
207
|
+
Object.defineProperty(o, k2, desc);
|
|
208
|
+
}) : (function(o, m, k, k2) {
|
|
209
|
+
if (k2 === undefined) k2 = k;
|
|
210
|
+
o[k2] = m[k];
|
|
211
|
+
}));
|
|
212
|
+
var __setModuleDefault$d = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
213
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
214
|
+
}) : function(o, v) {
|
|
215
|
+
o["default"] = v;
|
|
216
|
+
});
|
|
217
|
+
var __importStar$d = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
218
|
+
if (mod && mod.__esModule) return mod;
|
|
219
|
+
var result = {};
|
|
220
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$d(result, mod, k);
|
|
221
|
+
__setModuleDefault$d(result, mod);
|
|
222
|
+
return result;
|
|
223
|
+
};
|
|
52
224
|
Object.defineProperty(error, "__esModule", { value: true });
|
|
53
|
-
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.Neo4jError = error.isRetriableError = error.newError = void 0;
|
|
225
|
+
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.GQLError = error.Neo4jError = error.isRetriableError = error.newGQLError = error.newError = void 0;
|
|
54
226
|
// A common place for constructing error objects, to keep them
|
|
55
227
|
// uniform across the driver surface.
|
|
228
|
+
var json$2 = __importStar$d(json$3);
|
|
229
|
+
var gql_constants_1$1 = gqlConstants;
|
|
230
|
+
/**
|
|
231
|
+
* @typedef { 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' } ErrorClassification
|
|
232
|
+
* @experimental this is part of the preview of GQL-compliant errors
|
|
233
|
+
*/
|
|
234
|
+
var errorClassification = {
|
|
235
|
+
DATABASE_ERROR: 'DATABASE_ERROR',
|
|
236
|
+
CLIENT_ERROR: 'CLIENT_ERROR',
|
|
237
|
+
TRANSIENT_ERROR: 'TRANSIENT_ERROR',
|
|
238
|
+
UNKNOWN: 'UNKNOWN'
|
|
239
|
+
};
|
|
240
|
+
Object.freeze(errorClassification);
|
|
241
|
+
var classifications = Object.values(errorClassification);
|
|
56
242
|
/**
|
|
57
243
|
* Error code representing complete loss of service. Used by {@link Neo4jError#code}.
|
|
58
244
|
* @type {string}
|
|
@@ -77,30 +263,124 @@
|
|
|
77
263
|
*/
|
|
78
264
|
var NOT_AVAILABLE$1 = 'N/A';
|
|
79
265
|
/// TODO: Remove definitions of this.constructor and this.__proto__
|
|
266
|
+
/**
|
|
267
|
+
* Class for nested errors, to be used as causes in {@link Neo4jError}
|
|
268
|
+
* @experimental this class is part of the preview of GQL-compliant errors
|
|
269
|
+
*/
|
|
270
|
+
var GQLError = /** @class */ (function (_super) {
|
|
271
|
+
__extends$R(GQLError, _super);
|
|
272
|
+
/**
|
|
273
|
+
* @constructor
|
|
274
|
+
* @param {string} message - the error message
|
|
275
|
+
* @param {string} gqlStatus - the GQL status code of the error
|
|
276
|
+
* @param {string} gqlStatusDescription - the GQL status description of the error
|
|
277
|
+
* @param {ErrorDiagnosticRecord} diagnosticRecord - the error diagnostic record
|
|
278
|
+
* @param {Error} cause - Optional nested error, the cause of the error
|
|
279
|
+
*/
|
|
280
|
+
function GQLError(message, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) {
|
|
281
|
+
var _this = this;
|
|
282
|
+
var _a;
|
|
283
|
+
// eslint-disable-next-line
|
|
284
|
+
// @ts-ignore: not available in ES6 yet
|
|
285
|
+
_this = _super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
286
|
+
_this.constructor = GQLError;
|
|
287
|
+
// eslint-disable-next-line no-proto
|
|
288
|
+
_this.__proto__ = GQLError.prototype;
|
|
289
|
+
/**
|
|
290
|
+
* Optional, nested error which caused the error
|
|
291
|
+
*
|
|
292
|
+
* @type {Error?}
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
_this.cause = cause != null ? cause : undefined;
|
|
296
|
+
/**
|
|
297
|
+
* The GQL Status code
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
301
|
+
* @public
|
|
302
|
+
*/
|
|
303
|
+
_this.gqlStatus = gqlStatus;
|
|
304
|
+
/**
|
|
305
|
+
* The GQL Status Description
|
|
306
|
+
*
|
|
307
|
+
* @type {string}
|
|
308
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
309
|
+
* @public
|
|
310
|
+
*/
|
|
311
|
+
_this.gqlStatusDescription = gqlStatusDescription;
|
|
312
|
+
/**
|
|
313
|
+
* The GQL diagnostic record
|
|
314
|
+
*
|
|
315
|
+
* @type {DiagnosticRecord}
|
|
316
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
317
|
+
* @public
|
|
318
|
+
*/
|
|
319
|
+
_this.diagnosticRecord = diagnosticRecord;
|
|
320
|
+
/**
|
|
321
|
+
* The GQL error classification, extracted from the diagnostic record
|
|
322
|
+
*
|
|
323
|
+
* @type {ErrorClassification}
|
|
324
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
_this.classification = _extractClassification(_this.diagnosticRecord);
|
|
328
|
+
/**
|
|
329
|
+
* The GQL error classification, extracted from the diagnostic record as a raw string
|
|
330
|
+
*
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
_this.rawClassification = (_a = diagnosticRecord === null || diagnosticRecord === void 0 ? void 0 : diagnosticRecord._classification) !== null && _a !== void 0 ? _a : undefined;
|
|
336
|
+
_this.name = 'GQLError';
|
|
337
|
+
return _this;
|
|
338
|
+
}
|
|
339
|
+
Object.defineProperty(GQLError.prototype, "diagnosticRecordAsJsonString", {
|
|
340
|
+
/**
|
|
341
|
+
* The json string representation of the diagnostic record.
|
|
342
|
+
* The goal of this method is provide a serialized object for human inspection.
|
|
343
|
+
*
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @experimental this is part of the preview of GQL-compliant errors
|
|
346
|
+
* @public
|
|
347
|
+
*/
|
|
348
|
+
get: function () {
|
|
349
|
+
return json$2.stringify(this.diagnosticRecord, { useCustomToString: true });
|
|
350
|
+
},
|
|
351
|
+
enumerable: false,
|
|
352
|
+
configurable: true
|
|
353
|
+
});
|
|
354
|
+
return GQLError;
|
|
355
|
+
}(Error));
|
|
356
|
+
error.GQLError = GQLError;
|
|
80
357
|
/**
|
|
81
358
|
* Class for all errors thrown/returned by the driver.
|
|
82
359
|
*/
|
|
83
360
|
var Neo4jError = /** @class */ (function (_super) {
|
|
84
|
-
__extends$
|
|
361
|
+
__extends$R(Neo4jError, _super);
|
|
85
362
|
/**
|
|
86
363
|
* @constructor
|
|
87
364
|
* @param {string} message - the error message
|
|
88
365
|
* @param {string} code - Optional error code. Will be populated when error originates in the database.
|
|
366
|
+
* @param {string} gqlStatus - the GQL status code of the error
|
|
367
|
+
* @param {string} gqlStatusDescription - the GQL status description of the error
|
|
368
|
+
* @param {DiagnosticRecord} diagnosticRecord - the error diagnostic record
|
|
369
|
+
* @param {Error} cause - Optional nested error, the cause of the error
|
|
89
370
|
*/
|
|
90
|
-
function Neo4jError(message, code, cause) {
|
|
91
|
-
var _this =
|
|
92
|
-
// eslint-disable-next-line
|
|
93
|
-
// @ts-ignore: not available in ES6 yet
|
|
94
|
-
_super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
371
|
+
function Neo4jError(message, code, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) {
|
|
372
|
+
var _this = _super.call(this, message, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) || this;
|
|
95
373
|
_this.constructor = Neo4jError;
|
|
96
374
|
// eslint-disable-next-line no-proto
|
|
97
375
|
_this.__proto__ = Neo4jError.prototype;
|
|
98
|
-
_this.code = code;
|
|
99
|
-
_this.name = 'Neo4jError';
|
|
100
376
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
377
|
+
* The Neo4j Error code
|
|
378
|
+
*
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @public
|
|
103
381
|
*/
|
|
382
|
+
_this.code = code;
|
|
383
|
+
_this.name = 'Neo4jError';
|
|
104
384
|
_this.retriable = _isRetriableCode(code);
|
|
105
385
|
return _this;
|
|
106
386
|
}
|
|
@@ -117,19 +397,38 @@
|
|
|
117
397
|
error.retriable;
|
|
118
398
|
};
|
|
119
399
|
return Neo4jError;
|
|
120
|
-
}(
|
|
400
|
+
}(GQLError));
|
|
121
401
|
error.Neo4jError = Neo4jError;
|
|
122
402
|
/**
|
|
123
|
-
* Create a new error from a message and
|
|
403
|
+
* Create a new error from a message and optional data
|
|
124
404
|
* @param message the error message
|
|
125
|
-
* @param code the error code
|
|
405
|
+
* @param {Neo4jErrorCode} [code] the error code
|
|
406
|
+
* @param {Neo4jError} [cause]
|
|
407
|
+
* @param {String} [gqlStatus]
|
|
408
|
+
* @param {String} [gqlStatusDescription]
|
|
409
|
+
* @param {DiagnosticRecord} diagnosticRecord - the error message
|
|
126
410
|
* @return {Neo4jError} an {@link Neo4jError}
|
|
127
411
|
* @private
|
|
128
412
|
*/
|
|
129
|
-
function newError(message, code, cause) {
|
|
130
|
-
return new Neo4jError(message, code !== null && code !== void 0 ? code : NOT_AVAILABLE$1, cause);
|
|
413
|
+
function newError(message, code, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
414
|
+
return new Neo4jError(message, code !== null && code !== void 0 ? code : NOT_AVAILABLE$1, gqlStatus !== null && gqlStatus !== void 0 ? gqlStatus : '50N42', gqlStatusDescription !== null && gqlStatusDescription !== void 0 ? gqlStatusDescription : 'error: general processing exception - unexpected error. ' + message, diagnosticRecord !== null && diagnosticRecord !== void 0 ? diagnosticRecord : gql_constants_1$1.rawPolyfilledDiagnosticRecord, cause);
|
|
131
415
|
}
|
|
132
416
|
error.newError = newError;
|
|
417
|
+
/**
|
|
418
|
+
* Create a new GQL error from a message and optional data
|
|
419
|
+
* @param message the error message
|
|
420
|
+
* @param {Neo4jError} [cause]
|
|
421
|
+
* @param {String} [gqlStatus]
|
|
422
|
+
* @param {String} [gqlStatusDescription]
|
|
423
|
+
* @param {DiagnosticRecord} diagnosticRecord - the error message
|
|
424
|
+
* @return {Neo4jError} an {@link Neo4jError}
|
|
425
|
+
* @experimental this is part of the preview of GQL-compliant errors
|
|
426
|
+
* @private
|
|
427
|
+
*/
|
|
428
|
+
function newGQLError(message, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
429
|
+
return new GQLError(message, gqlStatus !== null && gqlStatus !== void 0 ? gqlStatus : '50N42', gqlStatusDescription !== null && gqlStatusDescription !== void 0 ? gqlStatusDescription : 'error: general processing exception - unexpected error. ' + message, diagnosticRecord !== null && diagnosticRecord !== void 0 ? diagnosticRecord : gql_constants_1$1.rawPolyfilledDiagnosticRecord, cause);
|
|
430
|
+
}
|
|
431
|
+
error.newGQLError = newGQLError;
|
|
133
432
|
/**
|
|
134
433
|
* Verifies if the given error is retriable.
|
|
135
434
|
*
|
|
@@ -166,6 +465,15 @@
|
|
|
166
465
|
function _isAuthorizationExpired(code) {
|
|
167
466
|
return code === 'Neo.ClientError.Security.AuthorizationExpired';
|
|
168
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* extracts a typed classification from the diagnostic record.
|
|
470
|
+
*/
|
|
471
|
+
function _extractClassification(diagnosticRecord) {
|
|
472
|
+
if (diagnosticRecord === undefined || diagnosticRecord._classification === undefined) {
|
|
473
|
+
return 'UNKNOWN';
|
|
474
|
+
}
|
|
475
|
+
return classifications.includes(diagnosticRecord._classification) ? diagnosticRecord === null || diagnosticRecord === void 0 ? void 0 : diagnosticRecord._classification : 'UNKNOWN';
|
|
476
|
+
}
|
|
169
477
|
|
|
170
478
|
var integer = {};
|
|
171
479
|
|
|
@@ -1183,142 +1491,6 @@
|
|
|
1183
1491
|
|
|
1184
1492
|
var util$4 = {};
|
|
1185
1493
|
|
|
1186
|
-
var json$2 = {};
|
|
1187
|
-
|
|
1188
|
-
var objectUtil$2 = {};
|
|
1189
|
-
|
|
1190
|
-
Object.defineProperty(objectUtil$2, "__esModule", { value: true });
|
|
1191
|
-
objectUtil$2.getBrokenObjectReason = objectUtil$2.isBrokenObject = objectUtil$2.createBrokenObject = void 0;
|
|
1192
|
-
/**
|
|
1193
|
-
* Copyright (c) "Neo4j"
|
|
1194
|
-
* Neo4j Sweden AB [https://neo4j.com]
|
|
1195
|
-
*
|
|
1196
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1197
|
-
* you may not use this file except in compliance with the License.
|
|
1198
|
-
* You may obtain a copy of the License at
|
|
1199
|
-
*
|
|
1200
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1201
|
-
*
|
|
1202
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1203
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1204
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1205
|
-
* See the License for the specific language governing permissions and
|
|
1206
|
-
* limitations under the License.
|
|
1207
|
-
*/
|
|
1208
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1209
|
-
var __isBrokenObject__ = '__isBrokenObject__';
|
|
1210
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1211
|
-
var __reason__ = '__reason__';
|
|
1212
|
-
/**
|
|
1213
|
-
* Creates a object which all method call will throw the given error
|
|
1214
|
-
*
|
|
1215
|
-
* @param {Error} error The error
|
|
1216
|
-
* @param {any} object The object. Default: {}
|
|
1217
|
-
* @returns {any} A broken object
|
|
1218
|
-
*/
|
|
1219
|
-
function createBrokenObject(error, object) {
|
|
1220
|
-
if (object === void 0) { object = {}; }
|
|
1221
|
-
var fail = function () {
|
|
1222
|
-
throw error;
|
|
1223
|
-
};
|
|
1224
|
-
return new Proxy(object, {
|
|
1225
|
-
get: function (_, p) {
|
|
1226
|
-
if (p === __isBrokenObject__) {
|
|
1227
|
-
return true;
|
|
1228
|
-
}
|
|
1229
|
-
else if (p === __reason__) {
|
|
1230
|
-
return error;
|
|
1231
|
-
}
|
|
1232
|
-
else if (p === 'toJSON') {
|
|
1233
|
-
return undefined;
|
|
1234
|
-
}
|
|
1235
|
-
fail();
|
|
1236
|
-
},
|
|
1237
|
-
set: fail,
|
|
1238
|
-
apply: fail,
|
|
1239
|
-
construct: fail,
|
|
1240
|
-
defineProperty: fail,
|
|
1241
|
-
deleteProperty: fail,
|
|
1242
|
-
getOwnPropertyDescriptor: fail,
|
|
1243
|
-
getPrototypeOf: fail,
|
|
1244
|
-
has: fail,
|
|
1245
|
-
isExtensible: fail,
|
|
1246
|
-
ownKeys: fail,
|
|
1247
|
-
preventExtensions: fail,
|
|
1248
|
-
setPrototypeOf: fail
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
1252
|
-
/**
|
|
1253
|
-
* Verifies if it is a Broken Object
|
|
1254
|
-
* @param {any} object The object
|
|
1255
|
-
* @returns {boolean} If it was created with createBrokenObject
|
|
1256
|
-
*/
|
|
1257
|
-
function isBrokenObject(object) {
|
|
1258
|
-
return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;
|
|
1259
|
-
}
|
|
1260
|
-
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
1261
|
-
/**
|
|
1262
|
-
* Returns if the reason the object is broken.
|
|
1263
|
-
*
|
|
1264
|
-
* This method should only be called with instances create with {@link createBrokenObject}
|
|
1265
|
-
*
|
|
1266
|
-
* @param {any} object The object
|
|
1267
|
-
* @returns {Error} The reason the object is broken
|
|
1268
|
-
*/
|
|
1269
|
-
function getBrokenObjectReason(object) {
|
|
1270
|
-
return object[__reason__];
|
|
1271
|
-
}
|
|
1272
|
-
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* Copyright (c) "Neo4j"
|
|
1276
|
-
* Neo4j Sweden AB [https://neo4j.com]
|
|
1277
|
-
*
|
|
1278
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1279
|
-
* you may not use this file except in compliance with the License.
|
|
1280
|
-
* You may obtain a copy of the License at
|
|
1281
|
-
*
|
|
1282
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1283
|
-
*
|
|
1284
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1285
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1286
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1287
|
-
* See the License for the specific language governing permissions and
|
|
1288
|
-
* limitations under the License.
|
|
1289
|
-
*/
|
|
1290
|
-
Object.defineProperty(json$2, "__esModule", { value: true });
|
|
1291
|
-
json$2.stringify = void 0;
|
|
1292
|
-
var object_util_1 = objectUtil$2;
|
|
1293
|
-
/**
|
|
1294
|
-
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
1295
|
-
* @private
|
|
1296
|
-
* @param val A JavaScript value, usually an object or array, to be converted.
|
|
1297
|
-
* @returns A JSON string representing the given value.
|
|
1298
|
-
*/
|
|
1299
|
-
function stringify(val, opts) {
|
|
1300
|
-
return JSON.stringify(val, function (_, value) {
|
|
1301
|
-
if ((0, object_util_1.isBrokenObject)(value)) {
|
|
1302
|
-
return {
|
|
1303
|
-
__isBrokenObject__: true,
|
|
1304
|
-
__reason__: (0, object_util_1.getBrokenObjectReason)(value)
|
|
1305
|
-
};
|
|
1306
|
-
}
|
|
1307
|
-
if (typeof value === 'bigint') {
|
|
1308
|
-
return "".concat(value, "n");
|
|
1309
|
-
}
|
|
1310
|
-
if ((opts === null || opts === void 0 ? void 0 : opts.useCustomToString) === true &&
|
|
1311
|
-
typeof value === 'object' &&
|
|
1312
|
-
!Array.isArray(value) &&
|
|
1313
|
-
typeof value.toString === 'function' &&
|
|
1314
|
-
value.toString !== Object.prototype.toString) {
|
|
1315
|
-
return value === null || value === void 0 ? void 0 : value.toString();
|
|
1316
|
-
}
|
|
1317
|
-
return value;
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
json$2.stringify = stringify;
|
|
1321
|
-
|
|
1322
1494
|
var __createBinding$c = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1323
1495
|
if (k2 === undefined) k2 = k;
|
|
1324
1496
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -1373,7 +1545,7 @@
|
|
|
1373
1545
|
*/
|
|
1374
1546
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1375
1547
|
var integer_1$2 = __importStar$c(integer);
|
|
1376
|
-
var json_1$1 = json$
|
|
1548
|
+
var json_1$1 = json$3;
|
|
1377
1549
|
var ENCRYPTION_ON$2 = 'ENCRYPTION_ON';
|
|
1378
1550
|
util$4.ENCRYPTION_ON = ENCRYPTION_ON$2;
|
|
1379
1551
|
var ENCRYPTION_OFF$2 = 'ENCRYPTION_OFF';
|
|
@@ -2794,7 +2966,7 @@
|
|
|
2794
2966
|
|
|
2795
2967
|
Object.defineProperty(graphTypes, "__esModule", { value: true });
|
|
2796
2968
|
graphTypes.isPathSegment = graphTypes.PathSegment = graphTypes.isPath = graphTypes.Path = graphTypes.isUnboundRelationship = graphTypes.UnboundRelationship = graphTypes.isRelationship = graphTypes.Relationship = graphTypes.isNode = graphTypes.Node = void 0;
|
|
2797
|
-
var json_1 = json$
|
|
2969
|
+
var json_1 = json$3;
|
|
2798
2970
|
var IDENTIFIER_PROPERTY_ATTRIBUTES = {
|
|
2799
2971
|
value: true,
|
|
2800
2972
|
enumerable: false,
|
|
@@ -3844,7 +4016,7 @@
|
|
|
3844
4016
|
* limitations under the License.
|
|
3845
4017
|
*/
|
|
3846
4018
|
Object.defineProperty(constants$1, "__esModule", { value: true });
|
|
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;
|
|
4019
|
+
constants$1.TELEMETRY_APIS = constants$1.BOLT_PROTOCOL_V5_7 = 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
4020
|
var FETCH_ALL$7 = -1;
|
|
3849
4021
|
constants$1.FETCH_ALL = FETCH_ALL$7;
|
|
3850
4022
|
var DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds
|
|
@@ -3887,6 +4059,8 @@
|
|
|
3887
4059
|
constants$1.BOLT_PROTOCOL_V5_5 = BOLT_PROTOCOL_V5_5$1;
|
|
3888
4060
|
var BOLT_PROTOCOL_V5_6$1 = 5.6;
|
|
3889
4061
|
constants$1.BOLT_PROTOCOL_V5_6 = BOLT_PROTOCOL_V5_6$1;
|
|
4062
|
+
var BOLT_PROTOCOL_V5_7$1 = 5.7;
|
|
4063
|
+
constants$1.BOLT_PROTOCOL_V5_7 = BOLT_PROTOCOL_V5_7$1;
|
|
3890
4064
|
var TELEMETRY_APIS$1 = {
|
|
3891
4065
|
MANAGED_TRANSACTION: 0,
|
|
3892
4066
|
UNMANAGED_TRANSACTION: 1,
|
|
@@ -3899,7 +4073,7 @@
|
|
|
3899
4073
|
|
|
3900
4074
|
var logger$1 = {};
|
|
3901
4075
|
|
|
3902
|
-
var __extends$
|
|
4076
|
+
var __extends$Q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
3903
4077
|
var extendStatics = function (d, b) {
|
|
3904
4078
|
extendStatics = Object.setPrototypeOf ||
|
|
3905
4079
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4047,7 +4221,7 @@
|
|
|
4047
4221
|
}());
|
|
4048
4222
|
logger$1.Logger = Logger$1;
|
|
4049
4223
|
var NoOpLogger = /** @class */ (function (_super) {
|
|
4050
|
-
__extends$
|
|
4224
|
+
__extends$Q(NoOpLogger, _super);
|
|
4051
4225
|
function NoOpLogger() {
|
|
4052
4226
|
return _super.call(this, INFO, function (level, message) { }) || this;
|
|
4053
4227
|
}
|
|
@@ -4128,7 +4302,7 @@
|
|
|
4128
4302
|
* limitations under the License.
|
|
4129
4303
|
*/
|
|
4130
4304
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
4131
|
-
var __extends$
|
|
4305
|
+
var __extends$P = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4132
4306
|
var extendStatics = function (d, b) {
|
|
4133
4307
|
extendStatics = Object.setPrototypeOf ||
|
|
4134
4308
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4346,7 +4520,7 @@
|
|
|
4346
4520
|
* releasing or initilizing
|
|
4347
4521
|
*/
|
|
4348
4522
|
var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
4349
|
-
__extends$
|
|
4523
|
+
__extends$P(ReadOnlyConnectionHolder, _super);
|
|
4350
4524
|
/**
|
|
4351
4525
|
* Constructor
|
|
4352
4526
|
* @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
|
|
@@ -4401,7 +4575,7 @@
|
|
|
4401
4575
|
connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
|
|
4402
4576
|
connectionHolder$1.default = ReadOnlyConnectionHolder;
|
|
4403
4577
|
var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
4404
|
-
__extends$
|
|
4578
|
+
__extends$P(EmptyConnectionHolder, _super);
|
|
4405
4579
|
function EmptyConnectionHolder() {
|
|
4406
4580
|
return _super.call(this, {
|
|
4407
4581
|
// Empty logger
|
|
@@ -4585,8 +4759,8 @@
|
|
|
4585
4759
|
|
|
4586
4760
|
var transactionExecutor$1 = {};
|
|
4587
4761
|
|
|
4588
|
-
var __assign$
|
|
4589
|
-
__assign$
|
|
4762
|
+
var __assign$t = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4763
|
+
__assign$t = Object.assign || function(t) {
|
|
4590
4764
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4591
4765
|
s = arguments[i];
|
|
4592
4766
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4594,7 +4768,7 @@
|
|
|
4594
4768
|
}
|
|
4595
4769
|
return t;
|
|
4596
4770
|
};
|
|
4597
|
-
return __assign$
|
|
4771
|
+
return __assign$t.apply(this, arguments);
|
|
4598
4772
|
};
|
|
4599
4773
|
var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4600
4774
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -4762,7 +4936,7 @@
|
|
|
4762
4936
|
case 0:
|
|
4763
4937
|
_b.trys.push([0, 4, , 5]);
|
|
4764
4938
|
txPromise = transactionCreator((executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) != null
|
|
4765
|
-
? __assign$
|
|
4939
|
+
? __assign$t({}, executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) : undefined);
|
|
4766
4940
|
if (!this.pipelineBegin) return [3 /*break*/, 1];
|
|
4767
4941
|
_a = txPromise;
|
|
4768
4942
|
return [3 /*break*/, 3];
|
|
@@ -4887,8 +5061,8 @@
|
|
|
4887
5061
|
* See the License for the specific language governing permissions and
|
|
4888
5062
|
* limitations under the License.
|
|
4889
5063
|
*/
|
|
4890
|
-
var __assign$
|
|
4891
|
-
__assign$
|
|
5064
|
+
var __assign$s = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5065
|
+
__assign$s = Object.assign || function(t) {
|
|
4892
5066
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4893
5067
|
s = arguments[i];
|
|
4894
5068
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4896,7 +5070,7 @@
|
|
|
4896
5070
|
}
|
|
4897
5071
|
return t;
|
|
4898
5072
|
};
|
|
4899
|
-
return __assign$
|
|
5073
|
+
return __assign$s.apply(this, arguments);
|
|
4900
5074
|
};
|
|
4901
5075
|
var __read$t = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
4902
5076
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -5158,7 +5332,7 @@
|
|
|
5158
5332
|
// Parse authority and path
|
|
5159
5333
|
if (value.startsWith('//')) {
|
|
5160
5334
|
parts = partition(value.substr(2), '/');
|
|
5161
|
-
parsed = __assign$
|
|
5335
|
+
parsed = __assign$s(__assign$s({}, parsed), parseAuthority(parts[0]));
|
|
5162
5336
|
parsed.path = parts[1] + parts[2];
|
|
5163
5337
|
}
|
|
5164
5338
|
else {
|
|
@@ -5332,7 +5506,7 @@
|
|
|
5332
5506
|
}());
|
|
5333
5507
|
configuredCustomResolver.default = ConfiguredCustomResolver;
|
|
5334
5508
|
|
|
5335
|
-
var __importDefault$
|
|
5509
|
+
var __importDefault$Y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5336
5510
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5337
5511
|
};
|
|
5338
5512
|
Object.defineProperty(resolver$1, "__esModule", { value: true });
|
|
@@ -5353,9 +5527,9 @@
|
|
|
5353
5527
|
* See the License for the specific language governing permissions and
|
|
5354
5528
|
* limitations under the License.
|
|
5355
5529
|
*/
|
|
5356
|
-
var base_host_name_resolver_1 = __importDefault$
|
|
5530
|
+
var base_host_name_resolver_1 = __importDefault$Y(baseHostNameResolver);
|
|
5357
5531
|
resolver$1.BaseHostNameResolver = base_host_name_resolver_1.default;
|
|
5358
|
-
var configured_custom_resolver_1$1 = __importDefault$
|
|
5532
|
+
var configured_custom_resolver_1$1 = __importDefault$Y(configuredCustomResolver);
|
|
5359
5533
|
resolver$1.ConfiguredCustomResolver = configured_custom_resolver_1$1.default;
|
|
5360
5534
|
|
|
5361
5535
|
var browser$1 = {};
|
|
@@ -5553,11 +5727,11 @@
|
|
|
5553
5727
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5554
5728
|
}
|
|
5555
5729
|
};
|
|
5556
|
-
var __importDefault$
|
|
5730
|
+
var __importDefault$X = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5557
5731
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5558
5732
|
};
|
|
5559
5733
|
Object.defineProperty(pool$1, "__esModule", { value: true });
|
|
5560
|
-
var pool_config_1 = __importDefault$
|
|
5734
|
+
var pool_config_1 = __importDefault$X(poolConfig);
|
|
5561
5735
|
var error_1$5 = error;
|
|
5562
5736
|
var logger_1$1 = logger$1;
|
|
5563
5737
|
var Pool$1 = /** @class */ (function () {
|
|
@@ -5780,10 +5954,10 @@
|
|
|
5780
5954
|
}
|
|
5781
5955
|
key = address.asKey();
|
|
5782
5956
|
pool = this._getOrInitializePoolFor(key);
|
|
5783
|
-
if (!!requireNew) return [3 /*break*/,
|
|
5957
|
+
if (!!requireNew) return [3 /*break*/, 10];
|
|
5784
5958
|
_a.label = 1;
|
|
5785
5959
|
case 1:
|
|
5786
|
-
if (!(pool.length > 0)) return [3 /*break*/,
|
|
5960
|
+
if (!(pool.length > 0)) return [3 /*break*/, 10];
|
|
5787
5961
|
resource_1 = pool.pop();
|
|
5788
5962
|
if (resource_1 == null) {
|
|
5789
5963
|
return [3 /*break*/, 1];
|
|
@@ -5795,35 +5969,36 @@
|
|
|
5795
5969
|
valid = false;
|
|
5796
5970
|
_a.label = 2;
|
|
5797
5971
|
case 2:
|
|
5798
|
-
_a.trys.push([2, 4, ,
|
|
5972
|
+
_a.trys.push([2, 4, , 6]);
|
|
5799
5973
|
return [4 /*yield*/, this._validateOnAcquire(acquisitionContext, resource_1)];
|
|
5800
5974
|
case 3:
|
|
5801
5975
|
valid = _a.sent();
|
|
5802
|
-
return [3 /*break*/,
|
|
5976
|
+
return [3 /*break*/, 6];
|
|
5803
5977
|
case 4:
|
|
5804
5978
|
e_1 = _a.sent();
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
}
|
|
5809
|
-
return [3 /*break*/, 5];
|
|
5979
|
+
resourceReleased(key, this._activeResourceCounts);
|
|
5980
|
+
pool.removeInUse(resource_1);
|
|
5981
|
+
return [4 /*yield*/, this._destroy(resource_1)];
|
|
5810
5982
|
case 5:
|
|
5811
|
-
|
|
5983
|
+
_a.sent();
|
|
5984
|
+
throw e_1;
|
|
5985
|
+
case 6:
|
|
5986
|
+
if (!valid) return [3 /*break*/, 7];
|
|
5812
5987
|
// idle resource is valid and can be acquired
|
|
5813
5988
|
if (this._log.isDebugEnabled()) {
|
|
5814
5989
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
5815
5990
|
this._log.debug("".concat(resource_1, " acquired from the pool ").concat(key));
|
|
5816
5991
|
}
|
|
5817
5992
|
return [2 /*return*/, { resource: resource_1, pool: pool }];
|
|
5818
|
-
case
|
|
5993
|
+
case 7:
|
|
5819
5994
|
resourceReleased(key, this._activeResourceCounts);
|
|
5820
5995
|
pool.removeInUse(resource_1);
|
|
5821
5996
|
return [4 /*yield*/, this._destroy(resource_1)];
|
|
5822
|
-
case
|
|
5997
|
+
case 8:
|
|
5823
5998
|
_a.sent();
|
|
5824
|
-
_a.label =
|
|
5825
|
-
case
|
|
5826
|
-
case
|
|
5999
|
+
_a.label = 9;
|
|
6000
|
+
case 9: return [3 /*break*/, 1];
|
|
6001
|
+
case 10:
|
|
5827
6002
|
// Ensure requested max pool size
|
|
5828
6003
|
if (this._maxSize > 0) {
|
|
5829
6004
|
numConnections = this.activeResourceCount(address) + this._pendingCreates[key];
|
|
@@ -5835,28 +6010,28 @@
|
|
|
5835
6010
|
// there exist no idle valid resources, create a new one for acquisition
|
|
5836
6011
|
// Keep track of how many pending creates there are to avoid making too many connections.
|
|
5837
6012
|
this._pendingCreates[key] = this._pendingCreates[key] + 1;
|
|
5838
|
-
_a.label =
|
|
5839
|
-
case
|
|
5840
|
-
_a.trys.push([
|
|
6013
|
+
_a.label = 11;
|
|
6014
|
+
case 11:
|
|
6015
|
+
_a.trys.push([11, , 15, 16]);
|
|
5841
6016
|
numConnections = this.activeResourceCount(address) + pool.length;
|
|
5842
|
-
if (!(numConnections >= this._maxSize && requireNew)) return [3 /*break*/,
|
|
6017
|
+
if (!(numConnections >= this._maxSize && requireNew)) return [3 /*break*/, 13];
|
|
5843
6018
|
resource_2 = pool.pop();
|
|
5844
|
-
if (!(resource_2 != null)) return [3 /*break*/,
|
|
6019
|
+
if (!(resource_2 != null)) return [3 /*break*/, 13];
|
|
5845
6020
|
if (this._removeIdleObserver != null) {
|
|
5846
6021
|
this._removeIdleObserver(resource_2);
|
|
5847
6022
|
}
|
|
5848
6023
|
pool.removeInUse(resource_2);
|
|
5849
6024
|
return [4 /*yield*/, this._destroy(resource_2)];
|
|
5850
|
-
case
|
|
6025
|
+
case 12:
|
|
5851
6026
|
_a.sent();
|
|
5852
|
-
_a.label =
|
|
5853
|
-
case
|
|
6027
|
+
_a.label = 13;
|
|
6028
|
+
case 13: return [4 /*yield*/, this._create(acquisitionContext, address, function (address, resource) { return __awaiter$i(_this, void 0, void 0, function () { return __generator$k(this, function (_a) {
|
|
5854
6029
|
switch (_a.label) {
|
|
5855
6030
|
case 0: return [4 /*yield*/, this._release(address, resource, pool)];
|
|
5856
6031
|
case 1: return [2 /*return*/, _a.sent()];
|
|
5857
6032
|
}
|
|
5858
6033
|
}); }); })];
|
|
5859
|
-
case
|
|
6034
|
+
case 14:
|
|
5860
6035
|
// Invoke callback that creates actual connection
|
|
5861
6036
|
resource = _a.sent();
|
|
5862
6037
|
pool.pushInUse(resource);
|
|
@@ -5865,11 +6040,11 @@
|
|
|
5865
6040
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
5866
6041
|
this._log.debug("".concat(resource, " created for the pool ").concat(key));
|
|
5867
6042
|
}
|
|
5868
|
-
return [3 /*break*/,
|
|
5869
|
-
case
|
|
6043
|
+
return [3 /*break*/, 16];
|
|
6044
|
+
case 15:
|
|
5870
6045
|
this._pendingCreates[key] = this._pendingCreates[key] - 1;
|
|
5871
6046
|
return [7 /*endfinally*/];
|
|
5872
|
-
case
|
|
6047
|
+
case 16: return [2 /*return*/, { resource: resource, pool: pool }];
|
|
5873
6048
|
}
|
|
5874
6049
|
});
|
|
5875
6050
|
});
|
|
@@ -6290,8 +6465,8 @@
|
|
|
6290
6465
|
|
|
6291
6466
|
var notification = {};
|
|
6292
6467
|
|
|
6293
|
-
var __assign$
|
|
6294
|
-
__assign$
|
|
6468
|
+
var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
6469
|
+
__assign$r = Object.assign || function(t) {
|
|
6295
6470
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6296
6471
|
s = arguments[i];
|
|
6297
6472
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -6299,7 +6474,7 @@
|
|
|
6299
6474
|
}
|
|
6300
6475
|
return t;
|
|
6301
6476
|
};
|
|
6302
|
-
return __assign$
|
|
6477
|
+
return __assign$r.apply(this, arguments);
|
|
6303
6478
|
};
|
|
6304
6479
|
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6305
6480
|
if (k2 === undefined) k2 = k;
|
|
@@ -6367,8 +6542,9 @@
|
|
|
6367
6542
|
* See the License for the specific language governing permissions and
|
|
6368
6543
|
* limitations under the License.
|
|
6369
6544
|
*/
|
|
6370
|
-
var json$1 = __importStar$6(json$
|
|
6545
|
+
var json$1 = __importStar$6(json$3);
|
|
6371
6546
|
var internal_1$3 = internal;
|
|
6547
|
+
var gql_constants_1 = gqlConstants;
|
|
6372
6548
|
var unknownGqlStatus = {
|
|
6373
6549
|
WARNING: {
|
|
6374
6550
|
gql_status: '01N42',
|
|
@@ -6384,7 +6560,7 @@
|
|
|
6384
6560
|
},
|
|
6385
6561
|
ERROR: {
|
|
6386
6562
|
gql_status: '50N42',
|
|
6387
|
-
status_description: 'error: general processing exception -
|
|
6563
|
+
status_description: 'error: general processing exception - unexpected error'
|
|
6388
6564
|
}
|
|
6389
6565
|
};
|
|
6390
6566
|
/**
|
|
@@ -6721,7 +6897,7 @@
|
|
|
6721
6897
|
status_description: (_a = notification.description) !== null && _a !== void 0 ? _a : defaultStatus.status_description,
|
|
6722
6898
|
neo4j_code: notification.code,
|
|
6723
6899
|
title: notification.title,
|
|
6724
|
-
diagnostic_record: __assign$
|
|
6900
|
+
diagnostic_record: __assign$r({}, gql_constants_1.rawPolyfilledDiagnosticRecord)
|
|
6725
6901
|
};
|
|
6726
6902
|
if (notification.severity != null) {
|
|
6727
6903
|
polyfilledRawObj.diagnostic_record._severity = notification.severity;
|
|
@@ -6735,12 +6911,6 @@
|
|
|
6735
6911
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6736
6912
|
}
|
|
6737
6913
|
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6738
|
-
var rawPolyfilledDiagnosticRecord = {
|
|
6739
|
-
OPERATION: '',
|
|
6740
|
-
OPERATION_CODE: '0',
|
|
6741
|
-
CURRENT_SCHEMA: '/'
|
|
6742
|
-
};
|
|
6743
|
-
Object.freeze(rawPolyfilledDiagnosticRecord);
|
|
6744
6914
|
/**
|
|
6745
6915
|
* This objects are used for polyfilling the first status on the status list
|
|
6746
6916
|
*
|
|
@@ -6750,18 +6920,18 @@
|
|
|
6750
6920
|
SUCCESS: new GqlStatusObject({
|
|
6751
6921
|
gql_status: '00000',
|
|
6752
6922
|
status_description: 'note: successful completion',
|
|
6753
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6923
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6754
6924
|
}),
|
|
6755
6925
|
NO_DATA: new GqlStatusObject({
|
|
6756
6926
|
gql_status: '02000',
|
|
6757
6927
|
status_description: 'note: no data',
|
|
6758
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6928
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6759
6929
|
}),
|
|
6760
|
-
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$
|
|
6930
|
+
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$r(__assign$r({}, unknownGqlStatus.NO_DATA), { diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord })),
|
|
6761
6931
|
OMITTED_RESULT: new GqlStatusObject({
|
|
6762
6932
|
gql_status: '00001',
|
|
6763
6933
|
status_description: 'note: successful completion - omitted result',
|
|
6764
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6934
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6765
6935
|
})
|
|
6766
6936
|
};
|
|
6767
6937
|
Object.freeze(staticGqlStatusObjects);
|
|
@@ -7429,13 +7599,13 @@
|
|
|
7429
7599
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7430
7600
|
}
|
|
7431
7601
|
};
|
|
7432
|
-
var __importDefault$
|
|
7602
|
+
var __importDefault$W = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7433
7603
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7434
7604
|
};
|
|
7435
7605
|
var _a$g;
|
|
7436
7606
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
7437
7607
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
7438
|
-
var result_summary_1 = __importDefault$
|
|
7608
|
+
var result_summary_1 = __importDefault$W(resultSummary);
|
|
7439
7609
|
var internal_1$1 = internal;
|
|
7440
7610
|
var error_1$4 = error;
|
|
7441
7611
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -8379,7 +8549,7 @@
|
|
|
8379
8549
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8380
8550
|
}
|
|
8381
8551
|
};
|
|
8382
|
-
var __importDefault$
|
|
8552
|
+
var __importDefault$V = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8383
8553
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8384
8554
|
};
|
|
8385
8555
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -8390,7 +8560,7 @@
|
|
|
8390
8560
|
var tx_config_1$1 = txConfig$1;
|
|
8391
8561
|
var observers_1$1 = observers;
|
|
8392
8562
|
var error_1$3 = error;
|
|
8393
|
-
var result_1$1 = __importDefault$
|
|
8563
|
+
var result_1$1 = __importDefault$V(result);
|
|
8394
8564
|
/**
|
|
8395
8565
|
* Represents a transaction in the Neo4j database.
|
|
8396
8566
|
*
|
|
@@ -8938,7 +9108,7 @@
|
|
|
8938
9108
|
* See the License for the specific language governing permissions and
|
|
8939
9109
|
* limitations under the License.
|
|
8940
9110
|
*/
|
|
8941
|
-
var __extends$
|
|
9111
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
8942
9112
|
var extendStatics = function (d, b) {
|
|
8943
9113
|
extendStatics = Object.setPrototypeOf ||
|
|
8944
9114
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8953,8 +9123,8 @@
|
|
|
8953
9123
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8954
9124
|
};
|
|
8955
9125
|
})();
|
|
8956
|
-
var __assign$
|
|
8957
|
-
__assign$
|
|
9126
|
+
var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
9127
|
+
__assign$q = Object.assign || function(t) {
|
|
8958
9128
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8959
9129
|
s = arguments[i];
|
|
8960
9130
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -8962,15 +9132,15 @@
|
|
|
8962
9132
|
}
|
|
8963
9133
|
return t;
|
|
8964
9134
|
};
|
|
8965
|
-
return __assign$
|
|
9135
|
+
return __assign$q.apply(this, arguments);
|
|
8966
9136
|
};
|
|
8967
|
-
var __importDefault$
|
|
9137
|
+
var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8968
9138
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8969
9139
|
};
|
|
8970
9140
|
var _a$f;
|
|
8971
9141
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
8972
9142
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
8973
|
-
var transaction_1 = __importDefault$
|
|
9143
|
+
var transaction_1 = __importDefault$U(transaction);
|
|
8974
9144
|
/**
|
|
8975
9145
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
8976
9146
|
*
|
|
@@ -8982,7 +9152,7 @@
|
|
|
8982
9152
|
* @access public
|
|
8983
9153
|
*/
|
|
8984
9154
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
8985
|
-
__extends$
|
|
9155
|
+
__extends$O(TransactionPromise, _super);
|
|
8986
9156
|
/**
|
|
8987
9157
|
* @constructor
|
|
8988
9158
|
* @param {object} args
|
|
@@ -9063,7 +9233,7 @@
|
|
|
9063
9233
|
* @access private
|
|
9064
9234
|
*/
|
|
9065
9235
|
TransactionPromise.prototype._toTransaction = function () {
|
|
9066
|
-
return __assign$
|
|
9236
|
+
return __assign$q(__assign$q({}, 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) });
|
|
9067
9237
|
};
|
|
9068
9238
|
/**
|
|
9069
9239
|
* @access private
|
|
@@ -9178,7 +9348,7 @@
|
|
|
9178
9348
|
}
|
|
9179
9349
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9180
9350
|
};
|
|
9181
|
-
var __importDefault$
|
|
9351
|
+
var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9182
9352
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9183
9353
|
};
|
|
9184
9354
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -9187,13 +9357,13 @@
|
|
|
9187
9357
|
var util_1$1 = util$4;
|
|
9188
9358
|
var constants_1$2 = constants$1;
|
|
9189
9359
|
var error_1$2 = error;
|
|
9190
|
-
var result_1 = __importDefault$
|
|
9360
|
+
var result_1 = __importDefault$T(result);
|
|
9191
9361
|
var connection_holder_1 = connectionHolder$1;
|
|
9192
9362
|
var transaction_executor_1 = transactionExecutor$1;
|
|
9193
9363
|
var bookmarks_1$1 = bookmarks$1;
|
|
9194
9364
|
var tx_config_1 = txConfig$1;
|
|
9195
|
-
var transaction_promise_1 = __importDefault$
|
|
9196
|
-
var transaction_managed_1 = __importDefault$
|
|
9365
|
+
var transaction_promise_1 = __importDefault$T(transactionPromise);
|
|
9366
|
+
var transaction_managed_1 = __importDefault$T(transactionManaged);
|
|
9197
9367
|
/**
|
|
9198
9368
|
* A Session instance is used for handling the connection and
|
|
9199
9369
|
* sending queries through the connection.
|
|
@@ -10005,11 +10175,11 @@
|
|
|
10005
10175
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10006
10176
|
}
|
|
10007
10177
|
};
|
|
10008
|
-
var __importDefault$
|
|
10178
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10009
10179
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10010
10180
|
};
|
|
10011
10181
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
10012
|
-
var result_eager_1 = __importDefault$
|
|
10182
|
+
var result_eager_1 = __importDefault$S(resultEager);
|
|
10013
10183
|
var error_1$1 = error;
|
|
10014
10184
|
/**
|
|
10015
10185
|
* Protocol for transforming {@link Result}.
|
|
@@ -10518,20 +10688,20 @@
|
|
|
10518
10688
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10519
10689
|
}
|
|
10520
10690
|
};
|
|
10521
|
-
var __importDefault$
|
|
10691
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10522
10692
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10523
10693
|
};
|
|
10524
10694
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
10525
10695
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
10526
10696
|
var bookmarks_1 = bookmarks$1;
|
|
10527
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
10697
|
+
var configured_custom_resolver_1 = __importDefault$R(configuredCustomResolver);
|
|
10528
10698
|
var constants_1 = constants$1;
|
|
10529
10699
|
var logger_1 = logger$1;
|
|
10530
|
-
var session_1 = __importDefault$
|
|
10700
|
+
var session_1 = __importDefault$R(session);
|
|
10531
10701
|
var util_1 = util$4;
|
|
10532
10702
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
10533
|
-
var result_transformers_1 = __importDefault$
|
|
10534
|
-
var query_executor_1 = __importDefault$
|
|
10703
|
+
var result_transformers_1 = __importDefault$R(resultTransformers$1);
|
|
10704
|
+
var query_executor_1 = __importDefault$R(queryExecutor);
|
|
10535
10705
|
var error_1 = error;
|
|
10536
10706
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
10537
10707
|
/**
|
|
@@ -11516,12 +11686,12 @@
|
|
|
11516
11686
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
11517
11687
|
}
|
|
11518
11688
|
};
|
|
11519
|
-
var __importDefault$
|
|
11689
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
11520
11690
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11521
11691
|
};
|
|
11522
11692
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11523
11693
|
authTokenManager.staticAuthTokenManager = authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
11524
|
-
var auth_1 = __importDefault$
|
|
11694
|
+
var auth_1 = __importDefault$Q(auth$1);
|
|
11525
11695
|
var internal_1 = internal;
|
|
11526
11696
|
/**
|
|
11527
11697
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11785,7 +11955,7 @@
|
|
|
11785
11955
|
* See the License for the specific language governing permissions and
|
|
11786
11956
|
* limitations under the License.
|
|
11787
11957
|
*/
|
|
11788
|
-
var __extends$
|
|
11958
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11789
11959
|
var extendStatics = function (d, b) {
|
|
11790
11960
|
extendStatics = Object.setPrototypeOf ||
|
|
11791
11961
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12068,7 +12238,7 @@
|
|
|
12068
12238
|
}());
|
|
12069
12239
|
types$1.Config = Config;
|
|
12070
12240
|
var InternalConfig = /** @class */ (function (_super) {
|
|
12071
|
-
__extends$
|
|
12241
|
+
__extends$N(InternalConfig, _super);
|
|
12072
12242
|
function InternalConfig() {
|
|
12073
12243
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12074
12244
|
}
|
|
@@ -12094,7 +12264,7 @@
|
|
|
12094
12264
|
* See the License for the specific language governing permissions and
|
|
12095
12265
|
* limitations under the License.
|
|
12096
12266
|
*/
|
|
12097
|
-
var __extends$
|
|
12267
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12098
12268
|
var extendStatics = function (d, b) {
|
|
12099
12269
|
extendStatics = Object.setPrototypeOf ||
|
|
12100
12270
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12109,8 +12279,8 @@
|
|
|
12109
12279
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12110
12280
|
};
|
|
12111
12281
|
})();
|
|
12112
|
-
var __assign$
|
|
12113
|
-
__assign$
|
|
12282
|
+
var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
12283
|
+
__assign$p = Object.assign || function(t) {
|
|
12114
12284
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12115
12285
|
s = arguments[i];
|
|
12116
12286
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -12118,7 +12288,7 @@
|
|
|
12118
12288
|
}
|
|
12119
12289
|
return t;
|
|
12120
12290
|
};
|
|
12121
|
-
return __assign$
|
|
12291
|
+
return __assign$p.apply(this, arguments);
|
|
12122
12292
|
};
|
|
12123
12293
|
var __createBinding$5 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12124
12294
|
if (k2 === undefined) k2 = k;
|
|
@@ -12145,7 +12315,7 @@
|
|
|
12145
12315
|
};
|
|
12146
12316
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12147
12317
|
clientCertificate.resolveCertificateProvider = clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12148
|
-
var json = __importStar$5(json$
|
|
12318
|
+
var json = __importStar$5(json$3);
|
|
12149
12319
|
/**
|
|
12150
12320
|
* Represents KeyFile represented as file.
|
|
12151
12321
|
*
|
|
@@ -12244,7 +12414,7 @@
|
|
|
12244
12414
|
* @since 5.19
|
|
12245
12415
|
*/
|
|
12246
12416
|
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
12247
|
-
__extends$
|
|
12417
|
+
__extends$M(RotatingClientCertificateProvider, _super);
|
|
12248
12418
|
function RotatingClientCertificateProvider() {
|
|
12249
12419
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12250
12420
|
}
|
|
@@ -12284,7 +12454,7 @@
|
|
|
12284
12454
|
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
12285
12455
|
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
12286
12456
|
}
|
|
12287
|
-
var certificate = __assign$
|
|
12457
|
+
var certificate = __assign$p({}, initialCertificate);
|
|
12288
12458
|
return new InternalRotatingClientCertificateProvider(certificate);
|
|
12289
12459
|
};
|
|
12290
12460
|
return ClientCertificateProviders;
|
|
@@ -12317,7 +12487,7 @@
|
|
|
12317
12487
|
return input;
|
|
12318
12488
|
}
|
|
12319
12489
|
if (isClientClientCertificate(input)) {
|
|
12320
|
-
var certificate_1 = __assign$
|
|
12490
|
+
var certificate_1 = __assign$p({}, input);
|
|
12321
12491
|
return {
|
|
12322
12492
|
getClientCertificate: function () { return certificate_1; },
|
|
12323
12493
|
hasUpdate: function () { return false; }
|
|
@@ -12439,7 +12609,7 @@
|
|
|
12439
12609
|
if (!isClientClientCertificate(certificate)) {
|
|
12440
12610
|
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
12441
12611
|
}
|
|
12442
|
-
this._certificate = __assign$
|
|
12612
|
+
this._certificate = __assign$p({}, certificate);
|
|
12443
12613
|
this._updated = true;
|
|
12444
12614
|
};
|
|
12445
12615
|
return InternalRotatingClientCertificateProvider;
|
|
@@ -12489,11 +12659,13 @@
|
|
|
12489
12659
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12490
12660
|
};
|
|
12491
12661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12492
|
-
exports.
|
|
12493
|
-
exports.resolveCertificateProvider = exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledClassification = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationClassification = exports.notificationCategory = exports.resultTransformers = exports.routing = exports.staticAuthTokenManager = exports.bookmarkManager = exports.auth = exports.json = exports.driver = exports.types = exports.Driver = exports.Session = exports.TransactionPromise = exports.ManagedTransaction = exports.Transaction = exports.Connection = void 0;
|
|
12662
|
+
exports.EagerResult = exports.Result = exports.Stats = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.GqlStatusObject = exports.Notification = exports.ServerInfo = exports.queryType = exports.ResultSummary = exports.Record = exports.isPathSegment = exports.PathSegment = exports.isPath = exports.Path = exports.isUnboundRelationship = exports.UnboundRelationship = exports.isRelationship = exports.Relationship = exports.isNode = exports.Node = exports.Time = exports.LocalTime = exports.LocalDateTime = exports.isTime = exports.isLocalTime = exports.isLocalDateTime = exports.isDuration = exports.isDateTime = exports.isDate = exports.Duration = exports.DateTime = exports.Date = exports.Point = exports.isPoint = exports.internal = exports.toString = exports.toNumber = exports.inSafeRange = exports.isInt = exports.int = exports.Integer = exports.error = exports.isRetriableError = exports.GQLError = exports.newGQLError = exports.Neo4jError = exports.newError = exports.authTokenManagers = void 0;
|
|
12663
|
+
exports.resolveCertificateProvider = exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledClassification = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationClassification = exports.notificationCategory = exports.resultTransformers = exports.routing = exports.staticAuthTokenManager = exports.bookmarkManager = exports.auth = exports.json = exports.driver = exports.types = exports.Driver = exports.Session = exports.TransactionPromise = exports.ManagedTransaction = exports.Transaction = exports.Connection = exports.Releasable = exports.ConnectionProvider = void 0;
|
|
12494
12664
|
var error_1 = error;
|
|
12495
12665
|
Object.defineProperty(exports, "newError", { enumerable: true, get: function () { return error_1.newError; } });
|
|
12496
12666
|
Object.defineProperty(exports, "Neo4jError", { enumerable: true, get: function () { return error_1.Neo4jError; } });
|
|
12667
|
+
Object.defineProperty(exports, "newGQLError", { enumerable: true, get: function () { return error_1.newGQLError; } });
|
|
12668
|
+
Object.defineProperty(exports, "GQLError", { enumerable: true, get: function () { return error_1.GQLError; } });
|
|
12497
12669
|
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return error_1.isRetriableError; } });
|
|
12498
12670
|
var integer_1 = __importStar(integer);
|
|
12499
12671
|
exports.Integer = integer_1.default;
|
|
@@ -12580,7 +12752,7 @@
|
|
|
12580
12752
|
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return driver_2.routing; } });
|
|
12581
12753
|
var types = __importStar(types$1);
|
|
12582
12754
|
exports.types = types;
|
|
12583
|
-
var json = __importStar(json$
|
|
12755
|
+
var json = __importStar(json$3);
|
|
12584
12756
|
exports.json = json;
|
|
12585
12757
|
var result_transformers_1 = __importDefault(resultTransformers$1);
|
|
12586
12758
|
exports.resultTransformers = result_transformers_1.default;
|
|
@@ -12605,6 +12777,8 @@
|
|
|
12605
12777
|
authTokenManagers: auth_token_manager_1.authTokenManagers,
|
|
12606
12778
|
newError: error_1.newError,
|
|
12607
12779
|
Neo4jError: error_1.Neo4jError,
|
|
12780
|
+
newGQLError: error_1.newGQLError,
|
|
12781
|
+
GQLError: error_1.GQLError,
|
|
12608
12782
|
isRetriableError: error_1.isRetriableError,
|
|
12609
12783
|
error: error$1,
|
|
12610
12784
|
Integer: integer_1.default,
|
|
@@ -13437,7 +13611,7 @@
|
|
|
13437
13611
|
|
|
13438
13612
|
var OperatorSubscriber$1 = {};
|
|
13439
13613
|
|
|
13440
|
-
var __extends$
|
|
13614
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13441
13615
|
var extendStatics = function (d, b) {
|
|
13442
13616
|
extendStatics = Object.setPrototypeOf ||
|
|
13443
13617
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13460,7 +13634,7 @@
|
|
|
13460
13634
|
}
|
|
13461
13635
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
13462
13636
|
var OperatorSubscriber = (function (_super) {
|
|
13463
|
-
__extends$
|
|
13637
|
+
__extends$L(OperatorSubscriber, _super);
|
|
13464
13638
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
13465
13639
|
var _this = _super.call(this, destination) || this;
|
|
13466
13640
|
_this.onFinalize = onFinalize;
|
|
@@ -13544,7 +13718,7 @@
|
|
|
13544
13718
|
}
|
|
13545
13719
|
refCount$1.refCount = refCount;
|
|
13546
13720
|
|
|
13547
|
-
var __extends$
|
|
13721
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13548
13722
|
var extendStatics = function (d, b) {
|
|
13549
13723
|
extendStatics = Object.setPrototypeOf ||
|
|
13550
13724
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13567,7 +13741,7 @@
|
|
|
13567
13741
|
var OperatorSubscriber_1$U = OperatorSubscriber$1;
|
|
13568
13742
|
var lift_1$13 = lift;
|
|
13569
13743
|
var ConnectableObservable = (function (_super) {
|
|
13570
|
-
__extends$
|
|
13744
|
+
__extends$K(ConnectableObservable, _super);
|
|
13571
13745
|
function ConnectableObservable(source, subjectFactory) {
|
|
13572
13746
|
var _this = _super.call(this) || this;
|
|
13573
13747
|
_this.source = source;
|
|
@@ -13754,7 +13928,7 @@
|
|
|
13754
13928
|
};
|
|
13755
13929
|
});
|
|
13756
13930
|
|
|
13757
|
-
var __extends$
|
|
13931
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13758
13932
|
var extendStatics = function (d, b) {
|
|
13759
13933
|
extendStatics = Object.setPrototypeOf ||
|
|
13760
13934
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13788,7 +13962,7 @@
|
|
|
13788
13962
|
var arrRemove_1$6 = arrRemove$1;
|
|
13789
13963
|
var errorContext_1 = errorContext$1;
|
|
13790
13964
|
var Subject = (function (_super) {
|
|
13791
|
-
__extends$
|
|
13965
|
+
__extends$J(Subject, _super);
|
|
13792
13966
|
function Subject() {
|
|
13793
13967
|
var _this = _super.call(this) || this;
|
|
13794
13968
|
_this.closed = false;
|
|
@@ -13916,7 +14090,7 @@
|
|
|
13916
14090
|
}(Observable_1$l.Observable));
|
|
13917
14091
|
Subject$1.Subject = Subject;
|
|
13918
14092
|
var AnonymousSubject = (function (_super) {
|
|
13919
|
-
__extends$
|
|
14093
|
+
__extends$J(AnonymousSubject, _super);
|
|
13920
14094
|
function AnonymousSubject(destination, source) {
|
|
13921
14095
|
var _this = _super.call(this) || this;
|
|
13922
14096
|
_this.destination = destination;
|
|
@@ -13945,7 +14119,7 @@
|
|
|
13945
14119
|
|
|
13946
14120
|
var BehaviorSubject$1 = {};
|
|
13947
14121
|
|
|
13948
|
-
var __extends$
|
|
14122
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13949
14123
|
var extendStatics = function (d, b) {
|
|
13950
14124
|
extendStatics = Object.setPrototypeOf ||
|
|
13951
14125
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13964,7 +14138,7 @@
|
|
|
13964
14138
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
13965
14139
|
var Subject_1$e = Subject$1;
|
|
13966
14140
|
var BehaviorSubject = (function (_super) {
|
|
13967
|
-
__extends$
|
|
14141
|
+
__extends$I(BehaviorSubject, _super);
|
|
13968
14142
|
function BehaviorSubject(_value) {
|
|
13969
14143
|
var _this = _super.call(this) || this;
|
|
13970
14144
|
_this._value = _value;
|
|
@@ -14013,7 +14187,7 @@
|
|
|
14013
14187
|
|
|
14014
14188
|
}(dateTimestampProvider));
|
|
14015
14189
|
|
|
14016
|
-
var __extends$
|
|
14190
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14017
14191
|
var extendStatics = function (d, b) {
|
|
14018
14192
|
extendStatics = Object.setPrototypeOf ||
|
|
14019
14193
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14033,7 +14207,7 @@
|
|
|
14033
14207
|
var Subject_1$d = Subject$1;
|
|
14034
14208
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
14035
14209
|
var ReplaySubject = (function (_super) {
|
|
14036
|
-
__extends$
|
|
14210
|
+
__extends$H(ReplaySubject, _super);
|
|
14037
14211
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
14038
14212
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
14039
14213
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -14089,7 +14263,7 @@
|
|
|
14089
14263
|
|
|
14090
14264
|
var AsyncSubject$1 = {};
|
|
14091
14265
|
|
|
14092
|
-
var __extends$
|
|
14266
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14093
14267
|
var extendStatics = function (d, b) {
|
|
14094
14268
|
extendStatics = Object.setPrototypeOf ||
|
|
14095
14269
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14108,7 +14282,7 @@
|
|
|
14108
14282
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
14109
14283
|
var Subject_1$c = Subject$1;
|
|
14110
14284
|
var AsyncSubject = (function (_super) {
|
|
14111
|
-
__extends$
|
|
14285
|
+
__extends$G(AsyncSubject, _super);
|
|
14112
14286
|
function AsyncSubject() {
|
|
14113
14287
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14114
14288
|
_this._value = null;
|
|
@@ -14152,7 +14326,7 @@
|
|
|
14152
14326
|
|
|
14153
14327
|
var Action$1 = {};
|
|
14154
14328
|
|
|
14155
|
-
var __extends$
|
|
14329
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14156
14330
|
var extendStatics = function (d, b) {
|
|
14157
14331
|
extendStatics = Object.setPrototypeOf ||
|
|
14158
14332
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14171,7 +14345,7 @@
|
|
|
14171
14345
|
Action$1.Action = void 0;
|
|
14172
14346
|
var Subscription_1$5 = Subscription$1;
|
|
14173
14347
|
var Action = (function (_super) {
|
|
14174
|
-
__extends$
|
|
14348
|
+
__extends$F(Action, _super);
|
|
14175
14349
|
function Action(scheduler, work) {
|
|
14176
14350
|
return _super.call(this) || this;
|
|
14177
14351
|
}
|
|
@@ -14229,7 +14403,7 @@
|
|
|
14229
14403
|
|
|
14230
14404
|
}(intervalProvider));
|
|
14231
14405
|
|
|
14232
|
-
var __extends$
|
|
14406
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14233
14407
|
var extendStatics = function (d, b) {
|
|
14234
14408
|
extendStatics = Object.setPrototypeOf ||
|
|
14235
14409
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14250,7 +14424,7 @@
|
|
|
14250
14424
|
var intervalProvider_1 = intervalProvider;
|
|
14251
14425
|
var arrRemove_1$5 = arrRemove$1;
|
|
14252
14426
|
var AsyncAction = (function (_super) {
|
|
14253
|
-
__extends$
|
|
14427
|
+
__extends$E(AsyncAction, _super);
|
|
14254
14428
|
function AsyncAction(scheduler, work) {
|
|
14255
14429
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14256
14430
|
_this.scheduler = scheduler;
|
|
@@ -14415,7 +14589,7 @@
|
|
|
14415
14589
|
|
|
14416
14590
|
}(immediateProvider));
|
|
14417
14591
|
|
|
14418
|
-
var __extends$
|
|
14592
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14419
14593
|
var extendStatics = function (d, b) {
|
|
14420
14594
|
extendStatics = Object.setPrototypeOf ||
|
|
14421
14595
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14435,7 +14609,7 @@
|
|
|
14435
14609
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
14436
14610
|
var immediateProvider_1 = immediateProvider;
|
|
14437
14611
|
var AsapAction = (function (_super) {
|
|
14438
|
-
__extends$
|
|
14612
|
+
__extends$D(AsapAction, _super);
|
|
14439
14613
|
function AsapAction(scheduler, work) {
|
|
14440
14614
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14441
14615
|
_this.scheduler = scheduler;
|
|
@@ -14493,7 +14667,7 @@
|
|
|
14493
14667
|
}());
|
|
14494
14668
|
Scheduler$1.Scheduler = Scheduler;
|
|
14495
14669
|
|
|
14496
|
-
var __extends$
|
|
14670
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14497
14671
|
var extendStatics = function (d, b) {
|
|
14498
14672
|
extendStatics = Object.setPrototypeOf ||
|
|
14499
14673
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14512,7 +14686,7 @@
|
|
|
14512
14686
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
14513
14687
|
var Scheduler_1 = Scheduler$1;
|
|
14514
14688
|
var AsyncScheduler = (function (_super) {
|
|
14515
|
-
__extends$
|
|
14689
|
+
__extends$C(AsyncScheduler, _super);
|
|
14516
14690
|
function AsyncScheduler(SchedulerAction, now) {
|
|
14517
14691
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
14518
14692
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -14545,7 +14719,7 @@
|
|
|
14545
14719
|
}(Scheduler_1.Scheduler));
|
|
14546
14720
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
14547
14721
|
|
|
14548
|
-
var __extends$
|
|
14722
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14549
14723
|
var extendStatics = function (d, b) {
|
|
14550
14724
|
extendStatics = Object.setPrototypeOf ||
|
|
14551
14725
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14564,7 +14738,7 @@
|
|
|
14564
14738
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
14565
14739
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
14566
14740
|
var AsapScheduler = (function (_super) {
|
|
14567
|
-
__extends$
|
|
14741
|
+
__extends$B(AsapScheduler, _super);
|
|
14568
14742
|
function AsapScheduler() {
|
|
14569
14743
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14570
14744
|
}
|
|
@@ -14618,7 +14792,7 @@
|
|
|
14618
14792
|
|
|
14619
14793
|
var QueueAction$1 = {};
|
|
14620
14794
|
|
|
14621
|
-
var __extends$
|
|
14795
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14622
14796
|
var extendStatics = function (d, b) {
|
|
14623
14797
|
extendStatics = Object.setPrototypeOf ||
|
|
14624
14798
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14637,7 +14811,7 @@
|
|
|
14637
14811
|
QueueAction$1.QueueAction = void 0;
|
|
14638
14812
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
14639
14813
|
var QueueAction = (function (_super) {
|
|
14640
|
-
__extends$
|
|
14814
|
+
__extends$A(QueueAction, _super);
|
|
14641
14815
|
function QueueAction(scheduler, work) {
|
|
14642
14816
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14643
14817
|
_this.scheduler = scheduler;
|
|
@@ -14671,7 +14845,7 @@
|
|
|
14671
14845
|
|
|
14672
14846
|
var QueueScheduler$1 = {};
|
|
14673
14847
|
|
|
14674
|
-
var __extends$
|
|
14848
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14675
14849
|
var extendStatics = function (d, b) {
|
|
14676
14850
|
extendStatics = Object.setPrototypeOf ||
|
|
14677
14851
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14690,7 +14864,7 @@
|
|
|
14690
14864
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
14691
14865
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
14692
14866
|
var QueueScheduler = (function (_super) {
|
|
14693
|
-
__extends$
|
|
14867
|
+
__extends$z(QueueScheduler, _super);
|
|
14694
14868
|
function QueueScheduler() {
|
|
14695
14869
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14696
14870
|
}
|
|
@@ -14712,7 +14886,7 @@
|
|
|
14712
14886
|
|
|
14713
14887
|
var AnimationFrameAction$1 = {};
|
|
14714
14888
|
|
|
14715
|
-
var __extends$
|
|
14889
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14716
14890
|
var extendStatics = function (d, b) {
|
|
14717
14891
|
extendStatics = Object.setPrototypeOf ||
|
|
14718
14892
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14732,7 +14906,7 @@
|
|
|
14732
14906
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
14733
14907
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
14734
14908
|
var AnimationFrameAction = (function (_super) {
|
|
14735
|
-
__extends$
|
|
14909
|
+
__extends$y(AnimationFrameAction, _super);
|
|
14736
14910
|
function AnimationFrameAction(scheduler, work) {
|
|
14737
14911
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14738
14912
|
_this.scheduler = scheduler;
|
|
@@ -14766,7 +14940,7 @@
|
|
|
14766
14940
|
|
|
14767
14941
|
var AnimationFrameScheduler$1 = {};
|
|
14768
14942
|
|
|
14769
|
-
var __extends$
|
|
14943
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14770
14944
|
var extendStatics = function (d, b) {
|
|
14771
14945
|
extendStatics = Object.setPrototypeOf ||
|
|
14772
14946
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14785,7 +14959,7 @@
|
|
|
14785
14959
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
14786
14960
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
14787
14961
|
var AnimationFrameScheduler = (function (_super) {
|
|
14788
|
-
__extends$
|
|
14962
|
+
__extends$x(AnimationFrameScheduler, _super);
|
|
14789
14963
|
function AnimationFrameScheduler() {
|
|
14790
14964
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14791
14965
|
}
|
|
@@ -14825,7 +14999,7 @@
|
|
|
14825
14999
|
|
|
14826
15000
|
var VirtualTimeScheduler$1 = {};
|
|
14827
15001
|
|
|
14828
|
-
var __extends$
|
|
15002
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14829
15003
|
var extendStatics = function (d, b) {
|
|
14830
15004
|
extendStatics = Object.setPrototypeOf ||
|
|
14831
15005
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14846,7 +15020,7 @@
|
|
|
14846
15020
|
var Subscription_1$4 = Subscription$1;
|
|
14847
15021
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
14848
15022
|
var VirtualTimeScheduler = (function (_super) {
|
|
14849
|
-
__extends$
|
|
15023
|
+
__extends$w(VirtualTimeScheduler, _super);
|
|
14850
15024
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
14851
15025
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
14852
15026
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -14879,7 +15053,7 @@
|
|
|
14879
15053
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
14880
15054
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
14881
15055
|
var VirtualAction = (function (_super) {
|
|
14882
|
-
__extends$
|
|
15056
|
+
__extends$w(VirtualAction, _super);
|
|
14883
15057
|
function VirtualAction(scheduler, work, index) {
|
|
14884
15058
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
14885
15059
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -20701,7 +20875,7 @@
|
|
|
20701
20875
|
* limitations under the License.
|
|
20702
20876
|
*/
|
|
20703
20877
|
/* eslint-disable-next-line no-unused-vars */
|
|
20704
|
-
var neo4j_driver_core_1$
|
|
20878
|
+
var neo4j_driver_core_1$L = lib$1;
|
|
20705
20879
|
var rxjs_1$3 = cjs;
|
|
20706
20880
|
var operators_1$2 = operators;
|
|
20707
20881
|
var States = {
|
|
@@ -20835,7 +21009,7 @@
|
|
|
20835
21009
|
});
|
|
20836
21010
|
}
|
|
20837
21011
|
else if (recordsObserver) {
|
|
20838
|
-
recordsObserver.error((0, neo4j_driver_core_1$
|
|
21012
|
+
recordsObserver.error((0, neo4j_driver_core_1$L.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
|
|
20839
21013
|
}
|
|
20840
21014
|
return function () {
|
|
20841
21015
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -21026,7 +21200,7 @@
|
|
|
21026
21200
|
|
|
21027
21201
|
var transactionRx = {};
|
|
21028
21202
|
|
|
21029
|
-
var __importDefault$
|
|
21203
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21030
21204
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21031
21205
|
};
|
|
21032
21206
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -21047,9 +21221,9 @@
|
|
|
21047
21221
|
* limitations under the License.
|
|
21048
21222
|
*/
|
|
21049
21223
|
var rxjs_1$2 = cjs;
|
|
21050
|
-
var result_rx_1$1 = __importDefault$
|
|
21224
|
+
var result_rx_1$1 = __importDefault$P(resultRx);
|
|
21051
21225
|
// eslint-disable-next-line no-unused-vars
|
|
21052
|
-
__importDefault$
|
|
21226
|
+
__importDefault$P(lib$1);
|
|
21053
21227
|
/**
|
|
21054
21228
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
21055
21229
|
*/
|
|
@@ -21148,7 +21322,7 @@
|
|
|
21148
21322
|
|
|
21149
21323
|
var transactionManagedRx = {};
|
|
21150
21324
|
|
|
21151
|
-
var __importDefault$
|
|
21325
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21152
21326
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21153
21327
|
};
|
|
21154
21328
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -21169,9 +21343,9 @@
|
|
|
21169
21343
|
* limitations under the License.
|
|
21170
21344
|
*/
|
|
21171
21345
|
// eslint-disable-next-line no-unused-vars
|
|
21172
|
-
__importDefault$
|
|
21346
|
+
__importDefault$O(resultRx);
|
|
21173
21347
|
// eslint-disable-next-line no-unused-vars
|
|
21174
|
-
__importDefault$
|
|
21348
|
+
__importDefault$O(transactionRx);
|
|
21175
21349
|
/**
|
|
21176
21350
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
21177
21351
|
*
|
|
@@ -21229,13 +21403,13 @@
|
|
|
21229
21403
|
* limitations under the License.
|
|
21230
21404
|
*/
|
|
21231
21405
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
21232
|
-
var neo4j_driver_core_1$
|
|
21406
|
+
var neo4j_driver_core_1$K = lib$1;
|
|
21233
21407
|
// eslint-disable-next-line no-unused-vars
|
|
21234
21408
|
var rxjs_1$1 = cjs;
|
|
21235
21409
|
var operators_1$1 = operators;
|
|
21236
21410
|
// eslint-disable-next-line no-unused-vars
|
|
21237
|
-
neo4j_driver_core_1$
|
|
21238
|
-
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$
|
|
21411
|
+
neo4j_driver_core_1$K.internal.logger.Logger;
|
|
21412
|
+
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$K.error.SERVICE_UNAVAILABLE;
|
|
21239
21413
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
21240
21414
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
21241
21415
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -21266,13 +21440,13 @@
|
|
|
21266
21440
|
var retryCount = 1;
|
|
21267
21441
|
var delayDuration = _this._initialDelay;
|
|
21268
21442
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
21269
|
-
if (!(0, neo4j_driver_core_1$
|
|
21443
|
+
if (!(0, neo4j_driver_core_1$K.isRetriableError)(err)) {
|
|
21270
21444
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
21271
21445
|
}
|
|
21272
21446
|
handledExceptions.push(err);
|
|
21273
21447
|
if (retryCount >= 2 &&
|
|
21274
21448
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
21275
|
-
var error_1 = (0, neo4j_driver_core_1$
|
|
21449
|
+
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);
|
|
21276
21450
|
error_1.seenErrors = handledExceptions;
|
|
21277
21451
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
21278
21452
|
}
|
|
@@ -21300,7 +21474,7 @@
|
|
|
21300
21474
|
return defaultValue;
|
|
21301
21475
|
}
|
|
21302
21476
|
|
|
21303
|
-
var __importDefault$
|
|
21477
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21304
21478
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21305
21479
|
};
|
|
21306
21480
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -21322,13 +21496,13 @@
|
|
|
21322
21496
|
*/
|
|
21323
21497
|
var rxjs_1 = cjs;
|
|
21324
21498
|
var operators_1 = operators;
|
|
21325
|
-
var result_rx_1 = __importDefault$
|
|
21499
|
+
var result_rx_1 = __importDefault$N(resultRx);
|
|
21326
21500
|
// eslint-disable-next-line no-unused-vars
|
|
21327
|
-
var neo4j_driver_core_1$
|
|
21328
|
-
var transaction_rx_1 = __importDefault$
|
|
21329
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
21330
|
-
var retry_logic_rx_1 = __importDefault$
|
|
21331
|
-
var _a$e = neo4j_driver_core_1$
|
|
21501
|
+
var neo4j_driver_core_1$J = lib$1;
|
|
21502
|
+
var transaction_rx_1 = __importDefault$N(transactionRx);
|
|
21503
|
+
var transaction_managed_rx_1 = __importDefault$N(transactionManagedRx);
|
|
21504
|
+
var retry_logic_rx_1 = __importDefault$N(retryLogicRx);
|
|
21505
|
+
var _a$e = neo4j_driver_core_1$J.internal.constants, ACCESS_MODE_READ$1 = _a$e.ACCESS_MODE_READ, ACCESS_MODE_WRITE$1 = _a$e.ACCESS_MODE_WRITE, TELEMETRY_APIS = _a$e.TELEMETRY_APIS, TxConfig$3 = neo4j_driver_core_1$J.internal.txConfig.TxConfig;
|
|
21332
21506
|
/**
|
|
21333
21507
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
21334
21508
|
*/
|
|
@@ -21566,7 +21740,7 @@
|
|
|
21566
21740
|
* See the License for the specific language governing permissions and
|
|
21567
21741
|
* limitations under the License.
|
|
21568
21742
|
*/
|
|
21569
|
-
var __extends$
|
|
21743
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21570
21744
|
var extendStatics = function (d, b) {
|
|
21571
21745
|
extendStatics = Object.setPrototypeOf ||
|
|
21572
21746
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21581,15 +21755,15 @@
|
|
|
21581
21755
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21582
21756
|
};
|
|
21583
21757
|
})();
|
|
21584
|
-
var __importDefault$
|
|
21758
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21585
21759
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21586
21760
|
};
|
|
21587
21761
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
21588
21762
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
21589
|
-
var neo4j_driver_core_1$
|
|
21590
|
-
var session_rx_1 = __importDefault$
|
|
21591
|
-
var FETCH_ALL$6 = neo4j_driver_core_1$
|
|
21592
|
-
var READ$2 = neo4j_driver_core_1$
|
|
21763
|
+
var neo4j_driver_core_1$I = lib$1;
|
|
21764
|
+
var session_rx_1 = __importDefault$M(sessionRx);
|
|
21765
|
+
var FETCH_ALL$6 = neo4j_driver_core_1$I.internal.constants.FETCH_ALL;
|
|
21766
|
+
var READ$2 = neo4j_driver_core_1$I.driver.READ, WRITE$2 = neo4j_driver_core_1$I.driver.WRITE;
|
|
21593
21767
|
driver$1.READ = READ$2;
|
|
21594
21768
|
driver$1.WRITE = WRITE$2;
|
|
21595
21769
|
/**
|
|
@@ -21603,7 +21777,7 @@
|
|
|
21603
21777
|
* @access public
|
|
21604
21778
|
*/
|
|
21605
21779
|
var Driver = /** @class */ (function (_super) {
|
|
21606
|
-
__extends$
|
|
21780
|
+
__extends$v(Driver, _super);
|
|
21607
21781
|
function Driver() {
|
|
21608
21782
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21609
21783
|
}
|
|
@@ -21642,7 +21816,7 @@
|
|
|
21642
21816
|
});
|
|
21643
21817
|
};
|
|
21644
21818
|
return Driver;
|
|
21645
|
-
}(neo4j_driver_core_1$
|
|
21819
|
+
}(neo4j_driver_core_1$I.Driver));
|
|
21646
21820
|
driver$1.Driver = Driver;
|
|
21647
21821
|
/**
|
|
21648
21822
|
* @private
|
|
@@ -21688,7 +21862,7 @@
|
|
|
21688
21862
|
// This is set up this way to keep the version in the code in
|
|
21689
21863
|
// sync with the npm package version, and to allow the build
|
|
21690
21864
|
// system to control version names at packaging time.
|
|
21691
|
-
version$1.default = '5.
|
|
21865
|
+
version$1.default = '5.26.0';
|
|
21692
21866
|
|
|
21693
21867
|
var lib = {};
|
|
21694
21868
|
|
|
@@ -21788,7 +21962,7 @@
|
|
|
21788
21962
|
}());
|
|
21789
21963
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
21790
21964
|
|
|
21791
|
-
var __extends$
|
|
21965
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21792
21966
|
var extendStatics = function (d, b) {
|
|
21793
21967
|
extendStatics = Object.setPrototypeOf ||
|
|
21794
21968
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21803,7 +21977,7 @@
|
|
|
21803
21977
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21804
21978
|
};
|
|
21805
21979
|
})();
|
|
21806
|
-
var __importDefault$
|
|
21980
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21807
21981
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21808
21982
|
};
|
|
21809
21983
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -21823,10 +21997,10 @@
|
|
|
21823
21997
|
* See the License for the specific language governing permissions and
|
|
21824
21998
|
* limitations under the License.
|
|
21825
21999
|
*/
|
|
21826
|
-
var round_robin_array_index_1 = __importDefault$
|
|
21827
|
-
var load_balancing_strategy_1$1 = __importDefault$
|
|
22000
|
+
var round_robin_array_index_1 = __importDefault$L(roundRobinArrayIndex);
|
|
22001
|
+
var load_balancing_strategy_1$1 = __importDefault$L(loadBalancingStrategy);
|
|
21828
22002
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
21829
|
-
__extends$
|
|
22003
|
+
__extends$u(LeastConnectedLoadBalancingStrategy, _super);
|
|
21830
22004
|
/**
|
|
21831
22005
|
* @constructor
|
|
21832
22006
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -21882,7 +22056,7 @@
|
|
|
21882
22056
|
}(load_balancing_strategy_1$1.default));
|
|
21883
22057
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
21884
22058
|
|
|
21885
|
-
var __importDefault$
|
|
22059
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21886
22060
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21887
22061
|
};
|
|
21888
22062
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -21903,9 +22077,9 @@
|
|
|
21903
22077
|
* See the License for the specific language governing permissions and
|
|
21904
22078
|
* limitations under the License.
|
|
21905
22079
|
*/
|
|
21906
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
22080
|
+
var load_balancing_strategy_1 = __importDefault$K(loadBalancingStrategy);
|
|
21907
22081
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
21908
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
22082
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$K(leastConnectedLoadBalancingStrategy);
|
|
21909
22083
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
21910
22084
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
21911
22085
|
|
|
@@ -24290,7 +24464,7 @@
|
|
|
24290
24464
|
* See the License for the specific language governing permissions and
|
|
24291
24465
|
* limitations under the License.
|
|
24292
24466
|
*/
|
|
24293
|
-
var __extends$
|
|
24467
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24294
24468
|
var extendStatics = function (d, b) {
|
|
24295
24469
|
extendStatics = Object.setPrototypeOf ||
|
|
24296
24470
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24626,7 +24800,7 @@
|
|
|
24626
24800
|
* @access private
|
|
24627
24801
|
*/
|
|
24628
24802
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
24629
|
-
__extends$
|
|
24803
|
+
__extends$t(SliceBuffer, _super);
|
|
24630
24804
|
function SliceBuffer(start, length, inner) {
|
|
24631
24805
|
var _this = _super.call(this, length) || this;
|
|
24632
24806
|
_this._start = start;
|
|
@@ -24670,12 +24844,12 @@
|
|
|
24670
24844
|
* See the License for the specific language governing permissions and
|
|
24671
24845
|
* limitations under the License.
|
|
24672
24846
|
*/
|
|
24673
|
-
var __importDefault$
|
|
24847
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24674
24848
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24675
24849
|
};
|
|
24676
24850
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
24677
24851
|
buf.BaseBuffer = void 0;
|
|
24678
|
-
var base_buf_1$1 = __importDefault$
|
|
24852
|
+
var base_buf_1$1 = __importDefault$J(baseBuf);
|
|
24679
24853
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
24680
24854
|
buf.default = base_buf_1$1.default;
|
|
24681
24855
|
|
|
@@ -24695,7 +24869,7 @@
|
|
|
24695
24869
|
* See the License for the specific language governing permissions and
|
|
24696
24870
|
* limitations under the License.
|
|
24697
24871
|
*/
|
|
24698
|
-
var __extends$
|
|
24872
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24699
24873
|
var extendStatics = function (d, b) {
|
|
24700
24874
|
extendStatics = Object.setPrototypeOf ||
|
|
24701
24875
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24710,15 +24884,15 @@
|
|
|
24710
24884
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24711
24885
|
};
|
|
24712
24886
|
})();
|
|
24713
|
-
var __importDefault$
|
|
24887
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24714
24888
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24715
24889
|
};
|
|
24716
24890
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
24717
24891
|
channelBuf.alloc = void 0;
|
|
24718
|
-
var buffer_1$1 = __importDefault$
|
|
24719
|
-
var buf_1$1 = __importDefault$
|
|
24892
|
+
var buffer_1$1 = __importDefault$I(buffer);
|
|
24893
|
+
var buf_1$1 = __importDefault$I(buf);
|
|
24720
24894
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
24721
|
-
__extends$
|
|
24895
|
+
__extends$s(ChannelBuffer, _super);
|
|
24722
24896
|
function ChannelBuffer(arg) {
|
|
24723
24897
|
var _this = this;
|
|
24724
24898
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -24786,7 +24960,7 @@
|
|
|
24786
24960
|
}
|
|
24787
24961
|
}
|
|
24788
24962
|
|
|
24789
|
-
var __importDefault$
|
|
24963
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24790
24964
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24791
24965
|
};
|
|
24792
24966
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -24807,9 +24981,9 @@
|
|
|
24807
24981
|
* limitations under the License.
|
|
24808
24982
|
*/
|
|
24809
24983
|
/* eslint-env browser */
|
|
24810
|
-
var channel_buf_1$3 = __importDefault$
|
|
24811
|
-
var neo4j_driver_core_1$
|
|
24812
|
-
var _a$d = neo4j_driver_core_1$
|
|
24984
|
+
var channel_buf_1$3 = __importDefault$H(channelBuf);
|
|
24985
|
+
var neo4j_driver_core_1$H = lib$1;
|
|
24986
|
+
var _a$d = neo4j_driver_core_1$H.internal.util, ENCRYPTION_OFF$1 = _a$d.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$d.ENCRYPTION_ON;
|
|
24813
24987
|
var WS_OPEN = 1;
|
|
24814
24988
|
var WS_CLOSED = 3;
|
|
24815
24989
|
/**
|
|
@@ -24875,7 +25049,7 @@
|
|
|
24875
25049
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
24876
25050
|
if (this._connectionTimeoutFired) {
|
|
24877
25051
|
// timeout fired - not connected within configured time
|
|
24878
|
-
this._error = (0, neo4j_driver_core_1$
|
|
25052
|
+
this._error = (0, neo4j_driver_core_1$H.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
|
|
24879
25053
|
if (this.onerror) {
|
|
24880
25054
|
this.onerror(this._error);
|
|
24881
25055
|
}
|
|
@@ -24884,7 +25058,7 @@
|
|
|
24884
25058
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
24885
25059
|
if (this._open && !this._timedout) {
|
|
24886
25060
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
24887
|
-
this._error = (0, neo4j_driver_core_1$
|
|
25061
|
+
this._error = (0, neo4j_driver_core_1$H.newError)('WebSocket connection failure. Due to security ' +
|
|
24888
25062
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
24889
25063
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
24890
25064
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -24923,7 +25097,7 @@
|
|
|
24923
25097
|
}
|
|
24924
25098
|
}
|
|
24925
25099
|
else {
|
|
24926
|
-
throw (0, neo4j_driver_core_1$
|
|
25100
|
+
throw (0, neo4j_driver_core_1$H.newError)("Don't know how to send buffer: " + buffer);
|
|
24927
25101
|
}
|
|
24928
25102
|
};
|
|
24929
25103
|
/**
|
|
@@ -24994,7 +25168,7 @@
|
|
|
24994
25168
|
_this._receiveTimeoutId = null;
|
|
24995
25169
|
_this._timedout = true;
|
|
24996
25170
|
_this.stopReceiveTimeout();
|
|
24997
|
-
_this._error = (0, neo4j_driver_core_1$
|
|
25171
|
+
_this._error = (0, neo4j_driver_core_1$H.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
|
|
24998
25172
|
_this.close();
|
|
24999
25173
|
if (_this.onerror) {
|
|
25000
25174
|
_this.onerror(_this._error);
|
|
@@ -25103,7 +25277,7 @@
|
|
|
25103
25277
|
return { scheme: 'wss', error: null };
|
|
25104
25278
|
}
|
|
25105
25279
|
else {
|
|
25106
|
-
var error = (0, neo4j_driver_core_1$
|
|
25280
|
+
var error = (0, neo4j_driver_core_1$H.newError)('The browser version of this driver only supports one trust ' +
|
|
25107
25281
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
25108
25282
|
trust +
|
|
25109
25283
|
' is not supported. Please ' +
|
|
@@ -25178,7 +25352,7 @@
|
|
|
25178
25352
|
* See the License for the specific language governing permissions and
|
|
25179
25353
|
* limitations under the License.
|
|
25180
25354
|
*/
|
|
25181
|
-
var __extends$
|
|
25355
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25182
25356
|
var extendStatics = function (d, b) {
|
|
25183
25357
|
extendStatics = Object.setPrototypeOf ||
|
|
25184
25358
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25194,10 +25368,10 @@
|
|
|
25194
25368
|
};
|
|
25195
25369
|
})();
|
|
25196
25370
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
25197
|
-
var neo4j_driver_core_1$
|
|
25198
|
-
var BaseHostNameResolver = neo4j_driver_core_1$
|
|
25371
|
+
var neo4j_driver_core_1$G = lib$1;
|
|
25372
|
+
var BaseHostNameResolver = neo4j_driver_core_1$G.internal.resolver.BaseHostNameResolver;
|
|
25199
25373
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
25200
|
-
__extends$
|
|
25374
|
+
__extends$r(BrowserHostNameResolver, _super);
|
|
25201
25375
|
function BrowserHostNameResolver() {
|
|
25202
25376
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25203
25377
|
}
|
|
@@ -25289,14 +25463,14 @@
|
|
|
25289
25463
|
* See the License for the specific language governing permissions and
|
|
25290
25464
|
* limitations under the License.
|
|
25291
25465
|
*/
|
|
25292
|
-
var __importDefault$
|
|
25466
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25293
25467
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25294
25468
|
};
|
|
25295
25469
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
25296
25470
|
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
25297
|
-
var browser_channel_1 = __importDefault$
|
|
25298
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
25299
|
-
var browser_client_certificates_loader_1 = __importDefault$
|
|
25471
|
+
var browser_channel_1 = __importDefault$G(browserChannel);
|
|
25472
|
+
var browser_host_name_resolver_1 = __importDefault$G(browserHostNameResolver);
|
|
25473
|
+
var browser_client_certificates_loader_1 = __importDefault$G(browserClientCertificatesLoader);
|
|
25300
25474
|
/*
|
|
25301
25475
|
|
|
25302
25476
|
This module exports a set of components to be used in browser environment.
|
|
@@ -25331,7 +25505,7 @@
|
|
|
25331
25505
|
* See the License for the specific language governing permissions and
|
|
25332
25506
|
* limitations under the License.
|
|
25333
25507
|
*/
|
|
25334
|
-
var __extends$
|
|
25508
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25335
25509
|
var extendStatics = function (d, b) {
|
|
25336
25510
|
extendStatics = Object.setPrototypeOf ||
|
|
25337
25511
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25353,7 +25527,7 @@
|
|
|
25353
25527
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
25354
25528
|
*/
|
|
25355
25529
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
25356
|
-
__extends$
|
|
25530
|
+
__extends$q(CombinedBuffer, _super);
|
|
25357
25531
|
function CombinedBuffer(buffers) {
|
|
25358
25532
|
var _this = this;
|
|
25359
25533
|
var length = 0;
|
|
@@ -25419,7 +25593,7 @@
|
|
|
25419
25593
|
* See the License for the specific language governing permissions and
|
|
25420
25594
|
* limitations under the License.
|
|
25421
25595
|
*/
|
|
25422
|
-
var __extends$
|
|
25596
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25423
25597
|
var extendStatics = function (d, b) {
|
|
25424
25598
|
extendStatics = Object.setPrototypeOf ||
|
|
25425
25599
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25434,14 +25608,14 @@
|
|
|
25434
25608
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25435
25609
|
};
|
|
25436
25610
|
})();
|
|
25437
|
-
var __importDefault$
|
|
25611
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25438
25612
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25439
25613
|
};
|
|
25440
25614
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
25441
25615
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
25442
|
-
var base_buf_1 = __importDefault$
|
|
25616
|
+
var base_buf_1 = __importDefault$F(baseBuf);
|
|
25443
25617
|
var channel_buf_1$1 = channelBuf;
|
|
25444
|
-
var combined_buf_1 = __importDefault$
|
|
25618
|
+
var combined_buf_1 = __importDefault$F(combinedBuf);
|
|
25445
25619
|
var _CHUNK_HEADER_SIZE = 2;
|
|
25446
25620
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
25447
25621
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -25450,7 +25624,7 @@
|
|
|
25450
25624
|
* @access private
|
|
25451
25625
|
*/
|
|
25452
25626
|
var Chunker = /** @class */ (function (_super) {
|
|
25453
|
-
__extends$
|
|
25627
|
+
__extends$p(Chunker, _super);
|
|
25454
25628
|
function Chunker(channel, bufferSize) {
|
|
25455
25629
|
var _this = _super.call(this, 0) || this;
|
|
25456
25630
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -25633,9 +25807,9 @@
|
|
|
25633
25807
|
* limitations under the License.
|
|
25634
25808
|
*/
|
|
25635
25809
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
25636
|
-
var neo4j_driver_core_1$
|
|
25637
|
-
var _a$c = neo4j_driver_core_1$
|
|
25638
|
-
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$
|
|
25810
|
+
var neo4j_driver_core_1$F = lib$1;
|
|
25811
|
+
var _a$c = neo4j_driver_core_1$F.internal.util, ENCRYPTION_OFF = _a$c.ENCRYPTION_OFF, ENCRYPTION_ON = _a$c.ENCRYPTION_ON;
|
|
25812
|
+
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
|
|
25639
25813
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
25640
25814
|
null,
|
|
25641
25815
|
undefined,
|
|
@@ -25675,14 +25849,14 @@
|
|
|
25675
25849
|
function extractEncrypted(driverConfig) {
|
|
25676
25850
|
var value = driverConfig.encrypted;
|
|
25677
25851
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
25678
|
-
throw (0, neo4j_driver_core_1$
|
|
25852
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
|
|
25679
25853
|
}
|
|
25680
25854
|
return value;
|
|
25681
25855
|
}
|
|
25682
25856
|
function extractTrust(driverConfig) {
|
|
25683
25857
|
var value = driverConfig.trust;
|
|
25684
25858
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
25685
|
-
throw (0, neo4j_driver_core_1$
|
|
25859
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
|
|
25686
25860
|
}
|
|
25687
25861
|
return value;
|
|
25688
25862
|
}
|
|
@@ -26057,13 +26231,13 @@
|
|
|
26057
26231
|
* See the License for the specific language governing permissions and
|
|
26058
26232
|
* limitations under the License.
|
|
26059
26233
|
*/
|
|
26060
|
-
var __importDefault$
|
|
26234
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26061
26235
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26062
26236
|
};
|
|
26063
26237
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
26064
|
-
var channel_buf_1 = __importDefault$
|
|
26065
|
-
var neo4j_driver_core_1$
|
|
26066
|
-
var buffer_1 = __importDefault$
|
|
26238
|
+
var channel_buf_1 = __importDefault$E(channelBuf);
|
|
26239
|
+
var neo4j_driver_core_1$E = lib$1;
|
|
26240
|
+
var buffer_1 = __importDefault$E(buffer);
|
|
26067
26241
|
var string_decoder_1 = string_decoder;
|
|
26068
26242
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
26069
26243
|
function encode(str) {
|
|
@@ -26077,7 +26251,7 @@
|
|
|
26077
26251
|
return decodeCombinedBuffer(buffer, length);
|
|
26078
26252
|
}
|
|
26079
26253
|
else {
|
|
26080
|
-
throw (0, neo4j_driver_core_1$
|
|
26254
|
+
throw (0, neo4j_driver_core_1$E.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
|
|
26081
26255
|
}
|
|
26082
26256
|
}
|
|
26083
26257
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -26194,7 +26368,7 @@
|
|
|
26194
26368
|
*/
|
|
26195
26369
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26196
26370
|
var channel_1$4 = channel;
|
|
26197
|
-
var neo4j_driver_core_1$
|
|
26371
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
26198
26372
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
26199
26373
|
function version(major, minor) {
|
|
26200
26374
|
return {
|
|
@@ -26204,7 +26378,7 @@
|
|
|
26204
26378
|
}
|
|
26205
26379
|
function createHandshakeMessage(versions) {
|
|
26206
26380
|
if (versions.length > 4) {
|
|
26207
|
-
throw (0, neo4j_driver_core_1$
|
|
26381
|
+
throw (0, neo4j_driver_core_1$D.newError)('It should not have more than 4 versions of the protocol');
|
|
26208
26382
|
}
|
|
26209
26383
|
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
26210
26384
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -26232,7 +26406,7 @@
|
|
|
26232
26406
|
];
|
|
26233
26407
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
26234
26408
|
log.error('Handshake failed since server responded with HTTP.');
|
|
26235
|
-
throw (0, neo4j_driver_core_1$
|
|
26409
|
+
throw (0, neo4j_driver_core_1$D.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
|
|
26236
26410
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
26237
26411
|
}
|
|
26238
26412
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -26243,7 +26417,7 @@
|
|
|
26243
26417
|
*/
|
|
26244
26418
|
function newHandshakeBuffer() {
|
|
26245
26419
|
return createHandshakeMessage([
|
|
26246
|
-
[version(5,
|
|
26420
|
+
[version(5, 7), version(5, 0)],
|
|
26247
26421
|
[version(4, 4), version(4, 2)],
|
|
26248
26422
|
version(4, 1),
|
|
26249
26423
|
version(3, 0)
|
|
@@ -26308,7 +26482,7 @@
|
|
|
26308
26482
|
|
|
26309
26483
|
var routingTableRaw = {};
|
|
26310
26484
|
|
|
26311
|
-
var __extends$
|
|
26485
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26312
26486
|
var extendStatics = function (d, b) {
|
|
26313
26487
|
extendStatics = Object.setPrototypeOf ||
|
|
26314
26488
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26323,7 +26497,7 @@
|
|
|
26323
26497
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26324
26498
|
};
|
|
26325
26499
|
})();
|
|
26326
|
-
var __importDefault$
|
|
26500
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26327
26501
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26328
26502
|
};
|
|
26329
26503
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -26344,7 +26518,7 @@
|
|
|
26344
26518
|
* limitations under the License.
|
|
26345
26519
|
*/
|
|
26346
26520
|
// eslint-disable-next-line no-unused-vars
|
|
26347
|
-
__importDefault$
|
|
26521
|
+
__importDefault$D(lib$1);
|
|
26348
26522
|
/**
|
|
26349
26523
|
* Represente the raw version of the routing table
|
|
26350
26524
|
*/
|
|
@@ -26439,7 +26613,7 @@
|
|
|
26439
26613
|
* Get the raw routing table information from route message response
|
|
26440
26614
|
*/
|
|
26441
26615
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
26442
|
-
__extends$
|
|
26616
|
+
__extends$o(ResponseRawRoutingTable, _super);
|
|
26443
26617
|
function ResponseRawRoutingTable(response) {
|
|
26444
26618
|
var _this = _super.call(this) || this;
|
|
26445
26619
|
_this._response = response;
|
|
@@ -26479,7 +26653,7 @@
|
|
|
26479
26653
|
* Null routing table
|
|
26480
26654
|
*/
|
|
26481
26655
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
26482
|
-
__extends$
|
|
26656
|
+
__extends$o(NullRawRoutingTable, _super);
|
|
26483
26657
|
function NullRawRoutingTable() {
|
|
26484
26658
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26485
26659
|
}
|
|
@@ -26496,7 +26670,7 @@
|
|
|
26496
26670
|
* Get the raw routing table information from the record
|
|
26497
26671
|
*/
|
|
26498
26672
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
26499
|
-
__extends$
|
|
26673
|
+
__extends$o(RecordRawRoutingTable, _super);
|
|
26500
26674
|
function RecordRawRoutingTable(record) {
|
|
26501
26675
|
var _this = _super.call(this) || this;
|
|
26502
26676
|
_this._record = record;
|
|
@@ -26555,7 +26729,7 @@
|
|
|
26555
26729
|
*/
|
|
26556
26730
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
26557
26731
|
functional.reuseOngoingRequest = functional.identity = void 0;
|
|
26558
|
-
var neo4j_driver_core_1$
|
|
26732
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
26559
26733
|
/**
|
|
26560
26734
|
* Identity function.
|
|
26561
26735
|
*
|
|
@@ -26583,7 +26757,7 @@
|
|
|
26583
26757
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
26584
26758
|
args[_i] = arguments[_i];
|
|
26585
26759
|
}
|
|
26586
|
-
var key = neo4j_driver_core_1$
|
|
26760
|
+
var key = neo4j_driver_core_1$C.json.stringify(args);
|
|
26587
26761
|
if (ongoingRequests.has(key)) {
|
|
26588
26762
|
return ongoingRequests.get(key);
|
|
26589
26763
|
}
|
|
@@ -26706,7 +26880,7 @@
|
|
|
26706
26880
|
lang.functional = __importStar$4(functional);
|
|
26707
26881
|
lang.object = __importStar$4(object);
|
|
26708
26882
|
|
|
26709
|
-
var __extends$
|
|
26883
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26710
26884
|
var extendStatics = function (d, b) {
|
|
26711
26885
|
extendStatics = Object.setPrototypeOf ||
|
|
26712
26886
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26721,7 +26895,7 @@
|
|
|
26721
26895
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26722
26896
|
};
|
|
26723
26897
|
})();
|
|
26724
|
-
var __importDefault$
|
|
26898
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26725
26899
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26726
26900
|
};
|
|
26727
26901
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -26742,11 +26916,11 @@
|
|
|
26742
26916
|
* See the License for the specific language governing permissions and
|
|
26743
26917
|
* limitations under the License.
|
|
26744
26918
|
*/
|
|
26745
|
-
var neo4j_driver_core_1$
|
|
26746
|
-
var routing_table_raw_1 = __importDefault$
|
|
26919
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
26920
|
+
var routing_table_raw_1 = __importDefault$C(routingTableRaw);
|
|
26747
26921
|
var lang_1$4 = lang;
|
|
26748
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
26749
|
-
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$
|
|
26922
|
+
var FETCH_ALL$5 = neo4j_driver_core_1$B.internal.constants.FETCH_ALL;
|
|
26923
|
+
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$B.error.PROTOCOL_ERROR;
|
|
26750
26924
|
var StreamObserver = /** @class */ (function () {
|
|
26751
26925
|
function StreamObserver() {
|
|
26752
26926
|
}
|
|
@@ -26767,7 +26941,7 @@
|
|
|
26767
26941
|
* @access private
|
|
26768
26942
|
*/
|
|
26769
26943
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
26770
|
-
__extends$
|
|
26944
|
+
__extends$n(ResultStreamObserver, _super);
|
|
26771
26945
|
/**
|
|
26772
26946
|
*
|
|
26773
26947
|
* @param {Object} param
|
|
@@ -26844,7 +27018,7 @@
|
|
|
26844
27018
|
*/
|
|
26845
27019
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
26846
27020
|
this._haveRecordStreamed = true;
|
|
26847
|
-
var record = new neo4j_driver_core_1$
|
|
27021
|
+
var record = new neo4j_driver_core_1$B.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
26848
27022
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
26849
27023
|
this._observers.forEach(function (o) {
|
|
26850
27024
|
if (o.onNext) {
|
|
@@ -26953,7 +27127,7 @@
|
|
|
26953
27127
|
}
|
|
26954
27128
|
}, meta));
|
|
26955
27129
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
26956
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27130
|
+
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));
|
|
26957
27131
|
return;
|
|
26958
27132
|
}
|
|
26959
27133
|
this._setState(_states.SUCCEEDED);
|
|
@@ -27098,7 +27272,7 @@
|
|
|
27098
27272
|
}(StreamObserver));
|
|
27099
27273
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
27100
27274
|
var LoginObserver = /** @class */ (function (_super) {
|
|
27101
|
-
__extends$
|
|
27275
|
+
__extends$n(LoginObserver, _super);
|
|
27102
27276
|
/**
|
|
27103
27277
|
*
|
|
27104
27278
|
* @param {Object} param -
|
|
@@ -27113,7 +27287,7 @@
|
|
|
27113
27287
|
return _this;
|
|
27114
27288
|
}
|
|
27115
27289
|
LoginObserver.prototype.onNext = function (record) {
|
|
27116
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27290
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
27117
27291
|
};
|
|
27118
27292
|
LoginObserver.prototype.onError = function (error) {
|
|
27119
27293
|
if (this._onError) {
|
|
@@ -27129,7 +27303,7 @@
|
|
|
27129
27303
|
}(StreamObserver));
|
|
27130
27304
|
streamObservers.LoginObserver = LoginObserver;
|
|
27131
27305
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
27132
|
-
__extends$
|
|
27306
|
+
__extends$n(LogoffObserver, _super);
|
|
27133
27307
|
/**
|
|
27134
27308
|
*
|
|
27135
27309
|
* @param {Object} param -
|
|
@@ -27144,7 +27318,7 @@
|
|
|
27144
27318
|
return _this;
|
|
27145
27319
|
}
|
|
27146
27320
|
LogoffObserver.prototype.onNext = function (record) {
|
|
27147
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27321
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
27148
27322
|
};
|
|
27149
27323
|
LogoffObserver.prototype.onError = function (error) {
|
|
27150
27324
|
if (this._onError) {
|
|
@@ -27160,7 +27334,7 @@
|
|
|
27160
27334
|
}(StreamObserver));
|
|
27161
27335
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
27162
27336
|
var ResetObserver = /** @class */ (function (_super) {
|
|
27163
|
-
__extends$
|
|
27337
|
+
__extends$n(ResetObserver, _super);
|
|
27164
27338
|
/**
|
|
27165
27339
|
*
|
|
27166
27340
|
* @param {Object} param -
|
|
@@ -27177,8 +27351,8 @@
|
|
|
27177
27351
|
return _this;
|
|
27178
27352
|
}
|
|
27179
27353
|
ResetObserver.prototype.onNext = function (record) {
|
|
27180
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27181
|
-
neo4j_driver_core_1$
|
|
27354
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
27355
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
27182
27356
|
};
|
|
27183
27357
|
ResetObserver.prototype.onError = function (error) {
|
|
27184
27358
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27197,7 +27371,7 @@
|
|
|
27197
27371
|
}(StreamObserver));
|
|
27198
27372
|
streamObservers.ResetObserver = ResetObserver;
|
|
27199
27373
|
var TelemetryObserver = /** @class */ (function (_super) {
|
|
27200
|
-
__extends$
|
|
27374
|
+
__extends$n(TelemetryObserver, _super);
|
|
27201
27375
|
/**
|
|
27202
27376
|
*
|
|
27203
27377
|
* @param {Object} param -
|
|
@@ -27212,7 +27386,7 @@
|
|
|
27212
27386
|
return _this;
|
|
27213
27387
|
}
|
|
27214
27388
|
TelemetryObserver.prototype.onNext = function (record) {
|
|
27215
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27389
|
+
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));
|
|
27216
27390
|
};
|
|
27217
27391
|
TelemetryObserver.prototype.onError = function (error) {
|
|
27218
27392
|
if (this._onError) {
|
|
@@ -27228,7 +27402,7 @@
|
|
|
27228
27402
|
}(ResultStreamObserver));
|
|
27229
27403
|
streamObservers.TelemetryObserver = TelemetryObserver;
|
|
27230
27404
|
var FailedObserver = /** @class */ (function (_super) {
|
|
27231
|
-
__extends$
|
|
27405
|
+
__extends$n(FailedObserver, _super);
|
|
27232
27406
|
function FailedObserver(_a) {
|
|
27233
27407
|
var error = _a.error, onError = _a.onError;
|
|
27234
27408
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -27239,7 +27413,7 @@
|
|
|
27239
27413
|
}(ResultStreamObserver));
|
|
27240
27414
|
streamObservers.FailedObserver = FailedObserver;
|
|
27241
27415
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
27242
|
-
__extends$
|
|
27416
|
+
__extends$n(CompletedObserver, _super);
|
|
27243
27417
|
function CompletedObserver() {
|
|
27244
27418
|
var _this = _super.call(this) || this;
|
|
27245
27419
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -27249,7 +27423,7 @@
|
|
|
27249
27423
|
}(ResultStreamObserver));
|
|
27250
27424
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
27251
27425
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
27252
|
-
__extends$
|
|
27426
|
+
__extends$n(ProcedureRouteObserver, _super);
|
|
27253
27427
|
function ProcedureRouteObserver(_a) {
|
|
27254
27428
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
27255
27429
|
var _this = _super.call(this) || this;
|
|
@@ -27274,10 +27448,10 @@
|
|
|
27274
27448
|
};
|
|
27275
27449
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
27276
27450
|
if (this._records !== null && this._records.length !== 1) {
|
|
27277
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27451
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Illegal response from router. Received ' +
|
|
27278
27452
|
this._records.length +
|
|
27279
27453
|
' records but expected only one.\n' +
|
|
27280
|
-
neo4j_driver_core_1$
|
|
27454
|
+
neo4j_driver_core_1$B.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
27281
27455
|
return;
|
|
27282
27456
|
}
|
|
27283
27457
|
if (this._onCompleted) {
|
|
@@ -27288,7 +27462,7 @@
|
|
|
27288
27462
|
}(StreamObserver));
|
|
27289
27463
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
27290
27464
|
var RouteObserver = /** @class */ (function (_super) {
|
|
27291
|
-
__extends$
|
|
27465
|
+
__extends$n(RouteObserver, _super);
|
|
27292
27466
|
/**
|
|
27293
27467
|
*
|
|
27294
27468
|
* @param {Object} param -
|
|
@@ -27305,8 +27479,8 @@
|
|
|
27305
27479
|
return _this;
|
|
27306
27480
|
}
|
|
27307
27481
|
RouteObserver.prototype.onNext = function (record) {
|
|
27308
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27309
|
-
neo4j_driver_core_1$
|
|
27482
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
27483
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
27310
27484
|
};
|
|
27311
27485
|
RouteObserver.prototype.onError = function (error) {
|
|
27312
27486
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27408,7 +27582,7 @@
|
|
|
27408
27582
|
* See the License for the specific language governing permissions and
|
|
27409
27583
|
* limitations under the License.
|
|
27410
27584
|
*/
|
|
27411
|
-
var neo4j_driver_core_1$
|
|
27585
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
27412
27586
|
/**
|
|
27413
27587
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
27414
27588
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -27417,7 +27591,7 @@
|
|
|
27417
27591
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
27418
27592
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27419
27593
|
if (txConfig && !txConfig.isEmpty()) {
|
|
27420
|
-
var error = (0, neo4j_driver_core_1$
|
|
27594
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support transaction configuration. ' +
|
|
27421
27595
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
27422
27596
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27423
27597
|
onProtocolError(error.message);
|
|
@@ -27434,7 +27608,7 @@
|
|
|
27434
27608
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
27435
27609
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27436
27610
|
if (database) {
|
|
27437
|
-
var error = (0, neo4j_driver_core_1$
|
|
27611
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support multiple databases. ' +
|
|
27438
27612
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
27439
27613
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27440
27614
|
onProtocolError(error.message);
|
|
@@ -27452,7 +27626,7 @@
|
|
|
27452
27626
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
27453
27627
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27454
27628
|
if (impersonatedUser) {
|
|
27455
|
-
var error = (0, neo4j_driver_core_1$
|
|
27629
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support user impersonation. ' +
|
|
27456
27630
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
27457
27631
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
27458
27632
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -27471,9 +27645,9 @@
|
|
|
27471
27645
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
27472
27646
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27473
27647
|
if (notificationFilter !== undefined) {
|
|
27474
|
-
var error = (0, neo4j_driver_core_1$
|
|
27648
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to a database that does not support user notification filters. ' +
|
|
27475
27649
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
27476
|
-
"Trying to set notifications to ".concat(neo4j_driver_core_1$
|
|
27650
|
+
"Trying to set notifications to ".concat(neo4j_driver_core_1$A.json.stringify(notificationFilter), "."));
|
|
27477
27651
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27478
27652
|
onProtocolError(error.message);
|
|
27479
27653
|
observer.onError(error);
|
|
@@ -27506,8 +27680,8 @@
|
|
|
27506
27680
|
*/
|
|
27507
27681
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
27508
27682
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
27509
|
-
var neo4j_driver_core_1$
|
|
27510
|
-
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$
|
|
27683
|
+
var neo4j_driver_core_1$z = lib$1;
|
|
27684
|
+
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$z.error.PROTOCOL_ERROR;
|
|
27511
27685
|
/**
|
|
27512
27686
|
* A Structure have a signature and fields.
|
|
27513
27687
|
*/
|
|
@@ -27541,7 +27715,7 @@
|
|
|
27541
27715
|
structure$1.Structure = Structure;
|
|
27542
27716
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
27543
27717
|
if (expectedSize !== actualSize) {
|
|
27544
|
-
throw (0, neo4j_driver_core_1$
|
|
27718
|
+
throw (0, neo4j_driver_core_1$z.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
27545
27719
|
}
|
|
27546
27720
|
}
|
|
27547
27721
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -27568,8 +27742,8 @@
|
|
|
27568
27742
|
var channel_1$3 = channel;
|
|
27569
27743
|
var lang_1$3 = lang;
|
|
27570
27744
|
var structure_1 = structure$1;
|
|
27571
|
-
var neo4j_driver_core_1$
|
|
27572
|
-
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$
|
|
27745
|
+
var neo4j_driver_core_1$y = lib$1;
|
|
27746
|
+
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$y.error.PROTOCOL_ERROR;
|
|
27573
27747
|
var TINY_STRING = 0x80;
|
|
27574
27748
|
var TINY_LIST = 0x90;
|
|
27575
27749
|
var TINY_MAP = 0xa0;
|
|
@@ -27639,9 +27813,9 @@
|
|
|
27639
27813
|
return function () { return _this.packString(x); };
|
|
27640
27814
|
}
|
|
27641
27815
|
else if (typeof x === 'bigint') {
|
|
27642
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
27816
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$y.int)(x)); };
|
|
27643
27817
|
}
|
|
27644
|
-
else if ((0, neo4j_driver_core_1$
|
|
27818
|
+
else if ((0, neo4j_driver_core_1$y.isInt)(x)) {
|
|
27645
27819
|
return function () { return _this.packInteger(x); };
|
|
27646
27820
|
}
|
|
27647
27821
|
else if (x instanceof Int8Array) {
|
|
@@ -27695,7 +27869,7 @@
|
|
|
27695
27869
|
}
|
|
27696
27870
|
catch (e) {
|
|
27697
27871
|
// handle errors from iterable to array conversion
|
|
27698
|
-
throw (0, neo4j_driver_core_1$
|
|
27872
|
+
throw (0, neo4j_driver_core_1$y.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
27699
27873
|
}
|
|
27700
27874
|
};
|
|
27701
27875
|
/**
|
|
@@ -27765,7 +27939,7 @@
|
|
|
27765
27939
|
this._ch.writeBytes(bytes);
|
|
27766
27940
|
}
|
|
27767
27941
|
else {
|
|
27768
|
-
throw (0, neo4j_driver_core_1$
|
|
27942
|
+
throw (0, neo4j_driver_core_1$y.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
27769
27943
|
}
|
|
27770
27944
|
};
|
|
27771
27945
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -27789,7 +27963,7 @@
|
|
|
27789
27963
|
this._ch.writeUInt8(size % 256);
|
|
27790
27964
|
}
|
|
27791
27965
|
else {
|
|
27792
|
-
throw (0, neo4j_driver_core_1$
|
|
27966
|
+
throw (0, neo4j_driver_core_1$y.newError)('Lists of size ' + size + ' are not supported');
|
|
27793
27967
|
}
|
|
27794
27968
|
};
|
|
27795
27969
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -27800,7 +27974,7 @@
|
|
|
27800
27974
|
}
|
|
27801
27975
|
}
|
|
27802
27976
|
else {
|
|
27803
|
-
throw (0, neo4j_driver_core_1$
|
|
27977
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays are not supported by the database this driver is connected to');
|
|
27804
27978
|
}
|
|
27805
27979
|
};
|
|
27806
27980
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -27821,7 +27995,7 @@
|
|
|
27821
27995
|
this._ch.writeUInt8(size % 256);
|
|
27822
27996
|
}
|
|
27823
27997
|
else {
|
|
27824
|
-
throw (0, neo4j_driver_core_1$
|
|
27998
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
27825
27999
|
}
|
|
27826
28000
|
};
|
|
27827
28001
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -27845,7 +28019,7 @@
|
|
|
27845
28019
|
this._ch.writeUInt8(size % 256);
|
|
27846
28020
|
}
|
|
27847
28021
|
else {
|
|
27848
|
-
throw (0, neo4j_driver_core_1$
|
|
28022
|
+
throw (0, neo4j_driver_core_1$y.newError)('Maps of size ' + size + ' are not supported');
|
|
27849
28023
|
}
|
|
27850
28024
|
};
|
|
27851
28025
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -27864,7 +28038,7 @@
|
|
|
27864
28038
|
this._ch.writeUInt8(size % 256);
|
|
27865
28039
|
}
|
|
27866
28040
|
else {
|
|
27867
|
-
throw (0, neo4j_driver_core_1$
|
|
28041
|
+
throw (0, neo4j_driver_core_1$y.newError)('Structures of size ' + size + ' are not supported');
|
|
27868
28042
|
}
|
|
27869
28043
|
};
|
|
27870
28044
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -27872,7 +28046,7 @@
|
|
|
27872
28046
|
};
|
|
27873
28047
|
Packer.prototype._nonPackableValue = function (message) {
|
|
27874
28048
|
return function () {
|
|
27875
|
-
throw (0, neo4j_driver_core_1$
|
|
28049
|
+
throw (0, neo4j_driver_core_1$y.newError)(message, PROTOCOL_ERROR$3);
|
|
27876
28050
|
};
|
|
27877
28051
|
};
|
|
27878
28052
|
return Packer;
|
|
@@ -27908,7 +28082,7 @@
|
|
|
27908
28082
|
}
|
|
27909
28083
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
27910
28084
|
if (numberOrInteger !== null) {
|
|
27911
|
-
if ((0, neo4j_driver_core_1$
|
|
28085
|
+
if ((0, neo4j_driver_core_1$y.isInt)(numberOrInteger)) {
|
|
27912
28086
|
if (this._useBigInt) {
|
|
27913
28087
|
return numberOrInteger.toBigInt();
|
|
27914
28088
|
}
|
|
@@ -27938,13 +28112,13 @@
|
|
|
27938
28112
|
if (struct !== null) {
|
|
27939
28113
|
return struct;
|
|
27940
28114
|
}
|
|
27941
|
-
throw (0, neo4j_driver_core_1$
|
|
28115
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
27942
28116
|
};
|
|
27943
28117
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
27944
28118
|
var marker = buffer.readUInt8();
|
|
27945
28119
|
var result = this._unpackInteger(marker, buffer);
|
|
27946
28120
|
if (result == null) {
|
|
27947
|
-
throw (0, neo4j_driver_core_1$
|
|
28121
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
|
|
27948
28122
|
}
|
|
27949
28123
|
return result;
|
|
27950
28124
|
};
|
|
@@ -27969,25 +28143,25 @@
|
|
|
27969
28143
|
};
|
|
27970
28144
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
27971
28145
|
if (marker >= 0 && marker < 128) {
|
|
27972
|
-
return (0, neo4j_driver_core_1$
|
|
28146
|
+
return (0, neo4j_driver_core_1$y.int)(marker);
|
|
27973
28147
|
}
|
|
27974
28148
|
else if (marker >= 240 && marker < 256) {
|
|
27975
|
-
return (0, neo4j_driver_core_1$
|
|
28149
|
+
return (0, neo4j_driver_core_1$y.int)(marker - 256);
|
|
27976
28150
|
}
|
|
27977
28151
|
else if (marker === INT_8) {
|
|
27978
|
-
return (0, neo4j_driver_core_1$
|
|
28152
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt8());
|
|
27979
28153
|
}
|
|
27980
28154
|
else if (marker === INT_16) {
|
|
27981
|
-
return (0, neo4j_driver_core_1$
|
|
28155
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt16());
|
|
27982
28156
|
}
|
|
27983
28157
|
else if (marker === INT_32) {
|
|
27984
28158
|
var b = buffer.readInt32();
|
|
27985
|
-
return (0, neo4j_driver_core_1$
|
|
28159
|
+
return (0, neo4j_driver_core_1$y.int)(b);
|
|
27986
28160
|
}
|
|
27987
28161
|
else if (marker === INT_64) {
|
|
27988
28162
|
var high = buffer.readInt32();
|
|
27989
28163
|
var low = buffer.readInt32();
|
|
27990
|
-
return new neo4j_driver_core_1$
|
|
28164
|
+
return new neo4j_driver_core_1$y.Integer(low, high);
|
|
27991
28165
|
}
|
|
27992
28166
|
else {
|
|
27993
28167
|
return null;
|
|
@@ -28130,7 +28304,7 @@
|
|
|
28130
28304
|
* See the License for the specific language governing permissions and
|
|
28131
28305
|
* limitations under the License.
|
|
28132
28306
|
*/
|
|
28133
|
-
var __extends$
|
|
28307
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28134
28308
|
var extendStatics = function (d, b) {
|
|
28135
28309
|
extendStatics = Object.setPrototypeOf ||
|
|
28136
28310
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28172,7 +28346,7 @@
|
|
|
28172
28346
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28173
28347
|
var v1$1 = __importStar$3(packstreamV1);
|
|
28174
28348
|
var Packer = /** @class */ (function (_super) {
|
|
28175
|
-
__extends$
|
|
28349
|
+
__extends$m(Packer, _super);
|
|
28176
28350
|
function Packer() {
|
|
28177
28351
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28178
28352
|
}
|
|
@@ -28183,7 +28357,7 @@
|
|
|
28183
28357
|
}(v1$1.Packer));
|
|
28184
28358
|
packstreamV2.Packer = Packer;
|
|
28185
28359
|
var Unpacker = /** @class */ (function (_super) {
|
|
28186
|
-
__extends$
|
|
28360
|
+
__extends$m(Unpacker, _super);
|
|
28187
28361
|
/**
|
|
28188
28362
|
* @constructor
|
|
28189
28363
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -28267,8 +28441,8 @@
|
|
|
28267
28441
|
*/
|
|
28268
28442
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
28269
28443
|
requestMessage.SIGNATURES = void 0;
|
|
28270
|
-
var neo4j_driver_core_1$
|
|
28271
|
-
var _a$b = neo4j_driver_core_1$
|
|
28444
|
+
var neo4j_driver_core_1$x = lib$1;
|
|
28445
|
+
var _a$b = neo4j_driver_core_1$x.internal.constants, ACCESS_MODE_READ = _a$b.ACCESS_MODE_READ, FETCH_ALL$4 = _a$b.FETCH_ALL, assertString = neo4j_driver_core_1$x.internal.util.assertString;
|
|
28272
28446
|
/* eslint-disable no-unused-vars */
|
|
28273
28447
|
// Signature bytes for each request message type
|
|
28274
28448
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -28329,7 +28503,7 @@
|
|
|
28329
28503
|
* @return {RequestMessage} new RUN message.
|
|
28330
28504
|
*/
|
|
28331
28505
|
RequestMessage.run = function (query, parameters) {
|
|
28332
|
-
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
28506
|
+
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters)); });
|
|
28333
28507
|
};
|
|
28334
28508
|
/**
|
|
28335
28509
|
* Get a PULL_ALL message.
|
|
@@ -28393,7 +28567,7 @@
|
|
|
28393
28567
|
if (routing) {
|
|
28394
28568
|
metadata.routing = routing;
|
|
28395
28569
|
}
|
|
28396
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
28570
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28397
28571
|
};
|
|
28398
28572
|
/**
|
|
28399
28573
|
* Create a new HELLO message.
|
|
@@ -28422,7 +28596,7 @@
|
|
|
28422
28596
|
if (routing) {
|
|
28423
28597
|
metadata.routing = routing;
|
|
28424
28598
|
}
|
|
28425
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
28599
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28426
28600
|
};
|
|
28427
28601
|
/**
|
|
28428
28602
|
* Create a new HELLO message.
|
|
@@ -28451,7 +28625,7 @@
|
|
|
28451
28625
|
if (routing) {
|
|
28452
28626
|
metadata.routing = routing;
|
|
28453
28627
|
}
|
|
28454
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
28628
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28455
28629
|
};
|
|
28456
28630
|
/**
|
|
28457
28631
|
* Create a new LOGON message.
|
|
@@ -28483,7 +28657,7 @@
|
|
|
28483
28657
|
RequestMessage.begin = function (_a) {
|
|
28484
28658
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
28485
28659
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28486
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
28660
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28487
28661
|
};
|
|
28488
28662
|
/**
|
|
28489
28663
|
* Create a new BEGIN message.
|
|
@@ -28500,7 +28674,7 @@
|
|
|
28500
28674
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter, {
|
|
28501
28675
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28502
28676
|
});
|
|
28503
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
28677
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28504
28678
|
};
|
|
28505
28679
|
/**
|
|
28506
28680
|
* Get a COMMIT message.
|
|
@@ -28533,7 +28707,7 @@
|
|
|
28533
28707
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
28534
28708
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28535
28709
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28536
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
28710
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
28537
28711
|
});
|
|
28538
28712
|
};
|
|
28539
28713
|
/**
|
|
@@ -28555,7 +28729,7 @@
|
|
|
28555
28729
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28556
28730
|
});
|
|
28557
28731
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28558
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
28732
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
28559
28733
|
});
|
|
28560
28734
|
};
|
|
28561
28735
|
/**
|
|
@@ -28574,7 +28748,7 @@
|
|
|
28574
28748
|
RequestMessage.pull = function (_a) {
|
|
28575
28749
|
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;
|
|
28576
28750
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28577
|
-
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$
|
|
28751
|
+
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28578
28752
|
};
|
|
28579
28753
|
/**
|
|
28580
28754
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -28585,11 +28759,11 @@
|
|
|
28585
28759
|
RequestMessage.discard = function (_a) {
|
|
28586
28760
|
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;
|
|
28587
28761
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28588
|
-
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$
|
|
28762
|
+
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28589
28763
|
};
|
|
28590
28764
|
RequestMessage.telemetry = function (_a) {
|
|
28591
28765
|
var api = _a.api;
|
|
28592
|
-
var parsedApi = (0, neo4j_driver_core_1$
|
|
28766
|
+
var parsedApi = (0, neo4j_driver_core_1$x.int)(api);
|
|
28593
28767
|
return new RequestMessage(TELEMETRY, [parsedApi], function () { return "TELEMETRY ".concat(parsedApi.toString()); });
|
|
28594
28768
|
};
|
|
28595
28769
|
/**
|
|
@@ -28605,7 +28779,7 @@
|
|
|
28605
28779
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
28606
28780
|
if (databaseName === void 0) { databaseName = null; }
|
|
28607
28781
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
28608
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
28782
|
+
return "ROUTE ".concat(neo4j_driver_core_1$x.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$x.json.stringify(bookmarks), " ").concat(databaseName);
|
|
28609
28783
|
});
|
|
28610
28784
|
};
|
|
28611
28785
|
/**
|
|
@@ -28630,7 +28804,7 @@
|
|
|
28630
28804
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
28631
28805
|
}
|
|
28632
28806
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
28633
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
28807
|
+
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));
|
|
28634
28808
|
});
|
|
28635
28809
|
};
|
|
28636
28810
|
return RequestMessage;
|
|
@@ -28681,9 +28855,9 @@
|
|
|
28681
28855
|
* @returns {Object} a metadata object.
|
|
28682
28856
|
*/
|
|
28683
28857
|
function buildStreamMetadata(stmtId, n) {
|
|
28684
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
28858
|
+
var metadata = { n: (0, neo4j_driver_core_1$x.int)(n) };
|
|
28685
28859
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
28686
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
28860
|
+
metadata.qid = (0, neo4j_driver_core_1$x.int)(stmtId);
|
|
28687
28861
|
}
|
|
28688
28862
|
return metadata;
|
|
28689
28863
|
}
|
|
@@ -28743,8 +28917,8 @@
|
|
|
28743
28917
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
28744
28918
|
transformer.TypeTransformer = void 0;
|
|
28745
28919
|
var packstream_1$6 = packstream;
|
|
28746
|
-
var neo4j_driver_core_1$
|
|
28747
|
-
var objectUtil = neo4j_driver_core_1$
|
|
28920
|
+
var neo4j_driver_core_1$w = lib$1;
|
|
28921
|
+
var objectUtil = neo4j_driver_core_1$w.internal.objectUtil;
|
|
28748
28922
|
/**
|
|
28749
28923
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
28750
28924
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -28887,10 +29061,10 @@
|
|
|
28887
29061
|
return ar;
|
|
28888
29062
|
};
|
|
28889
29063
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
28890
|
-
var neo4j_driver_core_1$
|
|
29064
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
28891
29065
|
var packstream_1$5 = packstream;
|
|
28892
|
-
var transformer_1$
|
|
28893
|
-
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$
|
|
29066
|
+
var transformer_1$h = transformer;
|
|
29067
|
+
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
|
|
28894
29068
|
var NODE = 0x4e;
|
|
28895
29069
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
28896
29070
|
var RELATIONSHIP = 0x52;
|
|
@@ -28904,16 +29078,16 @@
|
|
|
28904
29078
|
* @returns {TypeTransformer}
|
|
28905
29079
|
*/
|
|
28906
29080
|
function createNodeTransformer$1() {
|
|
28907
|
-
return new transformer_1$
|
|
29081
|
+
return new transformer_1$h.TypeTransformer({
|
|
28908
29082
|
signature: NODE,
|
|
28909
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29083
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Node; },
|
|
28910
29084
|
toStructure: function (object) {
|
|
28911
|
-
throw (0, neo4j_driver_core_1$
|
|
29085
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28912
29086
|
},
|
|
28913
29087
|
fromStructure: function (struct) {
|
|
28914
29088
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
28915
29089
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
28916
|
-
return new neo4j_driver_core_1$
|
|
29090
|
+
return new neo4j_driver_core_1$v.Node(identity, labels, properties);
|
|
28917
29091
|
}
|
|
28918
29092
|
});
|
|
28919
29093
|
}
|
|
@@ -28922,16 +29096,16 @@
|
|
|
28922
29096
|
* @returns {TypeTransformer}
|
|
28923
29097
|
*/
|
|
28924
29098
|
function createRelationshipTransformer$1() {
|
|
28925
|
-
return new transformer_1$
|
|
29099
|
+
return new transformer_1$h.TypeTransformer({
|
|
28926
29100
|
signature: RELATIONSHIP,
|
|
28927
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29101
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Relationship; },
|
|
28928
29102
|
toStructure: function (object) {
|
|
28929
|
-
throw (0, neo4j_driver_core_1$
|
|
29103
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28930
29104
|
},
|
|
28931
29105
|
fromStructure: function (struct) {
|
|
28932
29106
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28933
29107
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
28934
|
-
return new neo4j_driver_core_1$
|
|
29108
|
+
return new neo4j_driver_core_1$v.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
28935
29109
|
}
|
|
28936
29110
|
});
|
|
28937
29111
|
}
|
|
@@ -28940,16 +29114,16 @@
|
|
|
28940
29114
|
* @returns {TypeTransformer}
|
|
28941
29115
|
*/
|
|
28942
29116
|
function createUnboundRelationshipTransformer$1() {
|
|
28943
|
-
return new transformer_1$
|
|
29117
|
+
return new transformer_1$h.TypeTransformer({
|
|
28944
29118
|
signature: UNBOUND_RELATIONSHIP,
|
|
28945
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29119
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.UnboundRelationship; },
|
|
28946
29120
|
toStructure: function (object) {
|
|
28947
|
-
throw (0, neo4j_driver_core_1$
|
|
29121
|
+
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);
|
|
28948
29122
|
},
|
|
28949
29123
|
fromStructure: function (struct) {
|
|
28950
29124
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28951
29125
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
28952
|
-
return new neo4j_driver_core_1$
|
|
29126
|
+
return new neo4j_driver_core_1$v.UnboundRelationship(identity, type, properties);
|
|
28953
29127
|
}
|
|
28954
29128
|
});
|
|
28955
29129
|
}
|
|
@@ -28958,11 +29132,11 @@
|
|
|
28958
29132
|
* @returns {TypeTransformer}
|
|
28959
29133
|
*/
|
|
28960
29134
|
function createPathTransformer() {
|
|
28961
|
-
return new transformer_1$
|
|
29135
|
+
return new transformer_1$h.TypeTransformer({
|
|
28962
29136
|
signature: PATH,
|
|
28963
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29137
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Path; },
|
|
28964
29138
|
toStructure: function (object) {
|
|
28965
|
-
throw (0, neo4j_driver_core_1$
|
|
29139
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28966
29140
|
},
|
|
28967
29141
|
fromStructure: function (struct) {
|
|
28968
29142
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -28971,11 +29145,11 @@
|
|
|
28971
29145
|
var prevNode = nodes[0];
|
|
28972
29146
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
28973
29147
|
var nextNode = nodes[sequence[i + 1]];
|
|
28974
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
29148
|
+
var relIndex = (0, neo4j_driver_core_1$v.toNumber)(sequence[i]);
|
|
28975
29149
|
var rel = void 0;
|
|
28976
29150
|
if (relIndex > 0) {
|
|
28977
29151
|
rel = rels[relIndex - 1];
|
|
28978
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29152
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28979
29153
|
// To avoid duplication, relationships in a path do not contain
|
|
28980
29154
|
// information about their start and end nodes, that's instead
|
|
28981
29155
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -28985,16 +29159,16 @@
|
|
|
28985
29159
|
}
|
|
28986
29160
|
else {
|
|
28987
29161
|
rel = rels[-relIndex - 1];
|
|
28988
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29162
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28989
29163
|
// See above
|
|
28990
29164
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
28991
29165
|
}
|
|
28992
29166
|
}
|
|
28993
29167
|
// Done hydrating one path segment.
|
|
28994
|
-
segments.push(new neo4j_driver_core_1$
|
|
29168
|
+
segments.push(new neo4j_driver_core_1$v.PathSegment(prevNode, rel, nextNode));
|
|
28995
29169
|
prevNode = nextNode;
|
|
28996
29170
|
}
|
|
28997
|
-
return new neo4j_driver_core_1$
|
|
29171
|
+
return new neo4j_driver_core_1$v.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
28998
29172
|
}
|
|
28999
29173
|
});
|
|
29000
29174
|
}
|
|
@@ -29005,6 +29179,17 @@
|
|
|
29005
29179
|
createPathTransformer: createPathTransformer
|
|
29006
29180
|
};
|
|
29007
29181
|
|
|
29182
|
+
var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29183
|
+
__assign$o = Object.assign || function(t) {
|
|
29184
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29185
|
+
s = arguments[i];
|
|
29186
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
29187
|
+
t[p] = s[p];
|
|
29188
|
+
}
|
|
29189
|
+
return t;
|
|
29190
|
+
};
|
|
29191
|
+
return __assign$o.apply(this, arguments);
|
|
29192
|
+
};
|
|
29008
29193
|
var __createBinding$1 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29009
29194
|
if (k2 === undefined) k2 = k;
|
|
29010
29195
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -29028,7 +29213,7 @@
|
|
|
29028
29213
|
__setModuleDefault$1(result, mod);
|
|
29029
29214
|
return result;
|
|
29030
29215
|
};
|
|
29031
|
-
var __importDefault$
|
|
29216
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29032
29217
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29033
29218
|
};
|
|
29034
29219
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -29052,11 +29237,16 @@
|
|
|
29052
29237
|
var packstream_1$4 = packstream;
|
|
29053
29238
|
var request_message_1$b = __importStar$1(requestMessage);
|
|
29054
29239
|
var stream_observers_1$b = streamObservers;
|
|
29055
|
-
var neo4j_driver_core_1$
|
|
29056
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
29057
|
-
var transformer_1$
|
|
29058
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
29059
|
-
var
|
|
29240
|
+
var neo4j_driver_core_1$u = lib$1;
|
|
29241
|
+
var bolt_protocol_v1_transformer_1$1 = __importDefault$B(boltProtocolV1_transformer);
|
|
29242
|
+
var transformer_1$g = __importDefault$B(transformer);
|
|
29243
|
+
var Bookmarks$3 = neo4j_driver_core_1$u.internal.bookmarks.Bookmarks, _a$a = neo4j_driver_core_1$u.internal.constants, ACCESS_MODE_WRITE = _a$a.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a$a.BOLT_PROTOCOL_V1; neo4j_driver_core_1$u.internal.logger.Logger; var TxConfig$2 = neo4j_driver_core_1$u.internal.txConfig.TxConfig;
|
|
29244
|
+
var DEFAULT_DIAGNOSTIC_RECORD$3 = Object.freeze({
|
|
29245
|
+
OPERATION: '',
|
|
29246
|
+
OPERATION_CODE: '0',
|
|
29247
|
+
CURRENT_SCHEMA: '/'
|
|
29248
|
+
});
|
|
29249
|
+
var BoltProtocol$f = /** @class */ (function () {
|
|
29060
29250
|
/**
|
|
29061
29251
|
* @callback CreateResponseHandler Creates the response handler
|
|
29062
29252
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -29095,7 +29285,7 @@
|
|
|
29095
29285
|
get: function () {
|
|
29096
29286
|
var _this = this;
|
|
29097
29287
|
if (this._transformer === undefined) {
|
|
29098
|
-
this._transformer = new transformer_1$
|
|
29288
|
+
this._transformer = new transformer_1$g.default(Object.values(bolt_protocol_v1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29099
29289
|
}
|
|
29100
29290
|
return this._transformer;
|
|
29101
29291
|
},
|
|
@@ -29180,6 +29370,9 @@
|
|
|
29180
29370
|
BoltProtocol.prototype.transformMetadata = function (metadata) {
|
|
29181
29371
|
return metadata;
|
|
29182
29372
|
};
|
|
29373
|
+
BoltProtocol.prototype.enrichErrorMetadata = function (metadata) {
|
|
29374
|
+
return __assign$o(__assign$o({}, metadata), { diagnostic_record: metadata.diagnostic_record !== null ? __assign$o(__assign$o({}, DEFAULT_DIAGNOSTIC_RECORD$3), metadata.diagnostic_record) : null });
|
|
29375
|
+
};
|
|
29183
29376
|
/**
|
|
29184
29377
|
* Perform initialization and authentication of the underlying connection.
|
|
29185
29378
|
* @param {Object} param
|
|
@@ -29219,7 +29412,7 @@
|
|
|
29219
29412
|
onError: onError
|
|
29220
29413
|
});
|
|
29221
29414
|
// TODO: Verify the Neo4j version in the message
|
|
29222
|
-
var error = (0, neo4j_driver_core_1$
|
|
29415
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logoff. ' +
|
|
29223
29416
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29224
29417
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29225
29418
|
this._onProtocolError(error.message);
|
|
@@ -29245,7 +29438,7 @@
|
|
|
29245
29438
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
29246
29439
|
});
|
|
29247
29440
|
// TODO: Verify the Neo4j version in the message
|
|
29248
|
-
var error = (0, neo4j_driver_core_1$
|
|
29441
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logon. ' +
|
|
29249
29442
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29250
29443
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29251
29444
|
this._onProtocolError(error.message);
|
|
@@ -29536,7 +29729,7 @@
|
|
|
29536
29729
|
};
|
|
29537
29730
|
return BoltProtocol;
|
|
29538
29731
|
}());
|
|
29539
|
-
boltProtocolV1.default = BoltProtocol$
|
|
29732
|
+
boltProtocolV1.default = BoltProtocol$f;
|
|
29540
29733
|
|
|
29541
29734
|
var boltProtocolV2 = {};
|
|
29542
29735
|
|
|
@@ -29562,17 +29755,17 @@
|
|
|
29562
29755
|
* See the License for the specific language governing permissions and
|
|
29563
29756
|
* limitations under the License.
|
|
29564
29757
|
*/
|
|
29565
|
-
var neo4j_driver_core_1$
|
|
29566
|
-
var _a$9 = neo4j_driver_core_1$
|
|
29758
|
+
var neo4j_driver_core_1$t = lib$1;
|
|
29759
|
+
var _a$9 = neo4j_driver_core_1$t.internal.temporalUtil, DAYS_0000_TO_1970 = _a$9.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a$9.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a$9.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a$9.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a$9.NANOS_PER_SECOND, SECONDS_PER_DAY = _a$9.SECONDS_PER_DAY, floorDiv = _a$9.floorDiv, floorMod = _a$9.floorMod;
|
|
29567
29760
|
/**
|
|
29568
29761
|
* Converts given epoch day to a local date.
|
|
29569
29762
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
29570
29763
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
29571
29764
|
*/
|
|
29572
29765
|
function epochDayToDate(epochDay) {
|
|
29573
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
29766
|
+
epochDay = (0, neo4j_driver_core_1$t.int)(epochDay);
|
|
29574
29767
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
29575
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
29768
|
+
var adjust = (0, neo4j_driver_core_1$t.int)(0);
|
|
29576
29769
|
if (zeroDay.lessThan(0)) {
|
|
29577
29770
|
var adjustCycles = zeroDay
|
|
29578
29771
|
.add(1)
|
|
@@ -29615,7 +29808,7 @@
|
|
|
29615
29808
|
.div(10))
|
|
29616
29809
|
.add(1);
|
|
29617
29810
|
year = year.add(marchMonth.div(10));
|
|
29618
|
-
return new neo4j_driver_core_1$
|
|
29811
|
+
return new neo4j_driver_core_1$t.Date(year, month, day);
|
|
29619
29812
|
}
|
|
29620
29813
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
29621
29814
|
/**
|
|
@@ -29624,14 +29817,14 @@
|
|
|
29624
29817
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
29625
29818
|
*/
|
|
29626
29819
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
29627
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
29820
|
+
nanoOfDay = (0, neo4j_driver_core_1$t.int)(nanoOfDay);
|
|
29628
29821
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
29629
29822
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
29630
29823
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
29631
29824
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
29632
29825
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
29633
29826
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
29634
|
-
return new neo4j_driver_core_1$
|
|
29827
|
+
return new neo4j_driver_core_1$t.LocalTime(hour, minute, second, nanosecond);
|
|
29635
29828
|
}
|
|
29636
29829
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
29637
29830
|
/**
|
|
@@ -29646,7 +29839,7 @@
|
|
|
29646
29839
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
29647
29840
|
var localDate = epochDayToDate(epochDay);
|
|
29648
29841
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
29649
|
-
return new neo4j_driver_core_1$
|
|
29842
|
+
return new neo4j_driver_core_1$t.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
29650
29843
|
}
|
|
29651
29844
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
29652
29845
|
|
|
@@ -29666,8 +29859,8 @@
|
|
|
29666
29859
|
* See the License for the specific language governing permissions and
|
|
29667
29860
|
* limitations under the License.
|
|
29668
29861
|
*/
|
|
29669
|
-
var __assign$
|
|
29670
|
-
__assign$
|
|
29862
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29863
|
+
__assign$n = Object.assign || function(t) {
|
|
29671
29864
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29672
29865
|
s = arguments[i];
|
|
29673
29866
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29675,7 +29868,7 @@
|
|
|
29675
29868
|
}
|
|
29676
29869
|
return t;
|
|
29677
29870
|
};
|
|
29678
|
-
return __assign$
|
|
29871
|
+
return __assign$n.apply(this, arguments);
|
|
29679
29872
|
};
|
|
29680
29873
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
29681
29874
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -29693,16 +29886,16 @@
|
|
|
29693
29886
|
}
|
|
29694
29887
|
return ar;
|
|
29695
29888
|
};
|
|
29696
|
-
var __importDefault$
|
|
29889
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29697
29890
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29698
29891
|
};
|
|
29699
29892
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
29700
|
-
var neo4j_driver_core_1$
|
|
29893
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
29701
29894
|
var packstream_1$3 = packstream;
|
|
29702
|
-
var transformer_1$
|
|
29895
|
+
var transformer_1$f = transformer;
|
|
29703
29896
|
var temporal_factory_1$1 = temporalFactory;
|
|
29704
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
29705
|
-
var _a$8 = neo4j_driver_core_1$
|
|
29897
|
+
var bolt_protocol_v1_transformer_1 = __importDefault$A(boltProtocolV1_transformer);
|
|
29898
|
+
var _a$8 = neo4j_driver_core_1$s.internal.temporalUtil, dateToEpochDay = _a$8.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$8.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$8.localTimeToNanoOfDay;
|
|
29706
29899
|
var POINT_2D = 0x58;
|
|
29707
29900
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
29708
29901
|
var POINT_3D = 0x59;
|
|
@@ -29726,18 +29919,18 @@
|
|
|
29726
29919
|
* @returns {TypeTransformer}
|
|
29727
29920
|
*/
|
|
29728
29921
|
function createPoint2DTransformer() {
|
|
29729
|
-
return new transformer_1$
|
|
29922
|
+
return new transformer_1$f.TypeTransformer({
|
|
29730
29923
|
signature: POINT_2D,
|
|
29731
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
29924
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && (point.z === null || point.z === undefined); },
|
|
29732
29925
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
29733
|
-
(0, neo4j_driver_core_1$
|
|
29926
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29734
29927
|
point.x,
|
|
29735
29928
|
point.y
|
|
29736
29929
|
]); },
|
|
29737
29930
|
fromStructure: function (struct) {
|
|
29738
29931
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
29739
29932
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
29740
|
-
return new neo4j_driver_core_1$
|
|
29933
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, undefined // z
|
|
29741
29934
|
);
|
|
29742
29935
|
}
|
|
29743
29936
|
});
|
|
@@ -29747,11 +29940,11 @@
|
|
|
29747
29940
|
* @returns {TypeTransformer}
|
|
29748
29941
|
*/
|
|
29749
29942
|
function createPoint3DTransformer() {
|
|
29750
|
-
return new transformer_1$
|
|
29943
|
+
return new transformer_1$f.TypeTransformer({
|
|
29751
29944
|
signature: POINT_3D,
|
|
29752
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
29945
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && point.z !== null && point.z !== undefined; },
|
|
29753
29946
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
29754
|
-
(0, neo4j_driver_core_1$
|
|
29947
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29755
29948
|
point.x,
|
|
29756
29949
|
point.y,
|
|
29757
29950
|
point.z
|
|
@@ -29759,7 +29952,7 @@
|
|
|
29759
29952
|
fromStructure: function (struct) {
|
|
29760
29953
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
29761
29954
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
29762
|
-
return new neo4j_driver_core_1$
|
|
29955
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, z);
|
|
29763
29956
|
}
|
|
29764
29957
|
});
|
|
29765
29958
|
}
|
|
@@ -29768,20 +29961,20 @@
|
|
|
29768
29961
|
* @returns {TypeTransformer}
|
|
29769
29962
|
*/
|
|
29770
29963
|
function createDurationTransformer() {
|
|
29771
|
-
return new transformer_1$
|
|
29964
|
+
return new transformer_1$f.TypeTransformer({
|
|
29772
29965
|
signature: DURATION,
|
|
29773
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29966
|
+
isTypeInstance: neo4j_driver_core_1$s.isDuration,
|
|
29774
29967
|
toStructure: function (value) {
|
|
29775
|
-
var months = (0, neo4j_driver_core_1$
|
|
29776
|
-
var days = (0, neo4j_driver_core_1$
|
|
29777
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
29778
|
-
var nanoseconds = (0, neo4j_driver_core_1$
|
|
29968
|
+
var months = (0, neo4j_driver_core_1$s.int)(value.months);
|
|
29969
|
+
var days = (0, neo4j_driver_core_1$s.int)(value.days);
|
|
29970
|
+
var seconds = (0, neo4j_driver_core_1$s.int)(value.seconds);
|
|
29971
|
+
var nanoseconds = (0, neo4j_driver_core_1$s.int)(value.nanoseconds);
|
|
29779
29972
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
29780
29973
|
},
|
|
29781
29974
|
fromStructure: function (struct) {
|
|
29782
29975
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
29783
29976
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
29784
|
-
return new neo4j_driver_core_1$
|
|
29977
|
+
return new neo4j_driver_core_1$s.Duration(months, days, seconds, nanoseconds);
|
|
29785
29978
|
}
|
|
29786
29979
|
});
|
|
29787
29980
|
}
|
|
@@ -29794,9 +29987,9 @@
|
|
|
29794
29987
|
*/
|
|
29795
29988
|
function createLocalTimeTransformer(_a) {
|
|
29796
29989
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29797
|
-
return new transformer_1$
|
|
29990
|
+
return new transformer_1$f.TypeTransformer({
|
|
29798
29991
|
signature: LOCAL_TIME,
|
|
29799
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29992
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalTime,
|
|
29800
29993
|
toStructure: function (value) {
|
|
29801
29994
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29802
29995
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -29818,19 +30011,19 @@
|
|
|
29818
30011
|
*/
|
|
29819
30012
|
function createTimeTransformer(_a) {
|
|
29820
30013
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29821
|
-
return new transformer_1$
|
|
30014
|
+
return new transformer_1$f.TypeTransformer({
|
|
29822
30015
|
signature: TIME,
|
|
29823
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30016
|
+
isTypeInstance: neo4j_driver_core_1$s.isTime,
|
|
29824
30017
|
toStructure: function (value) {
|
|
29825
30018
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29826
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
30019
|
+
var offsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29827
30020
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
29828
30021
|
},
|
|
29829
30022
|
fromStructure: function (struct) {
|
|
29830
30023
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
29831
30024
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
29832
30025
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
29833
|
-
var result = new neo4j_driver_core_1$
|
|
30026
|
+
var result = new neo4j_driver_core_1$s.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
|
|
29834
30027
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29835
30028
|
}
|
|
29836
30029
|
});
|
|
@@ -29844,9 +30037,9 @@
|
|
|
29844
30037
|
*/
|
|
29845
30038
|
function createDateTransformer(_a) {
|
|
29846
30039
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29847
|
-
return new transformer_1$
|
|
30040
|
+
return new transformer_1$f.TypeTransformer({
|
|
29848
30041
|
signature: DATE,
|
|
29849
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30042
|
+
isTypeInstance: neo4j_driver_core_1$s.isDate,
|
|
29850
30043
|
toStructure: function (value) {
|
|
29851
30044
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
29852
30045
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -29868,12 +30061,12 @@
|
|
|
29868
30061
|
*/
|
|
29869
30062
|
function createLocalDateTimeTransformer(_a) {
|
|
29870
30063
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29871
|
-
return new transformer_1$
|
|
30064
|
+
return new transformer_1$f.TypeTransformer({
|
|
29872
30065
|
signature: LOCAL_DATE_TIME,
|
|
29873
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30066
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalDateTime,
|
|
29874
30067
|
toStructure: function (value) {
|
|
29875
30068
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29876
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30069
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29877
30070
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
29878
30071
|
},
|
|
29879
30072
|
fromStructure: function (struct) {
|
|
@@ -29893,12 +30086,12 @@
|
|
|
29893
30086
|
*/
|
|
29894
30087
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
29895
30088
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29896
|
-
return new transformer_1$
|
|
30089
|
+
return new transformer_1$f.TypeTransformer({
|
|
29897
30090
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
29898
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
30091
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId != null; },
|
|
29899
30092
|
toStructure: function (value) {
|
|
29900
30093
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29901
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30094
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29902
30095
|
var timeZoneId = value.timeZoneId;
|
|
29903
30096
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
29904
30097
|
},
|
|
@@ -29906,7 +30099,7 @@
|
|
|
29906
30099
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
29907
30100
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
29908
30101
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29909
|
-
var result = new neo4j_driver_core_1$
|
|
30102
|
+
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);
|
|
29910
30103
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29911
30104
|
}
|
|
29912
30105
|
});
|
|
@@ -29920,20 +30113,20 @@
|
|
|
29920
30113
|
*/
|
|
29921
30114
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
29922
30115
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29923
|
-
return new transformer_1$
|
|
30116
|
+
return new transformer_1$f.TypeTransformer({
|
|
29924
30117
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
29925
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
30118
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId == null; },
|
|
29926
30119
|
toStructure: function (value) {
|
|
29927
30120
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29928
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29929
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
30121
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
30122
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29930
30123
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
29931
30124
|
},
|
|
29932
30125
|
fromStructure: function (struct) {
|
|
29933
30126
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
29934
30127
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
29935
30128
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29936
|
-
var result = new neo4j_driver_core_1$
|
|
30129
|
+
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);
|
|
29937
30130
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29938
30131
|
}
|
|
29939
30132
|
});
|
|
@@ -29949,15 +30142,15 @@
|
|
|
29949
30142
|
for (var prop in obj) {
|
|
29950
30143
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
29951
30144
|
var value = obj[prop];
|
|
29952
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
30145
|
+
clone[prop] = (0, neo4j_driver_core_1$s.isInt)(value) ? convert(value) : value;
|
|
29953
30146
|
}
|
|
29954
30147
|
}
|
|
29955
30148
|
Object.freeze(clone);
|
|
29956
30149
|
return clone;
|
|
29957
30150
|
}
|
|
29958
|
-
boltProtocolV2_transformer.default = __assign$
|
|
30151
|
+
boltProtocolV2_transformer.default = __assign$n(__assign$n({}, 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 });
|
|
29959
30152
|
|
|
29960
|
-
var __extends$
|
|
30153
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29961
30154
|
var extendStatics = function (d, b) {
|
|
29962
30155
|
extendStatics = Object.setPrototypeOf ||
|
|
29963
30156
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29972,7 +30165,7 @@
|
|
|
29972
30165
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29973
30166
|
};
|
|
29974
30167
|
})();
|
|
29975
|
-
var __importDefault$
|
|
30168
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29976
30169
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29977
30170
|
};
|
|
29978
30171
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -29992,14 +30185,14 @@
|
|
|
29992
30185
|
* See the License for the specific language governing permissions and
|
|
29993
30186
|
* limitations under the License.
|
|
29994
30187
|
*/
|
|
29995
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
29996
|
-
var packstream_1$2 = __importDefault$
|
|
29997
|
-
var neo4j_driver_core_1$
|
|
29998
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
29999
|
-
var transformer_1$
|
|
30000
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
30001
|
-
var BoltProtocol$
|
|
30002
|
-
__extends$
|
|
30188
|
+
var bolt_protocol_v1_1$1 = __importDefault$z(boltProtocolV1);
|
|
30189
|
+
var packstream_1$2 = __importDefault$z(packstream);
|
|
30190
|
+
var neo4j_driver_core_1$r = lib$1;
|
|
30191
|
+
var bolt_protocol_v2_transformer_1$1 = __importDefault$z(boltProtocolV2_transformer);
|
|
30192
|
+
var transformer_1$e = __importDefault$z(transformer);
|
|
30193
|
+
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$r.internal.constants.BOLT_PROTOCOL_V2;
|
|
30194
|
+
var BoltProtocol$e = /** @class */ (function (_super) {
|
|
30195
|
+
__extends$l(BoltProtocol, _super);
|
|
30003
30196
|
function BoltProtocol() {
|
|
30004
30197
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30005
30198
|
}
|
|
@@ -30013,7 +30206,7 @@
|
|
|
30013
30206
|
get: function () {
|
|
30014
30207
|
var _this = this;
|
|
30015
30208
|
if (this._transformer === undefined) {
|
|
30016
|
-
this._transformer = new transformer_1$
|
|
30209
|
+
this._transformer = new transformer_1$e.default(Object.values(bolt_protocol_v2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30017
30210
|
}
|
|
30018
30211
|
return this._transformer;
|
|
30019
30212
|
},
|
|
@@ -30029,7 +30222,7 @@
|
|
|
30029
30222
|
});
|
|
30030
30223
|
return BoltProtocol;
|
|
30031
30224
|
}(bolt_protocol_v1_1$1.default));
|
|
30032
|
-
boltProtocolV2.default = BoltProtocol$
|
|
30225
|
+
boltProtocolV2.default = BoltProtocol$e;
|
|
30033
30226
|
|
|
30034
30227
|
var boltProtocolV3 = {};
|
|
30035
30228
|
|
|
@@ -30051,8 +30244,8 @@
|
|
|
30051
30244
|
* See the License for the specific language governing permissions and
|
|
30052
30245
|
* limitations under the License.
|
|
30053
30246
|
*/
|
|
30054
|
-
var __assign$
|
|
30055
|
-
__assign$
|
|
30247
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30248
|
+
__assign$m = Object.assign || function(t) {
|
|
30056
30249
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30057
30250
|
s = arguments[i];
|
|
30058
30251
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30060,16 +30253,16 @@
|
|
|
30060
30253
|
}
|
|
30061
30254
|
return t;
|
|
30062
30255
|
};
|
|
30063
|
-
return __assign$
|
|
30256
|
+
return __assign$m.apply(this, arguments);
|
|
30064
30257
|
};
|
|
30065
|
-
var __importDefault$
|
|
30258
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30066
30259
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30067
30260
|
};
|
|
30068
30261
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
30069
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
30070
|
-
boltProtocolV3_transformer.default = __assign$
|
|
30262
|
+
var bolt_protocol_v2_transformer_1 = __importDefault$y(boltProtocolV2_transformer);
|
|
30263
|
+
boltProtocolV3_transformer.default = __assign$m({}, bolt_protocol_v2_transformer_1.default);
|
|
30071
30264
|
|
|
30072
|
-
var __extends$
|
|
30265
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30073
30266
|
var extendStatics = function (d, b) {
|
|
30074
30267
|
extendStatics = Object.setPrototypeOf ||
|
|
30075
30268
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30084,8 +30277,8 @@
|
|
|
30084
30277
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30085
30278
|
};
|
|
30086
30279
|
})();
|
|
30087
|
-
var __assign$
|
|
30088
|
-
__assign$
|
|
30280
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30281
|
+
__assign$l = Object.assign || function(t) {
|
|
30089
30282
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30090
30283
|
s = arguments[i];
|
|
30091
30284
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30093,9 +30286,9 @@
|
|
|
30093
30286
|
}
|
|
30094
30287
|
return t;
|
|
30095
30288
|
};
|
|
30096
|
-
return __assign$
|
|
30289
|
+
return __assign$l.apply(this, arguments);
|
|
30097
30290
|
};
|
|
30098
|
-
var __importDefault$
|
|
30291
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30099
30292
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30100
30293
|
};
|
|
30101
30294
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -30115,19 +30308,19 @@
|
|
|
30115
30308
|
* See the License for the specific language governing permissions and
|
|
30116
30309
|
* limitations under the License.
|
|
30117
30310
|
*/
|
|
30118
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
30119
|
-
var request_message_1$a = __importDefault$
|
|
30311
|
+
var bolt_protocol_v2_1$1 = __importDefault$x(boltProtocolV2);
|
|
30312
|
+
var request_message_1$a = __importDefault$x(requestMessage);
|
|
30120
30313
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
30121
30314
|
var stream_observers_1$a = streamObservers;
|
|
30122
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
30123
|
-
var transformer_1$
|
|
30124
|
-
var neo4j_driver_core_1$
|
|
30125
|
-
neo4j_driver_core_1$
|
|
30315
|
+
var bolt_protocol_v3_transformer_1$1 = __importDefault$x(boltProtocolV3_transformer);
|
|
30316
|
+
var transformer_1$d = __importDefault$x(transformer);
|
|
30317
|
+
var neo4j_driver_core_1$q = lib$1;
|
|
30318
|
+
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;
|
|
30126
30319
|
var CONTEXT$1 = 'context';
|
|
30127
30320
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
30128
30321
|
var noOpObserver = new stream_observers_1$a.StreamObserver();
|
|
30129
|
-
var BoltProtocol$
|
|
30130
|
-
__extends$
|
|
30322
|
+
var BoltProtocol$d = /** @class */ (function (_super) {
|
|
30323
|
+
__extends$k(BoltProtocol, _super);
|
|
30131
30324
|
function BoltProtocol() {
|
|
30132
30325
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30133
30326
|
}
|
|
@@ -30142,7 +30335,7 @@
|
|
|
30142
30335
|
get: function () {
|
|
30143
30336
|
var _this = this;
|
|
30144
30337
|
if (this._transformer === undefined) {
|
|
30145
|
-
this._transformer = new transformer_1$
|
|
30338
|
+
this._transformer = new transformer_1$d.default(Object.values(bolt_protocol_v3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30146
30339
|
}
|
|
30147
30340
|
return this._transformer;
|
|
30148
30341
|
},
|
|
@@ -30269,7 +30462,7 @@
|
|
|
30269
30462
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
30270
30463
|
var _b;
|
|
30271
30464
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
30272
|
-
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$
|
|
30465
|
+
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$l(__assign$l({}, sessionContext), { txConfig: TxConfig$1.empty() }));
|
|
30273
30466
|
return new stream_observers_1$a.ProcedureRouteObserver({
|
|
30274
30467
|
resultObserver: resultObserver,
|
|
30275
30468
|
onProtocolError: this._onProtocolError,
|
|
@@ -30279,7 +30472,7 @@
|
|
|
30279
30472
|
};
|
|
30280
30473
|
return BoltProtocol;
|
|
30281
30474
|
}(bolt_protocol_v2_1$1.default));
|
|
30282
|
-
boltProtocolV3.default = BoltProtocol$
|
|
30475
|
+
boltProtocolV3.default = BoltProtocol$d;
|
|
30283
30476
|
|
|
30284
30477
|
var boltProtocolV4x0 = {};
|
|
30285
30478
|
|
|
@@ -30301,8 +30494,8 @@
|
|
|
30301
30494
|
* See the License for the specific language governing permissions and
|
|
30302
30495
|
* limitations under the License.
|
|
30303
30496
|
*/
|
|
30304
|
-
var __assign$
|
|
30305
|
-
__assign$
|
|
30497
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30498
|
+
__assign$k = Object.assign || function(t) {
|
|
30306
30499
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30307
30500
|
s = arguments[i];
|
|
30308
30501
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30310,16 +30503,16 @@
|
|
|
30310
30503
|
}
|
|
30311
30504
|
return t;
|
|
30312
30505
|
};
|
|
30313
|
-
return __assign$
|
|
30506
|
+
return __assign$k.apply(this, arguments);
|
|
30314
30507
|
};
|
|
30315
|
-
var __importDefault$
|
|
30508
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30316
30509
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30317
30510
|
};
|
|
30318
30511
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
30319
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
30320
|
-
boltProtocolV4x0_transformer.default = __assign$
|
|
30512
|
+
var bolt_protocol_v3_transformer_1 = __importDefault$w(boltProtocolV3_transformer);
|
|
30513
|
+
boltProtocolV4x0_transformer.default = __assign$k({}, bolt_protocol_v3_transformer_1.default);
|
|
30321
30514
|
|
|
30322
|
-
var __extends$
|
|
30515
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30323
30516
|
var extendStatics = function (d, b) {
|
|
30324
30517
|
extendStatics = Object.setPrototypeOf ||
|
|
30325
30518
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30334,8 +30527,8 @@
|
|
|
30334
30527
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30335
30528
|
};
|
|
30336
30529
|
})();
|
|
30337
|
-
var __assign$
|
|
30338
|
-
__assign$
|
|
30530
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30531
|
+
__assign$j = Object.assign || function(t) {
|
|
30339
30532
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30340
30533
|
s = arguments[i];
|
|
30341
30534
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30343,9 +30536,9 @@
|
|
|
30343
30536
|
}
|
|
30344
30537
|
return t;
|
|
30345
30538
|
};
|
|
30346
|
-
return __assign$
|
|
30539
|
+
return __assign$j.apply(this, arguments);
|
|
30347
30540
|
};
|
|
30348
|
-
var __importDefault$
|
|
30541
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30349
30542
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30350
30543
|
};
|
|
30351
30544
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -30365,19 +30558,19 @@
|
|
|
30365
30558
|
* See the License for the specific language governing permissions and
|
|
30366
30559
|
* limitations under the License.
|
|
30367
30560
|
*/
|
|
30368
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
30369
|
-
var request_message_1$9 = __importDefault$
|
|
30561
|
+
var bolt_protocol_v3_1$1 = __importDefault$v(boltProtocolV3);
|
|
30562
|
+
var request_message_1$9 = __importDefault$v(requestMessage);
|
|
30370
30563
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
30371
30564
|
var stream_observers_1$9 = streamObservers;
|
|
30372
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
30373
|
-
var transformer_1$
|
|
30374
|
-
var neo4j_driver_core_1$
|
|
30375
|
-
neo4j_driver_core_1$
|
|
30565
|
+
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$v(boltProtocolV4x0_transformer);
|
|
30566
|
+
var transformer_1$c = __importDefault$v(transformer);
|
|
30567
|
+
var neo4j_driver_core_1$p = lib$1;
|
|
30568
|
+
neo4j_driver_core_1$p.internal.bookmarks.Bookmarks; var _a$7 = neo4j_driver_core_1$p.internal.constants, BOLT_PROTOCOL_V4_0$2 = _a$7.BOLT_PROTOCOL_V4_0, FETCH_ALL$3 = _a$7.FETCH_ALL, TxConfig = neo4j_driver_core_1$p.internal.txConfig.TxConfig;
|
|
30376
30569
|
var CONTEXT = 'context';
|
|
30377
30570
|
var DATABASE = 'database';
|
|
30378
30571
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
30379
|
-
var BoltProtocol$
|
|
30380
|
-
__extends$
|
|
30572
|
+
var BoltProtocol$c = /** @class */ (function (_super) {
|
|
30573
|
+
__extends$j(BoltProtocol, _super);
|
|
30381
30574
|
function BoltProtocol() {
|
|
30382
30575
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30383
30576
|
}
|
|
@@ -30392,7 +30585,7 @@
|
|
|
30392
30585
|
get: function () {
|
|
30393
30586
|
var _this = this;
|
|
30394
30587
|
if (this._transformer === undefined) {
|
|
30395
|
-
this._transformer = new transformer_1$
|
|
30588
|
+
this._transformer = new transformer_1$c.default(Object.values(bolt_protocol_v4x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30396
30589
|
}
|
|
30397
30590
|
return this._transformer;
|
|
30398
30591
|
},
|
|
@@ -30477,7 +30670,7 @@
|
|
|
30477
30670
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
30478
30671
|
_b[CONTEXT] = routingContext,
|
|
30479
30672
|
_b[DATABASE] = databaseName,
|
|
30480
|
-
_b), __assign$
|
|
30673
|
+
_b), __assign$j(__assign$j({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
30481
30674
|
return new stream_observers_1$9.ProcedureRouteObserver({
|
|
30482
30675
|
resultObserver: resultObserver,
|
|
30483
30676
|
onProtocolError: this._onProtocolError,
|
|
@@ -30487,7 +30680,7 @@
|
|
|
30487
30680
|
};
|
|
30488
30681
|
return BoltProtocol;
|
|
30489
30682
|
}(bolt_protocol_v3_1$1.default));
|
|
30490
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
30683
|
+
boltProtocolV4x0.default = BoltProtocol$c;
|
|
30491
30684
|
|
|
30492
30685
|
var boltProtocolV4x1 = {};
|
|
30493
30686
|
|
|
@@ -30509,8 +30702,8 @@
|
|
|
30509
30702
|
* See the License for the specific language governing permissions and
|
|
30510
30703
|
* limitations under the License.
|
|
30511
30704
|
*/
|
|
30512
|
-
var __assign$
|
|
30513
|
-
__assign$
|
|
30705
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30706
|
+
__assign$i = Object.assign || function(t) {
|
|
30514
30707
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30515
30708
|
s = arguments[i];
|
|
30516
30709
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30518,16 +30711,16 @@
|
|
|
30518
30711
|
}
|
|
30519
30712
|
return t;
|
|
30520
30713
|
};
|
|
30521
|
-
return __assign$
|
|
30714
|
+
return __assign$i.apply(this, arguments);
|
|
30522
30715
|
};
|
|
30523
|
-
var __importDefault$
|
|
30716
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30524
30717
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30525
30718
|
};
|
|
30526
30719
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
30527
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
30528
|
-
boltProtocolV4x1_transformer.default = __assign$
|
|
30720
|
+
var bolt_protocol_v4x0_transformer_1 = __importDefault$u(boltProtocolV4x0_transformer);
|
|
30721
|
+
boltProtocolV4x1_transformer.default = __assign$i({}, bolt_protocol_v4x0_transformer_1.default);
|
|
30529
30722
|
|
|
30530
|
-
var __extends$
|
|
30723
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30531
30724
|
var extendStatics = function (d, b) {
|
|
30532
30725
|
extendStatics = Object.setPrototypeOf ||
|
|
30533
30726
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30542,7 +30735,7 @@
|
|
|
30542
30735
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30543
30736
|
};
|
|
30544
30737
|
})();
|
|
30545
|
-
var __importDefault$
|
|
30738
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30546
30739
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30547
30740
|
};
|
|
30548
30741
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -30562,16 +30755,16 @@
|
|
|
30562
30755
|
* See the License for the specific language governing permissions and
|
|
30563
30756
|
* limitations under the License.
|
|
30564
30757
|
*/
|
|
30565
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
30566
|
-
var request_message_1$8 = __importDefault$
|
|
30758
|
+
var bolt_protocol_v4x0_1$1 = __importDefault$t(boltProtocolV4x0);
|
|
30759
|
+
var request_message_1$8 = __importDefault$t(requestMessage);
|
|
30567
30760
|
var stream_observers_1$8 = streamObservers;
|
|
30568
|
-
var neo4j_driver_core_1$
|
|
30761
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
30569
30762
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
30570
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
30571
|
-
var transformer_1$
|
|
30572
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
30573
|
-
var BoltProtocol$
|
|
30574
|
-
__extends$
|
|
30763
|
+
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$t(boltProtocolV4x1_transformer);
|
|
30764
|
+
var transformer_1$b = __importDefault$t(transformer);
|
|
30765
|
+
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$o.internal.constants.BOLT_PROTOCOL_V4_1;
|
|
30766
|
+
var BoltProtocol$b = /** @class */ (function (_super) {
|
|
30767
|
+
__extends$i(BoltProtocol, _super);
|
|
30575
30768
|
/**
|
|
30576
30769
|
* @constructor
|
|
30577
30770
|
* @param {Object} server the server informatio.
|
|
@@ -30601,7 +30794,7 @@
|
|
|
30601
30794
|
get: function () {
|
|
30602
30795
|
var _this = this;
|
|
30603
30796
|
if (this._transformer === undefined) {
|
|
30604
|
-
this._transformer = new transformer_1$
|
|
30797
|
+
this._transformer = new transformer_1$b.default(Object.values(bolt_protocol_v4x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30605
30798
|
}
|
|
30606
30799
|
return this._transformer;
|
|
30607
30800
|
},
|
|
@@ -30622,7 +30815,7 @@
|
|
|
30622
30815
|
};
|
|
30623
30816
|
return BoltProtocol;
|
|
30624
30817
|
}(bolt_protocol_v4x0_1$1.default));
|
|
30625
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
30818
|
+
boltProtocolV4x1.default = BoltProtocol$b;
|
|
30626
30819
|
|
|
30627
30820
|
var boltProtocolV4x2 = {};
|
|
30628
30821
|
|
|
@@ -30644,8 +30837,8 @@
|
|
|
30644
30837
|
* See the License for the specific language governing permissions and
|
|
30645
30838
|
* limitations under the License.
|
|
30646
30839
|
*/
|
|
30647
|
-
var __assign$
|
|
30648
|
-
__assign$
|
|
30840
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30841
|
+
__assign$h = Object.assign || function(t) {
|
|
30649
30842
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30650
30843
|
s = arguments[i];
|
|
30651
30844
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30653,16 +30846,16 @@
|
|
|
30653
30846
|
}
|
|
30654
30847
|
return t;
|
|
30655
30848
|
};
|
|
30656
|
-
return __assign$
|
|
30849
|
+
return __assign$h.apply(this, arguments);
|
|
30657
30850
|
};
|
|
30658
|
-
var __importDefault$
|
|
30851
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30659
30852
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30660
30853
|
};
|
|
30661
30854
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
30662
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
30663
|
-
boltProtocolV4x2_transformer.default = __assign$
|
|
30855
|
+
var bolt_protocol_v4x1_transformer_1 = __importDefault$s(boltProtocolV4x1_transformer);
|
|
30856
|
+
boltProtocolV4x2_transformer.default = __assign$h({}, bolt_protocol_v4x1_transformer_1.default);
|
|
30664
30857
|
|
|
30665
|
-
var __extends$
|
|
30858
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30666
30859
|
var extendStatics = function (d, b) {
|
|
30667
30860
|
extendStatics = Object.setPrototypeOf ||
|
|
30668
30861
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30677,7 +30870,7 @@
|
|
|
30677
30870
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30678
30871
|
};
|
|
30679
30872
|
})();
|
|
30680
|
-
var __importDefault$
|
|
30873
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30681
30874
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30682
30875
|
};
|
|
30683
30876
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -30697,13 +30890,13 @@
|
|
|
30697
30890
|
* See the License for the specific language governing permissions and
|
|
30698
30891
|
* limitations under the License.
|
|
30699
30892
|
*/
|
|
30700
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
30701
|
-
var neo4j_driver_core_1$
|
|
30702
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
30703
|
-
var transformer_1$
|
|
30704
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
30705
|
-
var BoltProtocol$
|
|
30706
|
-
__extends$
|
|
30893
|
+
var bolt_protocol_v4x1_1$1 = __importDefault$r(boltProtocolV4x1);
|
|
30894
|
+
var neo4j_driver_core_1$n = lib$1;
|
|
30895
|
+
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$r(boltProtocolV4x2_transformer);
|
|
30896
|
+
var transformer_1$a = __importDefault$r(transformer);
|
|
30897
|
+
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V4_2;
|
|
30898
|
+
var BoltProtocol$a = /** @class */ (function (_super) {
|
|
30899
|
+
__extends$h(BoltProtocol, _super);
|
|
30707
30900
|
function BoltProtocol() {
|
|
30708
30901
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30709
30902
|
}
|
|
@@ -30718,7 +30911,7 @@
|
|
|
30718
30911
|
get: function () {
|
|
30719
30912
|
var _this = this;
|
|
30720
30913
|
if (this._transformer === undefined) {
|
|
30721
|
-
this._transformer = new transformer_1$
|
|
30914
|
+
this._transformer = new transformer_1$a.default(Object.values(bolt_protocol_v4x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30722
30915
|
}
|
|
30723
30916
|
return this._transformer;
|
|
30724
30917
|
},
|
|
@@ -30727,7 +30920,7 @@
|
|
|
30727
30920
|
});
|
|
30728
30921
|
return BoltProtocol;
|
|
30729
30922
|
}(bolt_protocol_v4x1_1$1.default));
|
|
30730
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
30923
|
+
boltProtocolV4x2.default = BoltProtocol$a;
|
|
30731
30924
|
|
|
30732
30925
|
var boltProtocolV4x3 = {};
|
|
30733
30926
|
|
|
@@ -30749,8 +30942,8 @@
|
|
|
30749
30942
|
* See the License for the specific language governing permissions and
|
|
30750
30943
|
* limitations under the License.
|
|
30751
30944
|
*/
|
|
30752
|
-
var __assign$
|
|
30753
|
-
__assign$
|
|
30945
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30946
|
+
__assign$g = Object.assign || function(t) {
|
|
30754
30947
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30755
30948
|
s = arguments[i];
|
|
30756
30949
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30758,14 +30951,14 @@
|
|
|
30758
30951
|
}
|
|
30759
30952
|
return t;
|
|
30760
30953
|
};
|
|
30761
|
-
return __assign$
|
|
30954
|
+
return __assign$g.apply(this, arguments);
|
|
30762
30955
|
};
|
|
30763
|
-
var __importDefault$
|
|
30956
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30764
30957
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30765
30958
|
};
|
|
30766
30959
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
30767
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
30768
|
-
boltProtocolV4x3_transformer.default = __assign$
|
|
30960
|
+
var bolt_protocol_v4x2_transformer_1 = __importDefault$q(boltProtocolV4x2_transformer);
|
|
30961
|
+
boltProtocolV4x3_transformer.default = __assign$g({}, bolt_protocol_v4x2_transformer_1.default);
|
|
30769
30962
|
|
|
30770
30963
|
var boltProtocolV5x0_utc_transformer = {};
|
|
30771
30964
|
|
|
@@ -30787,8 +30980,8 @@
|
|
|
30787
30980
|
* See the License for the specific language governing permissions and
|
|
30788
30981
|
* limitations under the License.
|
|
30789
30982
|
*/
|
|
30790
|
-
var __assign$
|
|
30791
|
-
__assign$
|
|
30983
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30984
|
+
__assign$f = Object.assign || function(t) {
|
|
30792
30985
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30793
30986
|
s = arguments[i];
|
|
30794
30987
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30796,14 +30989,14 @@
|
|
|
30796
30989
|
}
|
|
30797
30990
|
return t;
|
|
30798
30991
|
};
|
|
30799
|
-
return __assign$
|
|
30992
|
+
return __assign$f.apply(this, arguments);
|
|
30800
30993
|
};
|
|
30801
|
-
var __importDefault$
|
|
30994
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30802
30995
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30803
30996
|
};
|
|
30804
30997
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
30805
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
30806
|
-
boltProtocolV4x4_transformer.default = __assign$
|
|
30998
|
+
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$p(boltProtocolV4x3_transformer);
|
|
30999
|
+
boltProtocolV4x4_transformer.default = __assign$f({}, bolt_protocol_v4x3_transformer_1$1.default);
|
|
30807
31000
|
|
|
30808
31001
|
/**
|
|
30809
31002
|
* Copyright (c) "Neo4j"
|
|
@@ -30837,16 +31030,16 @@
|
|
|
30837
31030
|
}
|
|
30838
31031
|
return ar;
|
|
30839
31032
|
};
|
|
30840
|
-
var __importDefault$
|
|
31033
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30841
31034
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30842
31035
|
};
|
|
30843
31036
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
30844
31037
|
var packstream_1$1 = packstream;
|
|
30845
|
-
var neo4j_driver_core_1$
|
|
30846
|
-
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$
|
|
31038
|
+
var neo4j_driver_core_1$m = lib$1;
|
|
31039
|
+
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$o(boltProtocolV4x4_transformer);
|
|
30847
31040
|
var temporal_factory_1 = temporalFactory;
|
|
30848
31041
|
var functional_1 = functional;
|
|
30849
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
31042
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$m.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
30850
31043
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
30851
31044
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
30852
31045
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -30860,7 +31053,7 @@
|
|
|
30860
31053
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
30861
31054
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
30862
31055
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
30863
|
-
var result = new neo4j_driver_core_1$
|
|
31056
|
+
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);
|
|
30864
31057
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30865
31058
|
},
|
|
30866
31059
|
toStructure: function (value) {
|
|
@@ -30874,7 +31067,7 @@
|
|
|
30874
31067
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
30875
31068
|
}
|
|
30876
31069
|
var utc = epochSecond.subtract(offset);
|
|
30877
|
-
var nano = (0, neo4j_driver_core_1$
|
|
31070
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30878
31071
|
var timeZoneId = value.timeZoneId;
|
|
30879
31072
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
30880
31073
|
}
|
|
@@ -30936,9 +31129,9 @@
|
|
|
30936
31129
|
}
|
|
30937
31130
|
function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
30938
31131
|
var formatter = getDateTimeFormatForZoneId(timeZoneId);
|
|
30939
|
-
var utc = (0, neo4j_driver_core_1$
|
|
31132
|
+
var utc = (0, neo4j_driver_core_1$m.int)(epochSecond)
|
|
30940
31133
|
.multiply(1000)
|
|
30941
|
-
.add((0, neo4j_driver_core_1$
|
|
31134
|
+
.add((0, neo4j_driver_core_1$m.int)(nano).div(1000000))
|
|
30942
31135
|
.toNumber();
|
|
30943
31136
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
30944
31137
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -30949,10 +31142,10 @@
|
|
|
30949
31142
|
: functional_1.identity;
|
|
30950
31143
|
}
|
|
30951
31144
|
else if (currentValue.type === 'hour') {
|
|
30952
|
-
obj.hour = (0, neo4j_driver_core_1$
|
|
31145
|
+
obj.hour = (0, neo4j_driver_core_1$m.int)(currentValue.value).modulo(24);
|
|
30953
31146
|
}
|
|
30954
31147
|
else if (currentValue.type !== 'literal') {
|
|
30955
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
31148
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$m.int)(currentValue.value);
|
|
30956
31149
|
}
|
|
30957
31150
|
return obj;
|
|
30958
31151
|
}, {});
|
|
@@ -30969,17 +31162,17 @@
|
|
|
30969
31162
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
30970
31163
|
toStructure: function (value) {
|
|
30971
31164
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
30972
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30973
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
31165
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
31166
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$m.int)(value.timeZoneOffsetSeconds);
|
|
30974
31167
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
30975
31168
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
30976
31169
|
},
|
|
30977
31170
|
fromStructure: function (struct) {
|
|
30978
31171
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
30979
31172
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
30980
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
31173
|
+
var epochSecond = (0, neo4j_driver_core_1$m.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
30981
31174
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
30982
|
-
var result = new neo4j_driver_core_1$
|
|
31175
|
+
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);
|
|
30983
31176
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30984
31177
|
}
|
|
30985
31178
|
});
|
|
@@ -30995,7 +31188,7 @@
|
|
|
30995
31188
|
for (var prop in obj) {
|
|
30996
31189
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
30997
31190
|
var value = obj[prop];
|
|
30998
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
31191
|
+
clone[prop] = (0, neo4j_driver_core_1$m.isInt)(value) ? convert(value) : value;
|
|
30999
31192
|
}
|
|
31000
31193
|
}
|
|
31001
31194
|
Object.freeze(clone);
|
|
@@ -31006,7 +31199,7 @@
|
|
|
31006
31199
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
31007
31200
|
};
|
|
31008
31201
|
|
|
31009
|
-
var __extends$
|
|
31202
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31010
31203
|
var extendStatics = function (d, b) {
|
|
31011
31204
|
extendStatics = Object.setPrototypeOf ||
|
|
31012
31205
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31021,8 +31214,8 @@
|
|
|
31021
31214
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31022
31215
|
};
|
|
31023
31216
|
})();
|
|
31024
|
-
var __assign$
|
|
31025
|
-
__assign$
|
|
31217
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31218
|
+
__assign$e = Object.assign || function(t) {
|
|
31026
31219
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31027
31220
|
s = arguments[i];
|
|
31028
31221
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31030,9 +31223,9 @@
|
|
|
31030
31223
|
}
|
|
31031
31224
|
return t;
|
|
31032
31225
|
};
|
|
31033
|
-
return __assign$
|
|
31226
|
+
return __assign$e.apply(this, arguments);
|
|
31034
31227
|
};
|
|
31035
|
-
var __importDefault$
|
|
31228
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31036
31229
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31037
31230
|
};
|
|
31038
31231
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -31052,17 +31245,17 @@
|
|
|
31052
31245
|
* See the License for the specific language governing permissions and
|
|
31053
31246
|
* limitations under the License.
|
|
31054
31247
|
*/
|
|
31055
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
31056
|
-
var request_message_1$7 = __importDefault$
|
|
31248
|
+
var bolt_protocol_v4x2_1$1 = __importDefault$n(boltProtocolV4x2);
|
|
31249
|
+
var request_message_1$7 = __importDefault$n(requestMessage);
|
|
31057
31250
|
var stream_observers_1$7 = streamObservers;
|
|
31058
31251
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
31059
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
31060
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
31061
|
-
var transformer_1$
|
|
31062
|
-
var neo4j_driver_core_1$
|
|
31063
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
31064
|
-
var BoltProtocol$
|
|
31065
|
-
__extends$
|
|
31252
|
+
var bolt_protocol_v4x3_transformer_1 = __importDefault$n(boltProtocolV4x3_transformer);
|
|
31253
|
+
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$n(boltProtocolV5x0_utc_transformer);
|
|
31254
|
+
var transformer_1$9 = __importDefault$n(transformer);
|
|
31255
|
+
var neo4j_driver_core_1$l = lib$1;
|
|
31256
|
+
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;
|
|
31257
|
+
var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
31258
|
+
__extends$g(BoltProtocol, _super);
|
|
31066
31259
|
function BoltProtocol() {
|
|
31067
31260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31068
31261
|
}
|
|
@@ -31077,7 +31270,7 @@
|
|
|
31077
31270
|
get: function () {
|
|
31078
31271
|
var _this = this;
|
|
31079
31272
|
if (this._transformer === undefined) {
|
|
31080
|
-
this._transformer = new transformer_1$
|
|
31273
|
+
this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31081
31274
|
}
|
|
31082
31275
|
return this._transformer;
|
|
31083
31276
|
},
|
|
@@ -31146,15 +31339,15 @@
|
|
|
31146
31339
|
};
|
|
31147
31340
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31148
31341
|
var _this = this;
|
|
31149
|
-
this._transformer = new transformer_1$
|
|
31342
|
+
this._transformer = new transformer_1$9.default(Object.values(__assign$e(__assign$e({}, bolt_protocol_v4x3_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1$2.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
31150
31343
|
};
|
|
31151
31344
|
return BoltProtocol;
|
|
31152
31345
|
}(bolt_protocol_v4x2_1$1.default));
|
|
31153
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
31346
|
+
boltProtocolV4x3.default = BoltProtocol$9;
|
|
31154
31347
|
|
|
31155
31348
|
var boltProtocolV4x4 = {};
|
|
31156
31349
|
|
|
31157
|
-
var __extends$
|
|
31350
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31158
31351
|
var extendStatics = function (d, b) {
|
|
31159
31352
|
extendStatics = Object.setPrototypeOf ||
|
|
31160
31353
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31169,8 +31362,8 @@
|
|
|
31169
31362
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31170
31363
|
};
|
|
31171
31364
|
})();
|
|
31172
|
-
var __assign$
|
|
31173
|
-
__assign$
|
|
31365
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31366
|
+
__assign$d = Object.assign || function(t) {
|
|
31174
31367
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31175
31368
|
s = arguments[i];
|
|
31176
31369
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31178,9 +31371,9 @@
|
|
|
31178
31371
|
}
|
|
31179
31372
|
return t;
|
|
31180
31373
|
};
|
|
31181
|
-
return __assign$
|
|
31374
|
+
return __assign$d.apply(this, arguments);
|
|
31182
31375
|
};
|
|
31183
|
-
var __importDefault$
|
|
31376
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31184
31377
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31185
31378
|
};
|
|
31186
31379
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -31200,17 +31393,17 @@
|
|
|
31200
31393
|
* See the License for the specific language governing permissions and
|
|
31201
31394
|
* limitations under the License.
|
|
31202
31395
|
*/
|
|
31203
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
31204
|
-
var neo4j_driver_core_1$
|
|
31205
|
-
var request_message_1$6 = __importDefault$
|
|
31396
|
+
var bolt_protocol_v4x3_1$1 = __importDefault$m(boltProtocolV4x3);
|
|
31397
|
+
var neo4j_driver_core_1$k = lib$1;
|
|
31398
|
+
var request_message_1$6 = __importDefault$m(requestMessage);
|
|
31206
31399
|
var stream_observers_1$6 = streamObservers;
|
|
31207
31400
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
31208
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
31209
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
31210
|
-
var transformer_1$
|
|
31211
|
-
var _a$6 = neo4j_driver_core_1$
|
|
31212
|
-
var BoltProtocol$
|
|
31213
|
-
__extends$
|
|
31401
|
+
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$m(boltProtocolV4x4_transformer);
|
|
31402
|
+
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$m(boltProtocolV5x0_utc_transformer);
|
|
31403
|
+
var transformer_1$8 = __importDefault$m(transformer);
|
|
31404
|
+
var _a$6 = neo4j_driver_core_1$k.internal.constants, BOLT_PROTOCOL_V4_4$2 = _a$6.BOLT_PROTOCOL_V4_4, FETCH_ALL$2 = _a$6.FETCH_ALL, Bookmarks$1 = neo4j_driver_core_1$k.internal.bookmarks.Bookmarks;
|
|
31405
|
+
var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
31406
|
+
__extends$f(BoltProtocol, _super);
|
|
31214
31407
|
function BoltProtocol() {
|
|
31215
31408
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31216
31409
|
}
|
|
@@ -31225,7 +31418,7 @@
|
|
|
31225
31418
|
get: function () {
|
|
31226
31419
|
var _this = this;
|
|
31227
31420
|
if (this._transformer === undefined) {
|
|
31228
|
-
this._transformer = new transformer_1$
|
|
31421
|
+
this._transformer = new transformer_1$8.default(Object.values(bolt_protocol_v4x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31229
31422
|
}
|
|
31230
31423
|
return this._transformer;
|
|
31231
31424
|
},
|
|
@@ -31304,11 +31497,11 @@
|
|
|
31304
31497
|
};
|
|
31305
31498
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31306
31499
|
var _this = this;
|
|
31307
|
-
this._transformer = new transformer_1$
|
|
31500
|
+
this._transformer = new transformer_1$8.default(Object.values(__assign$d(__assign$d({}, bolt_protocol_v4x4_transformer_1$1.default), bolt_protocol_v5x0_utc_transformer_1$1.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
31308
31501
|
};
|
|
31309
31502
|
return BoltProtocol;
|
|
31310
31503
|
}(bolt_protocol_v4x3_1$1.default));
|
|
31311
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
31504
|
+
boltProtocolV4x4.default = BoltProtocol$8;
|
|
31312
31505
|
|
|
31313
31506
|
var boltProtocolV5x0 = {};
|
|
31314
31507
|
|
|
@@ -31330,8 +31523,8 @@
|
|
|
31330
31523
|
* See the License for the specific language governing permissions and
|
|
31331
31524
|
* limitations under the License.
|
|
31332
31525
|
*/
|
|
31333
|
-
var __assign$
|
|
31334
|
-
__assign$
|
|
31526
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31527
|
+
__assign$c = Object.assign || function(t) {
|
|
31335
31528
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31336
31529
|
s = arguments[i];
|
|
31337
31530
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31339,7 +31532,7 @@
|
|
|
31339
31532
|
}
|
|
31340
31533
|
return t;
|
|
31341
31534
|
};
|
|
31342
|
-
return __assign$
|
|
31535
|
+
return __assign$c.apply(this, arguments);
|
|
31343
31536
|
};
|
|
31344
31537
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
31345
31538
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -31357,14 +31550,14 @@
|
|
|
31357
31550
|
}
|
|
31358
31551
|
return ar;
|
|
31359
31552
|
};
|
|
31360
|
-
var __importDefault$
|
|
31553
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31361
31554
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31362
31555
|
};
|
|
31363
31556
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
31364
31557
|
var packstream_1 = packstream;
|
|
31365
|
-
var neo4j_driver_core_1$
|
|
31366
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
31367
|
-
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$
|
|
31558
|
+
var neo4j_driver_core_1$j = lib$1;
|
|
31559
|
+
var bolt_protocol_v4x4_transformer_1 = __importDefault$l(boltProtocolV4x4_transformer);
|
|
31560
|
+
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$l(boltProtocolV5x0_utc_transformer);
|
|
31368
31561
|
var NODE_STRUCT_SIZE = 4;
|
|
31369
31562
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
31370
31563
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -31379,7 +31572,7 @@
|
|
|
31379
31572
|
fromStructure: function (struct) {
|
|
31380
31573
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
31381
31574
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
31382
|
-
return new neo4j_driver_core_1$
|
|
31575
|
+
return new neo4j_driver_core_1$j.Node(identity, lables, properties, elementId);
|
|
31383
31576
|
}
|
|
31384
31577
|
});
|
|
31385
31578
|
}
|
|
@@ -31394,7 +31587,7 @@
|
|
|
31394
31587
|
fromStructure: function (struct) {
|
|
31395
31588
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31396
31589
|
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];
|
|
31397
|
-
return new neo4j_driver_core_1$
|
|
31590
|
+
return new neo4j_driver_core_1$j.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
31398
31591
|
}
|
|
31399
31592
|
});
|
|
31400
31593
|
}
|
|
@@ -31409,13 +31602,13 @@
|
|
|
31409
31602
|
fromStructure: function (struct) {
|
|
31410
31603
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31411
31604
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
31412
|
-
return new neo4j_driver_core_1$
|
|
31605
|
+
return new neo4j_driver_core_1$j.UnboundRelationship(identity, type, properties, elementId);
|
|
31413
31606
|
}
|
|
31414
31607
|
});
|
|
31415
31608
|
}
|
|
31416
|
-
boltProtocolV5x0_transformer.default = __assign$
|
|
31609
|
+
boltProtocolV5x0_transformer.default = __assign$c(__assign$c(__assign$c({}, bolt_protocol_v4x4_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1.default), { createNodeTransformer: createNodeTransformer, createRelationshipTransformer: createRelationshipTransformer, createUnboundRelationshipTransformer: createUnboundRelationshipTransformer });
|
|
31417
31610
|
|
|
31418
|
-
var __extends$
|
|
31611
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31419
31612
|
var extendStatics = function (d, b) {
|
|
31420
31613
|
extendStatics = Object.setPrototypeOf ||
|
|
31421
31614
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31430,7 +31623,7 @@
|
|
|
31430
31623
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31431
31624
|
};
|
|
31432
31625
|
})();
|
|
31433
|
-
var __importDefault$
|
|
31626
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31434
31627
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31435
31628
|
};
|
|
31436
31629
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -31450,16 +31643,16 @@
|
|
|
31450
31643
|
* See the License for the specific language governing permissions and
|
|
31451
31644
|
* limitations under the License.
|
|
31452
31645
|
*/
|
|
31453
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
31646
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$k(boltProtocolV4x4);
|
|
31454
31647
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
31455
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
31456
|
-
var transformer_1$
|
|
31457
|
-
var request_message_1$5 = __importDefault$
|
|
31648
|
+
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$k(boltProtocolV5x0_transformer);
|
|
31649
|
+
var transformer_1$7 = __importDefault$k(transformer);
|
|
31650
|
+
var request_message_1$5 = __importDefault$k(requestMessage);
|
|
31458
31651
|
var stream_observers_1$5 = streamObservers;
|
|
31459
|
-
var neo4j_driver_core_1$
|
|
31460
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
31461
|
-
var BoltProtocol$
|
|
31462
|
-
__extends$
|
|
31652
|
+
var neo4j_driver_core_1$i = lib$1;
|
|
31653
|
+
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$i.internal.constants.BOLT_PROTOCOL_V5_0;
|
|
31654
|
+
var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
31655
|
+
__extends$e(BoltProtocol, _super);
|
|
31463
31656
|
function BoltProtocol() {
|
|
31464
31657
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31465
31658
|
}
|
|
@@ -31474,7 +31667,7 @@
|
|
|
31474
31667
|
get: function () {
|
|
31475
31668
|
var _this = this;
|
|
31476
31669
|
if (this._transformer === undefined) {
|
|
31477
|
-
this._transformer = new transformer_1$
|
|
31670
|
+
this._transformer = new transformer_1$7.default(Object.values(bolt_protocol_v5x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31478
31671
|
}
|
|
31479
31672
|
return this._transformer;
|
|
31480
31673
|
},
|
|
@@ -31506,7 +31699,7 @@
|
|
|
31506
31699
|
};
|
|
31507
31700
|
return BoltProtocol;
|
|
31508
31701
|
}(bolt_protocol_v4x4_1$1.default));
|
|
31509
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
31702
|
+
boltProtocolV5x0.default = BoltProtocol$7;
|
|
31510
31703
|
|
|
31511
31704
|
var boltProtocolV5x1 = {};
|
|
31512
31705
|
|
|
@@ -31528,8 +31721,8 @@
|
|
|
31528
31721
|
* See the License for the specific language governing permissions and
|
|
31529
31722
|
* limitations under the License.
|
|
31530
31723
|
*/
|
|
31531
|
-
var __assign$
|
|
31532
|
-
__assign$
|
|
31724
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31725
|
+
__assign$b = Object.assign || function(t) {
|
|
31533
31726
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31534
31727
|
s = arguments[i];
|
|
31535
31728
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31537,16 +31730,16 @@
|
|
|
31537
31730
|
}
|
|
31538
31731
|
return t;
|
|
31539
31732
|
};
|
|
31540
|
-
return __assign$
|
|
31733
|
+
return __assign$b.apply(this, arguments);
|
|
31541
31734
|
};
|
|
31542
|
-
var __importDefault$
|
|
31735
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31543
31736
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31544
31737
|
};
|
|
31545
31738
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
31546
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
31547
|
-
boltProtocolV5x1_transformer.default = __assign$
|
|
31739
|
+
var bolt_protocol_v5x0_transformer_1 = __importDefault$j(boltProtocolV5x0_transformer);
|
|
31740
|
+
boltProtocolV5x1_transformer.default = __assign$b({}, bolt_protocol_v5x0_transformer_1.default);
|
|
31548
31741
|
|
|
31549
|
-
var __extends$
|
|
31742
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31550
31743
|
var extendStatics = function (d, b) {
|
|
31551
31744
|
extendStatics = Object.setPrototypeOf ||
|
|
31552
31745
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31561,8 +31754,8 @@
|
|
|
31561
31754
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31562
31755
|
};
|
|
31563
31756
|
})();
|
|
31564
|
-
var __assign$
|
|
31565
|
-
__assign$
|
|
31757
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31758
|
+
__assign$a = Object.assign || function(t) {
|
|
31566
31759
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31567
31760
|
s = arguments[i];
|
|
31568
31761
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31570,9 +31763,9 @@
|
|
|
31570
31763
|
}
|
|
31571
31764
|
return t;
|
|
31572
31765
|
};
|
|
31573
|
-
return __assign$
|
|
31766
|
+
return __assign$a.apply(this, arguments);
|
|
31574
31767
|
};
|
|
31575
|
-
var __importDefault$
|
|
31768
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31576
31769
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31577
31770
|
};
|
|
31578
31771
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -31592,16 +31785,16 @@
|
|
|
31592
31785
|
* See the License for the specific language governing permissions and
|
|
31593
31786
|
* limitations under the License.
|
|
31594
31787
|
*/
|
|
31595
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
31788
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$i(boltProtocolV5x0);
|
|
31596
31789
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
31597
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
31598
|
-
var transformer_1$
|
|
31599
|
-
var request_message_1$4 = __importDefault$
|
|
31790
|
+
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$i(boltProtocolV5x1_transformer);
|
|
31791
|
+
var transformer_1$6 = __importDefault$i(transformer);
|
|
31792
|
+
var request_message_1$4 = __importDefault$i(requestMessage);
|
|
31600
31793
|
var stream_observers_1$4 = streamObservers;
|
|
31601
|
-
var neo4j_driver_core_1$
|
|
31602
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
31603
|
-
var BoltProtocol$
|
|
31604
|
-
__extends$
|
|
31794
|
+
var neo4j_driver_core_1$h = lib$1;
|
|
31795
|
+
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$h.internal.constants.BOLT_PROTOCOL_V5_1;
|
|
31796
|
+
var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
31797
|
+
__extends$d(BoltProtocol, _super);
|
|
31605
31798
|
function BoltProtocol() {
|
|
31606
31799
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31607
31800
|
}
|
|
@@ -31616,7 +31809,7 @@
|
|
|
31616
31809
|
get: function () {
|
|
31617
31810
|
var _this = this;
|
|
31618
31811
|
if (this._transformer === undefined) {
|
|
31619
|
-
this._transformer = new transformer_1$
|
|
31812
|
+
this._transformer = new transformer_1$6.default(Object.values(bolt_protocol_v5x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31620
31813
|
}
|
|
31621
31814
|
return this._transformer;
|
|
31622
31815
|
},
|
|
@@ -31657,7 +31850,7 @@
|
|
|
31657
31850
|
this.write(request_message_1$4.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
31658
31851
|
return this.logon({
|
|
31659
31852
|
authToken: authToken,
|
|
31660
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31853
|
+
onComplete: function (metadata) { return onComplete(__assign$a(__assign$a({}, metadata), state.metadata)); },
|
|
31661
31854
|
onError: onError,
|
|
31662
31855
|
flush: true
|
|
31663
31856
|
});
|
|
@@ -31704,7 +31897,7 @@
|
|
|
31704
31897
|
};
|
|
31705
31898
|
return BoltProtocol;
|
|
31706
31899
|
}(bolt_protocol_v5x0_1$1.default));
|
|
31707
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
31900
|
+
boltProtocolV5x1.default = BoltProtocol$6;
|
|
31708
31901
|
|
|
31709
31902
|
var boltProtocolV5x2 = {};
|
|
31710
31903
|
|
|
@@ -31726,8 +31919,8 @@
|
|
|
31726
31919
|
* See the License for the specific language governing permissions and
|
|
31727
31920
|
* limitations under the License.
|
|
31728
31921
|
*/
|
|
31729
|
-
var __assign$
|
|
31730
|
-
__assign$
|
|
31922
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31923
|
+
__assign$9 = Object.assign || function(t) {
|
|
31731
31924
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31732
31925
|
s = arguments[i];
|
|
31733
31926
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31735,16 +31928,16 @@
|
|
|
31735
31928
|
}
|
|
31736
31929
|
return t;
|
|
31737
31930
|
};
|
|
31738
|
-
return __assign$
|
|
31931
|
+
return __assign$9.apply(this, arguments);
|
|
31739
31932
|
};
|
|
31740
|
-
var __importDefault$
|
|
31933
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31741
31934
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31742
31935
|
};
|
|
31743
31936
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
31744
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
31745
|
-
boltProtocolV5x2_transformer.default = __assign$
|
|
31937
|
+
var bolt_protocol_v5x1_transformer_1 = __importDefault$h(boltProtocolV5x1_transformer);
|
|
31938
|
+
boltProtocolV5x2_transformer.default = __assign$9({}, bolt_protocol_v5x1_transformer_1.default);
|
|
31746
31939
|
|
|
31747
|
-
var __extends$
|
|
31940
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31748
31941
|
var extendStatics = function (d, b) {
|
|
31749
31942
|
extendStatics = Object.setPrototypeOf ||
|
|
31750
31943
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31759,8 +31952,8 @@
|
|
|
31759
31952
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31760
31953
|
};
|
|
31761
31954
|
})();
|
|
31762
|
-
var __assign$
|
|
31763
|
-
__assign$
|
|
31955
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31956
|
+
__assign$8 = Object.assign || function(t) {
|
|
31764
31957
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31765
31958
|
s = arguments[i];
|
|
31766
31959
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31768,9 +31961,9 @@
|
|
|
31768
31961
|
}
|
|
31769
31962
|
return t;
|
|
31770
31963
|
};
|
|
31771
|
-
return __assign$
|
|
31964
|
+
return __assign$8.apply(this, arguments);
|
|
31772
31965
|
};
|
|
31773
|
-
var __importDefault$
|
|
31966
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31774
31967
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31775
31968
|
};
|
|
31776
31969
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -31790,15 +31983,15 @@
|
|
|
31790
31983
|
* See the License for the specific language governing permissions and
|
|
31791
31984
|
* limitations under the License.
|
|
31792
31985
|
*/
|
|
31793
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
31794
|
-
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$
|
|
31795
|
-
var transformer_1$
|
|
31796
|
-
var request_message_1$3 = __importDefault$
|
|
31986
|
+
var bolt_protocol_v5x1_1$1 = __importDefault$g(boltProtocolV5x1);
|
|
31987
|
+
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$g(boltProtocolV5x2_transformer);
|
|
31988
|
+
var transformer_1$5 = __importDefault$g(transformer);
|
|
31989
|
+
var request_message_1$3 = __importDefault$g(requestMessage);
|
|
31797
31990
|
var stream_observers_1$3 = streamObservers;
|
|
31798
|
-
var neo4j_driver_core_1$
|
|
31799
|
-
var _a$5 = neo4j_driver_core_1$
|
|
31800
|
-
var BoltProtocol$
|
|
31801
|
-
__extends$
|
|
31991
|
+
var neo4j_driver_core_1$g = lib$1;
|
|
31992
|
+
var _a$5 = neo4j_driver_core_1$g.internal.constants, BOLT_PROTOCOL_V5_2 = _a$5.BOLT_PROTOCOL_V5_2, FETCH_ALL$1 = _a$5.FETCH_ALL;
|
|
31993
|
+
var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
31994
|
+
__extends$c(BoltProtocol, _super);
|
|
31802
31995
|
function BoltProtocol() {
|
|
31803
31996
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31804
31997
|
}
|
|
@@ -31813,7 +32006,7 @@
|
|
|
31813
32006
|
get: function () {
|
|
31814
32007
|
var _this = this;
|
|
31815
32008
|
if (this._transformer === undefined) {
|
|
31816
|
-
this._transformer = new transformer_1$
|
|
32009
|
+
this._transformer = new transformer_1$5.default(Object.values(bolt_protocol_v5x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31817
32010
|
}
|
|
31818
32011
|
return this._transformer;
|
|
31819
32012
|
},
|
|
@@ -31855,7 +32048,7 @@
|
|
|
31855
32048
|
request_message_1$3.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31856
32049
|
return this.logon({
|
|
31857
32050
|
authToken: authToken,
|
|
31858
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32051
|
+
onComplete: function (metadata) { return onComplete(__assign$8(__assign$8({}, metadata), state.metadata)); },
|
|
31859
32052
|
onError: onError,
|
|
31860
32053
|
flush: true
|
|
31861
32054
|
});
|
|
@@ -31906,7 +32099,7 @@
|
|
|
31906
32099
|
};
|
|
31907
32100
|
return BoltProtocol;
|
|
31908
32101
|
}(bolt_protocol_v5x1_1$1.default));
|
|
31909
|
-
boltProtocolV5x2.default = BoltProtocol$
|
|
32102
|
+
boltProtocolV5x2.default = BoltProtocol$5;
|
|
31910
32103
|
|
|
31911
32104
|
var boltProtocolV5x3 = {};
|
|
31912
32105
|
|
|
@@ -31928,8 +32121,8 @@
|
|
|
31928
32121
|
* See the License for the specific language governing permissions and
|
|
31929
32122
|
* limitations under the License.
|
|
31930
32123
|
*/
|
|
31931
|
-
var __assign$
|
|
31932
|
-
__assign$
|
|
32124
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32125
|
+
__assign$7 = Object.assign || function(t) {
|
|
31933
32126
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31934
32127
|
s = arguments[i];
|
|
31935
32128
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31937,16 +32130,16 @@
|
|
|
31937
32130
|
}
|
|
31938
32131
|
return t;
|
|
31939
32132
|
};
|
|
31940
|
-
return __assign$
|
|
32133
|
+
return __assign$7.apply(this, arguments);
|
|
31941
32134
|
};
|
|
31942
|
-
var __importDefault$
|
|
32135
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31943
32136
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31944
32137
|
};
|
|
31945
32138
|
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
31946
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
31947
|
-
boltProtocolV5x3_transformer.default = __assign$
|
|
32139
|
+
var bolt_protocol_v5x2_transformer_1 = __importDefault$f(boltProtocolV5x2_transformer);
|
|
32140
|
+
boltProtocolV5x3_transformer.default = __assign$7({}, bolt_protocol_v5x2_transformer_1.default);
|
|
31948
32141
|
|
|
31949
|
-
var __extends$
|
|
32142
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31950
32143
|
var extendStatics = function (d, b) {
|
|
31951
32144
|
extendStatics = Object.setPrototypeOf ||
|
|
31952
32145
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31961,8 +32154,8 @@
|
|
|
31961
32154
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31962
32155
|
};
|
|
31963
32156
|
})();
|
|
31964
|
-
var __assign$
|
|
31965
|
-
__assign$
|
|
32157
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32158
|
+
__assign$6 = Object.assign || function(t) {
|
|
31966
32159
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31967
32160
|
s = arguments[i];
|
|
31968
32161
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31970,9 +32163,9 @@
|
|
|
31970
32163
|
}
|
|
31971
32164
|
return t;
|
|
31972
32165
|
};
|
|
31973
|
-
return __assign$
|
|
32166
|
+
return __assign$6.apply(this, arguments);
|
|
31974
32167
|
};
|
|
31975
|
-
var __importDefault$
|
|
32168
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31976
32169
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31977
32170
|
};
|
|
31978
32171
|
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
@@ -31992,15 +32185,15 @@
|
|
|
31992
32185
|
* See the License for the specific language governing permissions and
|
|
31993
32186
|
* limitations under the License.
|
|
31994
32187
|
*/
|
|
31995
|
-
var bolt_protocol_v5x2_1$1 = __importDefault$
|
|
31996
|
-
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$
|
|
31997
|
-
var transformer_1$
|
|
31998
|
-
var request_message_1$2 = __importDefault$
|
|
32188
|
+
var bolt_protocol_v5x2_1$1 = __importDefault$e(boltProtocolV5x2);
|
|
32189
|
+
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$e(boltProtocolV5x3_transformer);
|
|
32190
|
+
var transformer_1$4 = __importDefault$e(transformer);
|
|
32191
|
+
var request_message_1$2 = __importDefault$e(requestMessage);
|
|
31999
32192
|
var stream_observers_1$2 = streamObservers;
|
|
32000
|
-
var neo4j_driver_core_1$
|
|
32001
|
-
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$
|
|
32002
|
-
var BoltProtocol$
|
|
32003
|
-
__extends$
|
|
32193
|
+
var neo4j_driver_core_1$f = lib$1;
|
|
32194
|
+
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$f.internal.constants.BOLT_PROTOCOL_V5_3;
|
|
32195
|
+
var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
32196
|
+
__extends$b(BoltProtocol, _super);
|
|
32004
32197
|
function BoltProtocol() {
|
|
32005
32198
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32006
32199
|
}
|
|
@@ -32015,7 +32208,7 @@
|
|
|
32015
32208
|
get: function () {
|
|
32016
32209
|
var _this = this;
|
|
32017
32210
|
if (this._transformer === undefined) {
|
|
32018
|
-
this._transformer = new transformer_1$
|
|
32211
|
+
this._transformer = new transformer_1$4.default(Object.values(bolt_protocol_v5x3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
32019
32212
|
}
|
|
32020
32213
|
return this._transformer;
|
|
32021
32214
|
},
|
|
@@ -32047,14 +32240,14 @@
|
|
|
32047
32240
|
this.write(request_message_1$2.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32048
32241
|
return this.logon({
|
|
32049
32242
|
authToken: authToken,
|
|
32050
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32243
|
+
onComplete: function (metadata) { return onComplete(__assign$6(__assign$6({}, metadata), state.metadata)); },
|
|
32051
32244
|
onError: onError,
|
|
32052
32245
|
flush: true
|
|
32053
32246
|
});
|
|
32054
32247
|
};
|
|
32055
32248
|
return BoltProtocol;
|
|
32056
32249
|
}(bolt_protocol_v5x2_1$1.default));
|
|
32057
|
-
boltProtocolV5x3.default = BoltProtocol$
|
|
32250
|
+
boltProtocolV5x3.default = BoltProtocol$4;
|
|
32058
32251
|
|
|
32059
32252
|
var boltProtocolV5x4 = {};
|
|
32060
32253
|
|
|
@@ -32076,8 +32269,8 @@
|
|
|
32076
32269
|
* See the License for the specific language governing permissions and
|
|
32077
32270
|
* limitations under the License.
|
|
32078
32271
|
*/
|
|
32079
|
-
var __assign$
|
|
32080
|
-
__assign$
|
|
32272
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32273
|
+
__assign$5 = Object.assign || function(t) {
|
|
32081
32274
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32082
32275
|
s = arguments[i];
|
|
32083
32276
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32085,16 +32278,16 @@
|
|
|
32085
32278
|
}
|
|
32086
32279
|
return t;
|
|
32087
32280
|
};
|
|
32088
|
-
return __assign$
|
|
32281
|
+
return __assign$5.apply(this, arguments);
|
|
32089
32282
|
};
|
|
32090
|
-
var __importDefault$
|
|
32283
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32091
32284
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32092
32285
|
};
|
|
32093
32286
|
Object.defineProperty(boltProtocolV5x4_transformer, "__esModule", { value: true });
|
|
32094
|
-
var bolt_protocol_v5x3_transformer_1 = __importDefault$
|
|
32095
|
-
boltProtocolV5x4_transformer.default = __assign$
|
|
32287
|
+
var bolt_protocol_v5x3_transformer_1 = __importDefault$d(boltProtocolV5x3_transformer);
|
|
32288
|
+
boltProtocolV5x4_transformer.default = __assign$5({}, bolt_protocol_v5x3_transformer_1.default);
|
|
32096
32289
|
|
|
32097
|
-
var __extends$
|
|
32290
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32098
32291
|
var extendStatics = function (d, b) {
|
|
32099
32292
|
extendStatics = Object.setPrototypeOf ||
|
|
32100
32293
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32109,7 +32302,7 @@
|
|
|
32109
32302
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32110
32303
|
};
|
|
32111
32304
|
})();
|
|
32112
|
-
var __importDefault$
|
|
32305
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32113
32306
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32114
32307
|
};
|
|
32115
32308
|
Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
@@ -32129,15 +32322,15 @@
|
|
|
32129
32322
|
* See the License for the specific language governing permissions and
|
|
32130
32323
|
* limitations under the License.
|
|
32131
32324
|
*/
|
|
32132
|
-
var bolt_protocol_v5x3_1$1 = __importDefault$
|
|
32133
|
-
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$
|
|
32134
|
-
var request_message_1$1 = __importDefault$
|
|
32325
|
+
var bolt_protocol_v5x3_1$1 = __importDefault$c(boltProtocolV5x3);
|
|
32326
|
+
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$c(boltProtocolV5x4_transformer);
|
|
32327
|
+
var request_message_1$1 = __importDefault$c(requestMessage);
|
|
32135
32328
|
var stream_observers_1$1 = streamObservers;
|
|
32136
|
-
var transformer_1$
|
|
32137
|
-
var neo4j_driver_core_1$
|
|
32138
|
-
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$
|
|
32139
|
-
var BoltProtocol$
|
|
32140
|
-
__extends$
|
|
32329
|
+
var transformer_1$3 = __importDefault$c(transformer);
|
|
32330
|
+
var neo4j_driver_core_1$e = lib$1;
|
|
32331
|
+
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_4;
|
|
32332
|
+
var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
32333
|
+
__extends$a(BoltProtocol, _super);
|
|
32141
32334
|
function BoltProtocol() {
|
|
32142
32335
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32143
32336
|
}
|
|
@@ -32152,7 +32345,7 @@
|
|
|
32152
32345
|
get: function () {
|
|
32153
32346
|
var _this = this;
|
|
32154
32347
|
if (this._transformer === undefined) {
|
|
32155
|
-
this._transformer = new transformer_1$
|
|
32348
|
+
this._transformer = new transformer_1$3.default(Object.values(bolt_protocol_v5x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
32156
32349
|
}
|
|
32157
32350
|
return this._transformer;
|
|
32158
32351
|
},
|
|
@@ -32178,7 +32371,7 @@
|
|
|
32178
32371
|
};
|
|
32179
32372
|
return BoltProtocol;
|
|
32180
32373
|
}(bolt_protocol_v5x3_1$1.default));
|
|
32181
|
-
boltProtocolV5x4.default = BoltProtocol$
|
|
32374
|
+
boltProtocolV5x4.default = BoltProtocol$3;
|
|
32182
32375
|
|
|
32183
32376
|
var boltProtocolV5x5 = {};
|
|
32184
32377
|
|
|
@@ -32200,8 +32393,8 @@
|
|
|
32200
32393
|
* See the License for the specific language governing permissions and
|
|
32201
32394
|
* limitations under the License.
|
|
32202
32395
|
*/
|
|
32203
|
-
var __assign$
|
|
32204
|
-
__assign$
|
|
32396
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32397
|
+
__assign$4 = Object.assign || function(t) {
|
|
32205
32398
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32206
32399
|
s = arguments[i];
|
|
32207
32400
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32209,16 +32402,16 @@
|
|
|
32209
32402
|
}
|
|
32210
32403
|
return t;
|
|
32211
32404
|
};
|
|
32212
|
-
return __assign$
|
|
32405
|
+
return __assign$4.apply(this, arguments);
|
|
32213
32406
|
};
|
|
32214
|
-
var __importDefault$
|
|
32407
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32215
32408
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32216
32409
|
};
|
|
32217
32410
|
Object.defineProperty(boltProtocolV5x5_transformer, "__esModule", { value: true });
|
|
32218
|
-
var bolt_protocol_v5x4_transformer_1 = __importDefault$
|
|
32219
|
-
boltProtocolV5x5_transformer.default = __assign$
|
|
32411
|
+
var bolt_protocol_v5x4_transformer_1 = __importDefault$b(boltProtocolV5x4_transformer);
|
|
32412
|
+
boltProtocolV5x5_transformer.default = __assign$4({}, bolt_protocol_v5x4_transformer_1.default);
|
|
32220
32413
|
|
|
32221
|
-
var __extends$
|
|
32414
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32222
32415
|
var extendStatics = function (d, b) {
|
|
32223
32416
|
extendStatics = Object.setPrototypeOf ||
|
|
32224
32417
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32233,8 +32426,8 @@
|
|
|
32233
32426
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32234
32427
|
};
|
|
32235
32428
|
})();
|
|
32236
|
-
var __assign$
|
|
32237
|
-
__assign$
|
|
32429
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32430
|
+
__assign$3 = Object.assign || function(t) {
|
|
32238
32431
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32239
32432
|
s = arguments[i];
|
|
32240
32433
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32242,9 +32435,9 @@
|
|
|
32242
32435
|
}
|
|
32243
32436
|
return t;
|
|
32244
32437
|
};
|
|
32245
|
-
return __assign$
|
|
32438
|
+
return __assign$3.apply(this, arguments);
|
|
32246
32439
|
};
|
|
32247
|
-
var __importDefault$
|
|
32440
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32248
32441
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32249
32442
|
};
|
|
32250
32443
|
Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
@@ -32264,20 +32457,20 @@
|
|
|
32264
32457
|
* See the License for the specific language governing permissions and
|
|
32265
32458
|
* limitations under the License.
|
|
32266
32459
|
*/
|
|
32267
|
-
var bolt_protocol_v5x4_1$1 = __importDefault$
|
|
32268
|
-
var bolt_protocol_v5x5_transformer_1$
|
|
32269
|
-
var transformer_1$
|
|
32270
|
-
var request_message_1 = __importDefault$
|
|
32460
|
+
var bolt_protocol_v5x4_1$1 = __importDefault$a(boltProtocolV5x4);
|
|
32461
|
+
var bolt_protocol_v5x5_transformer_1$2 = __importDefault$a(boltProtocolV5x5_transformer);
|
|
32462
|
+
var transformer_1$2 = __importDefault$a(transformer);
|
|
32463
|
+
var request_message_1 = __importDefault$a(requestMessage);
|
|
32271
32464
|
var stream_observers_1 = streamObservers;
|
|
32272
|
-
var neo4j_driver_core_1$
|
|
32273
|
-
var _a$4 = neo4j_driver_core_1$
|
|
32274
|
-
var DEFAULT_DIAGNOSTIC_RECORD$
|
|
32465
|
+
var neo4j_driver_core_1$d = lib$1;
|
|
32466
|
+
var _a$4 = neo4j_driver_core_1$d.internal.constants, BOLT_PROTOCOL_V5_5 = _a$4.BOLT_PROTOCOL_V5_5, FETCH_ALL = _a$4.FETCH_ALL;
|
|
32467
|
+
var DEFAULT_DIAGNOSTIC_RECORD$2 = Object.freeze({
|
|
32275
32468
|
OPERATION: '',
|
|
32276
32469
|
OPERATION_CODE: '0',
|
|
32277
32470
|
CURRENT_SCHEMA: '/'
|
|
32278
32471
|
});
|
|
32279
|
-
var BoltProtocol$
|
|
32280
|
-
__extends$
|
|
32472
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
32473
|
+
__extends$9(BoltProtocol, _super);
|
|
32281
32474
|
function BoltProtocol() {
|
|
32282
32475
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32283
32476
|
}
|
|
@@ -32292,7 +32485,7 @@
|
|
|
32292
32485
|
get: function () {
|
|
32293
32486
|
var _this = this;
|
|
32294
32487
|
if (this._transformer === undefined) {
|
|
32295
|
-
this._transformer = new transformer_1$
|
|
32488
|
+
this._transformer = new transformer_1$2.default(Object.values(bolt_protocol_v5x5_transformer_1$2.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
32296
32489
|
}
|
|
32297
32490
|
return this._transformer;
|
|
32298
32491
|
},
|
|
@@ -32324,7 +32517,7 @@
|
|
|
32324
32517
|
this.write(request_message_1.default.hello5x5(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32325
32518
|
return this.logon({
|
|
32326
32519
|
authToken: authToken,
|
|
32327
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32520
|
+
onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
|
|
32328
32521
|
onError: onError,
|
|
32329
32522
|
flush: true
|
|
32330
32523
|
});
|
|
@@ -32381,16 +32574,112 @@
|
|
|
32381
32574
|
*/
|
|
32382
32575
|
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
32383
32576
|
if (Array.isArray(metadata.statuses)) {
|
|
32384
|
-
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$
|
|
32577
|
+
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$3(__assign$3({}, status), { description: status.neo4j_code != null ? status.status_description : status.description, diagnostic_record: status.diagnostic_record !== null ? __assign$3(__assign$3({}, DEFAULT_DIAGNOSTIC_RECORD$2), status.diagnostic_record) : null })); });
|
|
32385
32578
|
}
|
|
32386
32579
|
return metadata;
|
|
32387
32580
|
};
|
|
32388
32581
|
return BoltProtocol;
|
|
32389
32582
|
}(bolt_protocol_v5x4_1$1.default));
|
|
32390
|
-
boltProtocolV5x5.default = BoltProtocol$
|
|
32583
|
+
boltProtocolV5x5.default = BoltProtocol$2;
|
|
32391
32584
|
|
|
32392
32585
|
var boltProtocolV5x6 = {};
|
|
32393
32586
|
|
|
32587
|
+
var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32588
|
+
var extendStatics = function (d, b) {
|
|
32589
|
+
extendStatics = Object.setPrototypeOf ||
|
|
32590
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32591
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
32592
|
+
return extendStatics(d, b);
|
|
32593
|
+
};
|
|
32594
|
+
return function (d, b) {
|
|
32595
|
+
if (typeof b !== "function" && b !== null)
|
|
32596
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
32597
|
+
extendStatics(d, b);
|
|
32598
|
+
function __() { this.constructor = d; }
|
|
32599
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32600
|
+
};
|
|
32601
|
+
})();
|
|
32602
|
+
var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32603
|
+
__assign$2 = Object.assign || function(t) {
|
|
32604
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32605
|
+
s = arguments[i];
|
|
32606
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
32607
|
+
t[p] = s[p];
|
|
32608
|
+
}
|
|
32609
|
+
return t;
|
|
32610
|
+
};
|
|
32611
|
+
return __assign$2.apply(this, arguments);
|
|
32612
|
+
};
|
|
32613
|
+
var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32614
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32615
|
+
};
|
|
32616
|
+
Object.defineProperty(boltProtocolV5x6, "__esModule", { value: true });
|
|
32617
|
+
/**
|
|
32618
|
+
* Copyright (c) "Neo4j"
|
|
32619
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
32620
|
+
*
|
|
32621
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
32622
|
+
* you may not use this file except in compliance with the License.
|
|
32623
|
+
* You may obtain a copy of the License at
|
|
32624
|
+
*
|
|
32625
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
32626
|
+
*
|
|
32627
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
32628
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
32629
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
32630
|
+
* See the License for the specific language governing permissions and
|
|
32631
|
+
* limitations under the License.
|
|
32632
|
+
*/
|
|
32633
|
+
var bolt_protocol_v5x5_1$1 = __importDefault$9(boltProtocolV5x5);
|
|
32634
|
+
var bolt_protocol_v5x5_transformer_1$1 = __importDefault$9(boltProtocolV5x5_transformer);
|
|
32635
|
+
var transformer_1$1 = __importDefault$9(transformer);
|
|
32636
|
+
var neo4j_driver_core_1$c = lib$1;
|
|
32637
|
+
var BOLT_PROTOCOL_V5_6 = neo4j_driver_core_1$c.internal.constants.BOLT_PROTOCOL_V5_6;
|
|
32638
|
+
var DEFAULT_DIAGNOSTIC_RECORD$1 = Object.freeze({
|
|
32639
|
+
OPERATION: '',
|
|
32640
|
+
OPERATION_CODE: '0',
|
|
32641
|
+
CURRENT_SCHEMA: '/'
|
|
32642
|
+
});
|
|
32643
|
+
var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
32644
|
+
__extends$8(BoltProtocol, _super);
|
|
32645
|
+
function BoltProtocol() {
|
|
32646
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
32647
|
+
}
|
|
32648
|
+
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
32649
|
+
get: function () {
|
|
32650
|
+
return BOLT_PROTOCOL_V5_6;
|
|
32651
|
+
},
|
|
32652
|
+
enumerable: false,
|
|
32653
|
+
configurable: true
|
|
32654
|
+
});
|
|
32655
|
+
Object.defineProperty(BoltProtocol.prototype, "transformer", {
|
|
32656
|
+
get: function () {
|
|
32657
|
+
var _this = this;
|
|
32658
|
+
if (this._transformer === undefined) {
|
|
32659
|
+
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); }));
|
|
32660
|
+
}
|
|
32661
|
+
return this._transformer;
|
|
32662
|
+
},
|
|
32663
|
+
enumerable: false,
|
|
32664
|
+
configurable: true
|
|
32665
|
+
});
|
|
32666
|
+
/**
|
|
32667
|
+
*
|
|
32668
|
+
* @param {object} metadata
|
|
32669
|
+
* @returns {object}
|
|
32670
|
+
*/
|
|
32671
|
+
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
32672
|
+
if (Array.isArray(metadata.statuses)) {
|
|
32673
|
+
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$2(__assign$2({}, status), { diagnostic_record: status.diagnostic_record !== null ? __assign$2(__assign$2({}, DEFAULT_DIAGNOSTIC_RECORD$1), status.diagnostic_record) : null })); });
|
|
32674
|
+
}
|
|
32675
|
+
return metadata;
|
|
32676
|
+
};
|
|
32677
|
+
return BoltProtocol;
|
|
32678
|
+
}(bolt_protocol_v5x5_1$1.default));
|
|
32679
|
+
boltProtocolV5x6.default = BoltProtocol$1;
|
|
32680
|
+
|
|
32681
|
+
var boltProtocolV5x7 = {};
|
|
32682
|
+
|
|
32394
32683
|
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32395
32684
|
var extendStatics = function (d, b) {
|
|
32396
32685
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -32420,7 +32709,7 @@
|
|
|
32420
32709
|
var __importDefault$8 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32421
32710
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32422
32711
|
};
|
|
32423
|
-
Object.defineProperty(
|
|
32712
|
+
Object.defineProperty(boltProtocolV5x7, "__esModule", { value: true });
|
|
32424
32713
|
/**
|
|
32425
32714
|
* Copyright (c) "Neo4j"
|
|
32426
32715
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -32437,11 +32726,11 @@
|
|
|
32437
32726
|
* See the License for the specific language governing permissions and
|
|
32438
32727
|
* limitations under the License.
|
|
32439
32728
|
*/
|
|
32440
|
-
var
|
|
32729
|
+
var bolt_protocol_v5x6_1$1 = __importDefault$8(boltProtocolV5x6);
|
|
32441
32730
|
var bolt_protocol_v5x5_transformer_1 = __importDefault$8(boltProtocolV5x5_transformer);
|
|
32442
32731
|
var transformer_1 = __importDefault$8(transformer);
|
|
32443
32732
|
var neo4j_driver_core_1$b = lib$1;
|
|
32444
|
-
var
|
|
32733
|
+
var BOLT_PROTOCOL_V5_7 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_7;
|
|
32445
32734
|
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
32446
32735
|
OPERATION: '',
|
|
32447
32736
|
OPERATION_CODE: '0',
|
|
@@ -32454,7 +32743,7 @@
|
|
|
32454
32743
|
}
|
|
32455
32744
|
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
32456
32745
|
get: function () {
|
|
32457
|
-
return
|
|
32746
|
+
return BOLT_PROTOCOL_V5_7;
|
|
32458
32747
|
},
|
|
32459
32748
|
enumerable: false,
|
|
32460
32749
|
configurable: true
|
|
@@ -32475,15 +32764,12 @@
|
|
|
32475
32764
|
* @param {object} metadata
|
|
32476
32765
|
* @returns {object}
|
|
32477
32766
|
*/
|
|
32478
|
-
BoltProtocol.prototype.
|
|
32479
|
-
|
|
32480
|
-
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 })); });
|
|
32481
|
-
}
|
|
32482
|
-
return metadata;
|
|
32767
|
+
BoltProtocol.prototype.enrichErrorMetadata = function (metadata) {
|
|
32768
|
+
return __assign$1(__assign$1({}, metadata), { cause: (metadata.cause !== null && metadata.cause !== undefined) ? this.enrichErrorMetadata(metadata.cause) : null, code: metadata.neo4j_code, diagnostic_record: metadata.diagnostic_record !== null ? __assign$1(__assign$1({}, DEFAULT_DIAGNOSTIC_RECORD), metadata.diagnostic_record) : null });
|
|
32483
32769
|
};
|
|
32484
32770
|
return BoltProtocol;
|
|
32485
|
-
}(
|
|
32486
|
-
|
|
32771
|
+
}(bolt_protocol_v5x6_1$1.default));
|
|
32772
|
+
boltProtocolV5x7.default = BoltProtocol;
|
|
32487
32773
|
|
|
32488
32774
|
var responseHandler = {};
|
|
32489
32775
|
|
|
@@ -32556,10 +32842,11 @@
|
|
|
32556
32842
|
* @param {ResponseHandler~Observer} observer Object which will be notified about errors
|
|
32557
32843
|
*/
|
|
32558
32844
|
function ResponseHandler(_a) {
|
|
32559
|
-
var _b = _a === void 0 ? {} : _a, transformMetadata = _b.transformMetadata, log = _b.log, observer = _b.observer;
|
|
32845
|
+
var _b = _a === void 0 ? {} : _a, transformMetadata = _b.transformMetadata, enrichErrorMetadata = _b.enrichErrorMetadata, log = _b.log, observer = _b.observer;
|
|
32560
32846
|
this._pendingObservers = [];
|
|
32561
32847
|
this._log = log;
|
|
32562
32848
|
this._transformMetadata = transformMetadata || NO_OP_IDENTITY;
|
|
32849
|
+
this._enrichErrorMetadata = enrichErrorMetadata || NO_OP_IDENTITY;
|
|
32563
32850
|
this._observer = Object.assign({
|
|
32564
32851
|
onObserversCountChange: NO_OP,
|
|
32565
32852
|
onError: NO_OP,
|
|
@@ -32600,9 +32887,7 @@
|
|
|
32600
32887
|
this._log.debug("S: FAILURE ".concat(neo4j_driver_core_1$a.json.stringify(msg)));
|
|
32601
32888
|
}
|
|
32602
32889
|
try {
|
|
32603
|
-
|
|
32604
|
-
var error = (0, neo4j_driver_core_1$a.newError)(payload.message, standardizedCode);
|
|
32605
|
-
this._currentFailure = this._observer.onErrorApplyTransformation(error);
|
|
32890
|
+
this._currentFailure = this._handleErrorPayload(this._enrichErrorMetadata(payload));
|
|
32606
32891
|
this._currentObserver.onError(this._currentFailure);
|
|
32607
32892
|
}
|
|
32608
32893
|
finally {
|
|
@@ -32677,6 +32962,17 @@
|
|
|
32677
32962
|
ResponseHandler.prototype._resetFailure = function () {
|
|
32678
32963
|
this._currentFailure = null;
|
|
32679
32964
|
};
|
|
32965
|
+
ResponseHandler.prototype._handleErrorPayload = function (payload) {
|
|
32966
|
+
var standardizedCode = _standardizeCode(payload.code);
|
|
32967
|
+
var cause = payload.cause != null ? this._handleErrorCause(payload.cause) : undefined;
|
|
32968
|
+
var error = (0, neo4j_driver_core_1$a.newError)(payload.message, standardizedCode, cause, payload.gql_status, payload.description, payload.diagnostic_record);
|
|
32969
|
+
return this._observer.onErrorApplyTransformation(error);
|
|
32970
|
+
};
|
|
32971
|
+
ResponseHandler.prototype._handleErrorCause = function (payload) {
|
|
32972
|
+
var cause = payload.cause != null ? this._handleErrorCause(payload.cause) : undefined;
|
|
32973
|
+
var error = (0, neo4j_driver_core_1$a.newGQLError)(payload.message, cause, payload.gql_status, payload.description, payload.diagnostic_record);
|
|
32974
|
+
return this._observer.onErrorApplyTransformation(error);
|
|
32975
|
+
};
|
|
32680
32976
|
return ResponseHandler;
|
|
32681
32977
|
}());
|
|
32682
32978
|
responseHandler.default = ResponseHandler;
|
|
@@ -32735,6 +33031,7 @@
|
|
|
32735
33031
|
var bolt_protocol_v5x4_1 = __importDefault$7(boltProtocolV5x4);
|
|
32736
33032
|
var bolt_protocol_v5x5_1 = __importDefault$7(boltProtocolV5x5);
|
|
32737
33033
|
var bolt_protocol_v5x6_1 = __importDefault$7(boltProtocolV5x6);
|
|
33034
|
+
var bolt_protocol_v5x7_1 = __importDefault$7(boltProtocolV5x7);
|
|
32738
33035
|
var response_handler_1 = __importDefault$7(responseHandler);
|
|
32739
33036
|
/**
|
|
32740
33037
|
* Creates a protocol with a given version
|
|
@@ -32756,6 +33053,7 @@
|
|
|
32756
33053
|
var createResponseHandler = function (protocol) {
|
|
32757
33054
|
var responseHandler = new response_handler_1.default({
|
|
32758
33055
|
transformMetadata: protocol.transformMetadata.bind(protocol),
|
|
33056
|
+
enrichErrorMetadata: protocol.enrichErrorMetadata.bind(protocol),
|
|
32759
33057
|
log: log,
|
|
32760
33058
|
observer: observer
|
|
32761
33059
|
});
|
|
@@ -32809,6 +33107,8 @@
|
|
|
32809
33107
|
return new bolt_protocol_v5x5_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32810
33108
|
case 5.6:
|
|
32811
33109
|
return new bolt_protocol_v5x6_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
33110
|
+
case 5.7:
|
|
33111
|
+
return new bolt_protocol_v5x7_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32812
33112
|
default:
|
|
32813
33113
|
throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
|
|
32814
33114
|
}
|
|
@@ -33547,7 +33847,7 @@
|
|
|
33547
33847
|
reject(error);
|
|
33548
33848
|
}
|
|
33549
33849
|
else {
|
|
33550
|
-
var neo4jError = _this._handleProtocolError(
|
|
33850
|
+
var neo4jError = _this._handleProtocolError("Received FAILURE as a response for RESET: ".concat(error));
|
|
33551
33851
|
reject(neo4jError);
|
|
33552
33852
|
}
|
|
33553
33853
|
},
|