neo4j-driver 5.25.0 → 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 +1117 -818
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +1117 -818
- 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 () {
|
|
@@ -6291,8 +6465,8 @@
|
|
|
6291
6465
|
|
|
6292
6466
|
var notification = {};
|
|
6293
6467
|
|
|
6294
|
-
var __assign$
|
|
6295
|
-
__assign$
|
|
6468
|
+
var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
6469
|
+
__assign$r = Object.assign || function(t) {
|
|
6296
6470
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6297
6471
|
s = arguments[i];
|
|
6298
6472
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -6300,7 +6474,7 @@
|
|
|
6300
6474
|
}
|
|
6301
6475
|
return t;
|
|
6302
6476
|
};
|
|
6303
|
-
return __assign$
|
|
6477
|
+
return __assign$r.apply(this, arguments);
|
|
6304
6478
|
};
|
|
6305
6479
|
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6306
6480
|
if (k2 === undefined) k2 = k;
|
|
@@ -6368,8 +6542,9 @@
|
|
|
6368
6542
|
* See the License for the specific language governing permissions and
|
|
6369
6543
|
* limitations under the License.
|
|
6370
6544
|
*/
|
|
6371
|
-
var json$1 = __importStar$6(json$
|
|
6545
|
+
var json$1 = __importStar$6(json$3);
|
|
6372
6546
|
var internal_1$3 = internal;
|
|
6547
|
+
var gql_constants_1 = gqlConstants;
|
|
6373
6548
|
var unknownGqlStatus = {
|
|
6374
6549
|
WARNING: {
|
|
6375
6550
|
gql_status: '01N42',
|
|
@@ -6385,7 +6560,7 @@
|
|
|
6385
6560
|
},
|
|
6386
6561
|
ERROR: {
|
|
6387
6562
|
gql_status: '50N42',
|
|
6388
|
-
status_description: 'error: general processing exception -
|
|
6563
|
+
status_description: 'error: general processing exception - unexpected error'
|
|
6389
6564
|
}
|
|
6390
6565
|
};
|
|
6391
6566
|
/**
|
|
@@ -6722,7 +6897,7 @@
|
|
|
6722
6897
|
status_description: (_a = notification.description) !== null && _a !== void 0 ? _a : defaultStatus.status_description,
|
|
6723
6898
|
neo4j_code: notification.code,
|
|
6724
6899
|
title: notification.title,
|
|
6725
|
-
diagnostic_record: __assign$
|
|
6900
|
+
diagnostic_record: __assign$r({}, gql_constants_1.rawPolyfilledDiagnosticRecord)
|
|
6726
6901
|
};
|
|
6727
6902
|
if (notification.severity != null) {
|
|
6728
6903
|
polyfilledRawObj.diagnostic_record._severity = notification.severity;
|
|
@@ -6736,12 +6911,6 @@
|
|
|
6736
6911
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6737
6912
|
}
|
|
6738
6913
|
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6739
|
-
var rawPolyfilledDiagnosticRecord = {
|
|
6740
|
-
OPERATION: '',
|
|
6741
|
-
OPERATION_CODE: '0',
|
|
6742
|
-
CURRENT_SCHEMA: '/'
|
|
6743
|
-
};
|
|
6744
|
-
Object.freeze(rawPolyfilledDiagnosticRecord);
|
|
6745
6914
|
/**
|
|
6746
6915
|
* This objects are used for polyfilling the first status on the status list
|
|
6747
6916
|
*
|
|
@@ -6751,18 +6920,18 @@
|
|
|
6751
6920
|
SUCCESS: new GqlStatusObject({
|
|
6752
6921
|
gql_status: '00000',
|
|
6753
6922
|
status_description: 'note: successful completion',
|
|
6754
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6923
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6755
6924
|
}),
|
|
6756
6925
|
NO_DATA: new GqlStatusObject({
|
|
6757
6926
|
gql_status: '02000',
|
|
6758
6927
|
status_description: 'note: no data',
|
|
6759
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6928
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6760
6929
|
}),
|
|
6761
|
-
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 })),
|
|
6762
6931
|
OMITTED_RESULT: new GqlStatusObject({
|
|
6763
6932
|
gql_status: '00001',
|
|
6764
6933
|
status_description: 'note: successful completion - omitted result',
|
|
6765
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6934
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6766
6935
|
})
|
|
6767
6936
|
};
|
|
6768
6937
|
Object.freeze(staticGqlStatusObjects);
|
|
@@ -7430,13 +7599,13 @@
|
|
|
7430
7599
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7431
7600
|
}
|
|
7432
7601
|
};
|
|
7433
|
-
var __importDefault$
|
|
7602
|
+
var __importDefault$W = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7434
7603
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7435
7604
|
};
|
|
7436
7605
|
var _a$g;
|
|
7437
7606
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
7438
7607
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
7439
|
-
var result_summary_1 = __importDefault$
|
|
7608
|
+
var result_summary_1 = __importDefault$W(resultSummary);
|
|
7440
7609
|
var internal_1$1 = internal;
|
|
7441
7610
|
var error_1$4 = error;
|
|
7442
7611
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -8380,7 +8549,7 @@
|
|
|
8380
8549
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8381
8550
|
}
|
|
8382
8551
|
};
|
|
8383
|
-
var __importDefault$
|
|
8552
|
+
var __importDefault$V = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8384
8553
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8385
8554
|
};
|
|
8386
8555
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -8391,7 +8560,7 @@
|
|
|
8391
8560
|
var tx_config_1$1 = txConfig$1;
|
|
8392
8561
|
var observers_1$1 = observers;
|
|
8393
8562
|
var error_1$3 = error;
|
|
8394
|
-
var result_1$1 = __importDefault$
|
|
8563
|
+
var result_1$1 = __importDefault$V(result);
|
|
8395
8564
|
/**
|
|
8396
8565
|
* Represents a transaction in the Neo4j database.
|
|
8397
8566
|
*
|
|
@@ -8939,7 +9108,7 @@
|
|
|
8939
9108
|
* See the License for the specific language governing permissions and
|
|
8940
9109
|
* limitations under the License.
|
|
8941
9110
|
*/
|
|
8942
|
-
var __extends$
|
|
9111
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
8943
9112
|
var extendStatics = function (d, b) {
|
|
8944
9113
|
extendStatics = Object.setPrototypeOf ||
|
|
8945
9114
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8954,8 +9123,8 @@
|
|
|
8954
9123
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8955
9124
|
};
|
|
8956
9125
|
})();
|
|
8957
|
-
var __assign$
|
|
8958
|
-
__assign$
|
|
9126
|
+
var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
9127
|
+
__assign$q = Object.assign || function(t) {
|
|
8959
9128
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8960
9129
|
s = arguments[i];
|
|
8961
9130
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -8963,15 +9132,15 @@
|
|
|
8963
9132
|
}
|
|
8964
9133
|
return t;
|
|
8965
9134
|
};
|
|
8966
|
-
return __assign$
|
|
9135
|
+
return __assign$q.apply(this, arguments);
|
|
8967
9136
|
};
|
|
8968
|
-
var __importDefault$
|
|
9137
|
+
var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8969
9138
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8970
9139
|
};
|
|
8971
9140
|
var _a$f;
|
|
8972
9141
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
8973
9142
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
8974
|
-
var transaction_1 = __importDefault$
|
|
9143
|
+
var transaction_1 = __importDefault$U(transaction);
|
|
8975
9144
|
/**
|
|
8976
9145
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
8977
9146
|
*
|
|
@@ -8983,7 +9152,7 @@
|
|
|
8983
9152
|
* @access public
|
|
8984
9153
|
*/
|
|
8985
9154
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
8986
|
-
__extends$
|
|
9155
|
+
__extends$O(TransactionPromise, _super);
|
|
8987
9156
|
/**
|
|
8988
9157
|
* @constructor
|
|
8989
9158
|
* @param {object} args
|
|
@@ -9064,7 +9233,7 @@
|
|
|
9064
9233
|
* @access private
|
|
9065
9234
|
*/
|
|
9066
9235
|
TransactionPromise.prototype._toTransaction = function () {
|
|
9067
|
-
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) });
|
|
9068
9237
|
};
|
|
9069
9238
|
/**
|
|
9070
9239
|
* @access private
|
|
@@ -9179,7 +9348,7 @@
|
|
|
9179
9348
|
}
|
|
9180
9349
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9181
9350
|
};
|
|
9182
|
-
var __importDefault$
|
|
9351
|
+
var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9183
9352
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9184
9353
|
};
|
|
9185
9354
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -9188,13 +9357,13 @@
|
|
|
9188
9357
|
var util_1$1 = util$4;
|
|
9189
9358
|
var constants_1$2 = constants$1;
|
|
9190
9359
|
var error_1$2 = error;
|
|
9191
|
-
var result_1 = __importDefault$
|
|
9360
|
+
var result_1 = __importDefault$T(result);
|
|
9192
9361
|
var connection_holder_1 = connectionHolder$1;
|
|
9193
9362
|
var transaction_executor_1 = transactionExecutor$1;
|
|
9194
9363
|
var bookmarks_1$1 = bookmarks$1;
|
|
9195
9364
|
var tx_config_1 = txConfig$1;
|
|
9196
|
-
var transaction_promise_1 = __importDefault$
|
|
9197
|
-
var transaction_managed_1 = __importDefault$
|
|
9365
|
+
var transaction_promise_1 = __importDefault$T(transactionPromise);
|
|
9366
|
+
var transaction_managed_1 = __importDefault$T(transactionManaged);
|
|
9198
9367
|
/**
|
|
9199
9368
|
* A Session instance is used for handling the connection and
|
|
9200
9369
|
* sending queries through the connection.
|
|
@@ -10006,11 +10175,11 @@
|
|
|
10006
10175
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10007
10176
|
}
|
|
10008
10177
|
};
|
|
10009
|
-
var __importDefault$
|
|
10178
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10010
10179
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10011
10180
|
};
|
|
10012
10181
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
10013
|
-
var result_eager_1 = __importDefault$
|
|
10182
|
+
var result_eager_1 = __importDefault$S(resultEager);
|
|
10014
10183
|
var error_1$1 = error;
|
|
10015
10184
|
/**
|
|
10016
10185
|
* Protocol for transforming {@link Result}.
|
|
@@ -10519,20 +10688,20 @@
|
|
|
10519
10688
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10520
10689
|
}
|
|
10521
10690
|
};
|
|
10522
|
-
var __importDefault$
|
|
10691
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10523
10692
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10524
10693
|
};
|
|
10525
10694
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
10526
10695
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
10527
10696
|
var bookmarks_1 = bookmarks$1;
|
|
10528
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
10697
|
+
var configured_custom_resolver_1 = __importDefault$R(configuredCustomResolver);
|
|
10529
10698
|
var constants_1 = constants$1;
|
|
10530
10699
|
var logger_1 = logger$1;
|
|
10531
|
-
var session_1 = __importDefault$
|
|
10700
|
+
var session_1 = __importDefault$R(session);
|
|
10532
10701
|
var util_1 = util$4;
|
|
10533
10702
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
10534
|
-
var result_transformers_1 = __importDefault$
|
|
10535
|
-
var query_executor_1 = __importDefault$
|
|
10703
|
+
var result_transformers_1 = __importDefault$R(resultTransformers$1);
|
|
10704
|
+
var query_executor_1 = __importDefault$R(queryExecutor);
|
|
10536
10705
|
var error_1 = error;
|
|
10537
10706
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
10538
10707
|
/**
|
|
@@ -11517,12 +11686,12 @@
|
|
|
11517
11686
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
11518
11687
|
}
|
|
11519
11688
|
};
|
|
11520
|
-
var __importDefault$
|
|
11689
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
11521
11690
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11522
11691
|
};
|
|
11523
11692
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11524
11693
|
authTokenManager.staticAuthTokenManager = authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
11525
|
-
var auth_1 = __importDefault$
|
|
11694
|
+
var auth_1 = __importDefault$Q(auth$1);
|
|
11526
11695
|
var internal_1 = internal;
|
|
11527
11696
|
/**
|
|
11528
11697
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11786,7 +11955,7 @@
|
|
|
11786
11955
|
* See the License for the specific language governing permissions and
|
|
11787
11956
|
* limitations under the License.
|
|
11788
11957
|
*/
|
|
11789
|
-
var __extends$
|
|
11958
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11790
11959
|
var extendStatics = function (d, b) {
|
|
11791
11960
|
extendStatics = Object.setPrototypeOf ||
|
|
11792
11961
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12069,7 +12238,7 @@
|
|
|
12069
12238
|
}());
|
|
12070
12239
|
types$1.Config = Config;
|
|
12071
12240
|
var InternalConfig = /** @class */ (function (_super) {
|
|
12072
|
-
__extends$
|
|
12241
|
+
__extends$N(InternalConfig, _super);
|
|
12073
12242
|
function InternalConfig() {
|
|
12074
12243
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12075
12244
|
}
|
|
@@ -12095,7 +12264,7 @@
|
|
|
12095
12264
|
* See the License for the specific language governing permissions and
|
|
12096
12265
|
* limitations under the License.
|
|
12097
12266
|
*/
|
|
12098
|
-
var __extends$
|
|
12267
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12099
12268
|
var extendStatics = function (d, b) {
|
|
12100
12269
|
extendStatics = Object.setPrototypeOf ||
|
|
12101
12270
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12110,8 +12279,8 @@
|
|
|
12110
12279
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12111
12280
|
};
|
|
12112
12281
|
})();
|
|
12113
|
-
var __assign$
|
|
12114
|
-
__assign$
|
|
12282
|
+
var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
12283
|
+
__assign$p = Object.assign || function(t) {
|
|
12115
12284
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12116
12285
|
s = arguments[i];
|
|
12117
12286
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -12119,7 +12288,7 @@
|
|
|
12119
12288
|
}
|
|
12120
12289
|
return t;
|
|
12121
12290
|
};
|
|
12122
|
-
return __assign$
|
|
12291
|
+
return __assign$p.apply(this, arguments);
|
|
12123
12292
|
};
|
|
12124
12293
|
var __createBinding$5 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12125
12294
|
if (k2 === undefined) k2 = k;
|
|
@@ -12146,7 +12315,7 @@
|
|
|
12146
12315
|
};
|
|
12147
12316
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12148
12317
|
clientCertificate.resolveCertificateProvider = clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12149
|
-
var json = __importStar$5(json$
|
|
12318
|
+
var json = __importStar$5(json$3);
|
|
12150
12319
|
/**
|
|
12151
12320
|
* Represents KeyFile represented as file.
|
|
12152
12321
|
*
|
|
@@ -12245,7 +12414,7 @@
|
|
|
12245
12414
|
* @since 5.19
|
|
12246
12415
|
*/
|
|
12247
12416
|
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
12248
|
-
__extends$
|
|
12417
|
+
__extends$M(RotatingClientCertificateProvider, _super);
|
|
12249
12418
|
function RotatingClientCertificateProvider() {
|
|
12250
12419
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12251
12420
|
}
|
|
@@ -12285,7 +12454,7 @@
|
|
|
12285
12454
|
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
12286
12455
|
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
12287
12456
|
}
|
|
12288
|
-
var certificate = __assign$
|
|
12457
|
+
var certificate = __assign$p({}, initialCertificate);
|
|
12289
12458
|
return new InternalRotatingClientCertificateProvider(certificate);
|
|
12290
12459
|
};
|
|
12291
12460
|
return ClientCertificateProviders;
|
|
@@ -12318,7 +12487,7 @@
|
|
|
12318
12487
|
return input;
|
|
12319
12488
|
}
|
|
12320
12489
|
if (isClientClientCertificate(input)) {
|
|
12321
|
-
var certificate_1 = __assign$
|
|
12490
|
+
var certificate_1 = __assign$p({}, input);
|
|
12322
12491
|
return {
|
|
12323
12492
|
getClientCertificate: function () { return certificate_1; },
|
|
12324
12493
|
hasUpdate: function () { return false; }
|
|
@@ -12440,7 +12609,7 @@
|
|
|
12440
12609
|
if (!isClientClientCertificate(certificate)) {
|
|
12441
12610
|
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
12442
12611
|
}
|
|
12443
|
-
this._certificate = __assign$
|
|
12612
|
+
this._certificate = __assign$p({}, certificate);
|
|
12444
12613
|
this._updated = true;
|
|
12445
12614
|
};
|
|
12446
12615
|
return InternalRotatingClientCertificateProvider;
|
|
@@ -12490,11 +12659,13 @@
|
|
|
12490
12659
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12491
12660
|
};
|
|
12492
12661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12493
|
-
exports.
|
|
12494
|
-
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;
|
|
12495
12664
|
var error_1 = error;
|
|
12496
12665
|
Object.defineProperty(exports, "newError", { enumerable: true, get: function () { return error_1.newError; } });
|
|
12497
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; } });
|
|
12498
12669
|
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return error_1.isRetriableError; } });
|
|
12499
12670
|
var integer_1 = __importStar(integer);
|
|
12500
12671
|
exports.Integer = integer_1.default;
|
|
@@ -12581,7 +12752,7 @@
|
|
|
12581
12752
|
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return driver_2.routing; } });
|
|
12582
12753
|
var types = __importStar(types$1);
|
|
12583
12754
|
exports.types = types;
|
|
12584
|
-
var json = __importStar(json$
|
|
12755
|
+
var json = __importStar(json$3);
|
|
12585
12756
|
exports.json = json;
|
|
12586
12757
|
var result_transformers_1 = __importDefault(resultTransformers$1);
|
|
12587
12758
|
exports.resultTransformers = result_transformers_1.default;
|
|
@@ -12606,6 +12777,8 @@
|
|
|
12606
12777
|
authTokenManagers: auth_token_manager_1.authTokenManagers,
|
|
12607
12778
|
newError: error_1.newError,
|
|
12608
12779
|
Neo4jError: error_1.Neo4jError,
|
|
12780
|
+
newGQLError: error_1.newGQLError,
|
|
12781
|
+
GQLError: error_1.GQLError,
|
|
12609
12782
|
isRetriableError: error_1.isRetriableError,
|
|
12610
12783
|
error: error$1,
|
|
12611
12784
|
Integer: integer_1.default,
|
|
@@ -13438,7 +13611,7 @@
|
|
|
13438
13611
|
|
|
13439
13612
|
var OperatorSubscriber$1 = {};
|
|
13440
13613
|
|
|
13441
|
-
var __extends$
|
|
13614
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13442
13615
|
var extendStatics = function (d, b) {
|
|
13443
13616
|
extendStatics = Object.setPrototypeOf ||
|
|
13444
13617
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13461,7 +13634,7 @@
|
|
|
13461
13634
|
}
|
|
13462
13635
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
13463
13636
|
var OperatorSubscriber = (function (_super) {
|
|
13464
|
-
__extends$
|
|
13637
|
+
__extends$L(OperatorSubscriber, _super);
|
|
13465
13638
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
13466
13639
|
var _this = _super.call(this, destination) || this;
|
|
13467
13640
|
_this.onFinalize = onFinalize;
|
|
@@ -13545,7 +13718,7 @@
|
|
|
13545
13718
|
}
|
|
13546
13719
|
refCount$1.refCount = refCount;
|
|
13547
13720
|
|
|
13548
|
-
var __extends$
|
|
13721
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13549
13722
|
var extendStatics = function (d, b) {
|
|
13550
13723
|
extendStatics = Object.setPrototypeOf ||
|
|
13551
13724
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13568,7 +13741,7 @@
|
|
|
13568
13741
|
var OperatorSubscriber_1$U = OperatorSubscriber$1;
|
|
13569
13742
|
var lift_1$13 = lift;
|
|
13570
13743
|
var ConnectableObservable = (function (_super) {
|
|
13571
|
-
__extends$
|
|
13744
|
+
__extends$K(ConnectableObservable, _super);
|
|
13572
13745
|
function ConnectableObservable(source, subjectFactory) {
|
|
13573
13746
|
var _this = _super.call(this) || this;
|
|
13574
13747
|
_this.source = source;
|
|
@@ -13755,7 +13928,7 @@
|
|
|
13755
13928
|
};
|
|
13756
13929
|
});
|
|
13757
13930
|
|
|
13758
|
-
var __extends$
|
|
13931
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13759
13932
|
var extendStatics = function (d, b) {
|
|
13760
13933
|
extendStatics = Object.setPrototypeOf ||
|
|
13761
13934
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13789,7 +13962,7 @@
|
|
|
13789
13962
|
var arrRemove_1$6 = arrRemove$1;
|
|
13790
13963
|
var errorContext_1 = errorContext$1;
|
|
13791
13964
|
var Subject = (function (_super) {
|
|
13792
|
-
__extends$
|
|
13965
|
+
__extends$J(Subject, _super);
|
|
13793
13966
|
function Subject() {
|
|
13794
13967
|
var _this = _super.call(this) || this;
|
|
13795
13968
|
_this.closed = false;
|
|
@@ -13917,7 +14090,7 @@
|
|
|
13917
14090
|
}(Observable_1$l.Observable));
|
|
13918
14091
|
Subject$1.Subject = Subject;
|
|
13919
14092
|
var AnonymousSubject = (function (_super) {
|
|
13920
|
-
__extends$
|
|
14093
|
+
__extends$J(AnonymousSubject, _super);
|
|
13921
14094
|
function AnonymousSubject(destination, source) {
|
|
13922
14095
|
var _this = _super.call(this) || this;
|
|
13923
14096
|
_this.destination = destination;
|
|
@@ -13946,7 +14119,7 @@
|
|
|
13946
14119
|
|
|
13947
14120
|
var BehaviorSubject$1 = {};
|
|
13948
14121
|
|
|
13949
|
-
var __extends$
|
|
14122
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13950
14123
|
var extendStatics = function (d, b) {
|
|
13951
14124
|
extendStatics = Object.setPrototypeOf ||
|
|
13952
14125
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13965,7 +14138,7 @@
|
|
|
13965
14138
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
13966
14139
|
var Subject_1$e = Subject$1;
|
|
13967
14140
|
var BehaviorSubject = (function (_super) {
|
|
13968
|
-
__extends$
|
|
14141
|
+
__extends$I(BehaviorSubject, _super);
|
|
13969
14142
|
function BehaviorSubject(_value) {
|
|
13970
14143
|
var _this = _super.call(this) || this;
|
|
13971
14144
|
_this._value = _value;
|
|
@@ -14014,7 +14187,7 @@
|
|
|
14014
14187
|
|
|
14015
14188
|
}(dateTimestampProvider));
|
|
14016
14189
|
|
|
14017
|
-
var __extends$
|
|
14190
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14018
14191
|
var extendStatics = function (d, b) {
|
|
14019
14192
|
extendStatics = Object.setPrototypeOf ||
|
|
14020
14193
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14034,7 +14207,7 @@
|
|
|
14034
14207
|
var Subject_1$d = Subject$1;
|
|
14035
14208
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
14036
14209
|
var ReplaySubject = (function (_super) {
|
|
14037
|
-
__extends$
|
|
14210
|
+
__extends$H(ReplaySubject, _super);
|
|
14038
14211
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
14039
14212
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
14040
14213
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -14090,7 +14263,7 @@
|
|
|
14090
14263
|
|
|
14091
14264
|
var AsyncSubject$1 = {};
|
|
14092
14265
|
|
|
14093
|
-
var __extends$
|
|
14266
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14094
14267
|
var extendStatics = function (d, b) {
|
|
14095
14268
|
extendStatics = Object.setPrototypeOf ||
|
|
14096
14269
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14109,7 +14282,7 @@
|
|
|
14109
14282
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
14110
14283
|
var Subject_1$c = Subject$1;
|
|
14111
14284
|
var AsyncSubject = (function (_super) {
|
|
14112
|
-
__extends$
|
|
14285
|
+
__extends$G(AsyncSubject, _super);
|
|
14113
14286
|
function AsyncSubject() {
|
|
14114
14287
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14115
14288
|
_this._value = null;
|
|
@@ -14153,7 +14326,7 @@
|
|
|
14153
14326
|
|
|
14154
14327
|
var Action$1 = {};
|
|
14155
14328
|
|
|
14156
|
-
var __extends$
|
|
14329
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14157
14330
|
var extendStatics = function (d, b) {
|
|
14158
14331
|
extendStatics = Object.setPrototypeOf ||
|
|
14159
14332
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14172,7 +14345,7 @@
|
|
|
14172
14345
|
Action$1.Action = void 0;
|
|
14173
14346
|
var Subscription_1$5 = Subscription$1;
|
|
14174
14347
|
var Action = (function (_super) {
|
|
14175
|
-
__extends$
|
|
14348
|
+
__extends$F(Action, _super);
|
|
14176
14349
|
function Action(scheduler, work) {
|
|
14177
14350
|
return _super.call(this) || this;
|
|
14178
14351
|
}
|
|
@@ -14230,7 +14403,7 @@
|
|
|
14230
14403
|
|
|
14231
14404
|
}(intervalProvider));
|
|
14232
14405
|
|
|
14233
|
-
var __extends$
|
|
14406
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14234
14407
|
var extendStatics = function (d, b) {
|
|
14235
14408
|
extendStatics = Object.setPrototypeOf ||
|
|
14236
14409
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14251,7 +14424,7 @@
|
|
|
14251
14424
|
var intervalProvider_1 = intervalProvider;
|
|
14252
14425
|
var arrRemove_1$5 = arrRemove$1;
|
|
14253
14426
|
var AsyncAction = (function (_super) {
|
|
14254
|
-
__extends$
|
|
14427
|
+
__extends$E(AsyncAction, _super);
|
|
14255
14428
|
function AsyncAction(scheduler, work) {
|
|
14256
14429
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14257
14430
|
_this.scheduler = scheduler;
|
|
@@ -14416,7 +14589,7 @@
|
|
|
14416
14589
|
|
|
14417
14590
|
}(immediateProvider));
|
|
14418
14591
|
|
|
14419
|
-
var __extends$
|
|
14592
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14420
14593
|
var extendStatics = function (d, b) {
|
|
14421
14594
|
extendStatics = Object.setPrototypeOf ||
|
|
14422
14595
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14436,7 +14609,7 @@
|
|
|
14436
14609
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
14437
14610
|
var immediateProvider_1 = immediateProvider;
|
|
14438
14611
|
var AsapAction = (function (_super) {
|
|
14439
|
-
__extends$
|
|
14612
|
+
__extends$D(AsapAction, _super);
|
|
14440
14613
|
function AsapAction(scheduler, work) {
|
|
14441
14614
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14442
14615
|
_this.scheduler = scheduler;
|
|
@@ -14494,7 +14667,7 @@
|
|
|
14494
14667
|
}());
|
|
14495
14668
|
Scheduler$1.Scheduler = Scheduler;
|
|
14496
14669
|
|
|
14497
|
-
var __extends$
|
|
14670
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14498
14671
|
var extendStatics = function (d, b) {
|
|
14499
14672
|
extendStatics = Object.setPrototypeOf ||
|
|
14500
14673
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14513,7 +14686,7 @@
|
|
|
14513
14686
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
14514
14687
|
var Scheduler_1 = Scheduler$1;
|
|
14515
14688
|
var AsyncScheduler = (function (_super) {
|
|
14516
|
-
__extends$
|
|
14689
|
+
__extends$C(AsyncScheduler, _super);
|
|
14517
14690
|
function AsyncScheduler(SchedulerAction, now) {
|
|
14518
14691
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
14519
14692
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -14546,7 +14719,7 @@
|
|
|
14546
14719
|
}(Scheduler_1.Scheduler));
|
|
14547
14720
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
14548
14721
|
|
|
14549
|
-
var __extends$
|
|
14722
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14550
14723
|
var extendStatics = function (d, b) {
|
|
14551
14724
|
extendStatics = Object.setPrototypeOf ||
|
|
14552
14725
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14565,7 +14738,7 @@
|
|
|
14565
14738
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
14566
14739
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
14567
14740
|
var AsapScheduler = (function (_super) {
|
|
14568
|
-
__extends$
|
|
14741
|
+
__extends$B(AsapScheduler, _super);
|
|
14569
14742
|
function AsapScheduler() {
|
|
14570
14743
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14571
14744
|
}
|
|
@@ -14619,7 +14792,7 @@
|
|
|
14619
14792
|
|
|
14620
14793
|
var QueueAction$1 = {};
|
|
14621
14794
|
|
|
14622
|
-
var __extends$
|
|
14795
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14623
14796
|
var extendStatics = function (d, b) {
|
|
14624
14797
|
extendStatics = Object.setPrototypeOf ||
|
|
14625
14798
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14638,7 +14811,7 @@
|
|
|
14638
14811
|
QueueAction$1.QueueAction = void 0;
|
|
14639
14812
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
14640
14813
|
var QueueAction = (function (_super) {
|
|
14641
|
-
__extends$
|
|
14814
|
+
__extends$A(QueueAction, _super);
|
|
14642
14815
|
function QueueAction(scheduler, work) {
|
|
14643
14816
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14644
14817
|
_this.scheduler = scheduler;
|
|
@@ -14672,7 +14845,7 @@
|
|
|
14672
14845
|
|
|
14673
14846
|
var QueueScheduler$1 = {};
|
|
14674
14847
|
|
|
14675
|
-
var __extends$
|
|
14848
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14676
14849
|
var extendStatics = function (d, b) {
|
|
14677
14850
|
extendStatics = Object.setPrototypeOf ||
|
|
14678
14851
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14691,7 +14864,7 @@
|
|
|
14691
14864
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
14692
14865
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
14693
14866
|
var QueueScheduler = (function (_super) {
|
|
14694
|
-
__extends$
|
|
14867
|
+
__extends$z(QueueScheduler, _super);
|
|
14695
14868
|
function QueueScheduler() {
|
|
14696
14869
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14697
14870
|
}
|
|
@@ -14713,7 +14886,7 @@
|
|
|
14713
14886
|
|
|
14714
14887
|
var AnimationFrameAction$1 = {};
|
|
14715
14888
|
|
|
14716
|
-
var __extends$
|
|
14889
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14717
14890
|
var extendStatics = function (d, b) {
|
|
14718
14891
|
extendStatics = Object.setPrototypeOf ||
|
|
14719
14892
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14733,7 +14906,7 @@
|
|
|
14733
14906
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
14734
14907
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
14735
14908
|
var AnimationFrameAction = (function (_super) {
|
|
14736
|
-
__extends$
|
|
14909
|
+
__extends$y(AnimationFrameAction, _super);
|
|
14737
14910
|
function AnimationFrameAction(scheduler, work) {
|
|
14738
14911
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14739
14912
|
_this.scheduler = scheduler;
|
|
@@ -14767,7 +14940,7 @@
|
|
|
14767
14940
|
|
|
14768
14941
|
var AnimationFrameScheduler$1 = {};
|
|
14769
14942
|
|
|
14770
|
-
var __extends$
|
|
14943
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14771
14944
|
var extendStatics = function (d, b) {
|
|
14772
14945
|
extendStatics = Object.setPrototypeOf ||
|
|
14773
14946
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14786,7 +14959,7 @@
|
|
|
14786
14959
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
14787
14960
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
14788
14961
|
var AnimationFrameScheduler = (function (_super) {
|
|
14789
|
-
__extends$
|
|
14962
|
+
__extends$x(AnimationFrameScheduler, _super);
|
|
14790
14963
|
function AnimationFrameScheduler() {
|
|
14791
14964
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14792
14965
|
}
|
|
@@ -14826,7 +14999,7 @@
|
|
|
14826
14999
|
|
|
14827
15000
|
var VirtualTimeScheduler$1 = {};
|
|
14828
15001
|
|
|
14829
|
-
var __extends$
|
|
15002
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14830
15003
|
var extendStatics = function (d, b) {
|
|
14831
15004
|
extendStatics = Object.setPrototypeOf ||
|
|
14832
15005
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14847,7 +15020,7 @@
|
|
|
14847
15020
|
var Subscription_1$4 = Subscription$1;
|
|
14848
15021
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
14849
15022
|
var VirtualTimeScheduler = (function (_super) {
|
|
14850
|
-
__extends$
|
|
15023
|
+
__extends$w(VirtualTimeScheduler, _super);
|
|
14851
15024
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
14852
15025
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
14853
15026
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -14880,7 +15053,7 @@
|
|
|
14880
15053
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
14881
15054
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
14882
15055
|
var VirtualAction = (function (_super) {
|
|
14883
|
-
__extends$
|
|
15056
|
+
__extends$w(VirtualAction, _super);
|
|
14884
15057
|
function VirtualAction(scheduler, work, index) {
|
|
14885
15058
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
14886
15059
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -20702,7 +20875,7 @@
|
|
|
20702
20875
|
* limitations under the License.
|
|
20703
20876
|
*/
|
|
20704
20877
|
/* eslint-disable-next-line no-unused-vars */
|
|
20705
|
-
var neo4j_driver_core_1$
|
|
20878
|
+
var neo4j_driver_core_1$L = lib$1;
|
|
20706
20879
|
var rxjs_1$3 = cjs;
|
|
20707
20880
|
var operators_1$2 = operators;
|
|
20708
20881
|
var States = {
|
|
@@ -20836,7 +21009,7 @@
|
|
|
20836
21009
|
});
|
|
20837
21010
|
}
|
|
20838
21011
|
else if (recordsObserver) {
|
|
20839
|
-
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.'));
|
|
20840
21013
|
}
|
|
20841
21014
|
return function () {
|
|
20842
21015
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -21027,7 +21200,7 @@
|
|
|
21027
21200
|
|
|
21028
21201
|
var transactionRx = {};
|
|
21029
21202
|
|
|
21030
|
-
var __importDefault$
|
|
21203
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21031
21204
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21032
21205
|
};
|
|
21033
21206
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -21048,9 +21221,9 @@
|
|
|
21048
21221
|
* limitations under the License.
|
|
21049
21222
|
*/
|
|
21050
21223
|
var rxjs_1$2 = cjs;
|
|
21051
|
-
var result_rx_1$1 = __importDefault$
|
|
21224
|
+
var result_rx_1$1 = __importDefault$P(resultRx);
|
|
21052
21225
|
// eslint-disable-next-line no-unused-vars
|
|
21053
|
-
__importDefault$
|
|
21226
|
+
__importDefault$P(lib$1);
|
|
21054
21227
|
/**
|
|
21055
21228
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
21056
21229
|
*/
|
|
@@ -21149,7 +21322,7 @@
|
|
|
21149
21322
|
|
|
21150
21323
|
var transactionManagedRx = {};
|
|
21151
21324
|
|
|
21152
|
-
var __importDefault$
|
|
21325
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21153
21326
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21154
21327
|
};
|
|
21155
21328
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -21170,9 +21343,9 @@
|
|
|
21170
21343
|
* limitations under the License.
|
|
21171
21344
|
*/
|
|
21172
21345
|
// eslint-disable-next-line no-unused-vars
|
|
21173
|
-
__importDefault$
|
|
21346
|
+
__importDefault$O(resultRx);
|
|
21174
21347
|
// eslint-disable-next-line no-unused-vars
|
|
21175
|
-
__importDefault$
|
|
21348
|
+
__importDefault$O(transactionRx);
|
|
21176
21349
|
/**
|
|
21177
21350
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
21178
21351
|
*
|
|
@@ -21230,13 +21403,13 @@
|
|
|
21230
21403
|
* limitations under the License.
|
|
21231
21404
|
*/
|
|
21232
21405
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
21233
|
-
var neo4j_driver_core_1$
|
|
21406
|
+
var neo4j_driver_core_1$K = lib$1;
|
|
21234
21407
|
// eslint-disable-next-line no-unused-vars
|
|
21235
21408
|
var rxjs_1$1 = cjs;
|
|
21236
21409
|
var operators_1$1 = operators;
|
|
21237
21410
|
// eslint-disable-next-line no-unused-vars
|
|
21238
|
-
neo4j_driver_core_1$
|
|
21239
|
-
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;
|
|
21240
21413
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
21241
21414
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
21242
21415
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -21267,13 +21440,13 @@
|
|
|
21267
21440
|
var retryCount = 1;
|
|
21268
21441
|
var delayDuration = _this._initialDelay;
|
|
21269
21442
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
21270
|
-
if (!(0, neo4j_driver_core_1$
|
|
21443
|
+
if (!(0, neo4j_driver_core_1$K.isRetriableError)(err)) {
|
|
21271
21444
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
21272
21445
|
}
|
|
21273
21446
|
handledExceptions.push(err);
|
|
21274
21447
|
if (retryCount >= 2 &&
|
|
21275
21448
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
21276
|
-
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);
|
|
21277
21450
|
error_1.seenErrors = handledExceptions;
|
|
21278
21451
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
21279
21452
|
}
|
|
@@ -21301,7 +21474,7 @@
|
|
|
21301
21474
|
return defaultValue;
|
|
21302
21475
|
}
|
|
21303
21476
|
|
|
21304
|
-
var __importDefault$
|
|
21477
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21305
21478
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21306
21479
|
};
|
|
21307
21480
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -21323,13 +21496,13 @@
|
|
|
21323
21496
|
*/
|
|
21324
21497
|
var rxjs_1 = cjs;
|
|
21325
21498
|
var operators_1 = operators;
|
|
21326
|
-
var result_rx_1 = __importDefault$
|
|
21499
|
+
var result_rx_1 = __importDefault$N(resultRx);
|
|
21327
21500
|
// eslint-disable-next-line no-unused-vars
|
|
21328
|
-
var neo4j_driver_core_1$
|
|
21329
|
-
var transaction_rx_1 = __importDefault$
|
|
21330
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
21331
|
-
var retry_logic_rx_1 = __importDefault$
|
|
21332
|
-
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;
|
|
21333
21506
|
/**
|
|
21334
21507
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
21335
21508
|
*/
|
|
@@ -21567,7 +21740,7 @@
|
|
|
21567
21740
|
* See the License for the specific language governing permissions and
|
|
21568
21741
|
* limitations under the License.
|
|
21569
21742
|
*/
|
|
21570
|
-
var __extends$
|
|
21743
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21571
21744
|
var extendStatics = function (d, b) {
|
|
21572
21745
|
extendStatics = Object.setPrototypeOf ||
|
|
21573
21746
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21582,15 +21755,15 @@
|
|
|
21582
21755
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21583
21756
|
};
|
|
21584
21757
|
})();
|
|
21585
|
-
var __importDefault$
|
|
21758
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21586
21759
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21587
21760
|
};
|
|
21588
21761
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
21589
21762
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
21590
|
-
var neo4j_driver_core_1$
|
|
21591
|
-
var session_rx_1 = __importDefault$
|
|
21592
|
-
var FETCH_ALL$6 = neo4j_driver_core_1$
|
|
21593
|
-
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;
|
|
21594
21767
|
driver$1.READ = READ$2;
|
|
21595
21768
|
driver$1.WRITE = WRITE$2;
|
|
21596
21769
|
/**
|
|
@@ -21604,7 +21777,7 @@
|
|
|
21604
21777
|
* @access public
|
|
21605
21778
|
*/
|
|
21606
21779
|
var Driver = /** @class */ (function (_super) {
|
|
21607
|
-
__extends$
|
|
21780
|
+
__extends$v(Driver, _super);
|
|
21608
21781
|
function Driver() {
|
|
21609
21782
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21610
21783
|
}
|
|
@@ -21643,7 +21816,7 @@
|
|
|
21643
21816
|
});
|
|
21644
21817
|
};
|
|
21645
21818
|
return Driver;
|
|
21646
|
-
}(neo4j_driver_core_1$
|
|
21819
|
+
}(neo4j_driver_core_1$I.Driver));
|
|
21647
21820
|
driver$1.Driver = Driver;
|
|
21648
21821
|
/**
|
|
21649
21822
|
* @private
|
|
@@ -21689,7 +21862,7 @@
|
|
|
21689
21862
|
// This is set up this way to keep the version in the code in
|
|
21690
21863
|
// sync with the npm package version, and to allow the build
|
|
21691
21864
|
// system to control version names at packaging time.
|
|
21692
|
-
version$1.default = '5.
|
|
21865
|
+
version$1.default = '5.26.0';
|
|
21693
21866
|
|
|
21694
21867
|
var lib = {};
|
|
21695
21868
|
|
|
@@ -21789,7 +21962,7 @@
|
|
|
21789
21962
|
}());
|
|
21790
21963
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
21791
21964
|
|
|
21792
|
-
var __extends$
|
|
21965
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21793
21966
|
var extendStatics = function (d, b) {
|
|
21794
21967
|
extendStatics = Object.setPrototypeOf ||
|
|
21795
21968
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21804,7 +21977,7 @@
|
|
|
21804
21977
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21805
21978
|
};
|
|
21806
21979
|
})();
|
|
21807
|
-
var __importDefault$
|
|
21980
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21808
21981
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21809
21982
|
};
|
|
21810
21983
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -21824,10 +21997,10 @@
|
|
|
21824
21997
|
* See the License for the specific language governing permissions and
|
|
21825
21998
|
* limitations under the License.
|
|
21826
21999
|
*/
|
|
21827
|
-
var round_robin_array_index_1 = __importDefault$
|
|
21828
|
-
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);
|
|
21829
22002
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
21830
|
-
__extends$
|
|
22003
|
+
__extends$u(LeastConnectedLoadBalancingStrategy, _super);
|
|
21831
22004
|
/**
|
|
21832
22005
|
* @constructor
|
|
21833
22006
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -21883,7 +22056,7 @@
|
|
|
21883
22056
|
}(load_balancing_strategy_1$1.default));
|
|
21884
22057
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
21885
22058
|
|
|
21886
|
-
var __importDefault$
|
|
22059
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21887
22060
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21888
22061
|
};
|
|
21889
22062
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -21904,9 +22077,9 @@
|
|
|
21904
22077
|
* See the License for the specific language governing permissions and
|
|
21905
22078
|
* limitations under the License.
|
|
21906
22079
|
*/
|
|
21907
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
22080
|
+
var load_balancing_strategy_1 = __importDefault$K(loadBalancingStrategy);
|
|
21908
22081
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
21909
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
22082
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$K(leastConnectedLoadBalancingStrategy);
|
|
21910
22083
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
21911
22084
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
21912
22085
|
|
|
@@ -24291,7 +24464,7 @@
|
|
|
24291
24464
|
* See the License for the specific language governing permissions and
|
|
24292
24465
|
* limitations under the License.
|
|
24293
24466
|
*/
|
|
24294
|
-
var __extends$
|
|
24467
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24295
24468
|
var extendStatics = function (d, b) {
|
|
24296
24469
|
extendStatics = Object.setPrototypeOf ||
|
|
24297
24470
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24627,7 +24800,7 @@
|
|
|
24627
24800
|
* @access private
|
|
24628
24801
|
*/
|
|
24629
24802
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
24630
|
-
__extends$
|
|
24803
|
+
__extends$t(SliceBuffer, _super);
|
|
24631
24804
|
function SliceBuffer(start, length, inner) {
|
|
24632
24805
|
var _this = _super.call(this, length) || this;
|
|
24633
24806
|
_this._start = start;
|
|
@@ -24671,12 +24844,12 @@
|
|
|
24671
24844
|
* See the License for the specific language governing permissions and
|
|
24672
24845
|
* limitations under the License.
|
|
24673
24846
|
*/
|
|
24674
|
-
var __importDefault$
|
|
24847
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24675
24848
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24676
24849
|
};
|
|
24677
24850
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
24678
24851
|
buf.BaseBuffer = void 0;
|
|
24679
|
-
var base_buf_1$1 = __importDefault$
|
|
24852
|
+
var base_buf_1$1 = __importDefault$J(baseBuf);
|
|
24680
24853
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
24681
24854
|
buf.default = base_buf_1$1.default;
|
|
24682
24855
|
|
|
@@ -24696,7 +24869,7 @@
|
|
|
24696
24869
|
* See the License for the specific language governing permissions and
|
|
24697
24870
|
* limitations under the License.
|
|
24698
24871
|
*/
|
|
24699
|
-
var __extends$
|
|
24872
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24700
24873
|
var extendStatics = function (d, b) {
|
|
24701
24874
|
extendStatics = Object.setPrototypeOf ||
|
|
24702
24875
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24711,15 +24884,15 @@
|
|
|
24711
24884
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24712
24885
|
};
|
|
24713
24886
|
})();
|
|
24714
|
-
var __importDefault$
|
|
24887
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24715
24888
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24716
24889
|
};
|
|
24717
24890
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
24718
24891
|
channelBuf.alloc = void 0;
|
|
24719
|
-
var buffer_1$1 = __importDefault$
|
|
24720
|
-
var buf_1$1 = __importDefault$
|
|
24892
|
+
var buffer_1$1 = __importDefault$I(buffer);
|
|
24893
|
+
var buf_1$1 = __importDefault$I(buf);
|
|
24721
24894
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
24722
|
-
__extends$
|
|
24895
|
+
__extends$s(ChannelBuffer, _super);
|
|
24723
24896
|
function ChannelBuffer(arg) {
|
|
24724
24897
|
var _this = this;
|
|
24725
24898
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -24787,7 +24960,7 @@
|
|
|
24787
24960
|
}
|
|
24788
24961
|
}
|
|
24789
24962
|
|
|
24790
|
-
var __importDefault$
|
|
24963
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24791
24964
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24792
24965
|
};
|
|
24793
24966
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -24808,9 +24981,9 @@
|
|
|
24808
24981
|
* limitations under the License.
|
|
24809
24982
|
*/
|
|
24810
24983
|
/* eslint-env browser */
|
|
24811
|
-
var channel_buf_1$3 = __importDefault$
|
|
24812
|
-
var neo4j_driver_core_1$
|
|
24813
|
-
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;
|
|
24814
24987
|
var WS_OPEN = 1;
|
|
24815
24988
|
var WS_CLOSED = 3;
|
|
24816
24989
|
/**
|
|
@@ -24876,7 +25049,7 @@
|
|
|
24876
25049
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
24877
25050
|
if (this._connectionTimeoutFired) {
|
|
24878
25051
|
// timeout fired - not connected within configured time
|
|
24879
|
-
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);
|
|
24880
25053
|
if (this.onerror) {
|
|
24881
25054
|
this.onerror(this._error);
|
|
24882
25055
|
}
|
|
@@ -24885,7 +25058,7 @@
|
|
|
24885
25058
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
24886
25059
|
if (this._open && !this._timedout) {
|
|
24887
25060
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
24888
|
-
this._error = (0, neo4j_driver_core_1$
|
|
25061
|
+
this._error = (0, neo4j_driver_core_1$H.newError)('WebSocket connection failure. Due to security ' +
|
|
24889
25062
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
24890
25063
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
24891
25064
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -24924,7 +25097,7 @@
|
|
|
24924
25097
|
}
|
|
24925
25098
|
}
|
|
24926
25099
|
else {
|
|
24927
|
-
throw (0, neo4j_driver_core_1$
|
|
25100
|
+
throw (0, neo4j_driver_core_1$H.newError)("Don't know how to send buffer: " + buffer);
|
|
24928
25101
|
}
|
|
24929
25102
|
};
|
|
24930
25103
|
/**
|
|
@@ -24995,7 +25168,7 @@
|
|
|
24995
25168
|
_this._receiveTimeoutId = null;
|
|
24996
25169
|
_this._timedout = true;
|
|
24997
25170
|
_this.stopReceiveTimeout();
|
|
24998
|
-
_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);
|
|
24999
25172
|
_this.close();
|
|
25000
25173
|
if (_this.onerror) {
|
|
25001
25174
|
_this.onerror(_this._error);
|
|
@@ -25104,7 +25277,7 @@
|
|
|
25104
25277
|
return { scheme: 'wss', error: null };
|
|
25105
25278
|
}
|
|
25106
25279
|
else {
|
|
25107
|
-
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 ' +
|
|
25108
25281
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
25109
25282
|
trust +
|
|
25110
25283
|
' is not supported. Please ' +
|
|
@@ -25179,7 +25352,7 @@
|
|
|
25179
25352
|
* See the License for the specific language governing permissions and
|
|
25180
25353
|
* limitations under the License.
|
|
25181
25354
|
*/
|
|
25182
|
-
var __extends$
|
|
25355
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25183
25356
|
var extendStatics = function (d, b) {
|
|
25184
25357
|
extendStatics = Object.setPrototypeOf ||
|
|
25185
25358
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25195,10 +25368,10 @@
|
|
|
25195
25368
|
};
|
|
25196
25369
|
})();
|
|
25197
25370
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
25198
|
-
var neo4j_driver_core_1$
|
|
25199
|
-
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;
|
|
25200
25373
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
25201
|
-
__extends$
|
|
25374
|
+
__extends$r(BrowserHostNameResolver, _super);
|
|
25202
25375
|
function BrowserHostNameResolver() {
|
|
25203
25376
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25204
25377
|
}
|
|
@@ -25290,14 +25463,14 @@
|
|
|
25290
25463
|
* See the License for the specific language governing permissions and
|
|
25291
25464
|
* limitations under the License.
|
|
25292
25465
|
*/
|
|
25293
|
-
var __importDefault$
|
|
25466
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25294
25467
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25295
25468
|
};
|
|
25296
25469
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
25297
25470
|
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
25298
|
-
var browser_channel_1 = __importDefault$
|
|
25299
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
25300
|
-
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);
|
|
25301
25474
|
/*
|
|
25302
25475
|
|
|
25303
25476
|
This module exports a set of components to be used in browser environment.
|
|
@@ -25332,7 +25505,7 @@
|
|
|
25332
25505
|
* See the License for the specific language governing permissions and
|
|
25333
25506
|
* limitations under the License.
|
|
25334
25507
|
*/
|
|
25335
|
-
var __extends$
|
|
25508
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25336
25509
|
var extendStatics = function (d, b) {
|
|
25337
25510
|
extendStatics = Object.setPrototypeOf ||
|
|
25338
25511
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25354,7 +25527,7 @@
|
|
|
25354
25527
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
25355
25528
|
*/
|
|
25356
25529
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
25357
|
-
__extends$
|
|
25530
|
+
__extends$q(CombinedBuffer, _super);
|
|
25358
25531
|
function CombinedBuffer(buffers) {
|
|
25359
25532
|
var _this = this;
|
|
25360
25533
|
var length = 0;
|
|
@@ -25420,7 +25593,7 @@
|
|
|
25420
25593
|
* See the License for the specific language governing permissions and
|
|
25421
25594
|
* limitations under the License.
|
|
25422
25595
|
*/
|
|
25423
|
-
var __extends$
|
|
25596
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25424
25597
|
var extendStatics = function (d, b) {
|
|
25425
25598
|
extendStatics = Object.setPrototypeOf ||
|
|
25426
25599
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25435,14 +25608,14 @@
|
|
|
25435
25608
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25436
25609
|
};
|
|
25437
25610
|
})();
|
|
25438
|
-
var __importDefault$
|
|
25611
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25439
25612
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25440
25613
|
};
|
|
25441
25614
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
25442
25615
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
25443
|
-
var base_buf_1 = __importDefault$
|
|
25616
|
+
var base_buf_1 = __importDefault$F(baseBuf);
|
|
25444
25617
|
var channel_buf_1$1 = channelBuf;
|
|
25445
|
-
var combined_buf_1 = __importDefault$
|
|
25618
|
+
var combined_buf_1 = __importDefault$F(combinedBuf);
|
|
25446
25619
|
var _CHUNK_HEADER_SIZE = 2;
|
|
25447
25620
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
25448
25621
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -25451,7 +25624,7 @@
|
|
|
25451
25624
|
* @access private
|
|
25452
25625
|
*/
|
|
25453
25626
|
var Chunker = /** @class */ (function (_super) {
|
|
25454
|
-
__extends$
|
|
25627
|
+
__extends$p(Chunker, _super);
|
|
25455
25628
|
function Chunker(channel, bufferSize) {
|
|
25456
25629
|
var _this = _super.call(this, 0) || this;
|
|
25457
25630
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -25634,9 +25807,9 @@
|
|
|
25634
25807
|
* limitations under the License.
|
|
25635
25808
|
*/
|
|
25636
25809
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
25637
|
-
var neo4j_driver_core_1$
|
|
25638
|
-
var _a$c = neo4j_driver_core_1$
|
|
25639
|
-
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;
|
|
25640
25813
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
25641
25814
|
null,
|
|
25642
25815
|
undefined,
|
|
@@ -25676,14 +25849,14 @@
|
|
|
25676
25849
|
function extractEncrypted(driverConfig) {
|
|
25677
25850
|
var value = driverConfig.encrypted;
|
|
25678
25851
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
25679
|
-
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));
|
|
25680
25853
|
}
|
|
25681
25854
|
return value;
|
|
25682
25855
|
}
|
|
25683
25856
|
function extractTrust(driverConfig) {
|
|
25684
25857
|
var value = driverConfig.trust;
|
|
25685
25858
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
25686
|
-
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));
|
|
25687
25860
|
}
|
|
25688
25861
|
return value;
|
|
25689
25862
|
}
|
|
@@ -26058,13 +26231,13 @@
|
|
|
26058
26231
|
* See the License for the specific language governing permissions and
|
|
26059
26232
|
* limitations under the License.
|
|
26060
26233
|
*/
|
|
26061
|
-
var __importDefault$
|
|
26234
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26062
26235
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26063
26236
|
};
|
|
26064
26237
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
26065
|
-
var channel_buf_1 = __importDefault$
|
|
26066
|
-
var neo4j_driver_core_1$
|
|
26067
|
-
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);
|
|
26068
26241
|
var string_decoder_1 = string_decoder;
|
|
26069
26242
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
26070
26243
|
function encode(str) {
|
|
@@ -26078,7 +26251,7 @@
|
|
|
26078
26251
|
return decodeCombinedBuffer(buffer, length);
|
|
26079
26252
|
}
|
|
26080
26253
|
else {
|
|
26081
|
-
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, "'"));
|
|
26082
26255
|
}
|
|
26083
26256
|
}
|
|
26084
26257
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -26195,7 +26368,7 @@
|
|
|
26195
26368
|
*/
|
|
26196
26369
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26197
26370
|
var channel_1$4 = channel;
|
|
26198
|
-
var neo4j_driver_core_1$
|
|
26371
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
26199
26372
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
26200
26373
|
function version(major, minor) {
|
|
26201
26374
|
return {
|
|
@@ -26205,7 +26378,7 @@
|
|
|
26205
26378
|
}
|
|
26206
26379
|
function createHandshakeMessage(versions) {
|
|
26207
26380
|
if (versions.length > 4) {
|
|
26208
|
-
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');
|
|
26209
26382
|
}
|
|
26210
26383
|
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
26211
26384
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -26233,7 +26406,7 @@
|
|
|
26233
26406
|
];
|
|
26234
26407
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
26235
26408
|
log.error('Handshake failed since server responded with HTTP.');
|
|
26236
|
-
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 ' +
|
|
26237
26410
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
26238
26411
|
}
|
|
26239
26412
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -26244,7 +26417,7 @@
|
|
|
26244
26417
|
*/
|
|
26245
26418
|
function newHandshakeBuffer() {
|
|
26246
26419
|
return createHandshakeMessage([
|
|
26247
|
-
[version(5,
|
|
26420
|
+
[version(5, 7), version(5, 0)],
|
|
26248
26421
|
[version(4, 4), version(4, 2)],
|
|
26249
26422
|
version(4, 1),
|
|
26250
26423
|
version(3, 0)
|
|
@@ -26309,7 +26482,7 @@
|
|
|
26309
26482
|
|
|
26310
26483
|
var routingTableRaw = {};
|
|
26311
26484
|
|
|
26312
|
-
var __extends$
|
|
26485
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26313
26486
|
var extendStatics = function (d, b) {
|
|
26314
26487
|
extendStatics = Object.setPrototypeOf ||
|
|
26315
26488
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26324,7 +26497,7 @@
|
|
|
26324
26497
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26325
26498
|
};
|
|
26326
26499
|
})();
|
|
26327
|
-
var __importDefault$
|
|
26500
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26328
26501
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26329
26502
|
};
|
|
26330
26503
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -26345,7 +26518,7 @@
|
|
|
26345
26518
|
* limitations under the License.
|
|
26346
26519
|
*/
|
|
26347
26520
|
// eslint-disable-next-line no-unused-vars
|
|
26348
|
-
__importDefault$
|
|
26521
|
+
__importDefault$D(lib$1);
|
|
26349
26522
|
/**
|
|
26350
26523
|
* Represente the raw version of the routing table
|
|
26351
26524
|
*/
|
|
@@ -26440,7 +26613,7 @@
|
|
|
26440
26613
|
* Get the raw routing table information from route message response
|
|
26441
26614
|
*/
|
|
26442
26615
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
26443
|
-
__extends$
|
|
26616
|
+
__extends$o(ResponseRawRoutingTable, _super);
|
|
26444
26617
|
function ResponseRawRoutingTable(response) {
|
|
26445
26618
|
var _this = _super.call(this) || this;
|
|
26446
26619
|
_this._response = response;
|
|
@@ -26480,7 +26653,7 @@
|
|
|
26480
26653
|
* Null routing table
|
|
26481
26654
|
*/
|
|
26482
26655
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
26483
|
-
__extends$
|
|
26656
|
+
__extends$o(NullRawRoutingTable, _super);
|
|
26484
26657
|
function NullRawRoutingTable() {
|
|
26485
26658
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26486
26659
|
}
|
|
@@ -26497,7 +26670,7 @@
|
|
|
26497
26670
|
* Get the raw routing table information from the record
|
|
26498
26671
|
*/
|
|
26499
26672
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
26500
|
-
__extends$
|
|
26673
|
+
__extends$o(RecordRawRoutingTable, _super);
|
|
26501
26674
|
function RecordRawRoutingTable(record) {
|
|
26502
26675
|
var _this = _super.call(this) || this;
|
|
26503
26676
|
_this._record = record;
|
|
@@ -26556,7 +26729,7 @@
|
|
|
26556
26729
|
*/
|
|
26557
26730
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
26558
26731
|
functional.reuseOngoingRequest = functional.identity = void 0;
|
|
26559
|
-
var neo4j_driver_core_1$
|
|
26732
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
26560
26733
|
/**
|
|
26561
26734
|
* Identity function.
|
|
26562
26735
|
*
|
|
@@ -26584,7 +26757,7 @@
|
|
|
26584
26757
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
26585
26758
|
args[_i] = arguments[_i];
|
|
26586
26759
|
}
|
|
26587
|
-
var key = neo4j_driver_core_1$
|
|
26760
|
+
var key = neo4j_driver_core_1$C.json.stringify(args);
|
|
26588
26761
|
if (ongoingRequests.has(key)) {
|
|
26589
26762
|
return ongoingRequests.get(key);
|
|
26590
26763
|
}
|
|
@@ -26707,7 +26880,7 @@
|
|
|
26707
26880
|
lang.functional = __importStar$4(functional);
|
|
26708
26881
|
lang.object = __importStar$4(object);
|
|
26709
26882
|
|
|
26710
|
-
var __extends$
|
|
26883
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26711
26884
|
var extendStatics = function (d, b) {
|
|
26712
26885
|
extendStatics = Object.setPrototypeOf ||
|
|
26713
26886
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26722,7 +26895,7 @@
|
|
|
26722
26895
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26723
26896
|
};
|
|
26724
26897
|
})();
|
|
26725
|
-
var __importDefault$
|
|
26898
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26726
26899
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26727
26900
|
};
|
|
26728
26901
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -26743,11 +26916,11 @@
|
|
|
26743
26916
|
* See the License for the specific language governing permissions and
|
|
26744
26917
|
* limitations under the License.
|
|
26745
26918
|
*/
|
|
26746
|
-
var neo4j_driver_core_1$
|
|
26747
|
-
var routing_table_raw_1 = __importDefault$
|
|
26919
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
26920
|
+
var routing_table_raw_1 = __importDefault$C(routingTableRaw);
|
|
26748
26921
|
var lang_1$4 = lang;
|
|
26749
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
26750
|
-
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;
|
|
26751
26924
|
var StreamObserver = /** @class */ (function () {
|
|
26752
26925
|
function StreamObserver() {
|
|
26753
26926
|
}
|
|
@@ -26768,7 +26941,7 @@
|
|
|
26768
26941
|
* @access private
|
|
26769
26942
|
*/
|
|
26770
26943
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
26771
|
-
__extends$
|
|
26944
|
+
__extends$n(ResultStreamObserver, _super);
|
|
26772
26945
|
/**
|
|
26773
26946
|
*
|
|
26774
26947
|
* @param {Object} param
|
|
@@ -26845,7 +27018,7 @@
|
|
|
26845
27018
|
*/
|
|
26846
27019
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
26847
27020
|
this._haveRecordStreamed = true;
|
|
26848
|
-
var record = new neo4j_driver_core_1$
|
|
27021
|
+
var record = new neo4j_driver_core_1$B.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
26849
27022
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
26850
27023
|
this._observers.forEach(function (o) {
|
|
26851
27024
|
if (o.onNext) {
|
|
@@ -26954,7 +27127,7 @@
|
|
|
26954
27127
|
}
|
|
26955
27128
|
}, meta));
|
|
26956
27129
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
26957
|
-
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));
|
|
26958
27131
|
return;
|
|
26959
27132
|
}
|
|
26960
27133
|
this._setState(_states.SUCCEEDED);
|
|
@@ -27099,7 +27272,7 @@
|
|
|
27099
27272
|
}(StreamObserver));
|
|
27100
27273
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
27101
27274
|
var LoginObserver = /** @class */ (function (_super) {
|
|
27102
|
-
__extends$
|
|
27275
|
+
__extends$n(LoginObserver, _super);
|
|
27103
27276
|
/**
|
|
27104
27277
|
*
|
|
27105
27278
|
* @param {Object} param -
|
|
@@ -27114,7 +27287,7 @@
|
|
|
27114
27287
|
return _this;
|
|
27115
27288
|
}
|
|
27116
27289
|
LoginObserver.prototype.onNext = function (record) {
|
|
27117
|
-
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)));
|
|
27118
27291
|
};
|
|
27119
27292
|
LoginObserver.prototype.onError = function (error) {
|
|
27120
27293
|
if (this._onError) {
|
|
@@ -27130,7 +27303,7 @@
|
|
|
27130
27303
|
}(StreamObserver));
|
|
27131
27304
|
streamObservers.LoginObserver = LoginObserver;
|
|
27132
27305
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
27133
|
-
__extends$
|
|
27306
|
+
__extends$n(LogoffObserver, _super);
|
|
27134
27307
|
/**
|
|
27135
27308
|
*
|
|
27136
27309
|
* @param {Object} param -
|
|
@@ -27145,7 +27318,7 @@
|
|
|
27145
27318
|
return _this;
|
|
27146
27319
|
}
|
|
27147
27320
|
LogoffObserver.prototype.onNext = function (record) {
|
|
27148
|
-
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)));
|
|
27149
27322
|
};
|
|
27150
27323
|
LogoffObserver.prototype.onError = function (error) {
|
|
27151
27324
|
if (this._onError) {
|
|
@@ -27161,7 +27334,7 @@
|
|
|
27161
27334
|
}(StreamObserver));
|
|
27162
27335
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
27163
27336
|
var ResetObserver = /** @class */ (function (_super) {
|
|
27164
|
-
__extends$
|
|
27337
|
+
__extends$n(ResetObserver, _super);
|
|
27165
27338
|
/**
|
|
27166
27339
|
*
|
|
27167
27340
|
* @param {Object} param -
|
|
@@ -27178,8 +27351,8 @@
|
|
|
27178
27351
|
return _this;
|
|
27179
27352
|
}
|
|
27180
27353
|
ResetObserver.prototype.onNext = function (record) {
|
|
27181
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27182
|
-
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));
|
|
27183
27356
|
};
|
|
27184
27357
|
ResetObserver.prototype.onError = function (error) {
|
|
27185
27358
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27198,7 +27371,7 @@
|
|
|
27198
27371
|
}(StreamObserver));
|
|
27199
27372
|
streamObservers.ResetObserver = ResetObserver;
|
|
27200
27373
|
var TelemetryObserver = /** @class */ (function (_super) {
|
|
27201
|
-
__extends$
|
|
27374
|
+
__extends$n(TelemetryObserver, _super);
|
|
27202
27375
|
/**
|
|
27203
27376
|
*
|
|
27204
27377
|
* @param {Object} param -
|
|
@@ -27213,7 +27386,7 @@
|
|
|
27213
27386
|
return _this;
|
|
27214
27387
|
}
|
|
27215
27388
|
TelemetryObserver.prototype.onNext = function (record) {
|
|
27216
|
-
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));
|
|
27217
27390
|
};
|
|
27218
27391
|
TelemetryObserver.prototype.onError = function (error) {
|
|
27219
27392
|
if (this._onError) {
|
|
@@ -27229,7 +27402,7 @@
|
|
|
27229
27402
|
}(ResultStreamObserver));
|
|
27230
27403
|
streamObservers.TelemetryObserver = TelemetryObserver;
|
|
27231
27404
|
var FailedObserver = /** @class */ (function (_super) {
|
|
27232
|
-
__extends$
|
|
27405
|
+
__extends$n(FailedObserver, _super);
|
|
27233
27406
|
function FailedObserver(_a) {
|
|
27234
27407
|
var error = _a.error, onError = _a.onError;
|
|
27235
27408
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -27240,7 +27413,7 @@
|
|
|
27240
27413
|
}(ResultStreamObserver));
|
|
27241
27414
|
streamObservers.FailedObserver = FailedObserver;
|
|
27242
27415
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
27243
|
-
__extends$
|
|
27416
|
+
__extends$n(CompletedObserver, _super);
|
|
27244
27417
|
function CompletedObserver() {
|
|
27245
27418
|
var _this = _super.call(this) || this;
|
|
27246
27419
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -27250,7 +27423,7 @@
|
|
|
27250
27423
|
}(ResultStreamObserver));
|
|
27251
27424
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
27252
27425
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
27253
|
-
__extends$
|
|
27426
|
+
__extends$n(ProcedureRouteObserver, _super);
|
|
27254
27427
|
function ProcedureRouteObserver(_a) {
|
|
27255
27428
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
27256
27429
|
var _this = _super.call(this) || this;
|
|
@@ -27275,10 +27448,10 @@
|
|
|
27275
27448
|
};
|
|
27276
27449
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
27277
27450
|
if (this._records !== null && this._records.length !== 1) {
|
|
27278
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27451
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Illegal response from router. Received ' +
|
|
27279
27452
|
this._records.length +
|
|
27280
27453
|
' records but expected only one.\n' +
|
|
27281
|
-
neo4j_driver_core_1$
|
|
27454
|
+
neo4j_driver_core_1$B.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
27282
27455
|
return;
|
|
27283
27456
|
}
|
|
27284
27457
|
if (this._onCompleted) {
|
|
@@ -27289,7 +27462,7 @@
|
|
|
27289
27462
|
}(StreamObserver));
|
|
27290
27463
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
27291
27464
|
var RouteObserver = /** @class */ (function (_super) {
|
|
27292
|
-
__extends$
|
|
27465
|
+
__extends$n(RouteObserver, _super);
|
|
27293
27466
|
/**
|
|
27294
27467
|
*
|
|
27295
27468
|
* @param {Object} param -
|
|
@@ -27306,8 +27479,8 @@
|
|
|
27306
27479
|
return _this;
|
|
27307
27480
|
}
|
|
27308
27481
|
RouteObserver.prototype.onNext = function (record) {
|
|
27309
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27310
|
-
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));
|
|
27311
27484
|
};
|
|
27312
27485
|
RouteObserver.prototype.onError = function (error) {
|
|
27313
27486
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27409,7 +27582,7 @@
|
|
|
27409
27582
|
* See the License for the specific language governing permissions and
|
|
27410
27583
|
* limitations under the License.
|
|
27411
27584
|
*/
|
|
27412
|
-
var neo4j_driver_core_1$
|
|
27585
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
27413
27586
|
/**
|
|
27414
27587
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
27415
27588
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -27418,7 +27591,7 @@
|
|
|
27418
27591
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
27419
27592
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27420
27593
|
if (txConfig && !txConfig.isEmpty()) {
|
|
27421
|
-
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. ' +
|
|
27422
27595
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
27423
27596
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27424
27597
|
onProtocolError(error.message);
|
|
@@ -27435,7 +27608,7 @@
|
|
|
27435
27608
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
27436
27609
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27437
27610
|
if (database) {
|
|
27438
|
-
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. ' +
|
|
27439
27612
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
27440
27613
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27441
27614
|
onProtocolError(error.message);
|
|
@@ -27453,7 +27626,7 @@
|
|
|
27453
27626
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
27454
27627
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27455
27628
|
if (impersonatedUser) {
|
|
27456
|
-
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. ' +
|
|
27457
27630
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
27458
27631
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
27459
27632
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -27472,9 +27645,9 @@
|
|
|
27472
27645
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
27473
27646
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27474
27647
|
if (notificationFilter !== undefined) {
|
|
27475
|
-
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. ' +
|
|
27476
27649
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
27477
|
-
"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), "."));
|
|
27478
27651
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27479
27652
|
onProtocolError(error.message);
|
|
27480
27653
|
observer.onError(error);
|
|
@@ -27507,8 +27680,8 @@
|
|
|
27507
27680
|
*/
|
|
27508
27681
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
27509
27682
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
27510
|
-
var neo4j_driver_core_1$
|
|
27511
|
-
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;
|
|
27512
27685
|
/**
|
|
27513
27686
|
* A Structure have a signature and fields.
|
|
27514
27687
|
*/
|
|
@@ -27542,7 +27715,7 @@
|
|
|
27542
27715
|
structure$1.Structure = Structure;
|
|
27543
27716
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
27544
27717
|
if (expectedSize !== actualSize) {
|
|
27545
|
-
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);
|
|
27546
27719
|
}
|
|
27547
27720
|
}
|
|
27548
27721
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -27569,8 +27742,8 @@
|
|
|
27569
27742
|
var channel_1$3 = channel;
|
|
27570
27743
|
var lang_1$3 = lang;
|
|
27571
27744
|
var structure_1 = structure$1;
|
|
27572
|
-
var neo4j_driver_core_1$
|
|
27573
|
-
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;
|
|
27574
27747
|
var TINY_STRING = 0x80;
|
|
27575
27748
|
var TINY_LIST = 0x90;
|
|
27576
27749
|
var TINY_MAP = 0xa0;
|
|
@@ -27640,9 +27813,9 @@
|
|
|
27640
27813
|
return function () { return _this.packString(x); };
|
|
27641
27814
|
}
|
|
27642
27815
|
else if (typeof x === 'bigint') {
|
|
27643
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
27816
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$y.int)(x)); };
|
|
27644
27817
|
}
|
|
27645
|
-
else if ((0, neo4j_driver_core_1$
|
|
27818
|
+
else if ((0, neo4j_driver_core_1$y.isInt)(x)) {
|
|
27646
27819
|
return function () { return _this.packInteger(x); };
|
|
27647
27820
|
}
|
|
27648
27821
|
else if (x instanceof Int8Array) {
|
|
@@ -27696,7 +27869,7 @@
|
|
|
27696
27869
|
}
|
|
27697
27870
|
catch (e) {
|
|
27698
27871
|
// handle errors from iterable to array conversion
|
|
27699
|
-
throw (0, neo4j_driver_core_1$
|
|
27872
|
+
throw (0, neo4j_driver_core_1$y.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
27700
27873
|
}
|
|
27701
27874
|
};
|
|
27702
27875
|
/**
|
|
@@ -27766,7 +27939,7 @@
|
|
|
27766
27939
|
this._ch.writeBytes(bytes);
|
|
27767
27940
|
}
|
|
27768
27941
|
else {
|
|
27769
|
-
throw (0, neo4j_driver_core_1$
|
|
27942
|
+
throw (0, neo4j_driver_core_1$y.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
27770
27943
|
}
|
|
27771
27944
|
};
|
|
27772
27945
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -27790,7 +27963,7 @@
|
|
|
27790
27963
|
this._ch.writeUInt8(size % 256);
|
|
27791
27964
|
}
|
|
27792
27965
|
else {
|
|
27793
|
-
throw (0, neo4j_driver_core_1$
|
|
27966
|
+
throw (0, neo4j_driver_core_1$y.newError)('Lists of size ' + size + ' are not supported');
|
|
27794
27967
|
}
|
|
27795
27968
|
};
|
|
27796
27969
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -27801,7 +27974,7 @@
|
|
|
27801
27974
|
}
|
|
27802
27975
|
}
|
|
27803
27976
|
else {
|
|
27804
|
-
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');
|
|
27805
27978
|
}
|
|
27806
27979
|
};
|
|
27807
27980
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -27822,7 +27995,7 @@
|
|
|
27822
27995
|
this._ch.writeUInt8(size % 256);
|
|
27823
27996
|
}
|
|
27824
27997
|
else {
|
|
27825
|
-
throw (0, neo4j_driver_core_1$
|
|
27998
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
27826
27999
|
}
|
|
27827
28000
|
};
|
|
27828
28001
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -27846,7 +28019,7 @@
|
|
|
27846
28019
|
this._ch.writeUInt8(size % 256);
|
|
27847
28020
|
}
|
|
27848
28021
|
else {
|
|
27849
|
-
throw (0, neo4j_driver_core_1$
|
|
28022
|
+
throw (0, neo4j_driver_core_1$y.newError)('Maps of size ' + size + ' are not supported');
|
|
27850
28023
|
}
|
|
27851
28024
|
};
|
|
27852
28025
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -27865,7 +28038,7 @@
|
|
|
27865
28038
|
this._ch.writeUInt8(size % 256);
|
|
27866
28039
|
}
|
|
27867
28040
|
else {
|
|
27868
|
-
throw (0, neo4j_driver_core_1$
|
|
28041
|
+
throw (0, neo4j_driver_core_1$y.newError)('Structures of size ' + size + ' are not supported');
|
|
27869
28042
|
}
|
|
27870
28043
|
};
|
|
27871
28044
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -27873,7 +28046,7 @@
|
|
|
27873
28046
|
};
|
|
27874
28047
|
Packer.prototype._nonPackableValue = function (message) {
|
|
27875
28048
|
return function () {
|
|
27876
|
-
throw (0, neo4j_driver_core_1$
|
|
28049
|
+
throw (0, neo4j_driver_core_1$y.newError)(message, PROTOCOL_ERROR$3);
|
|
27877
28050
|
};
|
|
27878
28051
|
};
|
|
27879
28052
|
return Packer;
|
|
@@ -27909,7 +28082,7 @@
|
|
|
27909
28082
|
}
|
|
27910
28083
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
27911
28084
|
if (numberOrInteger !== null) {
|
|
27912
|
-
if ((0, neo4j_driver_core_1$
|
|
28085
|
+
if ((0, neo4j_driver_core_1$y.isInt)(numberOrInteger)) {
|
|
27913
28086
|
if (this._useBigInt) {
|
|
27914
28087
|
return numberOrInteger.toBigInt();
|
|
27915
28088
|
}
|
|
@@ -27939,13 +28112,13 @@
|
|
|
27939
28112
|
if (struct !== null) {
|
|
27940
28113
|
return struct;
|
|
27941
28114
|
}
|
|
27942
|
-
throw (0, neo4j_driver_core_1$
|
|
28115
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
27943
28116
|
};
|
|
27944
28117
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
27945
28118
|
var marker = buffer.readUInt8();
|
|
27946
28119
|
var result = this._unpackInteger(marker, buffer);
|
|
27947
28120
|
if (result == null) {
|
|
27948
|
-
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));
|
|
27949
28122
|
}
|
|
27950
28123
|
return result;
|
|
27951
28124
|
};
|
|
@@ -27970,25 +28143,25 @@
|
|
|
27970
28143
|
};
|
|
27971
28144
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
27972
28145
|
if (marker >= 0 && marker < 128) {
|
|
27973
|
-
return (0, neo4j_driver_core_1$
|
|
28146
|
+
return (0, neo4j_driver_core_1$y.int)(marker);
|
|
27974
28147
|
}
|
|
27975
28148
|
else if (marker >= 240 && marker < 256) {
|
|
27976
|
-
return (0, neo4j_driver_core_1$
|
|
28149
|
+
return (0, neo4j_driver_core_1$y.int)(marker - 256);
|
|
27977
28150
|
}
|
|
27978
28151
|
else if (marker === INT_8) {
|
|
27979
|
-
return (0, neo4j_driver_core_1$
|
|
28152
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt8());
|
|
27980
28153
|
}
|
|
27981
28154
|
else if (marker === INT_16) {
|
|
27982
|
-
return (0, neo4j_driver_core_1$
|
|
28155
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt16());
|
|
27983
28156
|
}
|
|
27984
28157
|
else if (marker === INT_32) {
|
|
27985
28158
|
var b = buffer.readInt32();
|
|
27986
|
-
return (0, neo4j_driver_core_1$
|
|
28159
|
+
return (0, neo4j_driver_core_1$y.int)(b);
|
|
27987
28160
|
}
|
|
27988
28161
|
else if (marker === INT_64) {
|
|
27989
28162
|
var high = buffer.readInt32();
|
|
27990
28163
|
var low = buffer.readInt32();
|
|
27991
|
-
return new neo4j_driver_core_1$
|
|
28164
|
+
return new neo4j_driver_core_1$y.Integer(low, high);
|
|
27992
28165
|
}
|
|
27993
28166
|
else {
|
|
27994
28167
|
return null;
|
|
@@ -28131,7 +28304,7 @@
|
|
|
28131
28304
|
* See the License for the specific language governing permissions and
|
|
28132
28305
|
* limitations under the License.
|
|
28133
28306
|
*/
|
|
28134
|
-
var __extends$
|
|
28307
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28135
28308
|
var extendStatics = function (d, b) {
|
|
28136
28309
|
extendStatics = Object.setPrototypeOf ||
|
|
28137
28310
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28173,7 +28346,7 @@
|
|
|
28173
28346
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28174
28347
|
var v1$1 = __importStar$3(packstreamV1);
|
|
28175
28348
|
var Packer = /** @class */ (function (_super) {
|
|
28176
|
-
__extends$
|
|
28349
|
+
__extends$m(Packer, _super);
|
|
28177
28350
|
function Packer() {
|
|
28178
28351
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28179
28352
|
}
|
|
@@ -28184,7 +28357,7 @@
|
|
|
28184
28357
|
}(v1$1.Packer));
|
|
28185
28358
|
packstreamV2.Packer = Packer;
|
|
28186
28359
|
var Unpacker = /** @class */ (function (_super) {
|
|
28187
|
-
__extends$
|
|
28360
|
+
__extends$m(Unpacker, _super);
|
|
28188
28361
|
/**
|
|
28189
28362
|
* @constructor
|
|
28190
28363
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -28268,8 +28441,8 @@
|
|
|
28268
28441
|
*/
|
|
28269
28442
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
28270
28443
|
requestMessage.SIGNATURES = void 0;
|
|
28271
|
-
var neo4j_driver_core_1$
|
|
28272
|
-
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;
|
|
28273
28446
|
/* eslint-disable no-unused-vars */
|
|
28274
28447
|
// Signature bytes for each request message type
|
|
28275
28448
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -28330,7 +28503,7 @@
|
|
|
28330
28503
|
* @return {RequestMessage} new RUN message.
|
|
28331
28504
|
*/
|
|
28332
28505
|
RequestMessage.run = function (query, parameters) {
|
|
28333
|
-
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)); });
|
|
28334
28507
|
};
|
|
28335
28508
|
/**
|
|
28336
28509
|
* Get a PULL_ALL message.
|
|
@@ -28394,7 +28567,7 @@
|
|
|
28394
28567
|
if (routing) {
|
|
28395
28568
|
metadata.routing = routing;
|
|
28396
28569
|
}
|
|
28397
|
-
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)); });
|
|
28398
28571
|
};
|
|
28399
28572
|
/**
|
|
28400
28573
|
* Create a new HELLO message.
|
|
@@ -28423,7 +28596,7 @@
|
|
|
28423
28596
|
if (routing) {
|
|
28424
28597
|
metadata.routing = routing;
|
|
28425
28598
|
}
|
|
28426
|
-
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)); });
|
|
28427
28600
|
};
|
|
28428
28601
|
/**
|
|
28429
28602
|
* Create a new HELLO message.
|
|
@@ -28452,7 +28625,7 @@
|
|
|
28452
28625
|
if (routing) {
|
|
28453
28626
|
metadata.routing = routing;
|
|
28454
28627
|
}
|
|
28455
|
-
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)); });
|
|
28456
28629
|
};
|
|
28457
28630
|
/**
|
|
28458
28631
|
* Create a new LOGON message.
|
|
@@ -28484,7 +28657,7 @@
|
|
|
28484
28657
|
RequestMessage.begin = function (_a) {
|
|
28485
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;
|
|
28486
28659
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28487
|
-
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)); });
|
|
28488
28661
|
};
|
|
28489
28662
|
/**
|
|
28490
28663
|
* Create a new BEGIN message.
|
|
@@ -28501,7 +28674,7 @@
|
|
|
28501
28674
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter, {
|
|
28502
28675
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28503
28676
|
});
|
|
28504
|
-
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)); });
|
|
28505
28678
|
};
|
|
28506
28679
|
/**
|
|
28507
28680
|
* Get a COMMIT message.
|
|
@@ -28534,7 +28707,7 @@
|
|
|
28534
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;
|
|
28535
28708
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28536
28709
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28537
|
-
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));
|
|
28538
28711
|
});
|
|
28539
28712
|
};
|
|
28540
28713
|
/**
|
|
@@ -28556,7 +28729,7 @@
|
|
|
28556
28729
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28557
28730
|
});
|
|
28558
28731
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28559
|
-
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));
|
|
28560
28733
|
});
|
|
28561
28734
|
};
|
|
28562
28735
|
/**
|
|
@@ -28575,7 +28748,7 @@
|
|
|
28575
28748
|
RequestMessage.pull = function (_a) {
|
|
28576
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;
|
|
28577
28750
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28578
|
-
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)); });
|
|
28579
28752
|
};
|
|
28580
28753
|
/**
|
|
28581
28754
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -28586,11 +28759,11 @@
|
|
|
28586
28759
|
RequestMessage.discard = function (_a) {
|
|
28587
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;
|
|
28588
28761
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28589
|
-
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)); });
|
|
28590
28763
|
};
|
|
28591
28764
|
RequestMessage.telemetry = function (_a) {
|
|
28592
28765
|
var api = _a.api;
|
|
28593
|
-
var parsedApi = (0, neo4j_driver_core_1$
|
|
28766
|
+
var parsedApi = (0, neo4j_driver_core_1$x.int)(api);
|
|
28594
28767
|
return new RequestMessage(TELEMETRY, [parsedApi], function () { return "TELEMETRY ".concat(parsedApi.toString()); });
|
|
28595
28768
|
};
|
|
28596
28769
|
/**
|
|
@@ -28606,7 +28779,7 @@
|
|
|
28606
28779
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
28607
28780
|
if (databaseName === void 0) { databaseName = null; }
|
|
28608
28781
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
28609
|
-
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);
|
|
28610
28783
|
});
|
|
28611
28784
|
};
|
|
28612
28785
|
/**
|
|
@@ -28631,7 +28804,7 @@
|
|
|
28631
28804
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
28632
28805
|
}
|
|
28633
28806
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
28634
|
-
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));
|
|
28635
28808
|
});
|
|
28636
28809
|
};
|
|
28637
28810
|
return RequestMessage;
|
|
@@ -28682,9 +28855,9 @@
|
|
|
28682
28855
|
* @returns {Object} a metadata object.
|
|
28683
28856
|
*/
|
|
28684
28857
|
function buildStreamMetadata(stmtId, n) {
|
|
28685
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
28858
|
+
var metadata = { n: (0, neo4j_driver_core_1$x.int)(n) };
|
|
28686
28859
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
28687
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
28860
|
+
metadata.qid = (0, neo4j_driver_core_1$x.int)(stmtId);
|
|
28688
28861
|
}
|
|
28689
28862
|
return metadata;
|
|
28690
28863
|
}
|
|
@@ -28744,8 +28917,8 @@
|
|
|
28744
28917
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
28745
28918
|
transformer.TypeTransformer = void 0;
|
|
28746
28919
|
var packstream_1$6 = packstream;
|
|
28747
|
-
var neo4j_driver_core_1$
|
|
28748
|
-
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;
|
|
28749
28922
|
/**
|
|
28750
28923
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
28751
28924
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -28888,10 +29061,10 @@
|
|
|
28888
29061
|
return ar;
|
|
28889
29062
|
};
|
|
28890
29063
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
28891
|
-
var neo4j_driver_core_1$
|
|
29064
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
28892
29065
|
var packstream_1$5 = packstream;
|
|
28893
|
-
var transformer_1$
|
|
28894
|
-
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;
|
|
28895
29068
|
var NODE = 0x4e;
|
|
28896
29069
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
28897
29070
|
var RELATIONSHIP = 0x52;
|
|
@@ -28905,16 +29078,16 @@
|
|
|
28905
29078
|
* @returns {TypeTransformer}
|
|
28906
29079
|
*/
|
|
28907
29080
|
function createNodeTransformer$1() {
|
|
28908
|
-
return new transformer_1$
|
|
29081
|
+
return new transformer_1$h.TypeTransformer({
|
|
28909
29082
|
signature: NODE,
|
|
28910
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29083
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Node; },
|
|
28911
29084
|
toStructure: function (object) {
|
|
28912
|
-
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);
|
|
28913
29086
|
},
|
|
28914
29087
|
fromStructure: function (struct) {
|
|
28915
29088
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
28916
29089
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
28917
|
-
return new neo4j_driver_core_1$
|
|
29090
|
+
return new neo4j_driver_core_1$v.Node(identity, labels, properties);
|
|
28918
29091
|
}
|
|
28919
29092
|
});
|
|
28920
29093
|
}
|
|
@@ -28923,16 +29096,16 @@
|
|
|
28923
29096
|
* @returns {TypeTransformer}
|
|
28924
29097
|
*/
|
|
28925
29098
|
function createRelationshipTransformer$1() {
|
|
28926
|
-
return new transformer_1$
|
|
29099
|
+
return new transformer_1$h.TypeTransformer({
|
|
28927
29100
|
signature: RELATIONSHIP,
|
|
28928
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29101
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Relationship; },
|
|
28929
29102
|
toStructure: function (object) {
|
|
28930
|
-
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);
|
|
28931
29104
|
},
|
|
28932
29105
|
fromStructure: function (struct) {
|
|
28933
29106
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28934
29107
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
28935
|
-
return new neo4j_driver_core_1$
|
|
29108
|
+
return new neo4j_driver_core_1$v.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
28936
29109
|
}
|
|
28937
29110
|
});
|
|
28938
29111
|
}
|
|
@@ -28941,16 +29114,16 @@
|
|
|
28941
29114
|
* @returns {TypeTransformer}
|
|
28942
29115
|
*/
|
|
28943
29116
|
function createUnboundRelationshipTransformer$1() {
|
|
28944
|
-
return new transformer_1$
|
|
29117
|
+
return new transformer_1$h.TypeTransformer({
|
|
28945
29118
|
signature: UNBOUND_RELATIONSHIP,
|
|
28946
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29119
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.UnboundRelationship; },
|
|
28947
29120
|
toStructure: function (object) {
|
|
28948
|
-
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);
|
|
28949
29122
|
},
|
|
28950
29123
|
fromStructure: function (struct) {
|
|
28951
29124
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28952
29125
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
28953
|
-
return new neo4j_driver_core_1$
|
|
29126
|
+
return new neo4j_driver_core_1$v.UnboundRelationship(identity, type, properties);
|
|
28954
29127
|
}
|
|
28955
29128
|
});
|
|
28956
29129
|
}
|
|
@@ -28959,11 +29132,11 @@
|
|
|
28959
29132
|
* @returns {TypeTransformer}
|
|
28960
29133
|
*/
|
|
28961
29134
|
function createPathTransformer() {
|
|
28962
|
-
return new transformer_1$
|
|
29135
|
+
return new transformer_1$h.TypeTransformer({
|
|
28963
29136
|
signature: PATH,
|
|
28964
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29137
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Path; },
|
|
28965
29138
|
toStructure: function (object) {
|
|
28966
|
-
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);
|
|
28967
29140
|
},
|
|
28968
29141
|
fromStructure: function (struct) {
|
|
28969
29142
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -28972,11 +29145,11 @@
|
|
|
28972
29145
|
var prevNode = nodes[0];
|
|
28973
29146
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
28974
29147
|
var nextNode = nodes[sequence[i + 1]];
|
|
28975
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
29148
|
+
var relIndex = (0, neo4j_driver_core_1$v.toNumber)(sequence[i]);
|
|
28976
29149
|
var rel = void 0;
|
|
28977
29150
|
if (relIndex > 0) {
|
|
28978
29151
|
rel = rels[relIndex - 1];
|
|
28979
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29152
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28980
29153
|
// To avoid duplication, relationships in a path do not contain
|
|
28981
29154
|
// information about their start and end nodes, that's instead
|
|
28982
29155
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -28986,16 +29159,16 @@
|
|
|
28986
29159
|
}
|
|
28987
29160
|
else {
|
|
28988
29161
|
rel = rels[-relIndex - 1];
|
|
28989
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29162
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28990
29163
|
// See above
|
|
28991
29164
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
28992
29165
|
}
|
|
28993
29166
|
}
|
|
28994
29167
|
// Done hydrating one path segment.
|
|
28995
|
-
segments.push(new neo4j_driver_core_1$
|
|
29168
|
+
segments.push(new neo4j_driver_core_1$v.PathSegment(prevNode, rel, nextNode));
|
|
28996
29169
|
prevNode = nextNode;
|
|
28997
29170
|
}
|
|
28998
|
-
return new neo4j_driver_core_1$
|
|
29171
|
+
return new neo4j_driver_core_1$v.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
28999
29172
|
}
|
|
29000
29173
|
});
|
|
29001
29174
|
}
|
|
@@ -29006,6 +29179,17 @@
|
|
|
29006
29179
|
createPathTransformer: createPathTransformer
|
|
29007
29180
|
};
|
|
29008
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
|
+
};
|
|
29009
29193
|
var __createBinding$1 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29010
29194
|
if (k2 === undefined) k2 = k;
|
|
29011
29195
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -29029,7 +29213,7 @@
|
|
|
29029
29213
|
__setModuleDefault$1(result, mod);
|
|
29030
29214
|
return result;
|
|
29031
29215
|
};
|
|
29032
|
-
var __importDefault$
|
|
29216
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29033
29217
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29034
29218
|
};
|
|
29035
29219
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -29053,11 +29237,16 @@
|
|
|
29053
29237
|
var packstream_1$4 = packstream;
|
|
29054
29238
|
var request_message_1$b = __importStar$1(requestMessage);
|
|
29055
29239
|
var stream_observers_1$b = streamObservers;
|
|
29056
|
-
var neo4j_driver_core_1$
|
|
29057
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
29058
|
-
var transformer_1$
|
|
29059
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
29060
|
-
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 () {
|
|
29061
29250
|
/**
|
|
29062
29251
|
* @callback CreateResponseHandler Creates the response handler
|
|
29063
29252
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -29096,7 +29285,7 @@
|
|
|
29096
29285
|
get: function () {
|
|
29097
29286
|
var _this = this;
|
|
29098
29287
|
if (this._transformer === undefined) {
|
|
29099
|
-
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); }));
|
|
29100
29289
|
}
|
|
29101
29290
|
return this._transformer;
|
|
29102
29291
|
},
|
|
@@ -29181,6 +29370,9 @@
|
|
|
29181
29370
|
BoltProtocol.prototype.transformMetadata = function (metadata) {
|
|
29182
29371
|
return metadata;
|
|
29183
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
|
+
};
|
|
29184
29376
|
/**
|
|
29185
29377
|
* Perform initialization and authentication of the underlying connection.
|
|
29186
29378
|
* @param {Object} param
|
|
@@ -29220,7 +29412,7 @@
|
|
|
29220
29412
|
onError: onError
|
|
29221
29413
|
});
|
|
29222
29414
|
// TODO: Verify the Neo4j version in the message
|
|
29223
|
-
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. ' +
|
|
29224
29416
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29225
29417
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29226
29418
|
this._onProtocolError(error.message);
|
|
@@ -29246,7 +29438,7 @@
|
|
|
29246
29438
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
29247
29439
|
});
|
|
29248
29440
|
// TODO: Verify the Neo4j version in the message
|
|
29249
|
-
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. ' +
|
|
29250
29442
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29251
29443
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29252
29444
|
this._onProtocolError(error.message);
|
|
@@ -29537,7 +29729,7 @@
|
|
|
29537
29729
|
};
|
|
29538
29730
|
return BoltProtocol;
|
|
29539
29731
|
}());
|
|
29540
|
-
boltProtocolV1.default = BoltProtocol$
|
|
29732
|
+
boltProtocolV1.default = BoltProtocol$f;
|
|
29541
29733
|
|
|
29542
29734
|
var boltProtocolV2 = {};
|
|
29543
29735
|
|
|
@@ -29563,17 +29755,17 @@
|
|
|
29563
29755
|
* See the License for the specific language governing permissions and
|
|
29564
29756
|
* limitations under the License.
|
|
29565
29757
|
*/
|
|
29566
|
-
var neo4j_driver_core_1$
|
|
29567
|
-
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;
|
|
29568
29760
|
/**
|
|
29569
29761
|
* Converts given epoch day to a local date.
|
|
29570
29762
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
29571
29763
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
29572
29764
|
*/
|
|
29573
29765
|
function epochDayToDate(epochDay) {
|
|
29574
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
29766
|
+
epochDay = (0, neo4j_driver_core_1$t.int)(epochDay);
|
|
29575
29767
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
29576
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
29768
|
+
var adjust = (0, neo4j_driver_core_1$t.int)(0);
|
|
29577
29769
|
if (zeroDay.lessThan(0)) {
|
|
29578
29770
|
var adjustCycles = zeroDay
|
|
29579
29771
|
.add(1)
|
|
@@ -29616,7 +29808,7 @@
|
|
|
29616
29808
|
.div(10))
|
|
29617
29809
|
.add(1);
|
|
29618
29810
|
year = year.add(marchMonth.div(10));
|
|
29619
|
-
return new neo4j_driver_core_1$
|
|
29811
|
+
return new neo4j_driver_core_1$t.Date(year, month, day);
|
|
29620
29812
|
}
|
|
29621
29813
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
29622
29814
|
/**
|
|
@@ -29625,14 +29817,14 @@
|
|
|
29625
29817
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
29626
29818
|
*/
|
|
29627
29819
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
29628
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
29820
|
+
nanoOfDay = (0, neo4j_driver_core_1$t.int)(nanoOfDay);
|
|
29629
29821
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
29630
29822
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
29631
29823
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
29632
29824
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
29633
29825
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
29634
29826
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
29635
|
-
return new neo4j_driver_core_1$
|
|
29827
|
+
return new neo4j_driver_core_1$t.LocalTime(hour, minute, second, nanosecond);
|
|
29636
29828
|
}
|
|
29637
29829
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
29638
29830
|
/**
|
|
@@ -29647,7 +29839,7 @@
|
|
|
29647
29839
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
29648
29840
|
var localDate = epochDayToDate(epochDay);
|
|
29649
29841
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
29650
|
-
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);
|
|
29651
29843
|
}
|
|
29652
29844
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
29653
29845
|
|
|
@@ -29667,8 +29859,8 @@
|
|
|
29667
29859
|
* See the License for the specific language governing permissions and
|
|
29668
29860
|
* limitations under the License.
|
|
29669
29861
|
*/
|
|
29670
|
-
var __assign$
|
|
29671
|
-
__assign$
|
|
29862
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29863
|
+
__assign$n = Object.assign || function(t) {
|
|
29672
29864
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29673
29865
|
s = arguments[i];
|
|
29674
29866
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29676,7 +29868,7 @@
|
|
|
29676
29868
|
}
|
|
29677
29869
|
return t;
|
|
29678
29870
|
};
|
|
29679
|
-
return __assign$
|
|
29871
|
+
return __assign$n.apply(this, arguments);
|
|
29680
29872
|
};
|
|
29681
29873
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
29682
29874
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -29694,16 +29886,16 @@
|
|
|
29694
29886
|
}
|
|
29695
29887
|
return ar;
|
|
29696
29888
|
};
|
|
29697
|
-
var __importDefault$
|
|
29889
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29698
29890
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29699
29891
|
};
|
|
29700
29892
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
29701
|
-
var neo4j_driver_core_1$
|
|
29893
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
29702
29894
|
var packstream_1$3 = packstream;
|
|
29703
|
-
var transformer_1$
|
|
29895
|
+
var transformer_1$f = transformer;
|
|
29704
29896
|
var temporal_factory_1$1 = temporalFactory;
|
|
29705
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
29706
|
-
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;
|
|
29707
29899
|
var POINT_2D = 0x58;
|
|
29708
29900
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
29709
29901
|
var POINT_3D = 0x59;
|
|
@@ -29727,18 +29919,18 @@
|
|
|
29727
29919
|
* @returns {TypeTransformer}
|
|
29728
29920
|
*/
|
|
29729
29921
|
function createPoint2DTransformer() {
|
|
29730
|
-
return new transformer_1$
|
|
29922
|
+
return new transformer_1$f.TypeTransformer({
|
|
29731
29923
|
signature: POINT_2D,
|
|
29732
|
-
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); },
|
|
29733
29925
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
29734
|
-
(0, neo4j_driver_core_1$
|
|
29926
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29735
29927
|
point.x,
|
|
29736
29928
|
point.y
|
|
29737
29929
|
]); },
|
|
29738
29930
|
fromStructure: function (struct) {
|
|
29739
29931
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
29740
29932
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
29741
|
-
return new neo4j_driver_core_1$
|
|
29933
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, undefined // z
|
|
29742
29934
|
);
|
|
29743
29935
|
}
|
|
29744
29936
|
});
|
|
@@ -29748,11 +29940,11 @@
|
|
|
29748
29940
|
* @returns {TypeTransformer}
|
|
29749
29941
|
*/
|
|
29750
29942
|
function createPoint3DTransformer() {
|
|
29751
|
-
return new transformer_1$
|
|
29943
|
+
return new transformer_1$f.TypeTransformer({
|
|
29752
29944
|
signature: POINT_3D,
|
|
29753
|
-
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; },
|
|
29754
29946
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
29755
|
-
(0, neo4j_driver_core_1$
|
|
29947
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29756
29948
|
point.x,
|
|
29757
29949
|
point.y,
|
|
29758
29950
|
point.z
|
|
@@ -29760,7 +29952,7 @@
|
|
|
29760
29952
|
fromStructure: function (struct) {
|
|
29761
29953
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
29762
29954
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
29763
|
-
return new neo4j_driver_core_1$
|
|
29955
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, z);
|
|
29764
29956
|
}
|
|
29765
29957
|
});
|
|
29766
29958
|
}
|
|
@@ -29769,20 +29961,20 @@
|
|
|
29769
29961
|
* @returns {TypeTransformer}
|
|
29770
29962
|
*/
|
|
29771
29963
|
function createDurationTransformer() {
|
|
29772
|
-
return new transformer_1$
|
|
29964
|
+
return new transformer_1$f.TypeTransformer({
|
|
29773
29965
|
signature: DURATION,
|
|
29774
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29966
|
+
isTypeInstance: neo4j_driver_core_1$s.isDuration,
|
|
29775
29967
|
toStructure: function (value) {
|
|
29776
|
-
var months = (0, neo4j_driver_core_1$
|
|
29777
|
-
var days = (0, neo4j_driver_core_1$
|
|
29778
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
29779
|
-
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);
|
|
29780
29972
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
29781
29973
|
},
|
|
29782
29974
|
fromStructure: function (struct) {
|
|
29783
29975
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
29784
29976
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
29785
|
-
return new neo4j_driver_core_1$
|
|
29977
|
+
return new neo4j_driver_core_1$s.Duration(months, days, seconds, nanoseconds);
|
|
29786
29978
|
}
|
|
29787
29979
|
});
|
|
29788
29980
|
}
|
|
@@ -29795,9 +29987,9 @@
|
|
|
29795
29987
|
*/
|
|
29796
29988
|
function createLocalTimeTransformer(_a) {
|
|
29797
29989
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29798
|
-
return new transformer_1$
|
|
29990
|
+
return new transformer_1$f.TypeTransformer({
|
|
29799
29991
|
signature: LOCAL_TIME,
|
|
29800
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29992
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalTime,
|
|
29801
29993
|
toStructure: function (value) {
|
|
29802
29994
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29803
29995
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -29819,19 +30011,19 @@
|
|
|
29819
30011
|
*/
|
|
29820
30012
|
function createTimeTransformer(_a) {
|
|
29821
30013
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29822
|
-
return new transformer_1$
|
|
30014
|
+
return new transformer_1$f.TypeTransformer({
|
|
29823
30015
|
signature: TIME,
|
|
29824
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30016
|
+
isTypeInstance: neo4j_driver_core_1$s.isTime,
|
|
29825
30017
|
toStructure: function (value) {
|
|
29826
30018
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29827
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
30019
|
+
var offsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29828
30020
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
29829
30021
|
},
|
|
29830
30022
|
fromStructure: function (struct) {
|
|
29831
30023
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
29832
30024
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
29833
30025
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
29834
|
-
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);
|
|
29835
30027
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29836
30028
|
}
|
|
29837
30029
|
});
|
|
@@ -29845,9 +30037,9 @@
|
|
|
29845
30037
|
*/
|
|
29846
30038
|
function createDateTransformer(_a) {
|
|
29847
30039
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29848
|
-
return new transformer_1$
|
|
30040
|
+
return new transformer_1$f.TypeTransformer({
|
|
29849
30041
|
signature: DATE,
|
|
29850
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30042
|
+
isTypeInstance: neo4j_driver_core_1$s.isDate,
|
|
29851
30043
|
toStructure: function (value) {
|
|
29852
30044
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
29853
30045
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -29869,12 +30061,12 @@
|
|
|
29869
30061
|
*/
|
|
29870
30062
|
function createLocalDateTimeTransformer(_a) {
|
|
29871
30063
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29872
|
-
return new transformer_1$
|
|
30064
|
+
return new transformer_1$f.TypeTransformer({
|
|
29873
30065
|
signature: LOCAL_DATE_TIME,
|
|
29874
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30066
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalDateTime,
|
|
29875
30067
|
toStructure: function (value) {
|
|
29876
30068
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29877
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30069
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29878
30070
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
29879
30071
|
},
|
|
29880
30072
|
fromStructure: function (struct) {
|
|
@@ -29894,12 +30086,12 @@
|
|
|
29894
30086
|
*/
|
|
29895
30087
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
29896
30088
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29897
|
-
return new transformer_1$
|
|
30089
|
+
return new transformer_1$f.TypeTransformer({
|
|
29898
30090
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
29899
|
-
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; },
|
|
29900
30092
|
toStructure: function (value) {
|
|
29901
30093
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29902
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30094
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29903
30095
|
var timeZoneId = value.timeZoneId;
|
|
29904
30096
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
29905
30097
|
},
|
|
@@ -29907,7 +30099,7 @@
|
|
|
29907
30099
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
29908
30100
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
29909
30101
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29910
|
-
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);
|
|
29911
30103
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29912
30104
|
}
|
|
29913
30105
|
});
|
|
@@ -29921,20 +30113,20 @@
|
|
|
29921
30113
|
*/
|
|
29922
30114
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
29923
30115
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29924
|
-
return new transformer_1$
|
|
30116
|
+
return new transformer_1$f.TypeTransformer({
|
|
29925
30117
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
29926
|
-
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; },
|
|
29927
30119
|
toStructure: function (value) {
|
|
29928
30120
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29929
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29930
|
-
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);
|
|
29931
30123
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
29932
30124
|
},
|
|
29933
30125
|
fromStructure: function (struct) {
|
|
29934
30126
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
29935
30127
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
29936
30128
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29937
|
-
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);
|
|
29938
30130
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29939
30131
|
}
|
|
29940
30132
|
});
|
|
@@ -29950,15 +30142,15 @@
|
|
|
29950
30142
|
for (var prop in obj) {
|
|
29951
30143
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
29952
30144
|
var value = obj[prop];
|
|
29953
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
30145
|
+
clone[prop] = (0, neo4j_driver_core_1$s.isInt)(value) ? convert(value) : value;
|
|
29954
30146
|
}
|
|
29955
30147
|
}
|
|
29956
30148
|
Object.freeze(clone);
|
|
29957
30149
|
return clone;
|
|
29958
30150
|
}
|
|
29959
|
-
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 });
|
|
29960
30152
|
|
|
29961
|
-
var __extends$
|
|
30153
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29962
30154
|
var extendStatics = function (d, b) {
|
|
29963
30155
|
extendStatics = Object.setPrototypeOf ||
|
|
29964
30156
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29973,7 +30165,7 @@
|
|
|
29973
30165
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29974
30166
|
};
|
|
29975
30167
|
})();
|
|
29976
|
-
var __importDefault$
|
|
30168
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29977
30169
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29978
30170
|
};
|
|
29979
30171
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -29993,14 +30185,14 @@
|
|
|
29993
30185
|
* See the License for the specific language governing permissions and
|
|
29994
30186
|
* limitations under the License.
|
|
29995
30187
|
*/
|
|
29996
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
29997
|
-
var packstream_1$2 = __importDefault$
|
|
29998
|
-
var neo4j_driver_core_1$
|
|
29999
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
30000
|
-
var transformer_1$
|
|
30001
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
30002
|
-
var BoltProtocol$
|
|
30003
|
-
__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);
|
|
30004
30196
|
function BoltProtocol() {
|
|
30005
30197
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30006
30198
|
}
|
|
@@ -30014,7 +30206,7 @@
|
|
|
30014
30206
|
get: function () {
|
|
30015
30207
|
var _this = this;
|
|
30016
30208
|
if (this._transformer === undefined) {
|
|
30017
|
-
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); }));
|
|
30018
30210
|
}
|
|
30019
30211
|
return this._transformer;
|
|
30020
30212
|
},
|
|
@@ -30030,7 +30222,7 @@
|
|
|
30030
30222
|
});
|
|
30031
30223
|
return BoltProtocol;
|
|
30032
30224
|
}(bolt_protocol_v1_1$1.default));
|
|
30033
|
-
boltProtocolV2.default = BoltProtocol$
|
|
30225
|
+
boltProtocolV2.default = BoltProtocol$e;
|
|
30034
30226
|
|
|
30035
30227
|
var boltProtocolV3 = {};
|
|
30036
30228
|
|
|
@@ -30052,8 +30244,8 @@
|
|
|
30052
30244
|
* See the License for the specific language governing permissions and
|
|
30053
30245
|
* limitations under the License.
|
|
30054
30246
|
*/
|
|
30055
|
-
var __assign$
|
|
30056
|
-
__assign$
|
|
30247
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30248
|
+
__assign$m = Object.assign || function(t) {
|
|
30057
30249
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30058
30250
|
s = arguments[i];
|
|
30059
30251
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30061,16 +30253,16 @@
|
|
|
30061
30253
|
}
|
|
30062
30254
|
return t;
|
|
30063
30255
|
};
|
|
30064
|
-
return __assign$
|
|
30256
|
+
return __assign$m.apply(this, arguments);
|
|
30065
30257
|
};
|
|
30066
|
-
var __importDefault$
|
|
30258
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30067
30259
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30068
30260
|
};
|
|
30069
30261
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
30070
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
30071
|
-
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);
|
|
30072
30264
|
|
|
30073
|
-
var __extends$
|
|
30265
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30074
30266
|
var extendStatics = function (d, b) {
|
|
30075
30267
|
extendStatics = Object.setPrototypeOf ||
|
|
30076
30268
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30085,8 +30277,8 @@
|
|
|
30085
30277
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30086
30278
|
};
|
|
30087
30279
|
})();
|
|
30088
|
-
var __assign$
|
|
30089
|
-
__assign$
|
|
30280
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30281
|
+
__assign$l = Object.assign || function(t) {
|
|
30090
30282
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30091
30283
|
s = arguments[i];
|
|
30092
30284
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30094,9 +30286,9 @@
|
|
|
30094
30286
|
}
|
|
30095
30287
|
return t;
|
|
30096
30288
|
};
|
|
30097
|
-
return __assign$
|
|
30289
|
+
return __assign$l.apply(this, arguments);
|
|
30098
30290
|
};
|
|
30099
|
-
var __importDefault$
|
|
30291
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30100
30292
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30101
30293
|
};
|
|
30102
30294
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -30116,19 +30308,19 @@
|
|
|
30116
30308
|
* See the License for the specific language governing permissions and
|
|
30117
30309
|
* limitations under the License.
|
|
30118
30310
|
*/
|
|
30119
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
30120
|
-
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);
|
|
30121
30313
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
30122
30314
|
var stream_observers_1$a = streamObservers;
|
|
30123
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
30124
|
-
var transformer_1$
|
|
30125
|
-
var neo4j_driver_core_1$
|
|
30126
|
-
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;
|
|
30127
30319
|
var CONTEXT$1 = 'context';
|
|
30128
30320
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
30129
30321
|
var noOpObserver = new stream_observers_1$a.StreamObserver();
|
|
30130
|
-
var BoltProtocol$
|
|
30131
|
-
__extends$
|
|
30322
|
+
var BoltProtocol$d = /** @class */ (function (_super) {
|
|
30323
|
+
__extends$k(BoltProtocol, _super);
|
|
30132
30324
|
function BoltProtocol() {
|
|
30133
30325
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30134
30326
|
}
|
|
@@ -30143,7 +30335,7 @@
|
|
|
30143
30335
|
get: function () {
|
|
30144
30336
|
var _this = this;
|
|
30145
30337
|
if (this._transformer === undefined) {
|
|
30146
|
-
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); }));
|
|
30147
30339
|
}
|
|
30148
30340
|
return this._transformer;
|
|
30149
30341
|
},
|
|
@@ -30270,7 +30462,7 @@
|
|
|
30270
30462
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
30271
30463
|
var _b;
|
|
30272
30464
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
30273
|
-
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() }));
|
|
30274
30466
|
return new stream_observers_1$a.ProcedureRouteObserver({
|
|
30275
30467
|
resultObserver: resultObserver,
|
|
30276
30468
|
onProtocolError: this._onProtocolError,
|
|
@@ -30280,7 +30472,7 @@
|
|
|
30280
30472
|
};
|
|
30281
30473
|
return BoltProtocol;
|
|
30282
30474
|
}(bolt_protocol_v2_1$1.default));
|
|
30283
|
-
boltProtocolV3.default = BoltProtocol$
|
|
30475
|
+
boltProtocolV3.default = BoltProtocol$d;
|
|
30284
30476
|
|
|
30285
30477
|
var boltProtocolV4x0 = {};
|
|
30286
30478
|
|
|
@@ -30302,8 +30494,8 @@
|
|
|
30302
30494
|
* See the License for the specific language governing permissions and
|
|
30303
30495
|
* limitations under the License.
|
|
30304
30496
|
*/
|
|
30305
|
-
var __assign$
|
|
30306
|
-
__assign$
|
|
30497
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30498
|
+
__assign$k = Object.assign || function(t) {
|
|
30307
30499
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30308
30500
|
s = arguments[i];
|
|
30309
30501
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30311,16 +30503,16 @@
|
|
|
30311
30503
|
}
|
|
30312
30504
|
return t;
|
|
30313
30505
|
};
|
|
30314
|
-
return __assign$
|
|
30506
|
+
return __assign$k.apply(this, arguments);
|
|
30315
30507
|
};
|
|
30316
|
-
var __importDefault$
|
|
30508
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30317
30509
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30318
30510
|
};
|
|
30319
30511
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
30320
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
30321
|
-
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);
|
|
30322
30514
|
|
|
30323
|
-
var __extends$
|
|
30515
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30324
30516
|
var extendStatics = function (d, b) {
|
|
30325
30517
|
extendStatics = Object.setPrototypeOf ||
|
|
30326
30518
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30335,8 +30527,8 @@
|
|
|
30335
30527
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30336
30528
|
};
|
|
30337
30529
|
})();
|
|
30338
|
-
var __assign$
|
|
30339
|
-
__assign$
|
|
30530
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30531
|
+
__assign$j = Object.assign || function(t) {
|
|
30340
30532
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30341
30533
|
s = arguments[i];
|
|
30342
30534
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30344,9 +30536,9 @@
|
|
|
30344
30536
|
}
|
|
30345
30537
|
return t;
|
|
30346
30538
|
};
|
|
30347
|
-
return __assign$
|
|
30539
|
+
return __assign$j.apply(this, arguments);
|
|
30348
30540
|
};
|
|
30349
|
-
var __importDefault$
|
|
30541
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30350
30542
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30351
30543
|
};
|
|
30352
30544
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -30366,19 +30558,19 @@
|
|
|
30366
30558
|
* See the License for the specific language governing permissions and
|
|
30367
30559
|
* limitations under the License.
|
|
30368
30560
|
*/
|
|
30369
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
30370
|
-
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);
|
|
30371
30563
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
30372
30564
|
var stream_observers_1$9 = streamObservers;
|
|
30373
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
30374
|
-
var transformer_1$
|
|
30375
|
-
var neo4j_driver_core_1$
|
|
30376
|
-
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;
|
|
30377
30569
|
var CONTEXT = 'context';
|
|
30378
30570
|
var DATABASE = 'database';
|
|
30379
30571
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
30380
|
-
var BoltProtocol$
|
|
30381
|
-
__extends$
|
|
30572
|
+
var BoltProtocol$c = /** @class */ (function (_super) {
|
|
30573
|
+
__extends$j(BoltProtocol, _super);
|
|
30382
30574
|
function BoltProtocol() {
|
|
30383
30575
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30384
30576
|
}
|
|
@@ -30393,7 +30585,7 @@
|
|
|
30393
30585
|
get: function () {
|
|
30394
30586
|
var _this = this;
|
|
30395
30587
|
if (this._transformer === undefined) {
|
|
30396
|
-
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); }));
|
|
30397
30589
|
}
|
|
30398
30590
|
return this._transformer;
|
|
30399
30591
|
},
|
|
@@ -30478,7 +30670,7 @@
|
|
|
30478
30670
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
30479
30671
|
_b[CONTEXT] = routingContext,
|
|
30480
30672
|
_b[DATABASE] = databaseName,
|
|
30481
|
-
_b), __assign$
|
|
30673
|
+
_b), __assign$j(__assign$j({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
30482
30674
|
return new stream_observers_1$9.ProcedureRouteObserver({
|
|
30483
30675
|
resultObserver: resultObserver,
|
|
30484
30676
|
onProtocolError: this._onProtocolError,
|
|
@@ -30488,7 +30680,7 @@
|
|
|
30488
30680
|
};
|
|
30489
30681
|
return BoltProtocol;
|
|
30490
30682
|
}(bolt_protocol_v3_1$1.default));
|
|
30491
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
30683
|
+
boltProtocolV4x0.default = BoltProtocol$c;
|
|
30492
30684
|
|
|
30493
30685
|
var boltProtocolV4x1 = {};
|
|
30494
30686
|
|
|
@@ -30510,8 +30702,8 @@
|
|
|
30510
30702
|
* See the License for the specific language governing permissions and
|
|
30511
30703
|
* limitations under the License.
|
|
30512
30704
|
*/
|
|
30513
|
-
var __assign$
|
|
30514
|
-
__assign$
|
|
30705
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30706
|
+
__assign$i = Object.assign || function(t) {
|
|
30515
30707
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30516
30708
|
s = arguments[i];
|
|
30517
30709
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30519,16 +30711,16 @@
|
|
|
30519
30711
|
}
|
|
30520
30712
|
return t;
|
|
30521
30713
|
};
|
|
30522
|
-
return __assign$
|
|
30714
|
+
return __assign$i.apply(this, arguments);
|
|
30523
30715
|
};
|
|
30524
|
-
var __importDefault$
|
|
30716
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30525
30717
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30526
30718
|
};
|
|
30527
30719
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
30528
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
30529
|
-
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);
|
|
30530
30722
|
|
|
30531
|
-
var __extends$
|
|
30723
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30532
30724
|
var extendStatics = function (d, b) {
|
|
30533
30725
|
extendStatics = Object.setPrototypeOf ||
|
|
30534
30726
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30543,7 +30735,7 @@
|
|
|
30543
30735
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30544
30736
|
};
|
|
30545
30737
|
})();
|
|
30546
|
-
var __importDefault$
|
|
30738
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30547
30739
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30548
30740
|
};
|
|
30549
30741
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -30563,16 +30755,16 @@
|
|
|
30563
30755
|
* See the License for the specific language governing permissions and
|
|
30564
30756
|
* limitations under the License.
|
|
30565
30757
|
*/
|
|
30566
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
30567
|
-
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);
|
|
30568
30760
|
var stream_observers_1$8 = streamObservers;
|
|
30569
|
-
var neo4j_driver_core_1$
|
|
30761
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
30570
30762
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
30571
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
30572
|
-
var transformer_1$
|
|
30573
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
30574
|
-
var BoltProtocol$
|
|
30575
|
-
__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);
|
|
30576
30768
|
/**
|
|
30577
30769
|
* @constructor
|
|
30578
30770
|
* @param {Object} server the server informatio.
|
|
@@ -30602,7 +30794,7 @@
|
|
|
30602
30794
|
get: function () {
|
|
30603
30795
|
var _this = this;
|
|
30604
30796
|
if (this._transformer === undefined) {
|
|
30605
|
-
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); }));
|
|
30606
30798
|
}
|
|
30607
30799
|
return this._transformer;
|
|
30608
30800
|
},
|
|
@@ -30623,7 +30815,7 @@
|
|
|
30623
30815
|
};
|
|
30624
30816
|
return BoltProtocol;
|
|
30625
30817
|
}(bolt_protocol_v4x0_1$1.default));
|
|
30626
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
30818
|
+
boltProtocolV4x1.default = BoltProtocol$b;
|
|
30627
30819
|
|
|
30628
30820
|
var boltProtocolV4x2 = {};
|
|
30629
30821
|
|
|
@@ -30645,8 +30837,8 @@
|
|
|
30645
30837
|
* See the License for the specific language governing permissions and
|
|
30646
30838
|
* limitations under the License.
|
|
30647
30839
|
*/
|
|
30648
|
-
var __assign$
|
|
30649
|
-
__assign$
|
|
30840
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30841
|
+
__assign$h = Object.assign || function(t) {
|
|
30650
30842
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30651
30843
|
s = arguments[i];
|
|
30652
30844
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30654,16 +30846,16 @@
|
|
|
30654
30846
|
}
|
|
30655
30847
|
return t;
|
|
30656
30848
|
};
|
|
30657
|
-
return __assign$
|
|
30849
|
+
return __assign$h.apply(this, arguments);
|
|
30658
30850
|
};
|
|
30659
|
-
var __importDefault$
|
|
30851
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30660
30852
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30661
30853
|
};
|
|
30662
30854
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
30663
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
30664
|
-
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);
|
|
30665
30857
|
|
|
30666
|
-
var __extends$
|
|
30858
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30667
30859
|
var extendStatics = function (d, b) {
|
|
30668
30860
|
extendStatics = Object.setPrototypeOf ||
|
|
30669
30861
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30678,7 +30870,7 @@
|
|
|
30678
30870
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30679
30871
|
};
|
|
30680
30872
|
})();
|
|
30681
|
-
var __importDefault$
|
|
30873
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30682
30874
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30683
30875
|
};
|
|
30684
30876
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -30698,13 +30890,13 @@
|
|
|
30698
30890
|
* See the License for the specific language governing permissions and
|
|
30699
30891
|
* limitations under the License.
|
|
30700
30892
|
*/
|
|
30701
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
30702
|
-
var neo4j_driver_core_1$
|
|
30703
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
30704
|
-
var transformer_1$
|
|
30705
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
30706
|
-
var BoltProtocol$
|
|
30707
|
-
__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);
|
|
30708
30900
|
function BoltProtocol() {
|
|
30709
30901
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30710
30902
|
}
|
|
@@ -30719,7 +30911,7 @@
|
|
|
30719
30911
|
get: function () {
|
|
30720
30912
|
var _this = this;
|
|
30721
30913
|
if (this._transformer === undefined) {
|
|
30722
|
-
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); }));
|
|
30723
30915
|
}
|
|
30724
30916
|
return this._transformer;
|
|
30725
30917
|
},
|
|
@@ -30728,7 +30920,7 @@
|
|
|
30728
30920
|
});
|
|
30729
30921
|
return BoltProtocol;
|
|
30730
30922
|
}(bolt_protocol_v4x1_1$1.default));
|
|
30731
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
30923
|
+
boltProtocolV4x2.default = BoltProtocol$a;
|
|
30732
30924
|
|
|
30733
30925
|
var boltProtocolV4x3 = {};
|
|
30734
30926
|
|
|
@@ -30750,8 +30942,8 @@
|
|
|
30750
30942
|
* See the License for the specific language governing permissions and
|
|
30751
30943
|
* limitations under the License.
|
|
30752
30944
|
*/
|
|
30753
|
-
var __assign$
|
|
30754
|
-
__assign$
|
|
30945
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30946
|
+
__assign$g = Object.assign || function(t) {
|
|
30755
30947
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30756
30948
|
s = arguments[i];
|
|
30757
30949
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30759,14 +30951,14 @@
|
|
|
30759
30951
|
}
|
|
30760
30952
|
return t;
|
|
30761
30953
|
};
|
|
30762
|
-
return __assign$
|
|
30954
|
+
return __assign$g.apply(this, arguments);
|
|
30763
30955
|
};
|
|
30764
|
-
var __importDefault$
|
|
30956
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30765
30957
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30766
30958
|
};
|
|
30767
30959
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
30768
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
30769
|
-
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);
|
|
30770
30962
|
|
|
30771
30963
|
var boltProtocolV5x0_utc_transformer = {};
|
|
30772
30964
|
|
|
@@ -30788,8 +30980,8 @@
|
|
|
30788
30980
|
* See the License for the specific language governing permissions and
|
|
30789
30981
|
* limitations under the License.
|
|
30790
30982
|
*/
|
|
30791
|
-
var __assign$
|
|
30792
|
-
__assign$
|
|
30983
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30984
|
+
__assign$f = Object.assign || function(t) {
|
|
30793
30985
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30794
30986
|
s = arguments[i];
|
|
30795
30987
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30797,14 +30989,14 @@
|
|
|
30797
30989
|
}
|
|
30798
30990
|
return t;
|
|
30799
30991
|
};
|
|
30800
|
-
return __assign$
|
|
30992
|
+
return __assign$f.apply(this, arguments);
|
|
30801
30993
|
};
|
|
30802
|
-
var __importDefault$
|
|
30994
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30803
30995
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30804
30996
|
};
|
|
30805
30997
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
30806
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
30807
|
-
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);
|
|
30808
31000
|
|
|
30809
31001
|
/**
|
|
30810
31002
|
* Copyright (c) "Neo4j"
|
|
@@ -30838,16 +31030,16 @@
|
|
|
30838
31030
|
}
|
|
30839
31031
|
return ar;
|
|
30840
31032
|
};
|
|
30841
|
-
var __importDefault$
|
|
31033
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30842
31034
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30843
31035
|
};
|
|
30844
31036
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
30845
31037
|
var packstream_1$1 = packstream;
|
|
30846
|
-
var neo4j_driver_core_1$
|
|
30847
|
-
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);
|
|
30848
31040
|
var temporal_factory_1 = temporalFactory;
|
|
30849
31041
|
var functional_1 = functional;
|
|
30850
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
31042
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$m.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
30851
31043
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
30852
31044
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
30853
31045
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -30861,7 +31053,7 @@
|
|
|
30861
31053
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
30862
31054
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
30863
31055
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
30864
|
-
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);
|
|
30865
31057
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30866
31058
|
},
|
|
30867
31059
|
toStructure: function (value) {
|
|
@@ -30875,7 +31067,7 @@
|
|
|
30875
31067
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
30876
31068
|
}
|
|
30877
31069
|
var utc = epochSecond.subtract(offset);
|
|
30878
|
-
var nano = (0, neo4j_driver_core_1$
|
|
31070
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30879
31071
|
var timeZoneId = value.timeZoneId;
|
|
30880
31072
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
30881
31073
|
}
|
|
@@ -30937,9 +31129,9 @@
|
|
|
30937
31129
|
}
|
|
30938
31130
|
function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
30939
31131
|
var formatter = getDateTimeFormatForZoneId(timeZoneId);
|
|
30940
|
-
var utc = (0, neo4j_driver_core_1$
|
|
31132
|
+
var utc = (0, neo4j_driver_core_1$m.int)(epochSecond)
|
|
30941
31133
|
.multiply(1000)
|
|
30942
|
-
.add((0, neo4j_driver_core_1$
|
|
31134
|
+
.add((0, neo4j_driver_core_1$m.int)(nano).div(1000000))
|
|
30943
31135
|
.toNumber();
|
|
30944
31136
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
30945
31137
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -30950,10 +31142,10 @@
|
|
|
30950
31142
|
: functional_1.identity;
|
|
30951
31143
|
}
|
|
30952
31144
|
else if (currentValue.type === 'hour') {
|
|
30953
|
-
obj.hour = (0, neo4j_driver_core_1$
|
|
31145
|
+
obj.hour = (0, neo4j_driver_core_1$m.int)(currentValue.value).modulo(24);
|
|
30954
31146
|
}
|
|
30955
31147
|
else if (currentValue.type !== 'literal') {
|
|
30956
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
31148
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$m.int)(currentValue.value);
|
|
30957
31149
|
}
|
|
30958
31150
|
return obj;
|
|
30959
31151
|
}, {});
|
|
@@ -30970,17 +31162,17 @@
|
|
|
30970
31162
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
30971
31163
|
toStructure: function (value) {
|
|
30972
31164
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
30973
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30974
|
-
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);
|
|
30975
31167
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
30976
31168
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
30977
31169
|
},
|
|
30978
31170
|
fromStructure: function (struct) {
|
|
30979
31171
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
30980
31172
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
30981
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
31173
|
+
var epochSecond = (0, neo4j_driver_core_1$m.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
30982
31174
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
30983
|
-
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);
|
|
30984
31176
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30985
31177
|
}
|
|
30986
31178
|
});
|
|
@@ -30996,7 +31188,7 @@
|
|
|
30996
31188
|
for (var prop in obj) {
|
|
30997
31189
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
30998
31190
|
var value = obj[prop];
|
|
30999
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
31191
|
+
clone[prop] = (0, neo4j_driver_core_1$m.isInt)(value) ? convert(value) : value;
|
|
31000
31192
|
}
|
|
31001
31193
|
}
|
|
31002
31194
|
Object.freeze(clone);
|
|
@@ -31007,7 +31199,7 @@
|
|
|
31007
31199
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
31008
31200
|
};
|
|
31009
31201
|
|
|
31010
|
-
var __extends$
|
|
31202
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31011
31203
|
var extendStatics = function (d, b) {
|
|
31012
31204
|
extendStatics = Object.setPrototypeOf ||
|
|
31013
31205
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31022,8 +31214,8 @@
|
|
|
31022
31214
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31023
31215
|
};
|
|
31024
31216
|
})();
|
|
31025
|
-
var __assign$
|
|
31026
|
-
__assign$
|
|
31217
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31218
|
+
__assign$e = Object.assign || function(t) {
|
|
31027
31219
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31028
31220
|
s = arguments[i];
|
|
31029
31221
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31031,9 +31223,9 @@
|
|
|
31031
31223
|
}
|
|
31032
31224
|
return t;
|
|
31033
31225
|
};
|
|
31034
|
-
return __assign$
|
|
31226
|
+
return __assign$e.apply(this, arguments);
|
|
31035
31227
|
};
|
|
31036
|
-
var __importDefault$
|
|
31228
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31037
31229
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31038
31230
|
};
|
|
31039
31231
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -31053,17 +31245,17 @@
|
|
|
31053
31245
|
* See the License for the specific language governing permissions and
|
|
31054
31246
|
* limitations under the License.
|
|
31055
31247
|
*/
|
|
31056
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
31057
|
-
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);
|
|
31058
31250
|
var stream_observers_1$7 = streamObservers;
|
|
31059
31251
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
31060
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
31061
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
31062
|
-
var transformer_1$
|
|
31063
|
-
var neo4j_driver_core_1$
|
|
31064
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
31065
|
-
var BoltProtocol$
|
|
31066
|
-
__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);
|
|
31067
31259
|
function BoltProtocol() {
|
|
31068
31260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31069
31261
|
}
|
|
@@ -31078,7 +31270,7 @@
|
|
|
31078
31270
|
get: function () {
|
|
31079
31271
|
var _this = this;
|
|
31080
31272
|
if (this._transformer === undefined) {
|
|
31081
|
-
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); }));
|
|
31082
31274
|
}
|
|
31083
31275
|
return this._transformer;
|
|
31084
31276
|
},
|
|
@@ -31147,15 +31339,15 @@
|
|
|
31147
31339
|
};
|
|
31148
31340
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31149
31341
|
var _this = this;
|
|
31150
|
-
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); }));
|
|
31151
31343
|
};
|
|
31152
31344
|
return BoltProtocol;
|
|
31153
31345
|
}(bolt_protocol_v4x2_1$1.default));
|
|
31154
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
31346
|
+
boltProtocolV4x3.default = BoltProtocol$9;
|
|
31155
31347
|
|
|
31156
31348
|
var boltProtocolV4x4 = {};
|
|
31157
31349
|
|
|
31158
|
-
var __extends$
|
|
31350
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31159
31351
|
var extendStatics = function (d, b) {
|
|
31160
31352
|
extendStatics = Object.setPrototypeOf ||
|
|
31161
31353
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31170,8 +31362,8 @@
|
|
|
31170
31362
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31171
31363
|
};
|
|
31172
31364
|
})();
|
|
31173
|
-
var __assign$
|
|
31174
|
-
__assign$
|
|
31365
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31366
|
+
__assign$d = Object.assign || function(t) {
|
|
31175
31367
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31176
31368
|
s = arguments[i];
|
|
31177
31369
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31179,9 +31371,9 @@
|
|
|
31179
31371
|
}
|
|
31180
31372
|
return t;
|
|
31181
31373
|
};
|
|
31182
|
-
return __assign$
|
|
31374
|
+
return __assign$d.apply(this, arguments);
|
|
31183
31375
|
};
|
|
31184
|
-
var __importDefault$
|
|
31376
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31185
31377
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31186
31378
|
};
|
|
31187
31379
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -31201,17 +31393,17 @@
|
|
|
31201
31393
|
* See the License for the specific language governing permissions and
|
|
31202
31394
|
* limitations under the License.
|
|
31203
31395
|
*/
|
|
31204
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
31205
|
-
var neo4j_driver_core_1$
|
|
31206
|
-
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);
|
|
31207
31399
|
var stream_observers_1$6 = streamObservers;
|
|
31208
31400
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
31209
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
31210
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
31211
|
-
var transformer_1$
|
|
31212
|
-
var _a$6 = neo4j_driver_core_1$
|
|
31213
|
-
var BoltProtocol$
|
|
31214
|
-
__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);
|
|
31215
31407
|
function BoltProtocol() {
|
|
31216
31408
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31217
31409
|
}
|
|
@@ -31226,7 +31418,7 @@
|
|
|
31226
31418
|
get: function () {
|
|
31227
31419
|
var _this = this;
|
|
31228
31420
|
if (this._transformer === undefined) {
|
|
31229
|
-
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); }));
|
|
31230
31422
|
}
|
|
31231
31423
|
return this._transformer;
|
|
31232
31424
|
},
|
|
@@ -31305,11 +31497,11 @@
|
|
|
31305
31497
|
};
|
|
31306
31498
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31307
31499
|
var _this = this;
|
|
31308
|
-
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); }));
|
|
31309
31501
|
};
|
|
31310
31502
|
return BoltProtocol;
|
|
31311
31503
|
}(bolt_protocol_v4x3_1$1.default));
|
|
31312
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
31504
|
+
boltProtocolV4x4.default = BoltProtocol$8;
|
|
31313
31505
|
|
|
31314
31506
|
var boltProtocolV5x0 = {};
|
|
31315
31507
|
|
|
@@ -31331,8 +31523,8 @@
|
|
|
31331
31523
|
* See the License for the specific language governing permissions and
|
|
31332
31524
|
* limitations under the License.
|
|
31333
31525
|
*/
|
|
31334
|
-
var __assign$
|
|
31335
|
-
__assign$
|
|
31526
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31527
|
+
__assign$c = Object.assign || function(t) {
|
|
31336
31528
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31337
31529
|
s = arguments[i];
|
|
31338
31530
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31340,7 +31532,7 @@
|
|
|
31340
31532
|
}
|
|
31341
31533
|
return t;
|
|
31342
31534
|
};
|
|
31343
|
-
return __assign$
|
|
31535
|
+
return __assign$c.apply(this, arguments);
|
|
31344
31536
|
};
|
|
31345
31537
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
31346
31538
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -31358,14 +31550,14 @@
|
|
|
31358
31550
|
}
|
|
31359
31551
|
return ar;
|
|
31360
31552
|
};
|
|
31361
|
-
var __importDefault$
|
|
31553
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31362
31554
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31363
31555
|
};
|
|
31364
31556
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
31365
31557
|
var packstream_1 = packstream;
|
|
31366
|
-
var neo4j_driver_core_1$
|
|
31367
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
31368
|
-
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);
|
|
31369
31561
|
var NODE_STRUCT_SIZE = 4;
|
|
31370
31562
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
31371
31563
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -31380,7 +31572,7 @@
|
|
|
31380
31572
|
fromStructure: function (struct) {
|
|
31381
31573
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
31382
31574
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
31383
|
-
return new neo4j_driver_core_1$
|
|
31575
|
+
return new neo4j_driver_core_1$j.Node(identity, lables, properties, elementId);
|
|
31384
31576
|
}
|
|
31385
31577
|
});
|
|
31386
31578
|
}
|
|
@@ -31395,7 +31587,7 @@
|
|
|
31395
31587
|
fromStructure: function (struct) {
|
|
31396
31588
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31397
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];
|
|
31398
|
-
return new neo4j_driver_core_1$
|
|
31590
|
+
return new neo4j_driver_core_1$j.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
31399
31591
|
}
|
|
31400
31592
|
});
|
|
31401
31593
|
}
|
|
@@ -31410,13 +31602,13 @@
|
|
|
31410
31602
|
fromStructure: function (struct) {
|
|
31411
31603
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31412
31604
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
31413
|
-
return new neo4j_driver_core_1$
|
|
31605
|
+
return new neo4j_driver_core_1$j.UnboundRelationship(identity, type, properties, elementId);
|
|
31414
31606
|
}
|
|
31415
31607
|
});
|
|
31416
31608
|
}
|
|
31417
|
-
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 });
|
|
31418
31610
|
|
|
31419
|
-
var __extends$
|
|
31611
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31420
31612
|
var extendStatics = function (d, b) {
|
|
31421
31613
|
extendStatics = Object.setPrototypeOf ||
|
|
31422
31614
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31431,7 +31623,7 @@
|
|
|
31431
31623
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31432
31624
|
};
|
|
31433
31625
|
})();
|
|
31434
|
-
var __importDefault$
|
|
31626
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31435
31627
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31436
31628
|
};
|
|
31437
31629
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -31451,16 +31643,16 @@
|
|
|
31451
31643
|
* See the License for the specific language governing permissions and
|
|
31452
31644
|
* limitations under the License.
|
|
31453
31645
|
*/
|
|
31454
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
31646
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$k(boltProtocolV4x4);
|
|
31455
31647
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
31456
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
31457
|
-
var transformer_1$
|
|
31458
|
-
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);
|
|
31459
31651
|
var stream_observers_1$5 = streamObservers;
|
|
31460
|
-
var neo4j_driver_core_1$
|
|
31461
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
31462
|
-
var BoltProtocol$
|
|
31463
|
-
__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);
|
|
31464
31656
|
function BoltProtocol() {
|
|
31465
31657
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31466
31658
|
}
|
|
@@ -31475,7 +31667,7 @@
|
|
|
31475
31667
|
get: function () {
|
|
31476
31668
|
var _this = this;
|
|
31477
31669
|
if (this._transformer === undefined) {
|
|
31478
|
-
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); }));
|
|
31479
31671
|
}
|
|
31480
31672
|
return this._transformer;
|
|
31481
31673
|
},
|
|
@@ -31507,7 +31699,7 @@
|
|
|
31507
31699
|
};
|
|
31508
31700
|
return BoltProtocol;
|
|
31509
31701
|
}(bolt_protocol_v4x4_1$1.default));
|
|
31510
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
31702
|
+
boltProtocolV5x0.default = BoltProtocol$7;
|
|
31511
31703
|
|
|
31512
31704
|
var boltProtocolV5x1 = {};
|
|
31513
31705
|
|
|
@@ -31529,8 +31721,8 @@
|
|
|
31529
31721
|
* See the License for the specific language governing permissions and
|
|
31530
31722
|
* limitations under the License.
|
|
31531
31723
|
*/
|
|
31532
|
-
var __assign$
|
|
31533
|
-
__assign$
|
|
31724
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31725
|
+
__assign$b = Object.assign || function(t) {
|
|
31534
31726
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31535
31727
|
s = arguments[i];
|
|
31536
31728
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31538,16 +31730,16 @@
|
|
|
31538
31730
|
}
|
|
31539
31731
|
return t;
|
|
31540
31732
|
};
|
|
31541
|
-
return __assign$
|
|
31733
|
+
return __assign$b.apply(this, arguments);
|
|
31542
31734
|
};
|
|
31543
|
-
var __importDefault$
|
|
31735
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31544
31736
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31545
31737
|
};
|
|
31546
31738
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
31547
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
31548
|
-
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);
|
|
31549
31741
|
|
|
31550
|
-
var __extends$
|
|
31742
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31551
31743
|
var extendStatics = function (d, b) {
|
|
31552
31744
|
extendStatics = Object.setPrototypeOf ||
|
|
31553
31745
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31562,8 +31754,8 @@
|
|
|
31562
31754
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31563
31755
|
};
|
|
31564
31756
|
})();
|
|
31565
|
-
var __assign$
|
|
31566
|
-
__assign$
|
|
31757
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31758
|
+
__assign$a = Object.assign || function(t) {
|
|
31567
31759
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31568
31760
|
s = arguments[i];
|
|
31569
31761
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31571,9 +31763,9 @@
|
|
|
31571
31763
|
}
|
|
31572
31764
|
return t;
|
|
31573
31765
|
};
|
|
31574
|
-
return __assign$
|
|
31766
|
+
return __assign$a.apply(this, arguments);
|
|
31575
31767
|
};
|
|
31576
|
-
var __importDefault$
|
|
31768
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31577
31769
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31578
31770
|
};
|
|
31579
31771
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -31593,16 +31785,16 @@
|
|
|
31593
31785
|
* See the License for the specific language governing permissions and
|
|
31594
31786
|
* limitations under the License.
|
|
31595
31787
|
*/
|
|
31596
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
31788
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$i(boltProtocolV5x0);
|
|
31597
31789
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
31598
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
31599
|
-
var transformer_1$
|
|
31600
|
-
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);
|
|
31601
31793
|
var stream_observers_1$4 = streamObservers;
|
|
31602
|
-
var neo4j_driver_core_1$
|
|
31603
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
31604
|
-
var BoltProtocol$
|
|
31605
|
-
__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);
|
|
31606
31798
|
function BoltProtocol() {
|
|
31607
31799
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31608
31800
|
}
|
|
@@ -31617,7 +31809,7 @@
|
|
|
31617
31809
|
get: function () {
|
|
31618
31810
|
var _this = this;
|
|
31619
31811
|
if (this._transformer === undefined) {
|
|
31620
|
-
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); }));
|
|
31621
31813
|
}
|
|
31622
31814
|
return this._transformer;
|
|
31623
31815
|
},
|
|
@@ -31658,7 +31850,7 @@
|
|
|
31658
31850
|
this.write(request_message_1$4.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
31659
31851
|
return this.logon({
|
|
31660
31852
|
authToken: authToken,
|
|
31661
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31853
|
+
onComplete: function (metadata) { return onComplete(__assign$a(__assign$a({}, metadata), state.metadata)); },
|
|
31662
31854
|
onError: onError,
|
|
31663
31855
|
flush: true
|
|
31664
31856
|
});
|
|
@@ -31705,7 +31897,7 @@
|
|
|
31705
31897
|
};
|
|
31706
31898
|
return BoltProtocol;
|
|
31707
31899
|
}(bolt_protocol_v5x0_1$1.default));
|
|
31708
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
31900
|
+
boltProtocolV5x1.default = BoltProtocol$6;
|
|
31709
31901
|
|
|
31710
31902
|
var boltProtocolV5x2 = {};
|
|
31711
31903
|
|
|
@@ -31727,8 +31919,8 @@
|
|
|
31727
31919
|
* See the License for the specific language governing permissions and
|
|
31728
31920
|
* limitations under the License.
|
|
31729
31921
|
*/
|
|
31730
|
-
var __assign$
|
|
31731
|
-
__assign$
|
|
31922
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31923
|
+
__assign$9 = Object.assign || function(t) {
|
|
31732
31924
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31733
31925
|
s = arguments[i];
|
|
31734
31926
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31736,16 +31928,16 @@
|
|
|
31736
31928
|
}
|
|
31737
31929
|
return t;
|
|
31738
31930
|
};
|
|
31739
|
-
return __assign$
|
|
31931
|
+
return __assign$9.apply(this, arguments);
|
|
31740
31932
|
};
|
|
31741
|
-
var __importDefault$
|
|
31933
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31742
31934
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31743
31935
|
};
|
|
31744
31936
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
31745
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
31746
|
-
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);
|
|
31747
31939
|
|
|
31748
|
-
var __extends$
|
|
31940
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31749
31941
|
var extendStatics = function (d, b) {
|
|
31750
31942
|
extendStatics = Object.setPrototypeOf ||
|
|
31751
31943
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31760,8 +31952,8 @@
|
|
|
31760
31952
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31761
31953
|
};
|
|
31762
31954
|
})();
|
|
31763
|
-
var __assign$
|
|
31764
|
-
__assign$
|
|
31955
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31956
|
+
__assign$8 = Object.assign || function(t) {
|
|
31765
31957
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31766
31958
|
s = arguments[i];
|
|
31767
31959
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31769,9 +31961,9 @@
|
|
|
31769
31961
|
}
|
|
31770
31962
|
return t;
|
|
31771
31963
|
};
|
|
31772
|
-
return __assign$
|
|
31964
|
+
return __assign$8.apply(this, arguments);
|
|
31773
31965
|
};
|
|
31774
|
-
var __importDefault$
|
|
31966
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31775
31967
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31776
31968
|
};
|
|
31777
31969
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -31791,15 +31983,15 @@
|
|
|
31791
31983
|
* See the License for the specific language governing permissions and
|
|
31792
31984
|
* limitations under the License.
|
|
31793
31985
|
*/
|
|
31794
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
31795
|
-
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$
|
|
31796
|
-
var transformer_1$
|
|
31797
|
-
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);
|
|
31798
31990
|
var stream_observers_1$3 = streamObservers;
|
|
31799
|
-
var neo4j_driver_core_1$
|
|
31800
|
-
var _a$5 = neo4j_driver_core_1$
|
|
31801
|
-
var BoltProtocol$
|
|
31802
|
-
__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);
|
|
31803
31995
|
function BoltProtocol() {
|
|
31804
31996
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31805
31997
|
}
|
|
@@ -31814,7 +32006,7 @@
|
|
|
31814
32006
|
get: function () {
|
|
31815
32007
|
var _this = this;
|
|
31816
32008
|
if (this._transformer === undefined) {
|
|
31817
|
-
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); }));
|
|
31818
32010
|
}
|
|
31819
32011
|
return this._transformer;
|
|
31820
32012
|
},
|
|
@@ -31856,7 +32048,7 @@
|
|
|
31856
32048
|
request_message_1$3.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31857
32049
|
return this.logon({
|
|
31858
32050
|
authToken: authToken,
|
|
31859
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32051
|
+
onComplete: function (metadata) { return onComplete(__assign$8(__assign$8({}, metadata), state.metadata)); },
|
|
31860
32052
|
onError: onError,
|
|
31861
32053
|
flush: true
|
|
31862
32054
|
});
|
|
@@ -31907,7 +32099,7 @@
|
|
|
31907
32099
|
};
|
|
31908
32100
|
return BoltProtocol;
|
|
31909
32101
|
}(bolt_protocol_v5x1_1$1.default));
|
|
31910
|
-
boltProtocolV5x2.default = BoltProtocol$
|
|
32102
|
+
boltProtocolV5x2.default = BoltProtocol$5;
|
|
31911
32103
|
|
|
31912
32104
|
var boltProtocolV5x3 = {};
|
|
31913
32105
|
|
|
@@ -31929,8 +32121,8 @@
|
|
|
31929
32121
|
* See the License for the specific language governing permissions and
|
|
31930
32122
|
* limitations under the License.
|
|
31931
32123
|
*/
|
|
31932
|
-
var __assign$
|
|
31933
|
-
__assign$
|
|
32124
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32125
|
+
__assign$7 = Object.assign || function(t) {
|
|
31934
32126
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31935
32127
|
s = arguments[i];
|
|
31936
32128
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31938,16 +32130,16 @@
|
|
|
31938
32130
|
}
|
|
31939
32131
|
return t;
|
|
31940
32132
|
};
|
|
31941
|
-
return __assign$
|
|
32133
|
+
return __assign$7.apply(this, arguments);
|
|
31942
32134
|
};
|
|
31943
|
-
var __importDefault$
|
|
32135
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31944
32136
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31945
32137
|
};
|
|
31946
32138
|
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
31947
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
31948
|
-
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);
|
|
31949
32141
|
|
|
31950
|
-
var __extends$
|
|
32142
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31951
32143
|
var extendStatics = function (d, b) {
|
|
31952
32144
|
extendStatics = Object.setPrototypeOf ||
|
|
31953
32145
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31962,8 +32154,8 @@
|
|
|
31962
32154
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31963
32155
|
};
|
|
31964
32156
|
})();
|
|
31965
|
-
var __assign$
|
|
31966
|
-
__assign$
|
|
32157
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32158
|
+
__assign$6 = Object.assign || function(t) {
|
|
31967
32159
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31968
32160
|
s = arguments[i];
|
|
31969
32161
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31971,9 +32163,9 @@
|
|
|
31971
32163
|
}
|
|
31972
32164
|
return t;
|
|
31973
32165
|
};
|
|
31974
|
-
return __assign$
|
|
32166
|
+
return __assign$6.apply(this, arguments);
|
|
31975
32167
|
};
|
|
31976
|
-
var __importDefault$
|
|
32168
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31977
32169
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31978
32170
|
};
|
|
31979
32171
|
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
@@ -31993,15 +32185,15 @@
|
|
|
31993
32185
|
* See the License for the specific language governing permissions and
|
|
31994
32186
|
* limitations under the License.
|
|
31995
32187
|
*/
|
|
31996
|
-
var bolt_protocol_v5x2_1$1 = __importDefault$
|
|
31997
|
-
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$
|
|
31998
|
-
var transformer_1$
|
|
31999
|
-
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);
|
|
32000
32192
|
var stream_observers_1$2 = streamObservers;
|
|
32001
|
-
var neo4j_driver_core_1$
|
|
32002
|
-
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$
|
|
32003
|
-
var BoltProtocol$
|
|
32004
|
-
__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);
|
|
32005
32197
|
function BoltProtocol() {
|
|
32006
32198
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32007
32199
|
}
|
|
@@ -32016,7 +32208,7 @@
|
|
|
32016
32208
|
get: function () {
|
|
32017
32209
|
var _this = this;
|
|
32018
32210
|
if (this._transformer === undefined) {
|
|
32019
|
-
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); }));
|
|
32020
32212
|
}
|
|
32021
32213
|
return this._transformer;
|
|
32022
32214
|
},
|
|
@@ -32048,14 +32240,14 @@
|
|
|
32048
32240
|
this.write(request_message_1$2.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32049
32241
|
return this.logon({
|
|
32050
32242
|
authToken: authToken,
|
|
32051
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32243
|
+
onComplete: function (metadata) { return onComplete(__assign$6(__assign$6({}, metadata), state.metadata)); },
|
|
32052
32244
|
onError: onError,
|
|
32053
32245
|
flush: true
|
|
32054
32246
|
});
|
|
32055
32247
|
};
|
|
32056
32248
|
return BoltProtocol;
|
|
32057
32249
|
}(bolt_protocol_v5x2_1$1.default));
|
|
32058
|
-
boltProtocolV5x3.default = BoltProtocol$
|
|
32250
|
+
boltProtocolV5x3.default = BoltProtocol$4;
|
|
32059
32251
|
|
|
32060
32252
|
var boltProtocolV5x4 = {};
|
|
32061
32253
|
|
|
@@ -32077,8 +32269,8 @@
|
|
|
32077
32269
|
* See the License for the specific language governing permissions and
|
|
32078
32270
|
* limitations under the License.
|
|
32079
32271
|
*/
|
|
32080
|
-
var __assign$
|
|
32081
|
-
__assign$
|
|
32272
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32273
|
+
__assign$5 = Object.assign || function(t) {
|
|
32082
32274
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32083
32275
|
s = arguments[i];
|
|
32084
32276
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32086,16 +32278,16 @@
|
|
|
32086
32278
|
}
|
|
32087
32279
|
return t;
|
|
32088
32280
|
};
|
|
32089
|
-
return __assign$
|
|
32281
|
+
return __assign$5.apply(this, arguments);
|
|
32090
32282
|
};
|
|
32091
|
-
var __importDefault$
|
|
32283
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32092
32284
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32093
32285
|
};
|
|
32094
32286
|
Object.defineProperty(boltProtocolV5x4_transformer, "__esModule", { value: true });
|
|
32095
|
-
var bolt_protocol_v5x3_transformer_1 = __importDefault$
|
|
32096
|
-
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);
|
|
32097
32289
|
|
|
32098
|
-
var __extends$
|
|
32290
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32099
32291
|
var extendStatics = function (d, b) {
|
|
32100
32292
|
extendStatics = Object.setPrototypeOf ||
|
|
32101
32293
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32110,7 +32302,7 @@
|
|
|
32110
32302
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32111
32303
|
};
|
|
32112
32304
|
})();
|
|
32113
|
-
var __importDefault$
|
|
32305
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32114
32306
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32115
32307
|
};
|
|
32116
32308
|
Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
@@ -32130,15 +32322,15 @@
|
|
|
32130
32322
|
* See the License for the specific language governing permissions and
|
|
32131
32323
|
* limitations under the License.
|
|
32132
32324
|
*/
|
|
32133
|
-
var bolt_protocol_v5x3_1$1 = __importDefault$
|
|
32134
|
-
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$
|
|
32135
|
-
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);
|
|
32136
32328
|
var stream_observers_1$1 = streamObservers;
|
|
32137
|
-
var transformer_1$
|
|
32138
|
-
var neo4j_driver_core_1$
|
|
32139
|
-
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$
|
|
32140
|
-
var BoltProtocol$
|
|
32141
|
-
__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);
|
|
32142
32334
|
function BoltProtocol() {
|
|
32143
32335
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32144
32336
|
}
|
|
@@ -32153,7 +32345,7 @@
|
|
|
32153
32345
|
get: function () {
|
|
32154
32346
|
var _this = this;
|
|
32155
32347
|
if (this._transformer === undefined) {
|
|
32156
|
-
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); }));
|
|
32157
32349
|
}
|
|
32158
32350
|
return this._transformer;
|
|
32159
32351
|
},
|
|
@@ -32179,7 +32371,7 @@
|
|
|
32179
32371
|
};
|
|
32180
32372
|
return BoltProtocol;
|
|
32181
32373
|
}(bolt_protocol_v5x3_1$1.default));
|
|
32182
|
-
boltProtocolV5x4.default = BoltProtocol$
|
|
32374
|
+
boltProtocolV5x4.default = BoltProtocol$3;
|
|
32183
32375
|
|
|
32184
32376
|
var boltProtocolV5x5 = {};
|
|
32185
32377
|
|
|
@@ -32201,8 +32393,8 @@
|
|
|
32201
32393
|
* See the License for the specific language governing permissions and
|
|
32202
32394
|
* limitations under the License.
|
|
32203
32395
|
*/
|
|
32204
|
-
var __assign$
|
|
32205
|
-
__assign$
|
|
32396
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32397
|
+
__assign$4 = Object.assign || function(t) {
|
|
32206
32398
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32207
32399
|
s = arguments[i];
|
|
32208
32400
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32210,16 +32402,16 @@
|
|
|
32210
32402
|
}
|
|
32211
32403
|
return t;
|
|
32212
32404
|
};
|
|
32213
|
-
return __assign$
|
|
32405
|
+
return __assign$4.apply(this, arguments);
|
|
32214
32406
|
};
|
|
32215
|
-
var __importDefault$
|
|
32407
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32216
32408
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32217
32409
|
};
|
|
32218
32410
|
Object.defineProperty(boltProtocolV5x5_transformer, "__esModule", { value: true });
|
|
32219
|
-
var bolt_protocol_v5x4_transformer_1 = __importDefault$
|
|
32220
|
-
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);
|
|
32221
32413
|
|
|
32222
|
-
var __extends$
|
|
32414
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32223
32415
|
var extendStatics = function (d, b) {
|
|
32224
32416
|
extendStatics = Object.setPrototypeOf ||
|
|
32225
32417
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32234,8 +32426,8 @@
|
|
|
32234
32426
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32235
32427
|
};
|
|
32236
32428
|
})();
|
|
32237
|
-
var __assign$
|
|
32238
|
-
__assign$
|
|
32429
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32430
|
+
__assign$3 = Object.assign || function(t) {
|
|
32239
32431
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32240
32432
|
s = arguments[i];
|
|
32241
32433
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32243,9 +32435,9 @@
|
|
|
32243
32435
|
}
|
|
32244
32436
|
return t;
|
|
32245
32437
|
};
|
|
32246
|
-
return __assign$
|
|
32438
|
+
return __assign$3.apply(this, arguments);
|
|
32247
32439
|
};
|
|
32248
|
-
var __importDefault$
|
|
32440
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32249
32441
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32250
32442
|
};
|
|
32251
32443
|
Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
@@ -32265,20 +32457,20 @@
|
|
|
32265
32457
|
* See the License for the specific language governing permissions and
|
|
32266
32458
|
* limitations under the License.
|
|
32267
32459
|
*/
|
|
32268
|
-
var bolt_protocol_v5x4_1$1 = __importDefault$
|
|
32269
|
-
var bolt_protocol_v5x5_transformer_1$
|
|
32270
|
-
var transformer_1$
|
|
32271
|
-
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);
|
|
32272
32464
|
var stream_observers_1 = streamObservers;
|
|
32273
|
-
var neo4j_driver_core_1$
|
|
32274
|
-
var _a$4 = neo4j_driver_core_1$
|
|
32275
|
-
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({
|
|
32276
32468
|
OPERATION: '',
|
|
32277
32469
|
OPERATION_CODE: '0',
|
|
32278
32470
|
CURRENT_SCHEMA: '/'
|
|
32279
32471
|
});
|
|
32280
|
-
var BoltProtocol$
|
|
32281
|
-
__extends$
|
|
32472
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
32473
|
+
__extends$9(BoltProtocol, _super);
|
|
32282
32474
|
function BoltProtocol() {
|
|
32283
32475
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32284
32476
|
}
|
|
@@ -32293,7 +32485,7 @@
|
|
|
32293
32485
|
get: function () {
|
|
32294
32486
|
var _this = this;
|
|
32295
32487
|
if (this._transformer === undefined) {
|
|
32296
|
-
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); }));
|
|
32297
32489
|
}
|
|
32298
32490
|
return this._transformer;
|
|
32299
32491
|
},
|
|
@@ -32325,7 +32517,7 @@
|
|
|
32325
32517
|
this.write(request_message_1.default.hello5x5(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32326
32518
|
return this.logon({
|
|
32327
32519
|
authToken: authToken,
|
|
32328
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32520
|
+
onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
|
|
32329
32521
|
onError: onError,
|
|
32330
32522
|
flush: true
|
|
32331
32523
|
});
|
|
@@ -32382,16 +32574,112 @@
|
|
|
32382
32574
|
*/
|
|
32383
32575
|
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
32384
32576
|
if (Array.isArray(metadata.statuses)) {
|
|
32385
|
-
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 })); });
|
|
32386
32578
|
}
|
|
32387
32579
|
return metadata;
|
|
32388
32580
|
};
|
|
32389
32581
|
return BoltProtocol;
|
|
32390
32582
|
}(bolt_protocol_v5x4_1$1.default));
|
|
32391
|
-
boltProtocolV5x5.default = BoltProtocol$
|
|
32583
|
+
boltProtocolV5x5.default = BoltProtocol$2;
|
|
32392
32584
|
|
|
32393
32585
|
var boltProtocolV5x6 = {};
|
|
32394
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
|
+
|
|
32395
32683
|
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32396
32684
|
var extendStatics = function (d, b) {
|
|
32397
32685
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -32421,7 +32709,7 @@
|
|
|
32421
32709
|
var __importDefault$8 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32422
32710
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32423
32711
|
};
|
|
32424
|
-
Object.defineProperty(
|
|
32712
|
+
Object.defineProperty(boltProtocolV5x7, "__esModule", { value: true });
|
|
32425
32713
|
/**
|
|
32426
32714
|
* Copyright (c) "Neo4j"
|
|
32427
32715
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -32438,11 +32726,11 @@
|
|
|
32438
32726
|
* See the License for the specific language governing permissions and
|
|
32439
32727
|
* limitations under the License.
|
|
32440
32728
|
*/
|
|
32441
|
-
var
|
|
32729
|
+
var bolt_protocol_v5x6_1$1 = __importDefault$8(boltProtocolV5x6);
|
|
32442
32730
|
var bolt_protocol_v5x5_transformer_1 = __importDefault$8(boltProtocolV5x5_transformer);
|
|
32443
32731
|
var transformer_1 = __importDefault$8(transformer);
|
|
32444
32732
|
var neo4j_driver_core_1$b = lib$1;
|
|
32445
|
-
var
|
|
32733
|
+
var BOLT_PROTOCOL_V5_7 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_7;
|
|
32446
32734
|
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
32447
32735
|
OPERATION: '',
|
|
32448
32736
|
OPERATION_CODE: '0',
|
|
@@ -32455,7 +32743,7 @@
|
|
|
32455
32743
|
}
|
|
32456
32744
|
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
32457
32745
|
get: function () {
|
|
32458
|
-
return
|
|
32746
|
+
return BOLT_PROTOCOL_V5_7;
|
|
32459
32747
|
},
|
|
32460
32748
|
enumerable: false,
|
|
32461
32749
|
configurable: true
|
|
@@ -32476,15 +32764,12 @@
|
|
|
32476
32764
|
* @param {object} metadata
|
|
32477
32765
|
* @returns {object}
|
|
32478
32766
|
*/
|
|
32479
|
-
BoltProtocol.prototype.
|
|
32480
|
-
|
|
32481
|
-
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 })); });
|
|
32482
|
-
}
|
|
32483
|
-
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 });
|
|
32484
32769
|
};
|
|
32485
32770
|
return BoltProtocol;
|
|
32486
|
-
}(
|
|
32487
|
-
|
|
32771
|
+
}(bolt_protocol_v5x6_1$1.default));
|
|
32772
|
+
boltProtocolV5x7.default = BoltProtocol;
|
|
32488
32773
|
|
|
32489
32774
|
var responseHandler = {};
|
|
32490
32775
|
|
|
@@ -32557,10 +32842,11 @@
|
|
|
32557
32842
|
* @param {ResponseHandler~Observer} observer Object which will be notified about errors
|
|
32558
32843
|
*/
|
|
32559
32844
|
function ResponseHandler(_a) {
|
|
32560
|
-
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;
|
|
32561
32846
|
this._pendingObservers = [];
|
|
32562
32847
|
this._log = log;
|
|
32563
32848
|
this._transformMetadata = transformMetadata || NO_OP_IDENTITY;
|
|
32849
|
+
this._enrichErrorMetadata = enrichErrorMetadata || NO_OP_IDENTITY;
|
|
32564
32850
|
this._observer = Object.assign({
|
|
32565
32851
|
onObserversCountChange: NO_OP,
|
|
32566
32852
|
onError: NO_OP,
|
|
@@ -32601,9 +32887,7 @@
|
|
|
32601
32887
|
this._log.debug("S: FAILURE ".concat(neo4j_driver_core_1$a.json.stringify(msg)));
|
|
32602
32888
|
}
|
|
32603
32889
|
try {
|
|
32604
|
-
|
|
32605
|
-
var error = (0, neo4j_driver_core_1$a.newError)(payload.message, standardizedCode);
|
|
32606
|
-
this._currentFailure = this._observer.onErrorApplyTransformation(error);
|
|
32890
|
+
this._currentFailure = this._handleErrorPayload(this._enrichErrorMetadata(payload));
|
|
32607
32891
|
this._currentObserver.onError(this._currentFailure);
|
|
32608
32892
|
}
|
|
32609
32893
|
finally {
|
|
@@ -32678,6 +32962,17 @@
|
|
|
32678
32962
|
ResponseHandler.prototype._resetFailure = function () {
|
|
32679
32963
|
this._currentFailure = null;
|
|
32680
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
|
+
};
|
|
32681
32976
|
return ResponseHandler;
|
|
32682
32977
|
}());
|
|
32683
32978
|
responseHandler.default = ResponseHandler;
|
|
@@ -32736,6 +33031,7 @@
|
|
|
32736
33031
|
var bolt_protocol_v5x4_1 = __importDefault$7(boltProtocolV5x4);
|
|
32737
33032
|
var bolt_protocol_v5x5_1 = __importDefault$7(boltProtocolV5x5);
|
|
32738
33033
|
var bolt_protocol_v5x6_1 = __importDefault$7(boltProtocolV5x6);
|
|
33034
|
+
var bolt_protocol_v5x7_1 = __importDefault$7(boltProtocolV5x7);
|
|
32739
33035
|
var response_handler_1 = __importDefault$7(responseHandler);
|
|
32740
33036
|
/**
|
|
32741
33037
|
* Creates a protocol with a given version
|
|
@@ -32757,6 +33053,7 @@
|
|
|
32757
33053
|
var createResponseHandler = function (protocol) {
|
|
32758
33054
|
var responseHandler = new response_handler_1.default({
|
|
32759
33055
|
transformMetadata: protocol.transformMetadata.bind(protocol),
|
|
33056
|
+
enrichErrorMetadata: protocol.enrichErrorMetadata.bind(protocol),
|
|
32760
33057
|
log: log,
|
|
32761
33058
|
observer: observer
|
|
32762
33059
|
});
|
|
@@ -32810,6 +33107,8 @@
|
|
|
32810
33107
|
return new bolt_protocol_v5x5_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32811
33108
|
case 5.6:
|
|
32812
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);
|
|
32813
33112
|
default:
|
|
32814
33113
|
throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
|
|
32815
33114
|
}
|
|
@@ -33548,7 +33847,7 @@
|
|
|
33548
33847
|
reject(error);
|
|
33549
33848
|
}
|
|
33550
33849
|
else {
|
|
33551
|
-
var neo4jError = _this._handleProtocolError(
|
|
33850
|
+
var neo4jError = _this._handleProtocolError("Received FAILURE as a response for RESET: ".concat(error));
|
|
33552
33851
|
reject(neo4jError);
|
|
33553
33852
|
}
|
|
33554
33853
|
},
|