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
|
@@ -12,6 +12,12 @@ var lib$1 = {};
|
|
|
12
12
|
|
|
13
13
|
var error = {};
|
|
14
14
|
|
|
15
|
+
var json$3 = {};
|
|
16
|
+
|
|
17
|
+
var objectUtil$2 = {};
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(objectUtil$2, "__esModule", { value: true });
|
|
20
|
+
objectUtil$2.getBrokenObjectReason = objectUtil$2.isBrokenObject = objectUtil$2.createBrokenObject = void 0;
|
|
15
21
|
/**
|
|
16
22
|
* Copyright (c) "Neo4j"
|
|
17
23
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -28,7 +34,150 @@ var error = {};
|
|
|
28
34
|
* See the License for the specific language governing permissions and
|
|
29
35
|
* limitations under the License.
|
|
30
36
|
*/
|
|
31
|
-
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
38
|
+
var __isBrokenObject__ = '__isBrokenObject__';
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
40
|
+
var __reason__ = '__reason__';
|
|
41
|
+
/**
|
|
42
|
+
* Creates a object which all method call will throw the given error
|
|
43
|
+
*
|
|
44
|
+
* @param {Error} error The error
|
|
45
|
+
* @param {any} object The object. Default: {}
|
|
46
|
+
* @returns {any} A broken object
|
|
47
|
+
*/
|
|
48
|
+
function createBrokenObject(error, object) {
|
|
49
|
+
if (object === void 0) { object = {}; }
|
|
50
|
+
var fail = function () {
|
|
51
|
+
throw error;
|
|
52
|
+
};
|
|
53
|
+
return new Proxy(object, {
|
|
54
|
+
get: function (_, p) {
|
|
55
|
+
if (p === __isBrokenObject__) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
else if (p === __reason__) {
|
|
59
|
+
return error;
|
|
60
|
+
}
|
|
61
|
+
else if (p === 'toJSON') {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
fail();
|
|
65
|
+
},
|
|
66
|
+
set: fail,
|
|
67
|
+
apply: fail,
|
|
68
|
+
construct: fail,
|
|
69
|
+
defineProperty: fail,
|
|
70
|
+
deleteProperty: fail,
|
|
71
|
+
getOwnPropertyDescriptor: fail,
|
|
72
|
+
getPrototypeOf: fail,
|
|
73
|
+
has: fail,
|
|
74
|
+
isExtensible: fail,
|
|
75
|
+
ownKeys: fail,
|
|
76
|
+
preventExtensions: fail,
|
|
77
|
+
setPrototypeOf: fail
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
81
|
+
/**
|
|
82
|
+
* Verifies if it is a Broken Object
|
|
83
|
+
* @param {any} object The object
|
|
84
|
+
* @returns {boolean} If it was created with createBrokenObject
|
|
85
|
+
*/
|
|
86
|
+
function isBrokenObject(object) {
|
|
87
|
+
return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;
|
|
88
|
+
}
|
|
89
|
+
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
90
|
+
/**
|
|
91
|
+
* Returns if the reason the object is broken.
|
|
92
|
+
*
|
|
93
|
+
* This method should only be called with instances create with {@link createBrokenObject}
|
|
94
|
+
*
|
|
95
|
+
* @param {any} object The object
|
|
96
|
+
* @returns {Error} The reason the object is broken
|
|
97
|
+
*/
|
|
98
|
+
function getBrokenObjectReason(object) {
|
|
99
|
+
return object[__reason__];
|
|
100
|
+
}
|
|
101
|
+
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Copyright (c) "Neo4j"
|
|
105
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
106
|
+
*
|
|
107
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
108
|
+
* you may not use this file except in compliance with the License.
|
|
109
|
+
* You may obtain a copy of the License at
|
|
110
|
+
*
|
|
111
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
112
|
+
*
|
|
113
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
114
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
115
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
116
|
+
* See the License for the specific language governing permissions and
|
|
117
|
+
* limitations under the License.
|
|
118
|
+
*/
|
|
119
|
+
Object.defineProperty(json$3, "__esModule", { value: true });
|
|
120
|
+
json$3.stringify = void 0;
|
|
121
|
+
var object_util_1 = objectUtil$2;
|
|
122
|
+
/**
|
|
123
|
+
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
124
|
+
* @private
|
|
125
|
+
* @param val A JavaScript value, usually an object or array, to be converted.
|
|
126
|
+
* @returns A JSON string representing the given value.
|
|
127
|
+
*/
|
|
128
|
+
function stringify(val, opts) {
|
|
129
|
+
return JSON.stringify(val, function (_, value) {
|
|
130
|
+
if ((0, object_util_1.isBrokenObject)(value)) {
|
|
131
|
+
return {
|
|
132
|
+
__isBrokenObject__: true,
|
|
133
|
+
__reason__: (0, object_util_1.getBrokenObjectReason)(value)
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
if (typeof value === 'bigint') {
|
|
137
|
+
return "".concat(value, "n");
|
|
138
|
+
}
|
|
139
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.useCustomToString) === true &&
|
|
140
|
+
typeof value === 'object' &&
|
|
141
|
+
!Array.isArray(value) &&
|
|
142
|
+
typeof value.toString === 'function' &&
|
|
143
|
+
value.toString !== Object.prototype.toString) {
|
|
144
|
+
return value === null || value === void 0 ? void 0 : value.toString();
|
|
145
|
+
}
|
|
146
|
+
return value;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
json$3.stringify = stringify;
|
|
150
|
+
|
|
151
|
+
var gqlConstants = {};
|
|
152
|
+
|
|
153
|
+
(function (exports) {
|
|
154
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
155
|
+
exports.rawPolyfilledDiagnosticRecord = void 0;
|
|
156
|
+
exports.rawPolyfilledDiagnosticRecord = {
|
|
157
|
+
OPERATION: '',
|
|
158
|
+
OPERATION_CODE: '0',
|
|
159
|
+
CURRENT_SCHEMA: '/'
|
|
160
|
+
};
|
|
161
|
+
Object.freeze(exports.rawPolyfilledDiagnosticRecord);
|
|
162
|
+
}(gqlConstants));
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Copyright (c) "Neo4j"
|
|
166
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
167
|
+
*
|
|
168
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
169
|
+
* you may not use this file except in compliance with the License.
|
|
170
|
+
* You may obtain a copy of the License at
|
|
171
|
+
*
|
|
172
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
173
|
+
*
|
|
174
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
175
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
176
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
177
|
+
* See the License for the specific language governing permissions and
|
|
178
|
+
* limitations under the License.
|
|
179
|
+
*/
|
|
180
|
+
var __extends$R = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32
181
|
var extendStatics = function (d, b) {
|
|
33
182
|
extendStatics = Object.setPrototypeOf ||
|
|
34
183
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -43,10 +192,47 @@ var __extends$Q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
43
192
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44
193
|
};
|
|
45
194
|
})();
|
|
195
|
+
var __createBinding$d = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
196
|
+
if (k2 === undefined) k2 = k;
|
|
197
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
198
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
199
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
200
|
+
}
|
|
201
|
+
Object.defineProperty(o, k2, desc);
|
|
202
|
+
}) : (function(o, m, k, k2) {
|
|
203
|
+
if (k2 === undefined) k2 = k;
|
|
204
|
+
o[k2] = m[k];
|
|
205
|
+
}));
|
|
206
|
+
var __setModuleDefault$d = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
207
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
208
|
+
}) : function(o, v) {
|
|
209
|
+
o["default"] = v;
|
|
210
|
+
});
|
|
211
|
+
var __importStar$d = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
212
|
+
if (mod && mod.__esModule) return mod;
|
|
213
|
+
var result = {};
|
|
214
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$d(result, mod, k);
|
|
215
|
+
__setModuleDefault$d(result, mod);
|
|
216
|
+
return result;
|
|
217
|
+
};
|
|
46
218
|
Object.defineProperty(error, "__esModule", { value: true });
|
|
47
|
-
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.Neo4jError = error.isRetriableError = error.newError = void 0;
|
|
219
|
+
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.GQLError = error.Neo4jError = error.isRetriableError = error.newGQLError = error.newError = void 0;
|
|
48
220
|
// A common place for constructing error objects, to keep them
|
|
49
221
|
// uniform across the driver surface.
|
|
222
|
+
var json$2 = __importStar$d(json$3);
|
|
223
|
+
var gql_constants_1$1 = gqlConstants;
|
|
224
|
+
/**
|
|
225
|
+
* @typedef { 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' } ErrorClassification
|
|
226
|
+
* @experimental this is part of the preview of GQL-compliant errors
|
|
227
|
+
*/
|
|
228
|
+
var errorClassification = {
|
|
229
|
+
DATABASE_ERROR: 'DATABASE_ERROR',
|
|
230
|
+
CLIENT_ERROR: 'CLIENT_ERROR',
|
|
231
|
+
TRANSIENT_ERROR: 'TRANSIENT_ERROR',
|
|
232
|
+
UNKNOWN: 'UNKNOWN'
|
|
233
|
+
};
|
|
234
|
+
Object.freeze(errorClassification);
|
|
235
|
+
var classifications = Object.values(errorClassification);
|
|
50
236
|
/**
|
|
51
237
|
* Error code representing complete loss of service. Used by {@link Neo4jError#code}.
|
|
52
238
|
* @type {string}
|
|
@@ -71,30 +257,124 @@ error.PROTOCOL_ERROR = PROTOCOL_ERROR$6;
|
|
|
71
257
|
*/
|
|
72
258
|
var NOT_AVAILABLE$1 = 'N/A';
|
|
73
259
|
/// TODO: Remove definitions of this.constructor and this.__proto__
|
|
260
|
+
/**
|
|
261
|
+
* Class for nested errors, to be used as causes in {@link Neo4jError}
|
|
262
|
+
* @experimental this class is part of the preview of GQL-compliant errors
|
|
263
|
+
*/
|
|
264
|
+
var GQLError = /** @class */ (function (_super) {
|
|
265
|
+
__extends$R(GQLError, _super);
|
|
266
|
+
/**
|
|
267
|
+
* @constructor
|
|
268
|
+
* @param {string} message - the error message
|
|
269
|
+
* @param {string} gqlStatus - the GQL status code of the error
|
|
270
|
+
* @param {string} gqlStatusDescription - the GQL status description of the error
|
|
271
|
+
* @param {ErrorDiagnosticRecord} diagnosticRecord - the error diagnostic record
|
|
272
|
+
* @param {Error} cause - Optional nested error, the cause of the error
|
|
273
|
+
*/
|
|
274
|
+
function GQLError(message, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) {
|
|
275
|
+
var _this = this;
|
|
276
|
+
var _a;
|
|
277
|
+
// eslint-disable-next-line
|
|
278
|
+
// @ts-ignore: not available in ES6 yet
|
|
279
|
+
_this = _super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
280
|
+
_this.constructor = GQLError;
|
|
281
|
+
// eslint-disable-next-line no-proto
|
|
282
|
+
_this.__proto__ = GQLError.prototype;
|
|
283
|
+
/**
|
|
284
|
+
* Optional, nested error which caused the error
|
|
285
|
+
*
|
|
286
|
+
* @type {Error?}
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
_this.cause = cause != null ? cause : undefined;
|
|
290
|
+
/**
|
|
291
|
+
* The GQL Status code
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
297
|
+
_this.gqlStatus = gqlStatus;
|
|
298
|
+
/**
|
|
299
|
+
* The GQL Status Description
|
|
300
|
+
*
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
303
|
+
* @public
|
|
304
|
+
*/
|
|
305
|
+
_this.gqlStatusDescription = gqlStatusDescription;
|
|
306
|
+
/**
|
|
307
|
+
* The GQL diagnostic record
|
|
308
|
+
*
|
|
309
|
+
* @type {DiagnosticRecord}
|
|
310
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
_this.diagnosticRecord = diagnosticRecord;
|
|
314
|
+
/**
|
|
315
|
+
* The GQL error classification, extracted from the diagnostic record
|
|
316
|
+
*
|
|
317
|
+
* @type {ErrorClassification}
|
|
318
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
_this.classification = _extractClassification(_this.diagnosticRecord);
|
|
322
|
+
/**
|
|
323
|
+
* The GQL error classification, extracted from the diagnostic record as a raw string
|
|
324
|
+
*
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @experimental this property is part of the preview of GQL-compliant errors
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
_this.rawClassification = (_a = diagnosticRecord === null || diagnosticRecord === void 0 ? void 0 : diagnosticRecord._classification) !== null && _a !== void 0 ? _a : undefined;
|
|
330
|
+
_this.name = 'GQLError';
|
|
331
|
+
return _this;
|
|
332
|
+
}
|
|
333
|
+
Object.defineProperty(GQLError.prototype, "diagnosticRecordAsJsonString", {
|
|
334
|
+
/**
|
|
335
|
+
* The json string representation of the diagnostic record.
|
|
336
|
+
* The goal of this method is provide a serialized object for human inspection.
|
|
337
|
+
*
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @experimental this is part of the preview of GQL-compliant errors
|
|
340
|
+
* @public
|
|
341
|
+
*/
|
|
342
|
+
get: function () {
|
|
343
|
+
return json$2.stringify(this.diagnosticRecord, { useCustomToString: true });
|
|
344
|
+
},
|
|
345
|
+
enumerable: false,
|
|
346
|
+
configurable: true
|
|
347
|
+
});
|
|
348
|
+
return GQLError;
|
|
349
|
+
}(Error));
|
|
350
|
+
error.GQLError = GQLError;
|
|
74
351
|
/**
|
|
75
352
|
* Class for all errors thrown/returned by the driver.
|
|
76
353
|
*/
|
|
77
354
|
var Neo4jError = /** @class */ (function (_super) {
|
|
78
|
-
__extends$
|
|
355
|
+
__extends$R(Neo4jError, _super);
|
|
79
356
|
/**
|
|
80
357
|
* @constructor
|
|
81
358
|
* @param {string} message - the error message
|
|
82
359
|
* @param {string} code - Optional error code. Will be populated when error originates in the database.
|
|
360
|
+
* @param {string} gqlStatus - the GQL status code of the error
|
|
361
|
+
* @param {string} gqlStatusDescription - the GQL status description of the error
|
|
362
|
+
* @param {DiagnosticRecord} diagnosticRecord - the error diagnostic record
|
|
363
|
+
* @param {Error} cause - Optional nested error, the cause of the error
|
|
83
364
|
*/
|
|
84
|
-
function Neo4jError(message, code, cause) {
|
|
85
|
-
var _this =
|
|
86
|
-
// eslint-disable-next-line
|
|
87
|
-
// @ts-ignore: not available in ES6 yet
|
|
88
|
-
_super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
365
|
+
function Neo4jError(message, code, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) {
|
|
366
|
+
var _this = _super.call(this, message, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) || this;
|
|
89
367
|
_this.constructor = Neo4jError;
|
|
90
368
|
// eslint-disable-next-line no-proto
|
|
91
369
|
_this.__proto__ = Neo4jError.prototype;
|
|
92
|
-
_this.code = code;
|
|
93
|
-
_this.name = 'Neo4jError';
|
|
94
370
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
371
|
+
* The Neo4j Error code
|
|
372
|
+
*
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @public
|
|
97
375
|
*/
|
|
376
|
+
_this.code = code;
|
|
377
|
+
_this.name = 'Neo4jError';
|
|
98
378
|
_this.retriable = _isRetriableCode(code);
|
|
99
379
|
return _this;
|
|
100
380
|
}
|
|
@@ -111,19 +391,38 @@ var Neo4jError = /** @class */ (function (_super) {
|
|
|
111
391
|
error.retriable;
|
|
112
392
|
};
|
|
113
393
|
return Neo4jError;
|
|
114
|
-
}(
|
|
394
|
+
}(GQLError));
|
|
115
395
|
error.Neo4jError = Neo4jError;
|
|
116
396
|
/**
|
|
117
|
-
* Create a new error from a message and
|
|
397
|
+
* Create a new error from a message and optional data
|
|
118
398
|
* @param message the error message
|
|
119
|
-
* @param code the error code
|
|
399
|
+
* @param {Neo4jErrorCode} [code] the error code
|
|
400
|
+
* @param {Neo4jError} [cause]
|
|
401
|
+
* @param {String} [gqlStatus]
|
|
402
|
+
* @param {String} [gqlStatusDescription]
|
|
403
|
+
* @param {DiagnosticRecord} diagnosticRecord - the error message
|
|
120
404
|
* @return {Neo4jError} an {@link Neo4jError}
|
|
121
405
|
* @private
|
|
122
406
|
*/
|
|
123
|
-
function newError(message, code, cause) {
|
|
124
|
-
return new Neo4jError(message, code !== null && code !== void 0 ? code : NOT_AVAILABLE$1, cause);
|
|
407
|
+
function newError(message, code, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
408
|
+
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);
|
|
125
409
|
}
|
|
126
410
|
error.newError = newError;
|
|
411
|
+
/**
|
|
412
|
+
* Create a new GQL error from a message and optional data
|
|
413
|
+
* @param message the error message
|
|
414
|
+
* @param {Neo4jError} [cause]
|
|
415
|
+
* @param {String} [gqlStatus]
|
|
416
|
+
* @param {String} [gqlStatusDescription]
|
|
417
|
+
* @param {DiagnosticRecord} diagnosticRecord - the error message
|
|
418
|
+
* @return {Neo4jError} an {@link Neo4jError}
|
|
419
|
+
* @experimental this is part of the preview of GQL-compliant errors
|
|
420
|
+
* @private
|
|
421
|
+
*/
|
|
422
|
+
function newGQLError(message, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
423
|
+
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);
|
|
424
|
+
}
|
|
425
|
+
error.newGQLError = newGQLError;
|
|
127
426
|
/**
|
|
128
427
|
* Verifies if the given error is retriable.
|
|
129
428
|
*
|
|
@@ -160,6 +459,15 @@ function _isTransientError(code) {
|
|
|
160
459
|
function _isAuthorizationExpired(code) {
|
|
161
460
|
return code === 'Neo.ClientError.Security.AuthorizationExpired';
|
|
162
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* extracts a typed classification from the diagnostic record.
|
|
464
|
+
*/
|
|
465
|
+
function _extractClassification(diagnosticRecord) {
|
|
466
|
+
if (diagnosticRecord === undefined || diagnosticRecord._classification === undefined) {
|
|
467
|
+
return 'UNKNOWN';
|
|
468
|
+
}
|
|
469
|
+
return classifications.includes(diagnosticRecord._classification) ? diagnosticRecord === null || diagnosticRecord === void 0 ? void 0 : diagnosticRecord._classification : 'UNKNOWN';
|
|
470
|
+
}
|
|
163
471
|
|
|
164
472
|
var integer = {};
|
|
165
473
|
|
|
@@ -1177,142 +1485,6 @@ var temporalUtil$1 = {};
|
|
|
1177
1485
|
|
|
1178
1486
|
var util$4 = {};
|
|
1179
1487
|
|
|
1180
|
-
var json$2 = {};
|
|
1181
|
-
|
|
1182
|
-
var objectUtil$2 = {};
|
|
1183
|
-
|
|
1184
|
-
Object.defineProperty(objectUtil$2, "__esModule", { value: true });
|
|
1185
|
-
objectUtil$2.getBrokenObjectReason = objectUtil$2.isBrokenObject = objectUtil$2.createBrokenObject = void 0;
|
|
1186
|
-
/**
|
|
1187
|
-
* Copyright (c) "Neo4j"
|
|
1188
|
-
* Neo4j Sweden AB [https://neo4j.com]
|
|
1189
|
-
*
|
|
1190
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1191
|
-
* you may not use this file except in compliance with the License.
|
|
1192
|
-
* You may obtain a copy of the License at
|
|
1193
|
-
*
|
|
1194
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1195
|
-
*
|
|
1196
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1197
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1198
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1199
|
-
* See the License for the specific language governing permissions and
|
|
1200
|
-
* limitations under the License.
|
|
1201
|
-
*/
|
|
1202
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1203
|
-
var __isBrokenObject__ = '__isBrokenObject__';
|
|
1204
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1205
|
-
var __reason__ = '__reason__';
|
|
1206
|
-
/**
|
|
1207
|
-
* Creates a object which all method call will throw the given error
|
|
1208
|
-
*
|
|
1209
|
-
* @param {Error} error The error
|
|
1210
|
-
* @param {any} object The object. Default: {}
|
|
1211
|
-
* @returns {any} A broken object
|
|
1212
|
-
*/
|
|
1213
|
-
function createBrokenObject(error, object) {
|
|
1214
|
-
if (object === void 0) { object = {}; }
|
|
1215
|
-
var fail = function () {
|
|
1216
|
-
throw error;
|
|
1217
|
-
};
|
|
1218
|
-
return new Proxy(object, {
|
|
1219
|
-
get: function (_, p) {
|
|
1220
|
-
if (p === __isBrokenObject__) {
|
|
1221
|
-
return true;
|
|
1222
|
-
}
|
|
1223
|
-
else if (p === __reason__) {
|
|
1224
|
-
return error;
|
|
1225
|
-
}
|
|
1226
|
-
else if (p === 'toJSON') {
|
|
1227
|
-
return undefined;
|
|
1228
|
-
}
|
|
1229
|
-
fail();
|
|
1230
|
-
},
|
|
1231
|
-
set: fail,
|
|
1232
|
-
apply: fail,
|
|
1233
|
-
construct: fail,
|
|
1234
|
-
defineProperty: fail,
|
|
1235
|
-
deleteProperty: fail,
|
|
1236
|
-
getOwnPropertyDescriptor: fail,
|
|
1237
|
-
getPrototypeOf: fail,
|
|
1238
|
-
has: fail,
|
|
1239
|
-
isExtensible: fail,
|
|
1240
|
-
ownKeys: fail,
|
|
1241
|
-
preventExtensions: fail,
|
|
1242
|
-
setPrototypeOf: fail
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
1246
|
-
/**
|
|
1247
|
-
* Verifies if it is a Broken Object
|
|
1248
|
-
* @param {any} object The object
|
|
1249
|
-
* @returns {boolean} If it was created with createBrokenObject
|
|
1250
|
-
*/
|
|
1251
|
-
function isBrokenObject(object) {
|
|
1252
|
-
return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;
|
|
1253
|
-
}
|
|
1254
|
-
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
1255
|
-
/**
|
|
1256
|
-
* Returns if the reason the object is broken.
|
|
1257
|
-
*
|
|
1258
|
-
* This method should only be called with instances create with {@link createBrokenObject}
|
|
1259
|
-
*
|
|
1260
|
-
* @param {any} object The object
|
|
1261
|
-
* @returns {Error} The reason the object is broken
|
|
1262
|
-
*/
|
|
1263
|
-
function getBrokenObjectReason(object) {
|
|
1264
|
-
return object[__reason__];
|
|
1265
|
-
}
|
|
1266
|
-
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
* Copyright (c) "Neo4j"
|
|
1270
|
-
* Neo4j Sweden AB [https://neo4j.com]
|
|
1271
|
-
*
|
|
1272
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1273
|
-
* you may not use this file except in compliance with the License.
|
|
1274
|
-
* You may obtain a copy of the License at
|
|
1275
|
-
*
|
|
1276
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1277
|
-
*
|
|
1278
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1279
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1280
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1281
|
-
* See the License for the specific language governing permissions and
|
|
1282
|
-
* limitations under the License.
|
|
1283
|
-
*/
|
|
1284
|
-
Object.defineProperty(json$2, "__esModule", { value: true });
|
|
1285
|
-
json$2.stringify = void 0;
|
|
1286
|
-
var object_util_1 = objectUtil$2;
|
|
1287
|
-
/**
|
|
1288
|
-
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
1289
|
-
* @private
|
|
1290
|
-
* @param val A JavaScript value, usually an object or array, to be converted.
|
|
1291
|
-
* @returns A JSON string representing the given value.
|
|
1292
|
-
*/
|
|
1293
|
-
function stringify(val, opts) {
|
|
1294
|
-
return JSON.stringify(val, function (_, value) {
|
|
1295
|
-
if ((0, object_util_1.isBrokenObject)(value)) {
|
|
1296
|
-
return {
|
|
1297
|
-
__isBrokenObject__: true,
|
|
1298
|
-
__reason__: (0, object_util_1.getBrokenObjectReason)(value)
|
|
1299
|
-
};
|
|
1300
|
-
}
|
|
1301
|
-
if (typeof value === 'bigint') {
|
|
1302
|
-
return "".concat(value, "n");
|
|
1303
|
-
}
|
|
1304
|
-
if ((opts === null || opts === void 0 ? void 0 : opts.useCustomToString) === true &&
|
|
1305
|
-
typeof value === 'object' &&
|
|
1306
|
-
!Array.isArray(value) &&
|
|
1307
|
-
typeof value.toString === 'function' &&
|
|
1308
|
-
value.toString !== Object.prototype.toString) {
|
|
1309
|
-
return value === null || value === void 0 ? void 0 : value.toString();
|
|
1310
|
-
}
|
|
1311
|
-
return value;
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1314
|
-
json$2.stringify = stringify;
|
|
1315
|
-
|
|
1316
1488
|
var __createBinding$c = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1317
1489
|
if (k2 === undefined) k2 = k;
|
|
1318
1490
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -1367,7 +1539,7 @@ util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON = util$4.equals = util$4.validateQu
|
|
|
1367
1539
|
*/
|
|
1368
1540
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1369
1541
|
var integer_1$2 = __importStar$c(integer);
|
|
1370
|
-
var json_1$1 = json$
|
|
1542
|
+
var json_1$1 = json$3;
|
|
1371
1543
|
var ENCRYPTION_ON$2 = 'ENCRYPTION_ON';
|
|
1372
1544
|
util$4.ENCRYPTION_ON = ENCRYPTION_ON$2;
|
|
1373
1545
|
var ENCRYPTION_OFF$2 = 'ENCRYPTION_OFF';
|
|
@@ -2788,7 +2960,7 @@ var graphTypes = {};
|
|
|
2788
2960
|
|
|
2789
2961
|
Object.defineProperty(graphTypes, "__esModule", { value: true });
|
|
2790
2962
|
graphTypes.isPathSegment = graphTypes.PathSegment = graphTypes.isPath = graphTypes.Path = graphTypes.isUnboundRelationship = graphTypes.UnboundRelationship = graphTypes.isRelationship = graphTypes.Relationship = graphTypes.isNode = graphTypes.Node = void 0;
|
|
2791
|
-
var json_1 = json$
|
|
2963
|
+
var json_1 = json$3;
|
|
2792
2964
|
var IDENTIFIER_PROPERTY_ATTRIBUTES = {
|
|
2793
2965
|
value: true,
|
|
2794
2966
|
enumerable: false,
|
|
@@ -3838,7 +4010,7 @@ var constants$1 = {};
|
|
|
3838
4010
|
* limitations under the License.
|
|
3839
4011
|
*/
|
|
3840
4012
|
Object.defineProperty(constants$1, "__esModule", { value: true });
|
|
3841
|
-
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;
|
|
4013
|
+
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;
|
|
3842
4014
|
var FETCH_ALL$7 = -1;
|
|
3843
4015
|
constants$1.FETCH_ALL = FETCH_ALL$7;
|
|
3844
4016
|
var DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds
|
|
@@ -3881,6 +4053,8 @@ var BOLT_PROTOCOL_V5_5$1 = 5.5;
|
|
|
3881
4053
|
constants$1.BOLT_PROTOCOL_V5_5 = BOLT_PROTOCOL_V5_5$1;
|
|
3882
4054
|
var BOLT_PROTOCOL_V5_6$1 = 5.6;
|
|
3883
4055
|
constants$1.BOLT_PROTOCOL_V5_6 = BOLT_PROTOCOL_V5_6$1;
|
|
4056
|
+
var BOLT_PROTOCOL_V5_7$1 = 5.7;
|
|
4057
|
+
constants$1.BOLT_PROTOCOL_V5_7 = BOLT_PROTOCOL_V5_7$1;
|
|
3884
4058
|
var TELEMETRY_APIS$1 = {
|
|
3885
4059
|
MANAGED_TRANSACTION: 0,
|
|
3886
4060
|
UNMANAGED_TRANSACTION: 1,
|
|
@@ -3893,7 +4067,7 @@ var connectionHolder$1 = {};
|
|
|
3893
4067
|
|
|
3894
4068
|
var logger$1 = {};
|
|
3895
4069
|
|
|
3896
|
-
var __extends$
|
|
4070
|
+
var __extends$Q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
3897
4071
|
var extendStatics = function (d, b) {
|
|
3898
4072
|
extendStatics = Object.setPrototypeOf ||
|
|
3899
4073
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4041,7 +4215,7 @@ var Logger$1 = /** @class */ (function () {
|
|
|
4041
4215
|
}());
|
|
4042
4216
|
logger$1.Logger = Logger$1;
|
|
4043
4217
|
var NoOpLogger = /** @class */ (function (_super) {
|
|
4044
|
-
__extends$
|
|
4218
|
+
__extends$Q(NoOpLogger, _super);
|
|
4045
4219
|
function NoOpLogger() {
|
|
4046
4220
|
return _super.call(this, INFO, function (level, message) { }) || this;
|
|
4047
4221
|
}
|
|
@@ -4122,7 +4296,7 @@ function extractConfiguredLogger(loggingConfig) {
|
|
|
4122
4296
|
* limitations under the License.
|
|
4123
4297
|
*/
|
|
4124
4298
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
4125
|
-
var __extends$
|
|
4299
|
+
var __extends$P = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4126
4300
|
var extendStatics = function (d, b) {
|
|
4127
4301
|
extendStatics = Object.setPrototypeOf ||
|
|
4128
4302
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4340,7 +4514,7 @@ connectionHolder$1.ConnectionHolder = ConnectionHolder;
|
|
|
4340
4514
|
* releasing or initilizing
|
|
4341
4515
|
*/
|
|
4342
4516
|
var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
4343
|
-
__extends$
|
|
4517
|
+
__extends$P(ReadOnlyConnectionHolder, _super);
|
|
4344
4518
|
/**
|
|
4345
4519
|
* Constructor
|
|
4346
4520
|
* @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
|
|
@@ -4395,7 +4569,7 @@ var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
|
4395
4569
|
connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
|
|
4396
4570
|
connectionHolder$1.default = ReadOnlyConnectionHolder;
|
|
4397
4571
|
var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
4398
|
-
__extends$
|
|
4572
|
+
__extends$P(EmptyConnectionHolder, _super);
|
|
4399
4573
|
function EmptyConnectionHolder() {
|
|
4400
4574
|
return _super.call(this, {
|
|
4401
4575
|
// Empty logger
|
|
@@ -4579,8 +4753,8 @@ function assertValidConfig(config) {
|
|
|
4579
4753
|
|
|
4580
4754
|
var transactionExecutor$1 = {};
|
|
4581
4755
|
|
|
4582
|
-
var __assign$
|
|
4583
|
-
__assign$
|
|
4756
|
+
var __assign$t = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4757
|
+
__assign$t = Object.assign || function(t) {
|
|
4584
4758
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4585
4759
|
s = arguments[i];
|
|
4586
4760
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4588,7 +4762,7 @@ var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
4588
4762
|
}
|
|
4589
4763
|
return t;
|
|
4590
4764
|
};
|
|
4591
|
-
return __assign$
|
|
4765
|
+
return __assign$t.apply(this, arguments);
|
|
4592
4766
|
};
|
|
4593
4767
|
var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4594
4768
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -4756,7 +4930,7 @@ var TransactionExecutor = /** @class */ (function () {
|
|
|
4756
4930
|
case 0:
|
|
4757
4931
|
_b.trys.push([0, 4, , 5]);
|
|
4758
4932
|
txPromise = transactionCreator((executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) != null
|
|
4759
|
-
? __assign$
|
|
4933
|
+
? __assign$t({}, executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) : undefined);
|
|
4760
4934
|
if (!this.pipelineBegin) return [3 /*break*/, 1];
|
|
4761
4935
|
_a = txPromise;
|
|
4762
4936
|
return [3 /*break*/, 3];
|
|
@@ -4881,8 +5055,8 @@ var urlUtil$2 = {};
|
|
|
4881
5055
|
* See the License for the specific language governing permissions and
|
|
4882
5056
|
* limitations under the License.
|
|
4883
5057
|
*/
|
|
4884
|
-
var __assign$
|
|
4885
|
-
__assign$
|
|
5058
|
+
var __assign$s = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5059
|
+
__assign$s = Object.assign || function(t) {
|
|
4886
5060
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4887
5061
|
s = arguments[i];
|
|
4888
5062
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4890,7 +5064,7 @@ var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
4890
5064
|
}
|
|
4891
5065
|
return t;
|
|
4892
5066
|
};
|
|
4893
|
-
return __assign$
|
|
5067
|
+
return __assign$s.apply(this, arguments);
|
|
4894
5068
|
};
|
|
4895
5069
|
var __read$t = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
4896
5070
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -5152,7 +5326,7 @@ function uriJsParse(value) {
|
|
|
5152
5326
|
// Parse authority and path
|
|
5153
5327
|
if (value.startsWith('//')) {
|
|
5154
5328
|
parts = partition(value.substr(2), '/');
|
|
5155
|
-
parsed = __assign$
|
|
5329
|
+
parsed = __assign$s(__assign$s({}, parsed), parseAuthority(parts[0]));
|
|
5156
5330
|
parsed.path = parts[1] + parts[2];
|
|
5157
5331
|
}
|
|
5158
5332
|
else {
|
|
@@ -5326,7 +5500,7 @@ var ConfiguredCustomResolver = /** @class */ (function () {
|
|
|
5326
5500
|
}());
|
|
5327
5501
|
configuredCustomResolver.default = ConfiguredCustomResolver;
|
|
5328
5502
|
|
|
5329
|
-
var __importDefault$
|
|
5503
|
+
var __importDefault$Y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5330
5504
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5331
5505
|
};
|
|
5332
5506
|
Object.defineProperty(resolver$1, "__esModule", { value: true });
|
|
@@ -5347,9 +5521,9 @@ resolver$1.ConfiguredCustomResolver = resolver$1.BaseHostNameResolver = void 0;
|
|
|
5347
5521
|
* See the License for the specific language governing permissions and
|
|
5348
5522
|
* limitations under the License.
|
|
5349
5523
|
*/
|
|
5350
|
-
var base_host_name_resolver_1 = __importDefault$
|
|
5524
|
+
var base_host_name_resolver_1 = __importDefault$Y(baseHostNameResolver);
|
|
5351
5525
|
resolver$1.BaseHostNameResolver = base_host_name_resolver_1.default;
|
|
5352
|
-
var configured_custom_resolver_1$1 = __importDefault$
|
|
5526
|
+
var configured_custom_resolver_1$1 = __importDefault$Y(configuredCustomResolver);
|
|
5353
5527
|
resolver$1.ConfiguredCustomResolver = configured_custom_resolver_1$1.default;
|
|
5354
5528
|
|
|
5355
5529
|
var browser$1 = {};
|
|
@@ -5547,11 +5721,11 @@ var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
5547
5721
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5548
5722
|
}
|
|
5549
5723
|
};
|
|
5550
|
-
var __importDefault$
|
|
5724
|
+
var __importDefault$X = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5551
5725
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5552
5726
|
};
|
|
5553
5727
|
Object.defineProperty(pool$1, "__esModule", { value: true });
|
|
5554
|
-
var pool_config_1 = __importDefault$
|
|
5728
|
+
var pool_config_1 = __importDefault$X(poolConfig);
|
|
5555
5729
|
var error_1$5 = error;
|
|
5556
5730
|
var logger_1$1 = logger$1;
|
|
5557
5731
|
var Pool$1 = /** @class */ (function () {
|
|
@@ -6285,8 +6459,8 @@ internal.pool = pool;
|
|
|
6285
6459
|
|
|
6286
6460
|
var notification = {};
|
|
6287
6461
|
|
|
6288
|
-
var __assign$
|
|
6289
|
-
__assign$
|
|
6462
|
+
var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
6463
|
+
__assign$r = Object.assign || function(t) {
|
|
6290
6464
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6291
6465
|
s = arguments[i];
|
|
6292
6466
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -6294,7 +6468,7 @@ var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
6294
6468
|
}
|
|
6295
6469
|
return t;
|
|
6296
6470
|
};
|
|
6297
|
-
return __assign$
|
|
6471
|
+
return __assign$r.apply(this, arguments);
|
|
6298
6472
|
};
|
|
6299
6473
|
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6300
6474
|
if (k2 === undefined) k2 = k;
|
|
@@ -6362,8 +6536,9 @@ notification.buildNotificationsFromMetadata = notification.buildGqlStatusObjectF
|
|
|
6362
6536
|
* See the License for the specific language governing permissions and
|
|
6363
6537
|
* limitations under the License.
|
|
6364
6538
|
*/
|
|
6365
|
-
var json$1 = __importStar$6(json$
|
|
6539
|
+
var json$1 = __importStar$6(json$3);
|
|
6366
6540
|
var internal_1$3 = internal;
|
|
6541
|
+
var gql_constants_1 = gqlConstants;
|
|
6367
6542
|
var unknownGqlStatus = {
|
|
6368
6543
|
WARNING: {
|
|
6369
6544
|
gql_status: '01N42',
|
|
@@ -6379,7 +6554,7 @@ var unknownGqlStatus = {
|
|
|
6379
6554
|
},
|
|
6380
6555
|
ERROR: {
|
|
6381
6556
|
gql_status: '50N42',
|
|
6382
|
-
status_description: 'error: general processing exception -
|
|
6557
|
+
status_description: 'error: general processing exception - unexpected error'
|
|
6383
6558
|
}
|
|
6384
6559
|
};
|
|
6385
6560
|
/**
|
|
@@ -6716,7 +6891,7 @@ function polyfillGqlStatusObject(notification) {
|
|
|
6716
6891
|
status_description: (_a = notification.description) !== null && _a !== void 0 ? _a : defaultStatus.status_description,
|
|
6717
6892
|
neo4j_code: notification.code,
|
|
6718
6893
|
title: notification.title,
|
|
6719
|
-
diagnostic_record: __assign$
|
|
6894
|
+
diagnostic_record: __assign$r({}, gql_constants_1.rawPolyfilledDiagnosticRecord)
|
|
6720
6895
|
};
|
|
6721
6896
|
if (notification.severity != null) {
|
|
6722
6897
|
polyfilledRawObj.diagnostic_record._severity = notification.severity;
|
|
@@ -6730,12 +6905,6 @@ function polyfillGqlStatusObject(notification) {
|
|
|
6730
6905
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6731
6906
|
}
|
|
6732
6907
|
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6733
|
-
var rawPolyfilledDiagnosticRecord = {
|
|
6734
|
-
OPERATION: '',
|
|
6735
|
-
OPERATION_CODE: '0',
|
|
6736
|
-
CURRENT_SCHEMA: '/'
|
|
6737
|
-
};
|
|
6738
|
-
Object.freeze(rawPolyfilledDiagnosticRecord);
|
|
6739
6908
|
/**
|
|
6740
6909
|
* This objects are used for polyfilling the first status on the status list
|
|
6741
6910
|
*
|
|
@@ -6745,18 +6914,18 @@ var staticGqlStatusObjects = {
|
|
|
6745
6914
|
SUCCESS: new GqlStatusObject({
|
|
6746
6915
|
gql_status: '00000',
|
|
6747
6916
|
status_description: 'note: successful completion',
|
|
6748
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6917
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6749
6918
|
}),
|
|
6750
6919
|
NO_DATA: new GqlStatusObject({
|
|
6751
6920
|
gql_status: '02000',
|
|
6752
6921
|
status_description: 'note: no data',
|
|
6753
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6922
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6754
6923
|
}),
|
|
6755
|
-
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$
|
|
6924
|
+
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$r(__assign$r({}, unknownGqlStatus.NO_DATA), { diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord })),
|
|
6756
6925
|
OMITTED_RESULT: new GqlStatusObject({
|
|
6757
6926
|
gql_status: '00001',
|
|
6758
6927
|
status_description: 'note: successful completion - omitted result',
|
|
6759
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6928
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6760
6929
|
})
|
|
6761
6930
|
};
|
|
6762
6931
|
Object.freeze(staticGqlStatusObjects);
|
|
@@ -7424,13 +7593,13 @@ var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
7424
7593
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7425
7594
|
}
|
|
7426
7595
|
};
|
|
7427
|
-
var __importDefault$
|
|
7596
|
+
var __importDefault$W = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7428
7597
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7429
7598
|
};
|
|
7430
7599
|
var _a$g;
|
|
7431
7600
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
7432
7601
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
7433
|
-
var result_summary_1 = __importDefault$
|
|
7602
|
+
var result_summary_1 = __importDefault$W(resultSummary);
|
|
7434
7603
|
var internal_1$1 = internal;
|
|
7435
7604
|
var error_1$4 = error;
|
|
7436
7605
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -8374,7 +8543,7 @@ var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
8374
8543
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8375
8544
|
}
|
|
8376
8545
|
};
|
|
8377
|
-
var __importDefault$
|
|
8546
|
+
var __importDefault$V = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8378
8547
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8379
8548
|
};
|
|
8380
8549
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -8385,7 +8554,7 @@ var bookmarks_1$2 = bookmarks$1;
|
|
|
8385
8554
|
var tx_config_1$1 = txConfig$1;
|
|
8386
8555
|
var observers_1$1 = observers;
|
|
8387
8556
|
var error_1$3 = error;
|
|
8388
|
-
var result_1$1 = __importDefault$
|
|
8557
|
+
var result_1$1 = __importDefault$V(result);
|
|
8389
8558
|
/**
|
|
8390
8559
|
* Represents a transaction in the Neo4j database.
|
|
8391
8560
|
*
|
|
@@ -8933,7 +9102,7 @@ var transactionPromise = {};
|
|
|
8933
9102
|
* See the License for the specific language governing permissions and
|
|
8934
9103
|
* limitations under the License.
|
|
8935
9104
|
*/
|
|
8936
|
-
var __extends$
|
|
9105
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
8937
9106
|
var extendStatics = function (d, b) {
|
|
8938
9107
|
extendStatics = Object.setPrototypeOf ||
|
|
8939
9108
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8948,8 +9117,8 @@ var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
8948
9117
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8949
9118
|
};
|
|
8950
9119
|
})();
|
|
8951
|
-
var __assign$
|
|
8952
|
-
__assign$
|
|
9120
|
+
var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
9121
|
+
__assign$q = Object.assign || function(t) {
|
|
8953
9122
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8954
9123
|
s = arguments[i];
|
|
8955
9124
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -8957,15 +9126,15 @@ var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
8957
9126
|
}
|
|
8958
9127
|
return t;
|
|
8959
9128
|
};
|
|
8960
|
-
return __assign$
|
|
9129
|
+
return __assign$q.apply(this, arguments);
|
|
8961
9130
|
};
|
|
8962
|
-
var __importDefault$
|
|
9131
|
+
var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8963
9132
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8964
9133
|
};
|
|
8965
9134
|
var _a$f;
|
|
8966
9135
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
8967
9136
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
8968
|
-
var transaction_1 = __importDefault$
|
|
9137
|
+
var transaction_1 = __importDefault$U(transaction);
|
|
8969
9138
|
/**
|
|
8970
9139
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
8971
9140
|
*
|
|
@@ -8977,7 +9146,7 @@ var transaction_1 = __importDefault$T(transaction);
|
|
|
8977
9146
|
* @access public
|
|
8978
9147
|
*/
|
|
8979
9148
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
8980
|
-
__extends$
|
|
9149
|
+
__extends$O(TransactionPromise, _super);
|
|
8981
9150
|
/**
|
|
8982
9151
|
* @constructor
|
|
8983
9152
|
* @param {object} args
|
|
@@ -9058,7 +9227,7 @@ var TransactionPromise = /** @class */ (function (_super) {
|
|
|
9058
9227
|
* @access private
|
|
9059
9228
|
*/
|
|
9060
9229
|
TransactionPromise.prototype._toTransaction = function () {
|
|
9061
|
-
return __assign$
|
|
9230
|
+
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) });
|
|
9062
9231
|
};
|
|
9063
9232
|
/**
|
|
9064
9233
|
* @access private
|
|
@@ -9173,7 +9342,7 @@ var __spreadArray$l = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
9173
9342
|
}
|
|
9174
9343
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9175
9344
|
};
|
|
9176
|
-
var __importDefault$
|
|
9345
|
+
var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9177
9346
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9178
9347
|
};
|
|
9179
9348
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -9182,13 +9351,13 @@ var observers_1 = observers;
|
|
|
9182
9351
|
var util_1$1 = util$4;
|
|
9183
9352
|
var constants_1$2 = constants$1;
|
|
9184
9353
|
var error_1$2 = error;
|
|
9185
|
-
var result_1 = __importDefault$
|
|
9354
|
+
var result_1 = __importDefault$T(result);
|
|
9186
9355
|
var connection_holder_1 = connectionHolder$1;
|
|
9187
9356
|
var transaction_executor_1 = transactionExecutor$1;
|
|
9188
9357
|
var bookmarks_1$1 = bookmarks$1;
|
|
9189
9358
|
var tx_config_1 = txConfig$1;
|
|
9190
|
-
var transaction_promise_1 = __importDefault$
|
|
9191
|
-
var transaction_managed_1 = __importDefault$
|
|
9359
|
+
var transaction_promise_1 = __importDefault$T(transactionPromise);
|
|
9360
|
+
var transaction_managed_1 = __importDefault$T(transactionManaged);
|
|
9192
9361
|
/**
|
|
9193
9362
|
* A Session instance is used for handling the connection and
|
|
9194
9363
|
* sending queries through the connection.
|
|
@@ -10000,11 +10169,11 @@ var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
10000
10169
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10001
10170
|
}
|
|
10002
10171
|
};
|
|
10003
|
-
var __importDefault$
|
|
10172
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10004
10173
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10005
10174
|
};
|
|
10006
10175
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
10007
|
-
var result_eager_1 = __importDefault$
|
|
10176
|
+
var result_eager_1 = __importDefault$S(resultEager);
|
|
10008
10177
|
var error_1$1 = error;
|
|
10009
10178
|
/**
|
|
10010
10179
|
* Protocol for transforming {@link Result}.
|
|
@@ -10513,20 +10682,20 @@ var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
10513
10682
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10514
10683
|
}
|
|
10515
10684
|
};
|
|
10516
|
-
var __importDefault$
|
|
10685
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10517
10686
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10518
10687
|
};
|
|
10519
10688
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
10520
10689
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
10521
10690
|
var bookmarks_1 = bookmarks$1;
|
|
10522
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
10691
|
+
var configured_custom_resolver_1 = __importDefault$R(configuredCustomResolver);
|
|
10523
10692
|
var constants_1 = constants$1;
|
|
10524
10693
|
var logger_1 = logger$1;
|
|
10525
|
-
var session_1 = __importDefault$
|
|
10694
|
+
var session_1 = __importDefault$R(session);
|
|
10526
10695
|
var util_1 = util$4;
|
|
10527
10696
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
10528
|
-
var result_transformers_1 = __importDefault$
|
|
10529
|
-
var query_executor_1 = __importDefault$
|
|
10697
|
+
var result_transformers_1 = __importDefault$R(resultTransformers$1);
|
|
10698
|
+
var query_executor_1 = __importDefault$R(queryExecutor);
|
|
10530
10699
|
var error_1 = error;
|
|
10531
10700
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
10532
10701
|
/**
|
|
@@ -11511,12 +11680,12 @@ var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
11511
11680
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
11512
11681
|
}
|
|
11513
11682
|
};
|
|
11514
|
-
var __importDefault$
|
|
11683
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
11515
11684
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11516
11685
|
};
|
|
11517
11686
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11518
11687
|
authTokenManager.staticAuthTokenManager = authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
11519
|
-
var auth_1 = __importDefault$
|
|
11688
|
+
var auth_1 = __importDefault$Q(auth$1);
|
|
11520
11689
|
var internal_1 = internal;
|
|
11521
11690
|
/**
|
|
11522
11691
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11780,7 +11949,7 @@ var types$1 = {};
|
|
|
11780
11949
|
* See the License for the specific language governing permissions and
|
|
11781
11950
|
* limitations under the License.
|
|
11782
11951
|
*/
|
|
11783
|
-
var __extends$
|
|
11952
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11784
11953
|
var extendStatics = function (d, b) {
|
|
11785
11954
|
extendStatics = Object.setPrototypeOf ||
|
|
11786
11955
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12063,7 +12232,7 @@ var Config = /** @class */ (function () {
|
|
|
12063
12232
|
}());
|
|
12064
12233
|
types$1.Config = Config;
|
|
12065
12234
|
var InternalConfig = /** @class */ (function (_super) {
|
|
12066
|
-
__extends$
|
|
12235
|
+
__extends$N(InternalConfig, _super);
|
|
12067
12236
|
function InternalConfig() {
|
|
12068
12237
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12069
12238
|
}
|
|
@@ -12089,7 +12258,7 @@ var clientCertificate = {};
|
|
|
12089
12258
|
* See the License for the specific language governing permissions and
|
|
12090
12259
|
* limitations under the License.
|
|
12091
12260
|
*/
|
|
12092
|
-
var __extends$
|
|
12261
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12093
12262
|
var extendStatics = function (d, b) {
|
|
12094
12263
|
extendStatics = Object.setPrototypeOf ||
|
|
12095
12264
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12104,8 +12273,8 @@ var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
12104
12273
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12105
12274
|
};
|
|
12106
12275
|
})();
|
|
12107
|
-
var __assign$
|
|
12108
|
-
__assign$
|
|
12276
|
+
var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
12277
|
+
__assign$p = Object.assign || function(t) {
|
|
12109
12278
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12110
12279
|
s = arguments[i];
|
|
12111
12280
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -12113,7 +12282,7 @@ var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
12113
12282
|
}
|
|
12114
12283
|
return t;
|
|
12115
12284
|
};
|
|
12116
|
-
return __assign$
|
|
12285
|
+
return __assign$p.apply(this, arguments);
|
|
12117
12286
|
};
|
|
12118
12287
|
var __createBinding$5 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12119
12288
|
if (k2 === undefined) k2 = k;
|
|
@@ -12140,7 +12309,7 @@ var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
12140
12309
|
};
|
|
12141
12310
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12142
12311
|
clientCertificate.resolveCertificateProvider = clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12143
|
-
var json = __importStar$5(json$
|
|
12312
|
+
var json = __importStar$5(json$3);
|
|
12144
12313
|
/**
|
|
12145
12314
|
* Represents KeyFile represented as file.
|
|
12146
12315
|
*
|
|
@@ -12239,7 +12408,7 @@ clientCertificate.ClientCertificateProvider = ClientCertificateProvider;
|
|
|
12239
12408
|
* @since 5.19
|
|
12240
12409
|
*/
|
|
12241
12410
|
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
12242
|
-
__extends$
|
|
12411
|
+
__extends$M(RotatingClientCertificateProvider, _super);
|
|
12243
12412
|
function RotatingClientCertificateProvider() {
|
|
12244
12413
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12245
12414
|
}
|
|
@@ -12279,7 +12448,7 @@ var ClientCertificateProviders = /** @class */ (function () {
|
|
|
12279
12448
|
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
12280
12449
|
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
12281
12450
|
}
|
|
12282
|
-
var certificate = __assign$
|
|
12451
|
+
var certificate = __assign$p({}, initialCertificate);
|
|
12283
12452
|
return new InternalRotatingClientCertificateProvider(certificate);
|
|
12284
12453
|
};
|
|
12285
12454
|
return ClientCertificateProviders;
|
|
@@ -12312,7 +12481,7 @@ function resolveCertificateProvider(input) {
|
|
|
12312
12481
|
return input;
|
|
12313
12482
|
}
|
|
12314
12483
|
if (isClientClientCertificate(input)) {
|
|
12315
|
-
var certificate_1 = __assign$
|
|
12484
|
+
var certificate_1 = __assign$p({}, input);
|
|
12316
12485
|
return {
|
|
12317
12486
|
getClientCertificate: function () { return certificate_1; },
|
|
12318
12487
|
hasUpdate: function () { return false; }
|
|
@@ -12434,7 +12603,7 @@ var InternalRotatingClientCertificateProvider = /** @class */ (function () {
|
|
|
12434
12603
|
if (!isClientClientCertificate(certificate)) {
|
|
12435
12604
|
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
12436
12605
|
}
|
|
12437
|
-
this._certificate = __assign$
|
|
12606
|
+
this._certificate = __assign$p({}, certificate);
|
|
12438
12607
|
this._updated = true;
|
|
12439
12608
|
};
|
|
12440
12609
|
return InternalRotatingClientCertificateProvider;
|
|
@@ -12484,11 +12653,13 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
12484
12653
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12485
12654
|
};
|
|
12486
12655
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12487
|
-
exports.
|
|
12488
|
-
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;
|
|
12656
|
+
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;
|
|
12657
|
+
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;
|
|
12489
12658
|
var error_1 = error;
|
|
12490
12659
|
Object.defineProperty(exports, "newError", { enumerable: true, get: function () { return error_1.newError; } });
|
|
12491
12660
|
Object.defineProperty(exports, "Neo4jError", { enumerable: true, get: function () { return error_1.Neo4jError; } });
|
|
12661
|
+
Object.defineProperty(exports, "newGQLError", { enumerable: true, get: function () { return error_1.newGQLError; } });
|
|
12662
|
+
Object.defineProperty(exports, "GQLError", { enumerable: true, get: function () { return error_1.GQLError; } });
|
|
12492
12663
|
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return error_1.isRetriableError; } });
|
|
12493
12664
|
var integer_1 = __importStar(integer);
|
|
12494
12665
|
exports.Integer = integer_1.default;
|
|
@@ -12575,7 +12746,7 @@ var driver_2 = driver;
|
|
|
12575
12746
|
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return driver_2.routing; } });
|
|
12576
12747
|
var types = __importStar(types$1);
|
|
12577
12748
|
exports.types = types;
|
|
12578
|
-
var json = __importStar(json$
|
|
12749
|
+
var json = __importStar(json$3);
|
|
12579
12750
|
exports.json = json;
|
|
12580
12751
|
var result_transformers_1 = __importDefault(resultTransformers$1);
|
|
12581
12752
|
exports.resultTransformers = result_transformers_1.default;
|
|
@@ -12600,6 +12771,8 @@ var forExport = {
|
|
|
12600
12771
|
authTokenManagers: auth_token_manager_1.authTokenManagers,
|
|
12601
12772
|
newError: error_1.newError,
|
|
12602
12773
|
Neo4jError: error_1.Neo4jError,
|
|
12774
|
+
newGQLError: error_1.newGQLError,
|
|
12775
|
+
GQLError: error_1.GQLError,
|
|
12603
12776
|
isRetriableError: error_1.isRetriableError,
|
|
12604
12777
|
error: error$1,
|
|
12605
12778
|
Integer: integer_1.default,
|
|
@@ -13432,7 +13605,7 @@ lift.operate = operate;
|
|
|
13432
13605
|
|
|
13433
13606
|
var OperatorSubscriber$1 = {};
|
|
13434
13607
|
|
|
13435
|
-
var __extends$
|
|
13608
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13436
13609
|
var extendStatics = function (d, b) {
|
|
13437
13610
|
extendStatics = Object.setPrototypeOf ||
|
|
13438
13611
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13455,7 +13628,7 @@ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFi
|
|
|
13455
13628
|
}
|
|
13456
13629
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
13457
13630
|
var OperatorSubscriber = (function (_super) {
|
|
13458
|
-
__extends$
|
|
13631
|
+
__extends$L(OperatorSubscriber, _super);
|
|
13459
13632
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
13460
13633
|
var _this = _super.call(this, destination) || this;
|
|
13461
13634
|
_this.onFinalize = onFinalize;
|
|
@@ -13539,7 +13712,7 @@ function refCount() {
|
|
|
13539
13712
|
}
|
|
13540
13713
|
refCount$1.refCount = refCount;
|
|
13541
13714
|
|
|
13542
|
-
var __extends$
|
|
13715
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13543
13716
|
var extendStatics = function (d, b) {
|
|
13544
13717
|
extendStatics = Object.setPrototypeOf ||
|
|
13545
13718
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13562,7 +13735,7 @@ var refCount_1 = refCount$1;
|
|
|
13562
13735
|
var OperatorSubscriber_1$U = OperatorSubscriber$1;
|
|
13563
13736
|
var lift_1$13 = lift;
|
|
13564
13737
|
var ConnectableObservable = (function (_super) {
|
|
13565
|
-
__extends$
|
|
13738
|
+
__extends$K(ConnectableObservable, _super);
|
|
13566
13739
|
function ConnectableObservable(source, subjectFactory) {
|
|
13567
13740
|
var _this = _super.call(this) || this;
|
|
13568
13741
|
_this.source = source;
|
|
@@ -13749,7 +13922,7 @@ ObjectUnsubscribedError.ObjectUnsubscribedError = createErrorClass_1$4.createErr
|
|
|
13749
13922
|
};
|
|
13750
13923
|
});
|
|
13751
13924
|
|
|
13752
|
-
var __extends$
|
|
13925
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13753
13926
|
var extendStatics = function (d, b) {
|
|
13754
13927
|
extendStatics = Object.setPrototypeOf ||
|
|
13755
13928
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13783,7 +13956,7 @@ var ObjectUnsubscribedError_1 = ObjectUnsubscribedError;
|
|
|
13783
13956
|
var arrRemove_1$6 = arrRemove$1;
|
|
13784
13957
|
var errorContext_1 = errorContext$1;
|
|
13785
13958
|
var Subject = (function (_super) {
|
|
13786
|
-
__extends$
|
|
13959
|
+
__extends$J(Subject, _super);
|
|
13787
13960
|
function Subject() {
|
|
13788
13961
|
var _this = _super.call(this) || this;
|
|
13789
13962
|
_this.closed = false;
|
|
@@ -13911,7 +14084,7 @@ var Subject = (function (_super) {
|
|
|
13911
14084
|
}(Observable_1$l.Observable));
|
|
13912
14085
|
Subject$1.Subject = Subject;
|
|
13913
14086
|
var AnonymousSubject = (function (_super) {
|
|
13914
|
-
__extends$
|
|
14087
|
+
__extends$J(AnonymousSubject, _super);
|
|
13915
14088
|
function AnonymousSubject(destination, source) {
|
|
13916
14089
|
var _this = _super.call(this) || this;
|
|
13917
14090
|
_this.destination = destination;
|
|
@@ -13940,7 +14113,7 @@ Subject$1.AnonymousSubject = AnonymousSubject;
|
|
|
13940
14113
|
|
|
13941
14114
|
var BehaviorSubject$1 = {};
|
|
13942
14115
|
|
|
13943
|
-
var __extends$
|
|
14116
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13944
14117
|
var extendStatics = function (d, b) {
|
|
13945
14118
|
extendStatics = Object.setPrototypeOf ||
|
|
13946
14119
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13959,7 +14132,7 @@ Object.defineProperty(BehaviorSubject$1, "__esModule", { value: true });
|
|
|
13959
14132
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
13960
14133
|
var Subject_1$e = Subject$1;
|
|
13961
14134
|
var BehaviorSubject = (function (_super) {
|
|
13962
|
-
__extends$
|
|
14135
|
+
__extends$I(BehaviorSubject, _super);
|
|
13963
14136
|
function BehaviorSubject(_value) {
|
|
13964
14137
|
var _this = _super.call(this) || this;
|
|
13965
14138
|
_this._value = _value;
|
|
@@ -14008,7 +14181,7 @@ exports.dateTimestampProvider = {
|
|
|
14008
14181
|
|
|
14009
14182
|
}(dateTimestampProvider));
|
|
14010
14183
|
|
|
14011
|
-
var __extends$
|
|
14184
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14012
14185
|
var extendStatics = function (d, b) {
|
|
14013
14186
|
extendStatics = Object.setPrototypeOf ||
|
|
14014
14187
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14028,7 +14201,7 @@ ReplaySubject$1.ReplaySubject = void 0;
|
|
|
14028
14201
|
var Subject_1$d = Subject$1;
|
|
14029
14202
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
14030
14203
|
var ReplaySubject = (function (_super) {
|
|
14031
|
-
__extends$
|
|
14204
|
+
__extends$H(ReplaySubject, _super);
|
|
14032
14205
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
14033
14206
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
14034
14207
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -14084,7 +14257,7 @@ ReplaySubject$1.ReplaySubject = ReplaySubject;
|
|
|
14084
14257
|
|
|
14085
14258
|
var AsyncSubject$1 = {};
|
|
14086
14259
|
|
|
14087
|
-
var __extends$
|
|
14260
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14088
14261
|
var extendStatics = function (d, b) {
|
|
14089
14262
|
extendStatics = Object.setPrototypeOf ||
|
|
14090
14263
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14103,7 +14276,7 @@ Object.defineProperty(AsyncSubject$1, "__esModule", { value: true });
|
|
|
14103
14276
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
14104
14277
|
var Subject_1$c = Subject$1;
|
|
14105
14278
|
var AsyncSubject = (function (_super) {
|
|
14106
|
-
__extends$
|
|
14279
|
+
__extends$G(AsyncSubject, _super);
|
|
14107
14280
|
function AsyncSubject() {
|
|
14108
14281
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14109
14282
|
_this._value = null;
|
|
@@ -14147,7 +14320,7 @@ var AsyncAction$1 = {};
|
|
|
14147
14320
|
|
|
14148
14321
|
var Action$1 = {};
|
|
14149
14322
|
|
|
14150
|
-
var __extends$
|
|
14323
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14151
14324
|
var extendStatics = function (d, b) {
|
|
14152
14325
|
extendStatics = Object.setPrototypeOf ||
|
|
14153
14326
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14166,7 +14339,7 @@ Object.defineProperty(Action$1, "__esModule", { value: true });
|
|
|
14166
14339
|
Action$1.Action = void 0;
|
|
14167
14340
|
var Subscription_1$5 = Subscription$1;
|
|
14168
14341
|
var Action = (function (_super) {
|
|
14169
|
-
__extends$
|
|
14342
|
+
__extends$F(Action, _super);
|
|
14170
14343
|
function Action(scheduler, work) {
|
|
14171
14344
|
return _super.call(this) || this;
|
|
14172
14345
|
}
|
|
@@ -14224,7 +14397,7 @@ exports.intervalProvider = {
|
|
|
14224
14397
|
|
|
14225
14398
|
}(intervalProvider));
|
|
14226
14399
|
|
|
14227
|
-
var __extends$
|
|
14400
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14228
14401
|
var extendStatics = function (d, b) {
|
|
14229
14402
|
extendStatics = Object.setPrototypeOf ||
|
|
14230
14403
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14245,7 +14418,7 @@ var Action_1 = Action$1;
|
|
|
14245
14418
|
var intervalProvider_1 = intervalProvider;
|
|
14246
14419
|
var arrRemove_1$5 = arrRemove$1;
|
|
14247
14420
|
var AsyncAction = (function (_super) {
|
|
14248
|
-
__extends$
|
|
14421
|
+
__extends$E(AsyncAction, _super);
|
|
14249
14422
|
function AsyncAction(scheduler, work) {
|
|
14250
14423
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14251
14424
|
_this.scheduler = scheduler;
|
|
@@ -14410,7 +14583,7 @@ exports.immediateProvider = {
|
|
|
14410
14583
|
|
|
14411
14584
|
}(immediateProvider));
|
|
14412
14585
|
|
|
14413
|
-
var __extends$
|
|
14586
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14414
14587
|
var extendStatics = function (d, b) {
|
|
14415
14588
|
extendStatics = Object.setPrototypeOf ||
|
|
14416
14589
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14430,7 +14603,7 @@ AsapAction$1.AsapAction = void 0;
|
|
|
14430
14603
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
14431
14604
|
var immediateProvider_1 = immediateProvider;
|
|
14432
14605
|
var AsapAction = (function (_super) {
|
|
14433
|
-
__extends$
|
|
14606
|
+
__extends$D(AsapAction, _super);
|
|
14434
14607
|
function AsapAction(scheduler, work) {
|
|
14435
14608
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14436
14609
|
_this.scheduler = scheduler;
|
|
@@ -14488,7 +14661,7 @@ var Scheduler = (function () {
|
|
|
14488
14661
|
}());
|
|
14489
14662
|
Scheduler$1.Scheduler = Scheduler;
|
|
14490
14663
|
|
|
14491
|
-
var __extends$
|
|
14664
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14492
14665
|
var extendStatics = function (d, b) {
|
|
14493
14666
|
extendStatics = Object.setPrototypeOf ||
|
|
14494
14667
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14507,7 +14680,7 @@ Object.defineProperty(AsyncScheduler$1, "__esModule", { value: true });
|
|
|
14507
14680
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
14508
14681
|
var Scheduler_1 = Scheduler$1;
|
|
14509
14682
|
var AsyncScheduler = (function (_super) {
|
|
14510
|
-
__extends$
|
|
14683
|
+
__extends$C(AsyncScheduler, _super);
|
|
14511
14684
|
function AsyncScheduler(SchedulerAction, now) {
|
|
14512
14685
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
14513
14686
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -14540,7 +14713,7 @@ var AsyncScheduler = (function (_super) {
|
|
|
14540
14713
|
}(Scheduler_1.Scheduler));
|
|
14541
14714
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
14542
14715
|
|
|
14543
|
-
var __extends$
|
|
14716
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14544
14717
|
var extendStatics = function (d, b) {
|
|
14545
14718
|
extendStatics = Object.setPrototypeOf ||
|
|
14546
14719
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14559,7 +14732,7 @@ Object.defineProperty(AsapScheduler$1, "__esModule", { value: true });
|
|
|
14559
14732
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
14560
14733
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
14561
14734
|
var AsapScheduler = (function (_super) {
|
|
14562
|
-
__extends$
|
|
14735
|
+
__extends$B(AsapScheduler, _super);
|
|
14563
14736
|
function AsapScheduler() {
|
|
14564
14737
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14565
14738
|
}
|
|
@@ -14613,7 +14786,7 @@ var queue = {};
|
|
|
14613
14786
|
|
|
14614
14787
|
var QueueAction$1 = {};
|
|
14615
14788
|
|
|
14616
|
-
var __extends$
|
|
14789
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14617
14790
|
var extendStatics = function (d, b) {
|
|
14618
14791
|
extendStatics = Object.setPrototypeOf ||
|
|
14619
14792
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14632,7 +14805,7 @@ Object.defineProperty(QueueAction$1, "__esModule", { value: true });
|
|
|
14632
14805
|
QueueAction$1.QueueAction = void 0;
|
|
14633
14806
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
14634
14807
|
var QueueAction = (function (_super) {
|
|
14635
|
-
__extends$
|
|
14808
|
+
__extends$A(QueueAction, _super);
|
|
14636
14809
|
function QueueAction(scheduler, work) {
|
|
14637
14810
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14638
14811
|
_this.scheduler = scheduler;
|
|
@@ -14666,7 +14839,7 @@ QueueAction$1.QueueAction = QueueAction;
|
|
|
14666
14839
|
|
|
14667
14840
|
var QueueScheduler$1 = {};
|
|
14668
14841
|
|
|
14669
|
-
var __extends$
|
|
14842
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14670
14843
|
var extendStatics = function (d, b) {
|
|
14671
14844
|
extendStatics = Object.setPrototypeOf ||
|
|
14672
14845
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14685,7 +14858,7 @@ Object.defineProperty(QueueScheduler$1, "__esModule", { value: true });
|
|
|
14685
14858
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
14686
14859
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
14687
14860
|
var QueueScheduler = (function (_super) {
|
|
14688
|
-
__extends$
|
|
14861
|
+
__extends$z(QueueScheduler, _super);
|
|
14689
14862
|
function QueueScheduler() {
|
|
14690
14863
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14691
14864
|
}
|
|
@@ -14707,7 +14880,7 @@ var animationFrame = {};
|
|
|
14707
14880
|
|
|
14708
14881
|
var AnimationFrameAction$1 = {};
|
|
14709
14882
|
|
|
14710
|
-
var __extends$
|
|
14883
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14711
14884
|
var extendStatics = function (d, b) {
|
|
14712
14885
|
extendStatics = Object.setPrototypeOf ||
|
|
14713
14886
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14727,7 +14900,7 @@ AnimationFrameAction$1.AnimationFrameAction = void 0;
|
|
|
14727
14900
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
14728
14901
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
14729
14902
|
var AnimationFrameAction = (function (_super) {
|
|
14730
|
-
__extends$
|
|
14903
|
+
__extends$y(AnimationFrameAction, _super);
|
|
14731
14904
|
function AnimationFrameAction(scheduler, work) {
|
|
14732
14905
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14733
14906
|
_this.scheduler = scheduler;
|
|
@@ -14761,7 +14934,7 @@ AnimationFrameAction$1.AnimationFrameAction = AnimationFrameAction;
|
|
|
14761
14934
|
|
|
14762
14935
|
var AnimationFrameScheduler$1 = {};
|
|
14763
14936
|
|
|
14764
|
-
var __extends$
|
|
14937
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14765
14938
|
var extendStatics = function (d, b) {
|
|
14766
14939
|
extendStatics = Object.setPrototypeOf ||
|
|
14767
14940
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14780,7 +14953,7 @@ Object.defineProperty(AnimationFrameScheduler$1, "__esModule", { value: true });
|
|
|
14780
14953
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
14781
14954
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
14782
14955
|
var AnimationFrameScheduler = (function (_super) {
|
|
14783
|
-
__extends$
|
|
14956
|
+
__extends$x(AnimationFrameScheduler, _super);
|
|
14784
14957
|
function AnimationFrameScheduler() {
|
|
14785
14958
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14786
14959
|
}
|
|
@@ -14820,7 +14993,7 @@ exports.animationFrame = exports.animationFrameScheduler;
|
|
|
14820
14993
|
|
|
14821
14994
|
var VirtualTimeScheduler$1 = {};
|
|
14822
14995
|
|
|
14823
|
-
var __extends$
|
|
14996
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14824
14997
|
var extendStatics = function (d, b) {
|
|
14825
14998
|
extendStatics = Object.setPrototypeOf ||
|
|
14826
14999
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14841,7 +15014,7 @@ var AsyncAction_1 = AsyncAction$1;
|
|
|
14841
15014
|
var Subscription_1$4 = Subscription$1;
|
|
14842
15015
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
14843
15016
|
var VirtualTimeScheduler = (function (_super) {
|
|
14844
|
-
__extends$
|
|
15017
|
+
__extends$w(VirtualTimeScheduler, _super);
|
|
14845
15018
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
14846
15019
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
14847
15020
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -14874,7 +15047,7 @@ var VirtualTimeScheduler = (function (_super) {
|
|
|
14874
15047
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
14875
15048
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
14876
15049
|
var VirtualAction = (function (_super) {
|
|
14877
|
-
__extends$
|
|
15050
|
+
__extends$w(VirtualAction, _super);
|
|
14878
15051
|
function VirtualAction(scheduler, work, index) {
|
|
14879
15052
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
14880
15053
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -20696,7 +20869,7 @@ Object.defineProperty(resultRx, "__esModule", { value: true });
|
|
|
20696
20869
|
* limitations under the License.
|
|
20697
20870
|
*/
|
|
20698
20871
|
/* eslint-disable-next-line no-unused-vars */
|
|
20699
|
-
var neo4j_driver_core_1$
|
|
20872
|
+
var neo4j_driver_core_1$L = lib$1;
|
|
20700
20873
|
var rxjs_1$3 = cjs;
|
|
20701
20874
|
var operators_1$2 = operators;
|
|
20702
20875
|
var States = {
|
|
@@ -20830,7 +21003,7 @@ var RxResult = /** @class */ (function () {
|
|
|
20830
21003
|
});
|
|
20831
21004
|
}
|
|
20832
21005
|
else if (recordsObserver) {
|
|
20833
|
-
recordsObserver.error((0, neo4j_driver_core_1$
|
|
21006
|
+
recordsObserver.error((0, neo4j_driver_core_1$L.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
|
|
20834
21007
|
}
|
|
20835
21008
|
return function () {
|
|
20836
21009
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -21021,7 +21194,7 @@ var StreamControl = /** @class */ (function () {
|
|
|
21021
21194
|
|
|
21022
21195
|
var transactionRx = {};
|
|
21023
21196
|
|
|
21024
|
-
var __importDefault$
|
|
21197
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21025
21198
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21026
21199
|
};
|
|
21027
21200
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -21042,9 +21215,9 @@ Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
|
21042
21215
|
* limitations under the License.
|
|
21043
21216
|
*/
|
|
21044
21217
|
var rxjs_1$2 = cjs;
|
|
21045
|
-
var result_rx_1$1 = __importDefault$
|
|
21218
|
+
var result_rx_1$1 = __importDefault$P(resultRx);
|
|
21046
21219
|
// eslint-disable-next-line no-unused-vars
|
|
21047
|
-
__importDefault$
|
|
21220
|
+
__importDefault$P(lib$1);
|
|
21048
21221
|
/**
|
|
21049
21222
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
21050
21223
|
*/
|
|
@@ -21143,7 +21316,7 @@ transactionRx.default = RxTransaction;
|
|
|
21143
21316
|
|
|
21144
21317
|
var transactionManagedRx = {};
|
|
21145
21318
|
|
|
21146
|
-
var __importDefault$
|
|
21319
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21147
21320
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21148
21321
|
};
|
|
21149
21322
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -21164,9 +21337,9 @@ Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
|
21164
21337
|
* limitations under the License.
|
|
21165
21338
|
*/
|
|
21166
21339
|
// eslint-disable-next-line no-unused-vars
|
|
21167
|
-
__importDefault$
|
|
21340
|
+
__importDefault$O(resultRx);
|
|
21168
21341
|
// eslint-disable-next-line no-unused-vars
|
|
21169
|
-
__importDefault$
|
|
21342
|
+
__importDefault$O(transactionRx);
|
|
21170
21343
|
/**
|
|
21171
21344
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
21172
21345
|
*
|
|
@@ -21224,13 +21397,13 @@ var retryLogicRx = {};
|
|
|
21224
21397
|
* limitations under the License.
|
|
21225
21398
|
*/
|
|
21226
21399
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
21227
|
-
var neo4j_driver_core_1$
|
|
21400
|
+
var neo4j_driver_core_1$K = lib$1;
|
|
21228
21401
|
// eslint-disable-next-line no-unused-vars
|
|
21229
21402
|
var rxjs_1$1 = cjs;
|
|
21230
21403
|
var operators_1$1 = operators;
|
|
21231
21404
|
// eslint-disable-next-line no-unused-vars
|
|
21232
|
-
neo4j_driver_core_1$
|
|
21233
|
-
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$
|
|
21405
|
+
neo4j_driver_core_1$K.internal.logger.Logger;
|
|
21406
|
+
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$K.error.SERVICE_UNAVAILABLE;
|
|
21234
21407
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
21235
21408
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
21236
21409
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -21261,13 +21434,13 @@ var RxRetryLogic = /** @class */ (function () {
|
|
|
21261
21434
|
var retryCount = 1;
|
|
21262
21435
|
var delayDuration = _this._initialDelay;
|
|
21263
21436
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
21264
|
-
if (!(0, neo4j_driver_core_1$
|
|
21437
|
+
if (!(0, neo4j_driver_core_1$K.isRetriableError)(err)) {
|
|
21265
21438
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
21266
21439
|
}
|
|
21267
21440
|
handledExceptions.push(err);
|
|
21268
21441
|
if (retryCount >= 2 &&
|
|
21269
21442
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
21270
|
-
var error_1 = (0, neo4j_driver_core_1$
|
|
21443
|
+
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);
|
|
21271
21444
|
error_1.seenErrors = handledExceptions;
|
|
21272
21445
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
21273
21446
|
}
|
|
@@ -21295,7 +21468,7 @@ function valueOrDefault(value, defaultValue) {
|
|
|
21295
21468
|
return defaultValue;
|
|
21296
21469
|
}
|
|
21297
21470
|
|
|
21298
|
-
var __importDefault$
|
|
21471
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21299
21472
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21300
21473
|
};
|
|
21301
21474
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -21317,13 +21490,13 @@ Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
|
21317
21490
|
*/
|
|
21318
21491
|
var rxjs_1 = cjs;
|
|
21319
21492
|
var operators_1 = operators;
|
|
21320
|
-
var result_rx_1 = __importDefault$
|
|
21493
|
+
var result_rx_1 = __importDefault$N(resultRx);
|
|
21321
21494
|
// eslint-disable-next-line no-unused-vars
|
|
21322
|
-
var neo4j_driver_core_1$
|
|
21323
|
-
var transaction_rx_1 = __importDefault$
|
|
21324
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
21325
|
-
var retry_logic_rx_1 = __importDefault$
|
|
21326
|
-
var _a$e = neo4j_driver_core_1$
|
|
21495
|
+
var neo4j_driver_core_1$J = lib$1;
|
|
21496
|
+
var transaction_rx_1 = __importDefault$N(transactionRx);
|
|
21497
|
+
var transaction_managed_rx_1 = __importDefault$N(transactionManagedRx);
|
|
21498
|
+
var retry_logic_rx_1 = __importDefault$N(retryLogicRx);
|
|
21499
|
+
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;
|
|
21327
21500
|
/**
|
|
21328
21501
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
21329
21502
|
*/
|
|
@@ -21561,7 +21734,7 @@ function _createRetryLogic(config) {
|
|
|
21561
21734
|
* See the License for the specific language governing permissions and
|
|
21562
21735
|
* limitations under the License.
|
|
21563
21736
|
*/
|
|
21564
|
-
var __extends$
|
|
21737
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21565
21738
|
var extendStatics = function (d, b) {
|
|
21566
21739
|
extendStatics = Object.setPrototypeOf ||
|
|
21567
21740
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21576,15 +21749,15 @@ var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
21576
21749
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21577
21750
|
};
|
|
21578
21751
|
})();
|
|
21579
|
-
var __importDefault$
|
|
21752
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21580
21753
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21581
21754
|
};
|
|
21582
21755
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
21583
21756
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
21584
|
-
var neo4j_driver_core_1$
|
|
21585
|
-
var session_rx_1 = __importDefault$
|
|
21586
|
-
var FETCH_ALL$6 = neo4j_driver_core_1$
|
|
21587
|
-
var READ$2 = neo4j_driver_core_1$
|
|
21757
|
+
var neo4j_driver_core_1$I = lib$1;
|
|
21758
|
+
var session_rx_1 = __importDefault$M(sessionRx);
|
|
21759
|
+
var FETCH_ALL$6 = neo4j_driver_core_1$I.internal.constants.FETCH_ALL;
|
|
21760
|
+
var READ$2 = neo4j_driver_core_1$I.driver.READ, WRITE$2 = neo4j_driver_core_1$I.driver.WRITE;
|
|
21588
21761
|
driver$1.READ = READ$2;
|
|
21589
21762
|
driver$1.WRITE = WRITE$2;
|
|
21590
21763
|
/**
|
|
@@ -21598,7 +21771,7 @@ driver$1.WRITE = WRITE$2;
|
|
|
21598
21771
|
* @access public
|
|
21599
21772
|
*/
|
|
21600
21773
|
var Driver = /** @class */ (function (_super) {
|
|
21601
|
-
__extends$
|
|
21774
|
+
__extends$v(Driver, _super);
|
|
21602
21775
|
function Driver() {
|
|
21603
21776
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21604
21777
|
}
|
|
@@ -21637,7 +21810,7 @@ var Driver = /** @class */ (function (_super) {
|
|
|
21637
21810
|
});
|
|
21638
21811
|
};
|
|
21639
21812
|
return Driver;
|
|
21640
|
-
}(neo4j_driver_core_1$
|
|
21813
|
+
}(neo4j_driver_core_1$I.Driver));
|
|
21641
21814
|
driver$1.Driver = Driver;
|
|
21642
21815
|
/**
|
|
21643
21816
|
* @private
|
|
@@ -21683,7 +21856,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
21683
21856
|
// This is set up this way to keep the version in the code in
|
|
21684
21857
|
// sync with the npm package version, and to allow the build
|
|
21685
21858
|
// system to control version names at packaging time.
|
|
21686
|
-
version$1.default = '5.
|
|
21859
|
+
version$1.default = '5.26.0';
|
|
21687
21860
|
|
|
21688
21861
|
var lib = {};
|
|
21689
21862
|
|
|
@@ -21783,7 +21956,7 @@ var RoundRobinArrayIndex = /** @class */ (function () {
|
|
|
21783
21956
|
}());
|
|
21784
21957
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
21785
21958
|
|
|
21786
|
-
var __extends$
|
|
21959
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21787
21960
|
var extendStatics = function (d, b) {
|
|
21788
21961
|
extendStatics = Object.setPrototypeOf ||
|
|
21789
21962
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21798,7 +21971,7 @@ var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
21798
21971
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21799
21972
|
};
|
|
21800
21973
|
})();
|
|
21801
|
-
var __importDefault$
|
|
21974
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21802
21975
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21803
21976
|
};
|
|
21804
21977
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -21818,10 +21991,10 @@ Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value
|
|
|
21818
21991
|
* See the License for the specific language governing permissions and
|
|
21819
21992
|
* limitations under the License.
|
|
21820
21993
|
*/
|
|
21821
|
-
var round_robin_array_index_1 = __importDefault$
|
|
21822
|
-
var load_balancing_strategy_1$1 = __importDefault$
|
|
21994
|
+
var round_robin_array_index_1 = __importDefault$L(roundRobinArrayIndex);
|
|
21995
|
+
var load_balancing_strategy_1$1 = __importDefault$L(loadBalancingStrategy);
|
|
21823
21996
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
21824
|
-
__extends$
|
|
21997
|
+
__extends$u(LeastConnectedLoadBalancingStrategy, _super);
|
|
21825
21998
|
/**
|
|
21826
21999
|
* @constructor
|
|
21827
22000
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -21877,7 +22050,7 @@ var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
|
21877
22050
|
}(load_balancing_strategy_1$1.default));
|
|
21878
22051
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
21879
22052
|
|
|
21880
|
-
var __importDefault$
|
|
22053
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21881
22054
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21882
22055
|
};
|
|
21883
22056
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -21898,9 +22071,9 @@ loadBalancing.LeastConnectedLoadBalancingStrategy = loadBalancing.LoadBalancingS
|
|
|
21898
22071
|
* See the License for the specific language governing permissions and
|
|
21899
22072
|
* limitations under the License.
|
|
21900
22073
|
*/
|
|
21901
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
22074
|
+
var load_balancing_strategy_1 = __importDefault$K(loadBalancingStrategy);
|
|
21902
22075
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
21903
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
22076
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$K(leastConnectedLoadBalancingStrategy);
|
|
21904
22077
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
21905
22078
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
21906
22079
|
|
|
@@ -24285,7 +24458,7 @@ var baseBuf = {};
|
|
|
24285
24458
|
* See the License for the specific language governing permissions and
|
|
24286
24459
|
* limitations under the License.
|
|
24287
24460
|
*/
|
|
24288
|
-
var __extends$
|
|
24461
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24289
24462
|
var extendStatics = function (d, b) {
|
|
24290
24463
|
extendStatics = Object.setPrototypeOf ||
|
|
24291
24464
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24621,7 +24794,7 @@ baseBuf.default = BaseBuffer;
|
|
|
24621
24794
|
* @access private
|
|
24622
24795
|
*/
|
|
24623
24796
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
24624
|
-
__extends$
|
|
24797
|
+
__extends$t(SliceBuffer, _super);
|
|
24625
24798
|
function SliceBuffer(start, length, inner) {
|
|
24626
24799
|
var _this = _super.call(this, length) || this;
|
|
24627
24800
|
_this._start = start;
|
|
@@ -24665,12 +24838,12 @@ var SliceBuffer = /** @class */ (function (_super) {
|
|
|
24665
24838
|
* See the License for the specific language governing permissions and
|
|
24666
24839
|
* limitations under the License.
|
|
24667
24840
|
*/
|
|
24668
|
-
var __importDefault$
|
|
24841
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24669
24842
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24670
24843
|
};
|
|
24671
24844
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
24672
24845
|
buf.BaseBuffer = void 0;
|
|
24673
|
-
var base_buf_1$1 = __importDefault$
|
|
24846
|
+
var base_buf_1$1 = __importDefault$J(baseBuf);
|
|
24674
24847
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
24675
24848
|
buf.default = base_buf_1$1.default;
|
|
24676
24849
|
|
|
@@ -24690,7 +24863,7 @@ buf.default = base_buf_1$1.default;
|
|
|
24690
24863
|
* See the License for the specific language governing permissions and
|
|
24691
24864
|
* limitations under the License.
|
|
24692
24865
|
*/
|
|
24693
|
-
var __extends$
|
|
24866
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24694
24867
|
var extendStatics = function (d, b) {
|
|
24695
24868
|
extendStatics = Object.setPrototypeOf ||
|
|
24696
24869
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24705,15 +24878,15 @@ var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
24705
24878
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24706
24879
|
};
|
|
24707
24880
|
})();
|
|
24708
|
-
var __importDefault$
|
|
24881
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24709
24882
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24710
24883
|
};
|
|
24711
24884
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
24712
24885
|
channelBuf.alloc = void 0;
|
|
24713
|
-
var buffer_1$1 = __importDefault$
|
|
24714
|
-
var buf_1$1 = __importDefault$
|
|
24886
|
+
var buffer_1$1 = __importDefault$I(buffer);
|
|
24887
|
+
var buf_1$1 = __importDefault$I(buf);
|
|
24715
24888
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
24716
|
-
__extends$
|
|
24889
|
+
__extends$s(ChannelBuffer, _super);
|
|
24717
24890
|
function ChannelBuffer(arg) {
|
|
24718
24891
|
var _this = this;
|
|
24719
24892
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -24781,7 +24954,7 @@ function newChannelJSBuffer(arg) {
|
|
|
24781
24954
|
}
|
|
24782
24955
|
}
|
|
24783
24956
|
|
|
24784
|
-
var __importDefault$
|
|
24957
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24785
24958
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24786
24959
|
};
|
|
24787
24960
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -24802,9 +24975,9 @@ Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
|
24802
24975
|
* limitations under the License.
|
|
24803
24976
|
*/
|
|
24804
24977
|
/* eslint-env browser */
|
|
24805
|
-
var channel_buf_1$3 = __importDefault$
|
|
24806
|
-
var neo4j_driver_core_1$
|
|
24807
|
-
var _a$d = neo4j_driver_core_1$
|
|
24978
|
+
var channel_buf_1$3 = __importDefault$H(channelBuf);
|
|
24979
|
+
var neo4j_driver_core_1$H = lib$1;
|
|
24980
|
+
var _a$d = neo4j_driver_core_1$H.internal.util, ENCRYPTION_OFF$1 = _a$d.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$d.ENCRYPTION_ON;
|
|
24808
24981
|
var WS_OPEN = 1;
|
|
24809
24982
|
var WS_CLOSED = 3;
|
|
24810
24983
|
/**
|
|
@@ -24870,7 +25043,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24870
25043
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
24871
25044
|
if (this._connectionTimeoutFired) {
|
|
24872
25045
|
// timeout fired - not connected within configured time
|
|
24873
|
-
this._error = (0, neo4j_driver_core_1$
|
|
25046
|
+
this._error = (0, neo4j_driver_core_1$H.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
|
|
24874
25047
|
if (this.onerror) {
|
|
24875
25048
|
this.onerror(this._error);
|
|
24876
25049
|
}
|
|
@@ -24879,7 +25052,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24879
25052
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
24880
25053
|
if (this._open && !this._timedout) {
|
|
24881
25054
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
24882
|
-
this._error = (0, neo4j_driver_core_1$
|
|
25055
|
+
this._error = (0, neo4j_driver_core_1$H.newError)('WebSocket connection failure. Due to security ' +
|
|
24883
25056
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
24884
25057
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
24885
25058
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -24918,7 +25091,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24918
25091
|
}
|
|
24919
25092
|
}
|
|
24920
25093
|
else {
|
|
24921
|
-
throw (0, neo4j_driver_core_1$
|
|
25094
|
+
throw (0, neo4j_driver_core_1$H.newError)("Don't know how to send buffer: " + buffer);
|
|
24922
25095
|
}
|
|
24923
25096
|
};
|
|
24924
25097
|
/**
|
|
@@ -24989,7 +25162,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24989
25162
|
_this._receiveTimeoutId = null;
|
|
24990
25163
|
_this._timedout = true;
|
|
24991
25164
|
_this.stopReceiveTimeout();
|
|
24992
|
-
_this._error = (0, neo4j_driver_core_1$
|
|
25165
|
+
_this._error = (0, neo4j_driver_core_1$H.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
|
|
24993
25166
|
_this.close();
|
|
24994
25167
|
if (_this.onerror) {
|
|
24995
25168
|
_this.onerror(_this._error);
|
|
@@ -25098,7 +25271,7 @@ function determineWebSocketScheme(config, protocolSupplier) {
|
|
|
25098
25271
|
return { scheme: 'wss', error: null };
|
|
25099
25272
|
}
|
|
25100
25273
|
else {
|
|
25101
|
-
var error = (0, neo4j_driver_core_1$
|
|
25274
|
+
var error = (0, neo4j_driver_core_1$H.newError)('The browser version of this driver only supports one trust ' +
|
|
25102
25275
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
25103
25276
|
trust +
|
|
25104
25277
|
' is not supported. Please ' +
|
|
@@ -25173,7 +25346,7 @@ var browserHostNameResolver = {};
|
|
|
25173
25346
|
* See the License for the specific language governing permissions and
|
|
25174
25347
|
* limitations under the License.
|
|
25175
25348
|
*/
|
|
25176
|
-
var __extends$
|
|
25349
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25177
25350
|
var extendStatics = function (d, b) {
|
|
25178
25351
|
extendStatics = Object.setPrototypeOf ||
|
|
25179
25352
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25189,10 +25362,10 @@ var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
25189
25362
|
};
|
|
25190
25363
|
})();
|
|
25191
25364
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
25192
|
-
var neo4j_driver_core_1$
|
|
25193
|
-
var BaseHostNameResolver = neo4j_driver_core_1$
|
|
25365
|
+
var neo4j_driver_core_1$G = lib$1;
|
|
25366
|
+
var BaseHostNameResolver = neo4j_driver_core_1$G.internal.resolver.BaseHostNameResolver;
|
|
25194
25367
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
25195
|
-
__extends$
|
|
25368
|
+
__extends$r(BrowserHostNameResolver, _super);
|
|
25196
25369
|
function BrowserHostNameResolver() {
|
|
25197
25370
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25198
25371
|
}
|
|
@@ -25284,14 +25457,14 @@ browserClientCertificatesLoader.default = {
|
|
|
25284
25457
|
* See the License for the specific language governing permissions and
|
|
25285
25458
|
* limitations under the License.
|
|
25286
25459
|
*/
|
|
25287
|
-
var __importDefault$
|
|
25460
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25288
25461
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25289
25462
|
};
|
|
25290
25463
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
25291
25464
|
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
25292
|
-
var browser_channel_1 = __importDefault$
|
|
25293
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
25294
|
-
var browser_client_certificates_loader_1 = __importDefault$
|
|
25465
|
+
var browser_channel_1 = __importDefault$G(browserChannel);
|
|
25466
|
+
var browser_host_name_resolver_1 = __importDefault$G(browserHostNameResolver);
|
|
25467
|
+
var browser_client_certificates_loader_1 = __importDefault$G(browserClientCertificatesLoader);
|
|
25295
25468
|
/*
|
|
25296
25469
|
|
|
25297
25470
|
This module exports a set of components to be used in browser environment.
|
|
@@ -25326,7 +25499,7 @@ var combinedBuf = {};
|
|
|
25326
25499
|
* See the License for the specific language governing permissions and
|
|
25327
25500
|
* limitations under the License.
|
|
25328
25501
|
*/
|
|
25329
|
-
var __extends$
|
|
25502
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25330
25503
|
var extendStatics = function (d, b) {
|
|
25331
25504
|
extendStatics = Object.setPrototypeOf ||
|
|
25332
25505
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25348,7 +25521,7 @@ var channel_buf_1$2 = channelBuf;
|
|
|
25348
25521
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
25349
25522
|
*/
|
|
25350
25523
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
25351
|
-
__extends$
|
|
25524
|
+
__extends$q(CombinedBuffer, _super);
|
|
25352
25525
|
function CombinedBuffer(buffers) {
|
|
25353
25526
|
var _this = this;
|
|
25354
25527
|
var length = 0;
|
|
@@ -25414,7 +25587,7 @@ combinedBuf.default = CombinedBuffer;
|
|
|
25414
25587
|
* See the License for the specific language governing permissions and
|
|
25415
25588
|
* limitations under the License.
|
|
25416
25589
|
*/
|
|
25417
|
-
var __extends$
|
|
25590
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25418
25591
|
var extendStatics = function (d, b) {
|
|
25419
25592
|
extendStatics = Object.setPrototypeOf ||
|
|
25420
25593
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25429,14 +25602,14 @@ var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
25429
25602
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25430
25603
|
};
|
|
25431
25604
|
})();
|
|
25432
|
-
var __importDefault$
|
|
25605
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25433
25606
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25434
25607
|
};
|
|
25435
25608
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
25436
25609
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
25437
|
-
var base_buf_1 = __importDefault$
|
|
25610
|
+
var base_buf_1 = __importDefault$F(baseBuf);
|
|
25438
25611
|
var channel_buf_1$1 = channelBuf;
|
|
25439
|
-
var combined_buf_1 = __importDefault$
|
|
25612
|
+
var combined_buf_1 = __importDefault$F(combinedBuf);
|
|
25440
25613
|
var _CHUNK_HEADER_SIZE = 2;
|
|
25441
25614
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
25442
25615
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -25445,7 +25618,7 @@ var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/m
|
|
|
25445
25618
|
* @access private
|
|
25446
25619
|
*/
|
|
25447
25620
|
var Chunker = /** @class */ (function (_super) {
|
|
25448
|
-
__extends$
|
|
25621
|
+
__extends$p(Chunker, _super);
|
|
25449
25622
|
function Chunker(channel, bufferSize) {
|
|
25450
25623
|
var _this = _super.call(this, 0) || this;
|
|
25451
25624
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -25628,9 +25801,9 @@ var channelConfig = {};
|
|
|
25628
25801
|
* limitations under the License.
|
|
25629
25802
|
*/
|
|
25630
25803
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
25631
|
-
var neo4j_driver_core_1$
|
|
25632
|
-
var _a$c = neo4j_driver_core_1$
|
|
25633
|
-
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$
|
|
25804
|
+
var neo4j_driver_core_1$F = lib$1;
|
|
25805
|
+
var _a$c = neo4j_driver_core_1$F.internal.util, ENCRYPTION_OFF = _a$c.ENCRYPTION_OFF, ENCRYPTION_ON = _a$c.ENCRYPTION_ON;
|
|
25806
|
+
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
|
|
25634
25807
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
25635
25808
|
null,
|
|
25636
25809
|
undefined,
|
|
@@ -25670,14 +25843,14 @@ channelConfig.default = ChannelConfig;
|
|
|
25670
25843
|
function extractEncrypted(driverConfig) {
|
|
25671
25844
|
var value = driverConfig.encrypted;
|
|
25672
25845
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
25673
|
-
throw (0, neo4j_driver_core_1$
|
|
25846
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
|
|
25674
25847
|
}
|
|
25675
25848
|
return value;
|
|
25676
25849
|
}
|
|
25677
25850
|
function extractTrust(driverConfig) {
|
|
25678
25851
|
var value = driverConfig.trust;
|
|
25679
25852
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
25680
|
-
throw (0, neo4j_driver_core_1$
|
|
25853
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
|
|
25681
25854
|
}
|
|
25682
25855
|
return value;
|
|
25683
25856
|
}
|
|
@@ -26052,13 +26225,13 @@ function simpleEnd(buf) {
|
|
|
26052
26225
|
* See the License for the specific language governing permissions and
|
|
26053
26226
|
* limitations under the License.
|
|
26054
26227
|
*/
|
|
26055
|
-
var __importDefault$
|
|
26228
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26056
26229
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26057
26230
|
};
|
|
26058
26231
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
26059
|
-
var channel_buf_1 = __importDefault$
|
|
26060
|
-
var neo4j_driver_core_1$
|
|
26061
|
-
var buffer_1 = __importDefault$
|
|
26232
|
+
var channel_buf_1 = __importDefault$E(channelBuf);
|
|
26233
|
+
var neo4j_driver_core_1$E = lib$1;
|
|
26234
|
+
var buffer_1 = __importDefault$E(buffer);
|
|
26062
26235
|
var string_decoder_1 = string_decoder;
|
|
26063
26236
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
26064
26237
|
function encode(str) {
|
|
@@ -26072,7 +26245,7 @@ function decode(buffer, length) {
|
|
|
26072
26245
|
return decodeCombinedBuffer(buffer, length);
|
|
26073
26246
|
}
|
|
26074
26247
|
else {
|
|
26075
|
-
throw (0, neo4j_driver_core_1$
|
|
26248
|
+
throw (0, neo4j_driver_core_1$E.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
|
|
26076
26249
|
}
|
|
26077
26250
|
}
|
|
26078
26251
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -26189,7 +26362,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
26189
26362
|
*/
|
|
26190
26363
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26191
26364
|
var channel_1$4 = channel;
|
|
26192
|
-
var neo4j_driver_core_1$
|
|
26365
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
26193
26366
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
26194
26367
|
function version(major, minor) {
|
|
26195
26368
|
return {
|
|
@@ -26199,7 +26372,7 @@ function version(major, minor) {
|
|
|
26199
26372
|
}
|
|
26200
26373
|
function createHandshakeMessage(versions) {
|
|
26201
26374
|
if (versions.length > 4) {
|
|
26202
|
-
throw (0, neo4j_driver_core_1$
|
|
26375
|
+
throw (0, neo4j_driver_core_1$D.newError)('It should not have more than 4 versions of the protocol');
|
|
26203
26376
|
}
|
|
26204
26377
|
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
26205
26378
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -26227,7 +26400,7 @@ function parseNegotiatedResponse(buffer, log) {
|
|
|
26227
26400
|
];
|
|
26228
26401
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
26229
26402
|
log.error('Handshake failed since server responded with HTTP.');
|
|
26230
|
-
throw (0, neo4j_driver_core_1$
|
|
26403
|
+
throw (0, neo4j_driver_core_1$D.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
|
|
26231
26404
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
26232
26405
|
}
|
|
26233
26406
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -26238,7 +26411,7 @@ function parseNegotiatedResponse(buffer, log) {
|
|
|
26238
26411
|
*/
|
|
26239
26412
|
function newHandshakeBuffer() {
|
|
26240
26413
|
return createHandshakeMessage([
|
|
26241
|
-
[version(5,
|
|
26414
|
+
[version(5, 7), version(5, 0)],
|
|
26242
26415
|
[version(4, 4), version(4, 2)],
|
|
26243
26416
|
version(4, 1),
|
|
26244
26417
|
version(3, 0)
|
|
@@ -26303,7 +26476,7 @@ var streamObservers = {};
|
|
|
26303
26476
|
|
|
26304
26477
|
var routingTableRaw = {};
|
|
26305
26478
|
|
|
26306
|
-
var __extends$
|
|
26479
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26307
26480
|
var extendStatics = function (d, b) {
|
|
26308
26481
|
extendStatics = Object.setPrototypeOf ||
|
|
26309
26482
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26318,7 +26491,7 @@ var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
26318
26491
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26319
26492
|
};
|
|
26320
26493
|
})();
|
|
26321
|
-
var __importDefault$
|
|
26494
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26322
26495
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26323
26496
|
};
|
|
26324
26497
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -26339,7 +26512,7 @@ Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
|
26339
26512
|
* limitations under the License.
|
|
26340
26513
|
*/
|
|
26341
26514
|
// eslint-disable-next-line no-unused-vars
|
|
26342
|
-
__importDefault$
|
|
26515
|
+
__importDefault$D(lib$1);
|
|
26343
26516
|
/**
|
|
26344
26517
|
* Represente the raw version of the routing table
|
|
26345
26518
|
*/
|
|
@@ -26434,7 +26607,7 @@ routingTableRaw.default = RawRoutingTable;
|
|
|
26434
26607
|
* Get the raw routing table information from route message response
|
|
26435
26608
|
*/
|
|
26436
26609
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
26437
|
-
__extends$
|
|
26610
|
+
__extends$o(ResponseRawRoutingTable, _super);
|
|
26438
26611
|
function ResponseRawRoutingTable(response) {
|
|
26439
26612
|
var _this = _super.call(this) || this;
|
|
26440
26613
|
_this._response = response;
|
|
@@ -26474,7 +26647,7 @@ var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
|
26474
26647
|
* Null routing table
|
|
26475
26648
|
*/
|
|
26476
26649
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
26477
|
-
__extends$
|
|
26650
|
+
__extends$o(NullRawRoutingTable, _super);
|
|
26478
26651
|
function NullRawRoutingTable() {
|
|
26479
26652
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26480
26653
|
}
|
|
@@ -26491,7 +26664,7 @@ var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
|
26491
26664
|
* Get the raw routing table information from the record
|
|
26492
26665
|
*/
|
|
26493
26666
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
26494
|
-
__extends$
|
|
26667
|
+
__extends$o(RecordRawRoutingTable, _super);
|
|
26495
26668
|
function RecordRawRoutingTable(record) {
|
|
26496
26669
|
var _this = _super.call(this) || this;
|
|
26497
26670
|
_this._record = record;
|
|
@@ -26550,7 +26723,7 @@ var functional = {};
|
|
|
26550
26723
|
*/
|
|
26551
26724
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
26552
26725
|
functional.reuseOngoingRequest = functional.identity = void 0;
|
|
26553
|
-
var neo4j_driver_core_1$
|
|
26726
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
26554
26727
|
/**
|
|
26555
26728
|
* Identity function.
|
|
26556
26729
|
*
|
|
@@ -26578,7 +26751,7 @@ function reuseOngoingRequest(func, thisArg) {
|
|
|
26578
26751
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
26579
26752
|
args[_i] = arguments[_i];
|
|
26580
26753
|
}
|
|
26581
|
-
var key = neo4j_driver_core_1$
|
|
26754
|
+
var key = neo4j_driver_core_1$C.json.stringify(args);
|
|
26582
26755
|
if (ongoingRequests.has(key)) {
|
|
26583
26756
|
return ongoingRequests.get(key);
|
|
26584
26757
|
}
|
|
@@ -26701,7 +26874,7 @@ lang.object = lang.functional = void 0;
|
|
|
26701
26874
|
lang.functional = __importStar$4(functional);
|
|
26702
26875
|
lang.object = __importStar$4(object);
|
|
26703
26876
|
|
|
26704
|
-
var __extends$
|
|
26877
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26705
26878
|
var extendStatics = function (d, b) {
|
|
26706
26879
|
extendStatics = Object.setPrototypeOf ||
|
|
26707
26880
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26716,7 +26889,7 @@ var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
26716
26889
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26717
26890
|
};
|
|
26718
26891
|
})();
|
|
26719
|
-
var __importDefault$
|
|
26892
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26720
26893
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26721
26894
|
};
|
|
26722
26895
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -26737,11 +26910,11 @@ streamObservers.TelemetryObserver = streamObservers.ProcedureRouteObserver = str
|
|
|
26737
26910
|
* See the License for the specific language governing permissions and
|
|
26738
26911
|
* limitations under the License.
|
|
26739
26912
|
*/
|
|
26740
|
-
var neo4j_driver_core_1$
|
|
26741
|
-
var routing_table_raw_1 = __importDefault$
|
|
26913
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
26914
|
+
var routing_table_raw_1 = __importDefault$C(routingTableRaw);
|
|
26742
26915
|
var lang_1$4 = lang;
|
|
26743
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
26744
|
-
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$
|
|
26916
|
+
var FETCH_ALL$5 = neo4j_driver_core_1$B.internal.constants.FETCH_ALL;
|
|
26917
|
+
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$B.error.PROTOCOL_ERROR;
|
|
26745
26918
|
var StreamObserver = /** @class */ (function () {
|
|
26746
26919
|
function StreamObserver() {
|
|
26747
26920
|
}
|
|
@@ -26762,7 +26935,7 @@ streamObservers.StreamObserver = StreamObserver;
|
|
|
26762
26935
|
* @access private
|
|
26763
26936
|
*/
|
|
26764
26937
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
26765
|
-
__extends$
|
|
26938
|
+
__extends$n(ResultStreamObserver, _super);
|
|
26766
26939
|
/**
|
|
26767
26940
|
*
|
|
26768
26941
|
* @param {Object} param
|
|
@@ -26839,7 +27012,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26839
27012
|
*/
|
|
26840
27013
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
26841
27014
|
this._haveRecordStreamed = true;
|
|
26842
|
-
var record = new neo4j_driver_core_1$
|
|
27015
|
+
var record = new neo4j_driver_core_1$B.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
26843
27016
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
26844
27017
|
this._observers.forEach(function (o) {
|
|
26845
27018
|
if (o.onNext) {
|
|
@@ -26948,7 +27121,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26948
27121
|
}
|
|
26949
27122
|
}, meta));
|
|
26950
27123
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
26951
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27124
|
+
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));
|
|
26952
27125
|
return;
|
|
26953
27126
|
}
|
|
26954
27127
|
this._setState(_states.SUCCEEDED);
|
|
@@ -27093,7 +27266,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
27093
27266
|
}(StreamObserver));
|
|
27094
27267
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
27095
27268
|
var LoginObserver = /** @class */ (function (_super) {
|
|
27096
|
-
__extends$
|
|
27269
|
+
__extends$n(LoginObserver, _super);
|
|
27097
27270
|
/**
|
|
27098
27271
|
*
|
|
27099
27272
|
* @param {Object} param -
|
|
@@ -27108,7 +27281,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
27108
27281
|
return _this;
|
|
27109
27282
|
}
|
|
27110
27283
|
LoginObserver.prototype.onNext = function (record) {
|
|
27111
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27284
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
27112
27285
|
};
|
|
27113
27286
|
LoginObserver.prototype.onError = function (error) {
|
|
27114
27287
|
if (this._onError) {
|
|
@@ -27124,7 +27297,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
27124
27297
|
}(StreamObserver));
|
|
27125
27298
|
streamObservers.LoginObserver = LoginObserver;
|
|
27126
27299
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
27127
|
-
__extends$
|
|
27300
|
+
__extends$n(LogoffObserver, _super);
|
|
27128
27301
|
/**
|
|
27129
27302
|
*
|
|
27130
27303
|
* @param {Object} param -
|
|
@@ -27139,7 +27312,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
27139
27312
|
return _this;
|
|
27140
27313
|
}
|
|
27141
27314
|
LogoffObserver.prototype.onNext = function (record) {
|
|
27142
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27315
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
27143
27316
|
};
|
|
27144
27317
|
LogoffObserver.prototype.onError = function (error) {
|
|
27145
27318
|
if (this._onError) {
|
|
@@ -27155,7 +27328,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
27155
27328
|
}(StreamObserver));
|
|
27156
27329
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
27157
27330
|
var ResetObserver = /** @class */ (function (_super) {
|
|
27158
|
-
__extends$
|
|
27331
|
+
__extends$n(ResetObserver, _super);
|
|
27159
27332
|
/**
|
|
27160
27333
|
*
|
|
27161
27334
|
* @param {Object} param -
|
|
@@ -27172,8 +27345,8 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
27172
27345
|
return _this;
|
|
27173
27346
|
}
|
|
27174
27347
|
ResetObserver.prototype.onNext = function (record) {
|
|
27175
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27176
|
-
neo4j_driver_core_1$
|
|
27348
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
27349
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
27177
27350
|
};
|
|
27178
27351
|
ResetObserver.prototype.onError = function (error) {
|
|
27179
27352
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27192,7 +27365,7 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
27192
27365
|
}(StreamObserver));
|
|
27193
27366
|
streamObservers.ResetObserver = ResetObserver;
|
|
27194
27367
|
var TelemetryObserver = /** @class */ (function (_super) {
|
|
27195
|
-
__extends$
|
|
27368
|
+
__extends$n(TelemetryObserver, _super);
|
|
27196
27369
|
/**
|
|
27197
27370
|
*
|
|
27198
27371
|
* @param {Object} param -
|
|
@@ -27207,7 +27380,7 @@ var TelemetryObserver = /** @class */ (function (_super) {
|
|
|
27207
27380
|
return _this;
|
|
27208
27381
|
}
|
|
27209
27382
|
TelemetryObserver.prototype.onNext = function (record) {
|
|
27210
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27383
|
+
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));
|
|
27211
27384
|
};
|
|
27212
27385
|
TelemetryObserver.prototype.onError = function (error) {
|
|
27213
27386
|
if (this._onError) {
|
|
@@ -27223,7 +27396,7 @@ var TelemetryObserver = /** @class */ (function (_super) {
|
|
|
27223
27396
|
}(ResultStreamObserver));
|
|
27224
27397
|
streamObservers.TelemetryObserver = TelemetryObserver;
|
|
27225
27398
|
var FailedObserver = /** @class */ (function (_super) {
|
|
27226
|
-
__extends$
|
|
27399
|
+
__extends$n(FailedObserver, _super);
|
|
27227
27400
|
function FailedObserver(_a) {
|
|
27228
27401
|
var error = _a.error, onError = _a.onError;
|
|
27229
27402
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -27234,7 +27407,7 @@ var FailedObserver = /** @class */ (function (_super) {
|
|
|
27234
27407
|
}(ResultStreamObserver));
|
|
27235
27408
|
streamObservers.FailedObserver = FailedObserver;
|
|
27236
27409
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
27237
|
-
__extends$
|
|
27410
|
+
__extends$n(CompletedObserver, _super);
|
|
27238
27411
|
function CompletedObserver() {
|
|
27239
27412
|
var _this = _super.call(this) || this;
|
|
27240
27413
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -27244,7 +27417,7 @@ var CompletedObserver = /** @class */ (function (_super) {
|
|
|
27244
27417
|
}(ResultStreamObserver));
|
|
27245
27418
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
27246
27419
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
27247
|
-
__extends$
|
|
27420
|
+
__extends$n(ProcedureRouteObserver, _super);
|
|
27248
27421
|
function ProcedureRouteObserver(_a) {
|
|
27249
27422
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
27250
27423
|
var _this = _super.call(this) || this;
|
|
@@ -27269,10 +27442,10 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
27269
27442
|
};
|
|
27270
27443
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
27271
27444
|
if (this._records !== null && this._records.length !== 1) {
|
|
27272
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27445
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Illegal response from router. Received ' +
|
|
27273
27446
|
this._records.length +
|
|
27274
27447
|
' records but expected only one.\n' +
|
|
27275
|
-
neo4j_driver_core_1$
|
|
27448
|
+
neo4j_driver_core_1$B.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
27276
27449
|
return;
|
|
27277
27450
|
}
|
|
27278
27451
|
if (this._onCompleted) {
|
|
@@ -27283,7 +27456,7 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
27283
27456
|
}(StreamObserver));
|
|
27284
27457
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
27285
27458
|
var RouteObserver = /** @class */ (function (_super) {
|
|
27286
|
-
__extends$
|
|
27459
|
+
__extends$n(RouteObserver, _super);
|
|
27287
27460
|
/**
|
|
27288
27461
|
*
|
|
27289
27462
|
* @param {Object} param -
|
|
@@ -27300,8 +27473,8 @@ var RouteObserver = /** @class */ (function (_super) {
|
|
|
27300
27473
|
return _this;
|
|
27301
27474
|
}
|
|
27302
27475
|
RouteObserver.prototype.onNext = function (record) {
|
|
27303
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27304
|
-
neo4j_driver_core_1$
|
|
27476
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
27477
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
27305
27478
|
};
|
|
27306
27479
|
RouteObserver.prototype.onError = function (error) {
|
|
27307
27480
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27403,7 +27576,7 @@ boltProtocolUtil.assertNotificationFilterIsEmpty = boltProtocolUtil.assertImpers
|
|
|
27403
27576
|
* See the License for the specific language governing permissions and
|
|
27404
27577
|
* limitations under the License.
|
|
27405
27578
|
*/
|
|
27406
|
-
var neo4j_driver_core_1$
|
|
27579
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
27407
27580
|
/**
|
|
27408
27581
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
27409
27582
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -27412,7 +27585,7 @@ var neo4j_driver_core_1$z = lib$1;
|
|
|
27412
27585
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
27413
27586
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27414
27587
|
if (txConfig && !txConfig.isEmpty()) {
|
|
27415
|
-
var error = (0, neo4j_driver_core_1$
|
|
27588
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support transaction configuration. ' +
|
|
27416
27589
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
27417
27590
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27418
27591
|
onProtocolError(error.message);
|
|
@@ -27429,7 +27602,7 @@ boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
|
27429
27602
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
27430
27603
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27431
27604
|
if (database) {
|
|
27432
|
-
var error = (0, neo4j_driver_core_1$
|
|
27605
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support multiple databases. ' +
|
|
27433
27606
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
27434
27607
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27435
27608
|
onProtocolError(error.message);
|
|
@@ -27447,7 +27620,7 @@ boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
|
27447
27620
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
27448
27621
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27449
27622
|
if (impersonatedUser) {
|
|
27450
|
-
var error = (0, neo4j_driver_core_1$
|
|
27623
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support user impersonation. ' +
|
|
27451
27624
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
27452
27625
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
27453
27626
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -27466,9 +27639,9 @@ boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
|
27466
27639
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
27467
27640
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27468
27641
|
if (notificationFilter !== undefined) {
|
|
27469
|
-
var error = (0, neo4j_driver_core_1$
|
|
27642
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to a database that does not support user notification filters. ' +
|
|
27470
27643
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
27471
|
-
"Trying to set notifications to ".concat(neo4j_driver_core_1$
|
|
27644
|
+
"Trying to set notifications to ".concat(neo4j_driver_core_1$A.json.stringify(notificationFilter), "."));
|
|
27472
27645
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27473
27646
|
onProtocolError(error.message);
|
|
27474
27647
|
observer.onError(error);
|
|
@@ -27501,8 +27674,8 @@ var structure$1 = {};
|
|
|
27501
27674
|
*/
|
|
27502
27675
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
27503
27676
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
27504
|
-
var neo4j_driver_core_1$
|
|
27505
|
-
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$
|
|
27677
|
+
var neo4j_driver_core_1$z = lib$1;
|
|
27678
|
+
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$z.error.PROTOCOL_ERROR;
|
|
27506
27679
|
/**
|
|
27507
27680
|
* A Structure have a signature and fields.
|
|
27508
27681
|
*/
|
|
@@ -27536,7 +27709,7 @@ var Structure = /** @class */ (function () {
|
|
|
27536
27709
|
structure$1.Structure = Structure;
|
|
27537
27710
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
27538
27711
|
if (expectedSize !== actualSize) {
|
|
27539
|
-
throw (0, neo4j_driver_core_1$
|
|
27712
|
+
throw (0, neo4j_driver_core_1$z.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
27540
27713
|
}
|
|
27541
27714
|
}
|
|
27542
27715
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -27563,8 +27736,8 @@ packstreamV1.Unpacker = packstreamV1.Packer = void 0;
|
|
|
27563
27736
|
var channel_1$3 = channel;
|
|
27564
27737
|
var lang_1$3 = lang;
|
|
27565
27738
|
var structure_1 = structure$1;
|
|
27566
|
-
var neo4j_driver_core_1$
|
|
27567
|
-
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$
|
|
27739
|
+
var neo4j_driver_core_1$y = lib$1;
|
|
27740
|
+
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$y.error.PROTOCOL_ERROR;
|
|
27568
27741
|
var TINY_STRING = 0x80;
|
|
27569
27742
|
var TINY_LIST = 0x90;
|
|
27570
27743
|
var TINY_MAP = 0xa0;
|
|
@@ -27634,9 +27807,9 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27634
27807
|
return function () { return _this.packString(x); };
|
|
27635
27808
|
}
|
|
27636
27809
|
else if (typeof x === 'bigint') {
|
|
27637
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
27810
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$y.int)(x)); };
|
|
27638
27811
|
}
|
|
27639
|
-
else if ((0, neo4j_driver_core_1$
|
|
27812
|
+
else if ((0, neo4j_driver_core_1$y.isInt)(x)) {
|
|
27640
27813
|
return function () { return _this.packInteger(x); };
|
|
27641
27814
|
}
|
|
27642
27815
|
else if (x instanceof Int8Array) {
|
|
@@ -27690,7 +27863,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27690
27863
|
}
|
|
27691
27864
|
catch (e) {
|
|
27692
27865
|
// handle errors from iterable to array conversion
|
|
27693
|
-
throw (0, neo4j_driver_core_1$
|
|
27866
|
+
throw (0, neo4j_driver_core_1$y.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
27694
27867
|
}
|
|
27695
27868
|
};
|
|
27696
27869
|
/**
|
|
@@ -27760,7 +27933,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27760
27933
|
this._ch.writeBytes(bytes);
|
|
27761
27934
|
}
|
|
27762
27935
|
else {
|
|
27763
|
-
throw (0, neo4j_driver_core_1$
|
|
27936
|
+
throw (0, neo4j_driver_core_1$y.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
27764
27937
|
}
|
|
27765
27938
|
};
|
|
27766
27939
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -27784,7 +27957,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27784
27957
|
this._ch.writeUInt8(size % 256);
|
|
27785
27958
|
}
|
|
27786
27959
|
else {
|
|
27787
|
-
throw (0, neo4j_driver_core_1$
|
|
27960
|
+
throw (0, neo4j_driver_core_1$y.newError)('Lists of size ' + size + ' are not supported');
|
|
27788
27961
|
}
|
|
27789
27962
|
};
|
|
27790
27963
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -27795,7 +27968,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27795
27968
|
}
|
|
27796
27969
|
}
|
|
27797
27970
|
else {
|
|
27798
|
-
throw (0, neo4j_driver_core_1$
|
|
27971
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays are not supported by the database this driver is connected to');
|
|
27799
27972
|
}
|
|
27800
27973
|
};
|
|
27801
27974
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -27816,7 +27989,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27816
27989
|
this._ch.writeUInt8(size % 256);
|
|
27817
27990
|
}
|
|
27818
27991
|
else {
|
|
27819
|
-
throw (0, neo4j_driver_core_1$
|
|
27992
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
27820
27993
|
}
|
|
27821
27994
|
};
|
|
27822
27995
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -27840,7 +28013,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27840
28013
|
this._ch.writeUInt8(size % 256);
|
|
27841
28014
|
}
|
|
27842
28015
|
else {
|
|
27843
|
-
throw (0, neo4j_driver_core_1$
|
|
28016
|
+
throw (0, neo4j_driver_core_1$y.newError)('Maps of size ' + size + ' are not supported');
|
|
27844
28017
|
}
|
|
27845
28018
|
};
|
|
27846
28019
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -27859,7 +28032,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27859
28032
|
this._ch.writeUInt8(size % 256);
|
|
27860
28033
|
}
|
|
27861
28034
|
else {
|
|
27862
|
-
throw (0, neo4j_driver_core_1$
|
|
28035
|
+
throw (0, neo4j_driver_core_1$y.newError)('Structures of size ' + size + ' are not supported');
|
|
27863
28036
|
}
|
|
27864
28037
|
};
|
|
27865
28038
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -27867,7 +28040,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27867
28040
|
};
|
|
27868
28041
|
Packer.prototype._nonPackableValue = function (message) {
|
|
27869
28042
|
return function () {
|
|
27870
|
-
throw (0, neo4j_driver_core_1$
|
|
28043
|
+
throw (0, neo4j_driver_core_1$y.newError)(message, PROTOCOL_ERROR$3);
|
|
27871
28044
|
};
|
|
27872
28045
|
};
|
|
27873
28046
|
return Packer;
|
|
@@ -27903,7 +28076,7 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27903
28076
|
}
|
|
27904
28077
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
27905
28078
|
if (numberOrInteger !== null) {
|
|
27906
|
-
if ((0, neo4j_driver_core_1$
|
|
28079
|
+
if ((0, neo4j_driver_core_1$y.isInt)(numberOrInteger)) {
|
|
27907
28080
|
if (this._useBigInt) {
|
|
27908
28081
|
return numberOrInteger.toBigInt();
|
|
27909
28082
|
}
|
|
@@ -27933,13 +28106,13 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27933
28106
|
if (struct !== null) {
|
|
27934
28107
|
return struct;
|
|
27935
28108
|
}
|
|
27936
|
-
throw (0, neo4j_driver_core_1$
|
|
28109
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
27937
28110
|
};
|
|
27938
28111
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
27939
28112
|
var marker = buffer.readUInt8();
|
|
27940
28113
|
var result = this._unpackInteger(marker, buffer);
|
|
27941
28114
|
if (result == null) {
|
|
27942
|
-
throw (0, neo4j_driver_core_1$
|
|
28115
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
|
|
27943
28116
|
}
|
|
27944
28117
|
return result;
|
|
27945
28118
|
};
|
|
@@ -27964,25 +28137,25 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27964
28137
|
};
|
|
27965
28138
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
27966
28139
|
if (marker >= 0 && marker < 128) {
|
|
27967
|
-
return (0, neo4j_driver_core_1$
|
|
28140
|
+
return (0, neo4j_driver_core_1$y.int)(marker);
|
|
27968
28141
|
}
|
|
27969
28142
|
else if (marker >= 240 && marker < 256) {
|
|
27970
|
-
return (0, neo4j_driver_core_1$
|
|
28143
|
+
return (0, neo4j_driver_core_1$y.int)(marker - 256);
|
|
27971
28144
|
}
|
|
27972
28145
|
else if (marker === INT_8) {
|
|
27973
|
-
return (0, neo4j_driver_core_1$
|
|
28146
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt8());
|
|
27974
28147
|
}
|
|
27975
28148
|
else if (marker === INT_16) {
|
|
27976
|
-
return (0, neo4j_driver_core_1$
|
|
28149
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt16());
|
|
27977
28150
|
}
|
|
27978
28151
|
else if (marker === INT_32) {
|
|
27979
28152
|
var b = buffer.readInt32();
|
|
27980
|
-
return (0, neo4j_driver_core_1$
|
|
28153
|
+
return (0, neo4j_driver_core_1$y.int)(b);
|
|
27981
28154
|
}
|
|
27982
28155
|
else if (marker === INT_64) {
|
|
27983
28156
|
var high = buffer.readInt32();
|
|
27984
28157
|
var low = buffer.readInt32();
|
|
27985
|
-
return new neo4j_driver_core_1$
|
|
28158
|
+
return new neo4j_driver_core_1$y.Integer(low, high);
|
|
27986
28159
|
}
|
|
27987
28160
|
else {
|
|
27988
28161
|
return null;
|
|
@@ -28125,7 +28298,7 @@ var packstreamV2 = {};
|
|
|
28125
28298
|
* See the License for the specific language governing permissions and
|
|
28126
28299
|
* limitations under the License.
|
|
28127
28300
|
*/
|
|
28128
|
-
var __extends$
|
|
28301
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28129
28302
|
var extendStatics = function (d, b) {
|
|
28130
28303
|
extendStatics = Object.setPrototypeOf ||
|
|
28131
28304
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28167,7 +28340,7 @@ Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
|
28167
28340
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28168
28341
|
var v1$1 = __importStar$3(packstreamV1);
|
|
28169
28342
|
var Packer = /** @class */ (function (_super) {
|
|
28170
|
-
__extends$
|
|
28343
|
+
__extends$m(Packer, _super);
|
|
28171
28344
|
function Packer() {
|
|
28172
28345
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28173
28346
|
}
|
|
@@ -28178,7 +28351,7 @@ var Packer = /** @class */ (function (_super) {
|
|
|
28178
28351
|
}(v1$1.Packer));
|
|
28179
28352
|
packstreamV2.Packer = Packer;
|
|
28180
28353
|
var Unpacker = /** @class */ (function (_super) {
|
|
28181
|
-
__extends$
|
|
28354
|
+
__extends$m(Unpacker, _super);
|
|
28182
28355
|
/**
|
|
28183
28356
|
* @constructor
|
|
28184
28357
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -28262,8 +28435,8 @@ var requestMessage = {};
|
|
|
28262
28435
|
*/
|
|
28263
28436
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
28264
28437
|
requestMessage.SIGNATURES = void 0;
|
|
28265
|
-
var neo4j_driver_core_1$
|
|
28266
|
-
var _a$b = neo4j_driver_core_1$
|
|
28438
|
+
var neo4j_driver_core_1$x = lib$1;
|
|
28439
|
+
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;
|
|
28267
28440
|
/* eslint-disable no-unused-vars */
|
|
28268
28441
|
// Signature bytes for each request message type
|
|
28269
28442
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -28324,7 +28497,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28324
28497
|
* @return {RequestMessage} new RUN message.
|
|
28325
28498
|
*/
|
|
28326
28499
|
RequestMessage.run = function (query, parameters) {
|
|
28327
|
-
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
28500
|
+
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters)); });
|
|
28328
28501
|
};
|
|
28329
28502
|
/**
|
|
28330
28503
|
* Get a PULL_ALL message.
|
|
@@ -28388,7 +28561,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28388
28561
|
if (routing) {
|
|
28389
28562
|
metadata.routing = routing;
|
|
28390
28563
|
}
|
|
28391
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
28564
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28392
28565
|
};
|
|
28393
28566
|
/**
|
|
28394
28567
|
* Create a new HELLO message.
|
|
@@ -28417,7 +28590,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28417
28590
|
if (routing) {
|
|
28418
28591
|
metadata.routing = routing;
|
|
28419
28592
|
}
|
|
28420
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
28593
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28421
28594
|
};
|
|
28422
28595
|
/**
|
|
28423
28596
|
* Create a new HELLO message.
|
|
@@ -28446,7 +28619,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28446
28619
|
if (routing) {
|
|
28447
28620
|
metadata.routing = routing;
|
|
28448
28621
|
}
|
|
28449
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
28622
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28450
28623
|
};
|
|
28451
28624
|
/**
|
|
28452
28625
|
* Create a new LOGON message.
|
|
@@ -28478,7 +28651,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28478
28651
|
RequestMessage.begin = function (_a) {
|
|
28479
28652
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
28480
28653
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28481
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
28654
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28482
28655
|
};
|
|
28483
28656
|
/**
|
|
28484
28657
|
* Create a new BEGIN message.
|
|
@@ -28495,7 +28668,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28495
28668
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter, {
|
|
28496
28669
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28497
28670
|
});
|
|
28498
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
28671
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28499
28672
|
};
|
|
28500
28673
|
/**
|
|
28501
28674
|
* Get a COMMIT message.
|
|
@@ -28528,7 +28701,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28528
28701
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
28529
28702
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28530
28703
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28531
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
28704
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
28532
28705
|
});
|
|
28533
28706
|
};
|
|
28534
28707
|
/**
|
|
@@ -28550,7 +28723,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28550
28723
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28551
28724
|
});
|
|
28552
28725
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28553
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
28726
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
28554
28727
|
});
|
|
28555
28728
|
};
|
|
28556
28729
|
/**
|
|
@@ -28569,7 +28742,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28569
28742
|
RequestMessage.pull = function (_a) {
|
|
28570
28743
|
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;
|
|
28571
28744
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28572
|
-
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$
|
|
28745
|
+
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28573
28746
|
};
|
|
28574
28747
|
/**
|
|
28575
28748
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -28580,11 +28753,11 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28580
28753
|
RequestMessage.discard = function (_a) {
|
|
28581
28754
|
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;
|
|
28582
28755
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28583
|
-
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$
|
|
28756
|
+
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
28584
28757
|
};
|
|
28585
28758
|
RequestMessage.telemetry = function (_a) {
|
|
28586
28759
|
var api = _a.api;
|
|
28587
|
-
var parsedApi = (0, neo4j_driver_core_1$
|
|
28760
|
+
var parsedApi = (0, neo4j_driver_core_1$x.int)(api);
|
|
28588
28761
|
return new RequestMessage(TELEMETRY, [parsedApi], function () { return "TELEMETRY ".concat(parsedApi.toString()); });
|
|
28589
28762
|
};
|
|
28590
28763
|
/**
|
|
@@ -28600,7 +28773,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28600
28773
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
28601
28774
|
if (databaseName === void 0) { databaseName = null; }
|
|
28602
28775
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
28603
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
28776
|
+
return "ROUTE ".concat(neo4j_driver_core_1$x.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$x.json.stringify(bookmarks), " ").concat(databaseName);
|
|
28604
28777
|
});
|
|
28605
28778
|
};
|
|
28606
28779
|
/**
|
|
@@ -28625,7 +28798,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28625
28798
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
28626
28799
|
}
|
|
28627
28800
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
28628
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
28801
|
+
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));
|
|
28629
28802
|
});
|
|
28630
28803
|
};
|
|
28631
28804
|
return RequestMessage;
|
|
@@ -28676,9 +28849,9 @@ function buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser,
|
|
|
28676
28849
|
* @returns {Object} a metadata object.
|
|
28677
28850
|
*/
|
|
28678
28851
|
function buildStreamMetadata(stmtId, n) {
|
|
28679
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
28852
|
+
var metadata = { n: (0, neo4j_driver_core_1$x.int)(n) };
|
|
28680
28853
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
28681
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
28854
|
+
metadata.qid = (0, neo4j_driver_core_1$x.int)(stmtId);
|
|
28682
28855
|
}
|
|
28683
28856
|
return metadata;
|
|
28684
28857
|
}
|
|
@@ -28738,8 +28911,8 @@ var transformer = {};
|
|
|
28738
28911
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
28739
28912
|
transformer.TypeTransformer = void 0;
|
|
28740
28913
|
var packstream_1$6 = packstream;
|
|
28741
|
-
var neo4j_driver_core_1$
|
|
28742
|
-
var objectUtil = neo4j_driver_core_1$
|
|
28914
|
+
var neo4j_driver_core_1$w = lib$1;
|
|
28915
|
+
var objectUtil = neo4j_driver_core_1$w.internal.objectUtil;
|
|
28743
28916
|
/**
|
|
28744
28917
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
28745
28918
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -28882,10 +29055,10 @@ var __read$6 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28882
29055
|
return ar;
|
|
28883
29056
|
};
|
|
28884
29057
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
28885
|
-
var neo4j_driver_core_1$
|
|
29058
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
28886
29059
|
var packstream_1$5 = packstream;
|
|
28887
|
-
var transformer_1$
|
|
28888
|
-
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$
|
|
29060
|
+
var transformer_1$h = transformer;
|
|
29061
|
+
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
|
|
28889
29062
|
var NODE = 0x4e;
|
|
28890
29063
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
28891
29064
|
var RELATIONSHIP = 0x52;
|
|
@@ -28899,16 +29072,16 @@ var PATH_STRUCT_SIZE = 3;
|
|
|
28899
29072
|
* @returns {TypeTransformer}
|
|
28900
29073
|
*/
|
|
28901
29074
|
function createNodeTransformer$1() {
|
|
28902
|
-
return new transformer_1$
|
|
29075
|
+
return new transformer_1$h.TypeTransformer({
|
|
28903
29076
|
signature: NODE,
|
|
28904
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29077
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Node; },
|
|
28905
29078
|
toStructure: function (object) {
|
|
28906
|
-
throw (0, neo4j_driver_core_1$
|
|
29079
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28907
29080
|
},
|
|
28908
29081
|
fromStructure: function (struct) {
|
|
28909
29082
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
28910
29083
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
28911
|
-
return new neo4j_driver_core_1$
|
|
29084
|
+
return new neo4j_driver_core_1$v.Node(identity, labels, properties);
|
|
28912
29085
|
}
|
|
28913
29086
|
});
|
|
28914
29087
|
}
|
|
@@ -28917,16 +29090,16 @@ function createNodeTransformer$1() {
|
|
|
28917
29090
|
* @returns {TypeTransformer}
|
|
28918
29091
|
*/
|
|
28919
29092
|
function createRelationshipTransformer$1() {
|
|
28920
|
-
return new transformer_1$
|
|
29093
|
+
return new transformer_1$h.TypeTransformer({
|
|
28921
29094
|
signature: RELATIONSHIP,
|
|
28922
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29095
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Relationship; },
|
|
28923
29096
|
toStructure: function (object) {
|
|
28924
|
-
throw (0, neo4j_driver_core_1$
|
|
29097
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28925
29098
|
},
|
|
28926
29099
|
fromStructure: function (struct) {
|
|
28927
29100
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28928
29101
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
28929
|
-
return new neo4j_driver_core_1$
|
|
29102
|
+
return new neo4j_driver_core_1$v.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
28930
29103
|
}
|
|
28931
29104
|
});
|
|
28932
29105
|
}
|
|
@@ -28935,16 +29108,16 @@ function createRelationshipTransformer$1() {
|
|
|
28935
29108
|
* @returns {TypeTransformer}
|
|
28936
29109
|
*/
|
|
28937
29110
|
function createUnboundRelationshipTransformer$1() {
|
|
28938
|
-
return new transformer_1$
|
|
29111
|
+
return new transformer_1$h.TypeTransformer({
|
|
28939
29112
|
signature: UNBOUND_RELATIONSHIP,
|
|
28940
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29113
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.UnboundRelationship; },
|
|
28941
29114
|
toStructure: function (object) {
|
|
28942
|
-
throw (0, neo4j_driver_core_1$
|
|
29115
|
+
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);
|
|
28943
29116
|
},
|
|
28944
29117
|
fromStructure: function (struct) {
|
|
28945
29118
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28946
29119
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
28947
|
-
return new neo4j_driver_core_1$
|
|
29120
|
+
return new neo4j_driver_core_1$v.UnboundRelationship(identity, type, properties);
|
|
28948
29121
|
}
|
|
28949
29122
|
});
|
|
28950
29123
|
}
|
|
@@ -28953,11 +29126,11 @@ function createUnboundRelationshipTransformer$1() {
|
|
|
28953
29126
|
* @returns {TypeTransformer}
|
|
28954
29127
|
*/
|
|
28955
29128
|
function createPathTransformer() {
|
|
28956
|
-
return new transformer_1$
|
|
29129
|
+
return new transformer_1$h.TypeTransformer({
|
|
28957
29130
|
signature: PATH,
|
|
28958
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29131
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Path; },
|
|
28959
29132
|
toStructure: function (object) {
|
|
28960
|
-
throw (0, neo4j_driver_core_1$
|
|
29133
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28961
29134
|
},
|
|
28962
29135
|
fromStructure: function (struct) {
|
|
28963
29136
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -28966,11 +29139,11 @@ function createPathTransformer() {
|
|
|
28966
29139
|
var prevNode = nodes[0];
|
|
28967
29140
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
28968
29141
|
var nextNode = nodes[sequence[i + 1]];
|
|
28969
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
29142
|
+
var relIndex = (0, neo4j_driver_core_1$v.toNumber)(sequence[i]);
|
|
28970
29143
|
var rel = void 0;
|
|
28971
29144
|
if (relIndex > 0) {
|
|
28972
29145
|
rel = rels[relIndex - 1];
|
|
28973
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29146
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28974
29147
|
// To avoid duplication, relationships in a path do not contain
|
|
28975
29148
|
// information about their start and end nodes, that's instead
|
|
28976
29149
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -28980,16 +29153,16 @@ function createPathTransformer() {
|
|
|
28980
29153
|
}
|
|
28981
29154
|
else {
|
|
28982
29155
|
rel = rels[-relIndex - 1];
|
|
28983
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29156
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28984
29157
|
// See above
|
|
28985
29158
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
28986
29159
|
}
|
|
28987
29160
|
}
|
|
28988
29161
|
// Done hydrating one path segment.
|
|
28989
|
-
segments.push(new neo4j_driver_core_1$
|
|
29162
|
+
segments.push(new neo4j_driver_core_1$v.PathSegment(prevNode, rel, nextNode));
|
|
28990
29163
|
prevNode = nextNode;
|
|
28991
29164
|
}
|
|
28992
|
-
return new neo4j_driver_core_1$
|
|
29165
|
+
return new neo4j_driver_core_1$v.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
28993
29166
|
}
|
|
28994
29167
|
});
|
|
28995
29168
|
}
|
|
@@ -29000,6 +29173,17 @@ boltProtocolV1_transformer.default = {
|
|
|
29000
29173
|
createPathTransformer: createPathTransformer
|
|
29001
29174
|
};
|
|
29002
29175
|
|
|
29176
|
+
var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29177
|
+
__assign$o = Object.assign || function(t) {
|
|
29178
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29179
|
+
s = arguments[i];
|
|
29180
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
29181
|
+
t[p] = s[p];
|
|
29182
|
+
}
|
|
29183
|
+
return t;
|
|
29184
|
+
};
|
|
29185
|
+
return __assign$o.apply(this, arguments);
|
|
29186
|
+
};
|
|
29003
29187
|
var __createBinding$1 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29004
29188
|
if (k2 === undefined) k2 = k;
|
|
29005
29189
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -29023,7 +29207,7 @@ var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
29023
29207
|
__setModuleDefault$1(result, mod);
|
|
29024
29208
|
return result;
|
|
29025
29209
|
};
|
|
29026
|
-
var __importDefault$
|
|
29210
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29027
29211
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29028
29212
|
};
|
|
29029
29213
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -29047,11 +29231,16 @@ var bolt_protocol_util_1$7 = boltProtocolUtil;
|
|
|
29047
29231
|
var packstream_1$4 = packstream;
|
|
29048
29232
|
var request_message_1$b = __importStar$1(requestMessage);
|
|
29049
29233
|
var stream_observers_1$b = streamObservers;
|
|
29050
|
-
var neo4j_driver_core_1$
|
|
29051
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
29052
|
-
var transformer_1$
|
|
29053
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
29054
|
-
var
|
|
29234
|
+
var neo4j_driver_core_1$u = lib$1;
|
|
29235
|
+
var bolt_protocol_v1_transformer_1$1 = __importDefault$B(boltProtocolV1_transformer);
|
|
29236
|
+
var transformer_1$g = __importDefault$B(transformer);
|
|
29237
|
+
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;
|
|
29238
|
+
var DEFAULT_DIAGNOSTIC_RECORD$3 = Object.freeze({
|
|
29239
|
+
OPERATION: '',
|
|
29240
|
+
OPERATION_CODE: '0',
|
|
29241
|
+
CURRENT_SCHEMA: '/'
|
|
29242
|
+
});
|
|
29243
|
+
var BoltProtocol$f = /** @class */ (function () {
|
|
29055
29244
|
/**
|
|
29056
29245
|
* @callback CreateResponseHandler Creates the response handler
|
|
29057
29246
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -29090,7 +29279,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29090
29279
|
get: function () {
|
|
29091
29280
|
var _this = this;
|
|
29092
29281
|
if (this._transformer === undefined) {
|
|
29093
|
-
this._transformer = new transformer_1$
|
|
29282
|
+
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); }));
|
|
29094
29283
|
}
|
|
29095
29284
|
return this._transformer;
|
|
29096
29285
|
},
|
|
@@ -29175,6 +29364,9 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29175
29364
|
BoltProtocol.prototype.transformMetadata = function (metadata) {
|
|
29176
29365
|
return metadata;
|
|
29177
29366
|
};
|
|
29367
|
+
BoltProtocol.prototype.enrichErrorMetadata = function (metadata) {
|
|
29368
|
+
return __assign$o(__assign$o({}, metadata), { diagnostic_record: metadata.diagnostic_record !== null ? __assign$o(__assign$o({}, DEFAULT_DIAGNOSTIC_RECORD$3), metadata.diagnostic_record) : null });
|
|
29369
|
+
};
|
|
29178
29370
|
/**
|
|
29179
29371
|
* Perform initialization and authentication of the underlying connection.
|
|
29180
29372
|
* @param {Object} param
|
|
@@ -29214,7 +29406,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29214
29406
|
onError: onError
|
|
29215
29407
|
});
|
|
29216
29408
|
// TODO: Verify the Neo4j version in the message
|
|
29217
|
-
var error = (0, neo4j_driver_core_1$
|
|
29409
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logoff. ' +
|
|
29218
29410
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29219
29411
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29220
29412
|
this._onProtocolError(error.message);
|
|
@@ -29240,7 +29432,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29240
29432
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
29241
29433
|
});
|
|
29242
29434
|
// TODO: Verify the Neo4j version in the message
|
|
29243
|
-
var error = (0, neo4j_driver_core_1$
|
|
29435
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logon. ' +
|
|
29244
29436
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29245
29437
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29246
29438
|
this._onProtocolError(error.message);
|
|
@@ -29531,7 +29723,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29531
29723
|
};
|
|
29532
29724
|
return BoltProtocol;
|
|
29533
29725
|
}());
|
|
29534
|
-
boltProtocolV1.default = BoltProtocol$
|
|
29726
|
+
boltProtocolV1.default = BoltProtocol$f;
|
|
29535
29727
|
|
|
29536
29728
|
var boltProtocolV2 = {};
|
|
29537
29729
|
|
|
@@ -29557,17 +29749,17 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = temporalFactory.nanoOfDayToL
|
|
|
29557
29749
|
* See the License for the specific language governing permissions and
|
|
29558
29750
|
* limitations under the License.
|
|
29559
29751
|
*/
|
|
29560
|
-
var neo4j_driver_core_1$
|
|
29561
|
-
var _a$9 = neo4j_driver_core_1$
|
|
29752
|
+
var neo4j_driver_core_1$t = lib$1;
|
|
29753
|
+
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;
|
|
29562
29754
|
/**
|
|
29563
29755
|
* Converts given epoch day to a local date.
|
|
29564
29756
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
29565
29757
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
29566
29758
|
*/
|
|
29567
29759
|
function epochDayToDate(epochDay) {
|
|
29568
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
29760
|
+
epochDay = (0, neo4j_driver_core_1$t.int)(epochDay);
|
|
29569
29761
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
29570
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
29762
|
+
var adjust = (0, neo4j_driver_core_1$t.int)(0);
|
|
29571
29763
|
if (zeroDay.lessThan(0)) {
|
|
29572
29764
|
var adjustCycles = zeroDay
|
|
29573
29765
|
.add(1)
|
|
@@ -29610,7 +29802,7 @@ function epochDayToDate(epochDay) {
|
|
|
29610
29802
|
.div(10))
|
|
29611
29803
|
.add(1);
|
|
29612
29804
|
year = year.add(marchMonth.div(10));
|
|
29613
|
-
return new neo4j_driver_core_1$
|
|
29805
|
+
return new neo4j_driver_core_1$t.Date(year, month, day);
|
|
29614
29806
|
}
|
|
29615
29807
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
29616
29808
|
/**
|
|
@@ -29619,14 +29811,14 @@ temporalFactory.epochDayToDate = epochDayToDate;
|
|
|
29619
29811
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
29620
29812
|
*/
|
|
29621
29813
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
29622
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
29814
|
+
nanoOfDay = (0, neo4j_driver_core_1$t.int)(nanoOfDay);
|
|
29623
29815
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
29624
29816
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
29625
29817
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
29626
29818
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
29627
29819
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
29628
29820
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
29629
|
-
return new neo4j_driver_core_1$
|
|
29821
|
+
return new neo4j_driver_core_1$t.LocalTime(hour, minute, second, nanosecond);
|
|
29630
29822
|
}
|
|
29631
29823
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
29632
29824
|
/**
|
|
@@ -29641,7 +29833,7 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
29641
29833
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
29642
29834
|
var localDate = epochDayToDate(epochDay);
|
|
29643
29835
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
29644
|
-
return new neo4j_driver_core_1$
|
|
29836
|
+
return new neo4j_driver_core_1$t.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
29645
29837
|
}
|
|
29646
29838
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
29647
29839
|
|
|
@@ -29661,8 +29853,8 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDat
|
|
|
29661
29853
|
* See the License for the specific language governing permissions and
|
|
29662
29854
|
* limitations under the License.
|
|
29663
29855
|
*/
|
|
29664
|
-
var __assign$
|
|
29665
|
-
__assign$
|
|
29856
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29857
|
+
__assign$n = Object.assign || function(t) {
|
|
29666
29858
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29667
29859
|
s = arguments[i];
|
|
29668
29860
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29670,7 +29862,7 @@ var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29670
29862
|
}
|
|
29671
29863
|
return t;
|
|
29672
29864
|
};
|
|
29673
|
-
return __assign$
|
|
29865
|
+
return __assign$n.apply(this, arguments);
|
|
29674
29866
|
};
|
|
29675
29867
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
29676
29868
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -29688,16 +29880,16 @@ var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
29688
29880
|
}
|
|
29689
29881
|
return ar;
|
|
29690
29882
|
};
|
|
29691
|
-
var __importDefault$
|
|
29883
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29692
29884
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29693
29885
|
};
|
|
29694
29886
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
29695
|
-
var neo4j_driver_core_1$
|
|
29887
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
29696
29888
|
var packstream_1$3 = packstream;
|
|
29697
|
-
var transformer_1$
|
|
29889
|
+
var transformer_1$f = transformer;
|
|
29698
29890
|
var temporal_factory_1$1 = temporalFactory;
|
|
29699
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
29700
|
-
var _a$8 = neo4j_driver_core_1$
|
|
29891
|
+
var bolt_protocol_v1_transformer_1 = __importDefault$A(boltProtocolV1_transformer);
|
|
29892
|
+
var _a$8 = neo4j_driver_core_1$s.internal.temporalUtil, dateToEpochDay = _a$8.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$8.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$8.localTimeToNanoOfDay;
|
|
29701
29893
|
var POINT_2D = 0x58;
|
|
29702
29894
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
29703
29895
|
var POINT_3D = 0x59;
|
|
@@ -29721,18 +29913,18 @@ var DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1 = 3;
|
|
|
29721
29913
|
* @returns {TypeTransformer}
|
|
29722
29914
|
*/
|
|
29723
29915
|
function createPoint2DTransformer() {
|
|
29724
|
-
return new transformer_1$
|
|
29916
|
+
return new transformer_1$f.TypeTransformer({
|
|
29725
29917
|
signature: POINT_2D,
|
|
29726
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
29918
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && (point.z === null || point.z === undefined); },
|
|
29727
29919
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
29728
|
-
(0, neo4j_driver_core_1$
|
|
29920
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29729
29921
|
point.x,
|
|
29730
29922
|
point.y
|
|
29731
29923
|
]); },
|
|
29732
29924
|
fromStructure: function (struct) {
|
|
29733
29925
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
29734
29926
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
29735
|
-
return new neo4j_driver_core_1$
|
|
29927
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, undefined // z
|
|
29736
29928
|
);
|
|
29737
29929
|
}
|
|
29738
29930
|
});
|
|
@@ -29742,11 +29934,11 @@ function createPoint2DTransformer() {
|
|
|
29742
29934
|
* @returns {TypeTransformer}
|
|
29743
29935
|
*/
|
|
29744
29936
|
function createPoint3DTransformer() {
|
|
29745
|
-
return new transformer_1$
|
|
29937
|
+
return new transformer_1$f.TypeTransformer({
|
|
29746
29938
|
signature: POINT_3D,
|
|
29747
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
29939
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && point.z !== null && point.z !== undefined; },
|
|
29748
29940
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
29749
|
-
(0, neo4j_driver_core_1$
|
|
29941
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29750
29942
|
point.x,
|
|
29751
29943
|
point.y,
|
|
29752
29944
|
point.z
|
|
@@ -29754,7 +29946,7 @@ function createPoint3DTransformer() {
|
|
|
29754
29946
|
fromStructure: function (struct) {
|
|
29755
29947
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
29756
29948
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
29757
|
-
return new neo4j_driver_core_1$
|
|
29949
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, z);
|
|
29758
29950
|
}
|
|
29759
29951
|
});
|
|
29760
29952
|
}
|
|
@@ -29763,20 +29955,20 @@ function createPoint3DTransformer() {
|
|
|
29763
29955
|
* @returns {TypeTransformer}
|
|
29764
29956
|
*/
|
|
29765
29957
|
function createDurationTransformer() {
|
|
29766
|
-
return new transformer_1$
|
|
29958
|
+
return new transformer_1$f.TypeTransformer({
|
|
29767
29959
|
signature: DURATION,
|
|
29768
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29960
|
+
isTypeInstance: neo4j_driver_core_1$s.isDuration,
|
|
29769
29961
|
toStructure: function (value) {
|
|
29770
|
-
var months = (0, neo4j_driver_core_1$
|
|
29771
|
-
var days = (0, neo4j_driver_core_1$
|
|
29772
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
29773
|
-
var nanoseconds = (0, neo4j_driver_core_1$
|
|
29962
|
+
var months = (0, neo4j_driver_core_1$s.int)(value.months);
|
|
29963
|
+
var days = (0, neo4j_driver_core_1$s.int)(value.days);
|
|
29964
|
+
var seconds = (0, neo4j_driver_core_1$s.int)(value.seconds);
|
|
29965
|
+
var nanoseconds = (0, neo4j_driver_core_1$s.int)(value.nanoseconds);
|
|
29774
29966
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
29775
29967
|
},
|
|
29776
29968
|
fromStructure: function (struct) {
|
|
29777
29969
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
29778
29970
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
29779
|
-
return new neo4j_driver_core_1$
|
|
29971
|
+
return new neo4j_driver_core_1$s.Duration(months, days, seconds, nanoseconds);
|
|
29780
29972
|
}
|
|
29781
29973
|
});
|
|
29782
29974
|
}
|
|
@@ -29789,9 +29981,9 @@ function createDurationTransformer() {
|
|
|
29789
29981
|
*/
|
|
29790
29982
|
function createLocalTimeTransformer(_a) {
|
|
29791
29983
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29792
|
-
return new transformer_1$
|
|
29984
|
+
return new transformer_1$f.TypeTransformer({
|
|
29793
29985
|
signature: LOCAL_TIME,
|
|
29794
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29986
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalTime,
|
|
29795
29987
|
toStructure: function (value) {
|
|
29796
29988
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29797
29989
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -29813,19 +30005,19 @@ function createLocalTimeTransformer(_a) {
|
|
|
29813
30005
|
*/
|
|
29814
30006
|
function createTimeTransformer(_a) {
|
|
29815
30007
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29816
|
-
return new transformer_1$
|
|
30008
|
+
return new transformer_1$f.TypeTransformer({
|
|
29817
30009
|
signature: TIME,
|
|
29818
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30010
|
+
isTypeInstance: neo4j_driver_core_1$s.isTime,
|
|
29819
30011
|
toStructure: function (value) {
|
|
29820
30012
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29821
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
30013
|
+
var offsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29822
30014
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
29823
30015
|
},
|
|
29824
30016
|
fromStructure: function (struct) {
|
|
29825
30017
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
29826
30018
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
29827
30019
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
29828
|
-
var result = new neo4j_driver_core_1$
|
|
30020
|
+
var result = new neo4j_driver_core_1$s.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
|
|
29829
30021
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29830
30022
|
}
|
|
29831
30023
|
});
|
|
@@ -29839,9 +30031,9 @@ function createTimeTransformer(_a) {
|
|
|
29839
30031
|
*/
|
|
29840
30032
|
function createDateTransformer(_a) {
|
|
29841
30033
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29842
|
-
return new transformer_1$
|
|
30034
|
+
return new transformer_1$f.TypeTransformer({
|
|
29843
30035
|
signature: DATE,
|
|
29844
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30036
|
+
isTypeInstance: neo4j_driver_core_1$s.isDate,
|
|
29845
30037
|
toStructure: function (value) {
|
|
29846
30038
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
29847
30039
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -29863,12 +30055,12 @@ function createDateTransformer(_a) {
|
|
|
29863
30055
|
*/
|
|
29864
30056
|
function createLocalDateTimeTransformer(_a) {
|
|
29865
30057
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29866
|
-
return new transformer_1$
|
|
30058
|
+
return new transformer_1$f.TypeTransformer({
|
|
29867
30059
|
signature: LOCAL_DATE_TIME,
|
|
29868
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30060
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalDateTime,
|
|
29869
30061
|
toStructure: function (value) {
|
|
29870
30062
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29871
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30063
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29872
30064
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
29873
30065
|
},
|
|
29874
30066
|
fromStructure: function (struct) {
|
|
@@ -29888,12 +30080,12 @@ function createLocalDateTimeTransformer(_a) {
|
|
|
29888
30080
|
*/
|
|
29889
30081
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
29890
30082
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29891
|
-
return new transformer_1$
|
|
30083
|
+
return new transformer_1$f.TypeTransformer({
|
|
29892
30084
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
29893
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
30085
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId != null; },
|
|
29894
30086
|
toStructure: function (value) {
|
|
29895
30087
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29896
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30088
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29897
30089
|
var timeZoneId = value.timeZoneId;
|
|
29898
30090
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
29899
30091
|
},
|
|
@@ -29901,7 +30093,7 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
29901
30093
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
29902
30094
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
29903
30095
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29904
|
-
var result = new neo4j_driver_core_1$
|
|
30096
|
+
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);
|
|
29905
30097
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29906
30098
|
}
|
|
29907
30099
|
});
|
|
@@ -29915,20 +30107,20 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
29915
30107
|
*/
|
|
29916
30108
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
29917
30109
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29918
|
-
return new transformer_1$
|
|
30110
|
+
return new transformer_1$f.TypeTransformer({
|
|
29919
30111
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
29920
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
30112
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId == null; },
|
|
29921
30113
|
toStructure: function (value) {
|
|
29922
30114
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29923
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29924
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
30115
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
30116
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29925
30117
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
29926
30118
|
},
|
|
29927
30119
|
fromStructure: function (struct) {
|
|
29928
30120
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
29929
30121
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
29930
30122
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29931
|
-
var result = new neo4j_driver_core_1$
|
|
30123
|
+
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);
|
|
29932
30124
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29933
30125
|
}
|
|
29934
30126
|
});
|
|
@@ -29944,15 +30136,15 @@ function convertIntegerPropsIfNeeded$1(obj, disableLosslessIntegers, useBigInt)
|
|
|
29944
30136
|
for (var prop in obj) {
|
|
29945
30137
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
29946
30138
|
var value = obj[prop];
|
|
29947
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
30139
|
+
clone[prop] = (0, neo4j_driver_core_1$s.isInt)(value) ? convert(value) : value;
|
|
29948
30140
|
}
|
|
29949
30141
|
}
|
|
29950
30142
|
Object.freeze(clone);
|
|
29951
30143
|
return clone;
|
|
29952
30144
|
}
|
|
29953
|
-
boltProtocolV2_transformer.default = __assign$
|
|
30145
|
+
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 });
|
|
29954
30146
|
|
|
29955
|
-
var __extends$
|
|
30147
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29956
30148
|
var extendStatics = function (d, b) {
|
|
29957
30149
|
extendStatics = Object.setPrototypeOf ||
|
|
29958
30150
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29967,7 +30159,7 @@ var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29967
30159
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29968
30160
|
};
|
|
29969
30161
|
})();
|
|
29970
|
-
var __importDefault$
|
|
30162
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29971
30163
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29972
30164
|
};
|
|
29973
30165
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -29987,14 +30179,14 @@ Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
|
29987
30179
|
* See the License for the specific language governing permissions and
|
|
29988
30180
|
* limitations under the License.
|
|
29989
30181
|
*/
|
|
29990
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
29991
|
-
var packstream_1$2 = __importDefault$
|
|
29992
|
-
var neo4j_driver_core_1$
|
|
29993
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
29994
|
-
var transformer_1$
|
|
29995
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
29996
|
-
var BoltProtocol$
|
|
29997
|
-
__extends$
|
|
30182
|
+
var bolt_protocol_v1_1$1 = __importDefault$z(boltProtocolV1);
|
|
30183
|
+
var packstream_1$2 = __importDefault$z(packstream);
|
|
30184
|
+
var neo4j_driver_core_1$r = lib$1;
|
|
30185
|
+
var bolt_protocol_v2_transformer_1$1 = __importDefault$z(boltProtocolV2_transformer);
|
|
30186
|
+
var transformer_1$e = __importDefault$z(transformer);
|
|
30187
|
+
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$r.internal.constants.BOLT_PROTOCOL_V2;
|
|
30188
|
+
var BoltProtocol$e = /** @class */ (function (_super) {
|
|
30189
|
+
__extends$l(BoltProtocol, _super);
|
|
29998
30190
|
function BoltProtocol() {
|
|
29999
30191
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30000
30192
|
}
|
|
@@ -30008,7 +30200,7 @@ var BoltProtocol$d = /** @class */ (function (_super) {
|
|
|
30008
30200
|
get: function () {
|
|
30009
30201
|
var _this = this;
|
|
30010
30202
|
if (this._transformer === undefined) {
|
|
30011
|
-
this._transformer = new transformer_1$
|
|
30203
|
+
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); }));
|
|
30012
30204
|
}
|
|
30013
30205
|
return this._transformer;
|
|
30014
30206
|
},
|
|
@@ -30024,7 +30216,7 @@ var BoltProtocol$d = /** @class */ (function (_super) {
|
|
|
30024
30216
|
});
|
|
30025
30217
|
return BoltProtocol;
|
|
30026
30218
|
}(bolt_protocol_v1_1$1.default));
|
|
30027
|
-
boltProtocolV2.default = BoltProtocol$
|
|
30219
|
+
boltProtocolV2.default = BoltProtocol$e;
|
|
30028
30220
|
|
|
30029
30221
|
var boltProtocolV3 = {};
|
|
30030
30222
|
|
|
@@ -30046,8 +30238,8 @@ var boltProtocolV3_transformer = {};
|
|
|
30046
30238
|
* See the License for the specific language governing permissions and
|
|
30047
30239
|
* limitations under the License.
|
|
30048
30240
|
*/
|
|
30049
|
-
var __assign$
|
|
30050
|
-
__assign$
|
|
30241
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30242
|
+
__assign$m = Object.assign || function(t) {
|
|
30051
30243
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30052
30244
|
s = arguments[i];
|
|
30053
30245
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30055,16 +30247,16 @@ var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30055
30247
|
}
|
|
30056
30248
|
return t;
|
|
30057
30249
|
};
|
|
30058
|
-
return __assign$
|
|
30250
|
+
return __assign$m.apply(this, arguments);
|
|
30059
30251
|
};
|
|
30060
|
-
var __importDefault$
|
|
30252
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30061
30253
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30062
30254
|
};
|
|
30063
30255
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
30064
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
30065
|
-
boltProtocolV3_transformer.default = __assign$
|
|
30256
|
+
var bolt_protocol_v2_transformer_1 = __importDefault$y(boltProtocolV2_transformer);
|
|
30257
|
+
boltProtocolV3_transformer.default = __assign$m({}, bolt_protocol_v2_transformer_1.default);
|
|
30066
30258
|
|
|
30067
|
-
var __extends$
|
|
30259
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30068
30260
|
var extendStatics = function (d, b) {
|
|
30069
30261
|
extendStatics = Object.setPrototypeOf ||
|
|
30070
30262
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30079,8 +30271,8 @@ var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30079
30271
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30080
30272
|
};
|
|
30081
30273
|
})();
|
|
30082
|
-
var __assign$
|
|
30083
|
-
__assign$
|
|
30274
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30275
|
+
__assign$l = Object.assign || function(t) {
|
|
30084
30276
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30085
30277
|
s = arguments[i];
|
|
30086
30278
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30088,9 +30280,9 @@ var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30088
30280
|
}
|
|
30089
30281
|
return t;
|
|
30090
30282
|
};
|
|
30091
|
-
return __assign$
|
|
30283
|
+
return __assign$l.apply(this, arguments);
|
|
30092
30284
|
};
|
|
30093
|
-
var __importDefault$
|
|
30285
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30094
30286
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30095
30287
|
};
|
|
30096
30288
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -30110,19 +30302,19 @@ Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
|
30110
30302
|
* See the License for the specific language governing permissions and
|
|
30111
30303
|
* limitations under the License.
|
|
30112
30304
|
*/
|
|
30113
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
30114
|
-
var request_message_1$a = __importDefault$
|
|
30305
|
+
var bolt_protocol_v2_1$1 = __importDefault$x(boltProtocolV2);
|
|
30306
|
+
var request_message_1$a = __importDefault$x(requestMessage);
|
|
30115
30307
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
30116
30308
|
var stream_observers_1$a = streamObservers;
|
|
30117
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
30118
|
-
var transformer_1$
|
|
30119
|
-
var neo4j_driver_core_1$
|
|
30120
|
-
neo4j_driver_core_1$
|
|
30309
|
+
var bolt_protocol_v3_transformer_1$1 = __importDefault$x(boltProtocolV3_transformer);
|
|
30310
|
+
var transformer_1$d = __importDefault$x(transformer);
|
|
30311
|
+
var neo4j_driver_core_1$q = lib$1;
|
|
30312
|
+
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;
|
|
30121
30313
|
var CONTEXT$1 = 'context';
|
|
30122
30314
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
30123
30315
|
var noOpObserver = new stream_observers_1$a.StreamObserver();
|
|
30124
|
-
var BoltProtocol$
|
|
30125
|
-
__extends$
|
|
30316
|
+
var BoltProtocol$d = /** @class */ (function (_super) {
|
|
30317
|
+
__extends$k(BoltProtocol, _super);
|
|
30126
30318
|
function BoltProtocol() {
|
|
30127
30319
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30128
30320
|
}
|
|
@@ -30137,7 +30329,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
30137
30329
|
get: function () {
|
|
30138
30330
|
var _this = this;
|
|
30139
30331
|
if (this._transformer === undefined) {
|
|
30140
|
-
this._transformer = new transformer_1$
|
|
30332
|
+
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); }));
|
|
30141
30333
|
}
|
|
30142
30334
|
return this._transformer;
|
|
30143
30335
|
},
|
|
@@ -30264,7 +30456,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
30264
30456
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
30265
30457
|
var _b;
|
|
30266
30458
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
30267
|
-
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$
|
|
30459
|
+
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$l(__assign$l({}, sessionContext), { txConfig: TxConfig$1.empty() }));
|
|
30268
30460
|
return new stream_observers_1$a.ProcedureRouteObserver({
|
|
30269
30461
|
resultObserver: resultObserver,
|
|
30270
30462
|
onProtocolError: this._onProtocolError,
|
|
@@ -30274,7 +30466,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
30274
30466
|
};
|
|
30275
30467
|
return BoltProtocol;
|
|
30276
30468
|
}(bolt_protocol_v2_1$1.default));
|
|
30277
|
-
boltProtocolV3.default = BoltProtocol$
|
|
30469
|
+
boltProtocolV3.default = BoltProtocol$d;
|
|
30278
30470
|
|
|
30279
30471
|
var boltProtocolV4x0 = {};
|
|
30280
30472
|
|
|
@@ -30296,8 +30488,8 @@ var boltProtocolV4x0_transformer = {};
|
|
|
30296
30488
|
* See the License for the specific language governing permissions and
|
|
30297
30489
|
* limitations under the License.
|
|
30298
30490
|
*/
|
|
30299
|
-
var __assign$
|
|
30300
|
-
__assign$
|
|
30491
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30492
|
+
__assign$k = Object.assign || function(t) {
|
|
30301
30493
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30302
30494
|
s = arguments[i];
|
|
30303
30495
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30305,16 +30497,16 @@ var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30305
30497
|
}
|
|
30306
30498
|
return t;
|
|
30307
30499
|
};
|
|
30308
|
-
return __assign$
|
|
30500
|
+
return __assign$k.apply(this, arguments);
|
|
30309
30501
|
};
|
|
30310
|
-
var __importDefault$
|
|
30502
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30311
30503
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30312
30504
|
};
|
|
30313
30505
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
30314
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
30315
|
-
boltProtocolV4x0_transformer.default = __assign$
|
|
30506
|
+
var bolt_protocol_v3_transformer_1 = __importDefault$w(boltProtocolV3_transformer);
|
|
30507
|
+
boltProtocolV4x0_transformer.default = __assign$k({}, bolt_protocol_v3_transformer_1.default);
|
|
30316
30508
|
|
|
30317
|
-
var __extends$
|
|
30509
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30318
30510
|
var extendStatics = function (d, b) {
|
|
30319
30511
|
extendStatics = Object.setPrototypeOf ||
|
|
30320
30512
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30329,8 +30521,8 @@ var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30329
30521
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30330
30522
|
};
|
|
30331
30523
|
})();
|
|
30332
|
-
var __assign$
|
|
30333
|
-
__assign$
|
|
30524
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30525
|
+
__assign$j = Object.assign || function(t) {
|
|
30334
30526
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30335
30527
|
s = arguments[i];
|
|
30336
30528
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30338,9 +30530,9 @@ var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30338
30530
|
}
|
|
30339
30531
|
return t;
|
|
30340
30532
|
};
|
|
30341
|
-
return __assign$
|
|
30533
|
+
return __assign$j.apply(this, arguments);
|
|
30342
30534
|
};
|
|
30343
|
-
var __importDefault$
|
|
30535
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30344
30536
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30345
30537
|
};
|
|
30346
30538
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -30360,19 +30552,19 @@ Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
|
30360
30552
|
* See the License for the specific language governing permissions and
|
|
30361
30553
|
* limitations under the License.
|
|
30362
30554
|
*/
|
|
30363
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
30364
|
-
var request_message_1$9 = __importDefault$
|
|
30555
|
+
var bolt_protocol_v3_1$1 = __importDefault$v(boltProtocolV3);
|
|
30556
|
+
var request_message_1$9 = __importDefault$v(requestMessage);
|
|
30365
30557
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
30366
30558
|
var stream_observers_1$9 = streamObservers;
|
|
30367
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
30368
|
-
var transformer_1$
|
|
30369
|
-
var neo4j_driver_core_1$
|
|
30370
|
-
neo4j_driver_core_1$
|
|
30559
|
+
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$v(boltProtocolV4x0_transformer);
|
|
30560
|
+
var transformer_1$c = __importDefault$v(transformer);
|
|
30561
|
+
var neo4j_driver_core_1$p = lib$1;
|
|
30562
|
+
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;
|
|
30371
30563
|
var CONTEXT = 'context';
|
|
30372
30564
|
var DATABASE = 'database';
|
|
30373
30565
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
30374
|
-
var BoltProtocol$
|
|
30375
|
-
__extends$
|
|
30566
|
+
var BoltProtocol$c = /** @class */ (function (_super) {
|
|
30567
|
+
__extends$j(BoltProtocol, _super);
|
|
30376
30568
|
function BoltProtocol() {
|
|
30377
30569
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30378
30570
|
}
|
|
@@ -30387,7 +30579,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
30387
30579
|
get: function () {
|
|
30388
30580
|
var _this = this;
|
|
30389
30581
|
if (this._transformer === undefined) {
|
|
30390
|
-
this._transformer = new transformer_1$
|
|
30582
|
+
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); }));
|
|
30391
30583
|
}
|
|
30392
30584
|
return this._transformer;
|
|
30393
30585
|
},
|
|
@@ -30472,7 +30664,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
30472
30664
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
30473
30665
|
_b[CONTEXT] = routingContext,
|
|
30474
30666
|
_b[DATABASE] = databaseName,
|
|
30475
|
-
_b), __assign$
|
|
30667
|
+
_b), __assign$j(__assign$j({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
30476
30668
|
return new stream_observers_1$9.ProcedureRouteObserver({
|
|
30477
30669
|
resultObserver: resultObserver,
|
|
30478
30670
|
onProtocolError: this._onProtocolError,
|
|
@@ -30482,7 +30674,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
30482
30674
|
};
|
|
30483
30675
|
return BoltProtocol;
|
|
30484
30676
|
}(bolt_protocol_v3_1$1.default));
|
|
30485
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
30677
|
+
boltProtocolV4x0.default = BoltProtocol$c;
|
|
30486
30678
|
|
|
30487
30679
|
var boltProtocolV4x1 = {};
|
|
30488
30680
|
|
|
@@ -30504,8 +30696,8 @@ var boltProtocolV4x1_transformer = {};
|
|
|
30504
30696
|
* See the License for the specific language governing permissions and
|
|
30505
30697
|
* limitations under the License.
|
|
30506
30698
|
*/
|
|
30507
|
-
var __assign$
|
|
30508
|
-
__assign$
|
|
30699
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30700
|
+
__assign$i = Object.assign || function(t) {
|
|
30509
30701
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30510
30702
|
s = arguments[i];
|
|
30511
30703
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30513,16 +30705,16 @@ var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30513
30705
|
}
|
|
30514
30706
|
return t;
|
|
30515
30707
|
};
|
|
30516
|
-
return __assign$
|
|
30708
|
+
return __assign$i.apply(this, arguments);
|
|
30517
30709
|
};
|
|
30518
|
-
var __importDefault$
|
|
30710
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30519
30711
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30520
30712
|
};
|
|
30521
30713
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
30522
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
30523
|
-
boltProtocolV4x1_transformer.default = __assign$
|
|
30714
|
+
var bolt_protocol_v4x0_transformer_1 = __importDefault$u(boltProtocolV4x0_transformer);
|
|
30715
|
+
boltProtocolV4x1_transformer.default = __assign$i({}, bolt_protocol_v4x0_transformer_1.default);
|
|
30524
30716
|
|
|
30525
|
-
var __extends$
|
|
30717
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30526
30718
|
var extendStatics = function (d, b) {
|
|
30527
30719
|
extendStatics = Object.setPrototypeOf ||
|
|
30528
30720
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30537,7 +30729,7 @@ var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30537
30729
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30538
30730
|
};
|
|
30539
30731
|
})();
|
|
30540
|
-
var __importDefault$
|
|
30732
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30541
30733
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30542
30734
|
};
|
|
30543
30735
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -30557,16 +30749,16 @@ Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
|
30557
30749
|
* See the License for the specific language governing permissions and
|
|
30558
30750
|
* limitations under the License.
|
|
30559
30751
|
*/
|
|
30560
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
30561
|
-
var request_message_1$8 = __importDefault$
|
|
30752
|
+
var bolt_protocol_v4x0_1$1 = __importDefault$t(boltProtocolV4x0);
|
|
30753
|
+
var request_message_1$8 = __importDefault$t(requestMessage);
|
|
30562
30754
|
var stream_observers_1$8 = streamObservers;
|
|
30563
|
-
var neo4j_driver_core_1$
|
|
30755
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
30564
30756
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
30565
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
30566
|
-
var transformer_1$
|
|
30567
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
30568
|
-
var BoltProtocol$
|
|
30569
|
-
__extends$
|
|
30757
|
+
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$t(boltProtocolV4x1_transformer);
|
|
30758
|
+
var transformer_1$b = __importDefault$t(transformer);
|
|
30759
|
+
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$o.internal.constants.BOLT_PROTOCOL_V4_1;
|
|
30760
|
+
var BoltProtocol$b = /** @class */ (function (_super) {
|
|
30761
|
+
__extends$i(BoltProtocol, _super);
|
|
30570
30762
|
/**
|
|
30571
30763
|
* @constructor
|
|
30572
30764
|
* @param {Object} server the server informatio.
|
|
@@ -30596,7 +30788,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
30596
30788
|
get: function () {
|
|
30597
30789
|
var _this = this;
|
|
30598
30790
|
if (this._transformer === undefined) {
|
|
30599
|
-
this._transformer = new transformer_1$
|
|
30791
|
+
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); }));
|
|
30600
30792
|
}
|
|
30601
30793
|
return this._transformer;
|
|
30602
30794
|
},
|
|
@@ -30617,7 +30809,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
30617
30809
|
};
|
|
30618
30810
|
return BoltProtocol;
|
|
30619
30811
|
}(bolt_protocol_v4x0_1$1.default));
|
|
30620
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
30812
|
+
boltProtocolV4x1.default = BoltProtocol$b;
|
|
30621
30813
|
|
|
30622
30814
|
var boltProtocolV4x2 = {};
|
|
30623
30815
|
|
|
@@ -30639,8 +30831,8 @@ var boltProtocolV4x2_transformer = {};
|
|
|
30639
30831
|
* See the License for the specific language governing permissions and
|
|
30640
30832
|
* limitations under the License.
|
|
30641
30833
|
*/
|
|
30642
|
-
var __assign$
|
|
30643
|
-
__assign$
|
|
30834
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30835
|
+
__assign$h = Object.assign || function(t) {
|
|
30644
30836
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30645
30837
|
s = arguments[i];
|
|
30646
30838
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30648,16 +30840,16 @@ var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30648
30840
|
}
|
|
30649
30841
|
return t;
|
|
30650
30842
|
};
|
|
30651
|
-
return __assign$
|
|
30843
|
+
return __assign$h.apply(this, arguments);
|
|
30652
30844
|
};
|
|
30653
|
-
var __importDefault$
|
|
30845
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30654
30846
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30655
30847
|
};
|
|
30656
30848
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
30657
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
30658
|
-
boltProtocolV4x2_transformer.default = __assign$
|
|
30849
|
+
var bolt_protocol_v4x1_transformer_1 = __importDefault$s(boltProtocolV4x1_transformer);
|
|
30850
|
+
boltProtocolV4x2_transformer.default = __assign$h({}, bolt_protocol_v4x1_transformer_1.default);
|
|
30659
30851
|
|
|
30660
|
-
var __extends$
|
|
30852
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30661
30853
|
var extendStatics = function (d, b) {
|
|
30662
30854
|
extendStatics = Object.setPrototypeOf ||
|
|
30663
30855
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30672,7 +30864,7 @@ var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30672
30864
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30673
30865
|
};
|
|
30674
30866
|
})();
|
|
30675
|
-
var __importDefault$
|
|
30867
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30676
30868
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30677
30869
|
};
|
|
30678
30870
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -30692,13 +30884,13 @@ Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
|
30692
30884
|
* See the License for the specific language governing permissions and
|
|
30693
30885
|
* limitations under the License.
|
|
30694
30886
|
*/
|
|
30695
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
30696
|
-
var neo4j_driver_core_1$
|
|
30697
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
30698
|
-
var transformer_1$
|
|
30699
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
30700
|
-
var BoltProtocol$
|
|
30701
|
-
__extends$
|
|
30887
|
+
var bolt_protocol_v4x1_1$1 = __importDefault$r(boltProtocolV4x1);
|
|
30888
|
+
var neo4j_driver_core_1$n = lib$1;
|
|
30889
|
+
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$r(boltProtocolV4x2_transformer);
|
|
30890
|
+
var transformer_1$a = __importDefault$r(transformer);
|
|
30891
|
+
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V4_2;
|
|
30892
|
+
var BoltProtocol$a = /** @class */ (function (_super) {
|
|
30893
|
+
__extends$h(BoltProtocol, _super);
|
|
30702
30894
|
function BoltProtocol() {
|
|
30703
30895
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30704
30896
|
}
|
|
@@ -30713,7 +30905,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
30713
30905
|
get: function () {
|
|
30714
30906
|
var _this = this;
|
|
30715
30907
|
if (this._transformer === undefined) {
|
|
30716
|
-
this._transformer = new transformer_1$
|
|
30908
|
+
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); }));
|
|
30717
30909
|
}
|
|
30718
30910
|
return this._transformer;
|
|
30719
30911
|
},
|
|
@@ -30722,7 +30914,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
30722
30914
|
});
|
|
30723
30915
|
return BoltProtocol;
|
|
30724
30916
|
}(bolt_protocol_v4x1_1$1.default));
|
|
30725
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
30917
|
+
boltProtocolV4x2.default = BoltProtocol$a;
|
|
30726
30918
|
|
|
30727
30919
|
var boltProtocolV4x3 = {};
|
|
30728
30920
|
|
|
@@ -30744,8 +30936,8 @@ var boltProtocolV4x3_transformer = {};
|
|
|
30744
30936
|
* See the License for the specific language governing permissions and
|
|
30745
30937
|
* limitations under the License.
|
|
30746
30938
|
*/
|
|
30747
|
-
var __assign$
|
|
30748
|
-
__assign$
|
|
30939
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30940
|
+
__assign$g = Object.assign || function(t) {
|
|
30749
30941
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30750
30942
|
s = arguments[i];
|
|
30751
30943
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30753,14 +30945,14 @@ var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30753
30945
|
}
|
|
30754
30946
|
return t;
|
|
30755
30947
|
};
|
|
30756
|
-
return __assign$
|
|
30948
|
+
return __assign$g.apply(this, arguments);
|
|
30757
30949
|
};
|
|
30758
|
-
var __importDefault$
|
|
30950
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30759
30951
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30760
30952
|
};
|
|
30761
30953
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
30762
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
30763
|
-
boltProtocolV4x3_transformer.default = __assign$
|
|
30954
|
+
var bolt_protocol_v4x2_transformer_1 = __importDefault$q(boltProtocolV4x2_transformer);
|
|
30955
|
+
boltProtocolV4x3_transformer.default = __assign$g({}, bolt_protocol_v4x2_transformer_1.default);
|
|
30764
30956
|
|
|
30765
30957
|
var boltProtocolV5x0_utc_transformer = {};
|
|
30766
30958
|
|
|
@@ -30782,8 +30974,8 @@ var boltProtocolV4x4_transformer = {};
|
|
|
30782
30974
|
* See the License for the specific language governing permissions and
|
|
30783
30975
|
* limitations under the License.
|
|
30784
30976
|
*/
|
|
30785
|
-
var __assign$
|
|
30786
|
-
__assign$
|
|
30977
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30978
|
+
__assign$f = Object.assign || function(t) {
|
|
30787
30979
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30788
30980
|
s = arguments[i];
|
|
30789
30981
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30791,14 +30983,14 @@ var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30791
30983
|
}
|
|
30792
30984
|
return t;
|
|
30793
30985
|
};
|
|
30794
|
-
return __assign$
|
|
30986
|
+
return __assign$f.apply(this, arguments);
|
|
30795
30987
|
};
|
|
30796
|
-
var __importDefault$
|
|
30988
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30797
30989
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30798
30990
|
};
|
|
30799
30991
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
30800
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
30801
|
-
boltProtocolV4x4_transformer.default = __assign$
|
|
30992
|
+
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$p(boltProtocolV4x3_transformer);
|
|
30993
|
+
boltProtocolV4x4_transformer.default = __assign$f({}, bolt_protocol_v4x3_transformer_1$1.default);
|
|
30802
30994
|
|
|
30803
30995
|
/**
|
|
30804
30996
|
* Copyright (c) "Neo4j"
|
|
@@ -30832,16 +31024,16 @@ var __read$4 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
30832
31024
|
}
|
|
30833
31025
|
return ar;
|
|
30834
31026
|
};
|
|
30835
|
-
var __importDefault$
|
|
31027
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30836
31028
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30837
31029
|
};
|
|
30838
31030
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
30839
31031
|
var packstream_1$1 = packstream;
|
|
30840
|
-
var neo4j_driver_core_1$
|
|
30841
|
-
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$
|
|
31032
|
+
var neo4j_driver_core_1$m = lib$1;
|
|
31033
|
+
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$o(boltProtocolV4x4_transformer);
|
|
30842
31034
|
var temporal_factory_1 = temporalFactory;
|
|
30843
31035
|
var functional_1 = functional;
|
|
30844
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
31036
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$m.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
30845
31037
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
30846
31038
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
30847
31039
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -30855,7 +31047,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
30855
31047
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
30856
31048
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
30857
31049
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
30858
|
-
var result = new neo4j_driver_core_1$
|
|
31050
|
+
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);
|
|
30859
31051
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30860
31052
|
},
|
|
30861
31053
|
toStructure: function (value) {
|
|
@@ -30869,7 +31061,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
30869
31061
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
30870
31062
|
}
|
|
30871
31063
|
var utc = epochSecond.subtract(offset);
|
|
30872
|
-
var nano = (0, neo4j_driver_core_1$
|
|
31064
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30873
31065
|
var timeZoneId = value.timeZoneId;
|
|
30874
31066
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
30875
31067
|
}
|
|
@@ -30931,9 +31123,9 @@ function getDateTimeFormatForZoneId(timeZoneId) {
|
|
|
30931
31123
|
}
|
|
30932
31124
|
function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
30933
31125
|
var formatter = getDateTimeFormatForZoneId(timeZoneId);
|
|
30934
|
-
var utc = (0, neo4j_driver_core_1$
|
|
31126
|
+
var utc = (0, neo4j_driver_core_1$m.int)(epochSecond)
|
|
30935
31127
|
.multiply(1000)
|
|
30936
|
-
.add((0, neo4j_driver_core_1$
|
|
31128
|
+
.add((0, neo4j_driver_core_1$m.int)(nano).div(1000000))
|
|
30937
31129
|
.toNumber();
|
|
30938
31130
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
30939
31131
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -30944,10 +31136,10 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
30944
31136
|
: functional_1.identity;
|
|
30945
31137
|
}
|
|
30946
31138
|
else if (currentValue.type === 'hour') {
|
|
30947
|
-
obj.hour = (0, neo4j_driver_core_1$
|
|
31139
|
+
obj.hour = (0, neo4j_driver_core_1$m.int)(currentValue.value).modulo(24);
|
|
30948
31140
|
}
|
|
30949
31141
|
else if (currentValue.type !== 'literal') {
|
|
30950
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
31142
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$m.int)(currentValue.value);
|
|
30951
31143
|
}
|
|
30952
31144
|
return obj;
|
|
30953
31145
|
}, {});
|
|
@@ -30964,17 +31156,17 @@ function createDateTimeWithOffsetTransformer(config) {
|
|
|
30964
31156
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
30965
31157
|
toStructure: function (value) {
|
|
30966
31158
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
30967
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30968
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
31159
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
31160
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$m.int)(value.timeZoneOffsetSeconds);
|
|
30969
31161
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
30970
31162
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
30971
31163
|
},
|
|
30972
31164
|
fromStructure: function (struct) {
|
|
30973
31165
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
30974
31166
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
30975
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
31167
|
+
var epochSecond = (0, neo4j_driver_core_1$m.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
30976
31168
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
30977
|
-
var result = new neo4j_driver_core_1$
|
|
31169
|
+
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);
|
|
30978
31170
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30979
31171
|
}
|
|
30980
31172
|
});
|
|
@@ -30990,7 +31182,7 @@ function convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {
|
|
|
30990
31182
|
for (var prop in obj) {
|
|
30991
31183
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
30992
31184
|
var value = obj[prop];
|
|
30993
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
31185
|
+
clone[prop] = (0, neo4j_driver_core_1$m.isInt)(value) ? convert(value) : value;
|
|
30994
31186
|
}
|
|
30995
31187
|
}
|
|
30996
31188
|
Object.freeze(clone);
|
|
@@ -31001,7 +31193,7 @@ boltProtocolV5x0_utc_transformer.default = {
|
|
|
31001
31193
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
31002
31194
|
};
|
|
31003
31195
|
|
|
31004
|
-
var __extends$
|
|
31196
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31005
31197
|
var extendStatics = function (d, b) {
|
|
31006
31198
|
extendStatics = Object.setPrototypeOf ||
|
|
31007
31199
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31016,8 +31208,8 @@ var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31016
31208
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31017
31209
|
};
|
|
31018
31210
|
})();
|
|
31019
|
-
var __assign$
|
|
31020
|
-
__assign$
|
|
31211
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31212
|
+
__assign$e = Object.assign || function(t) {
|
|
31021
31213
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31022
31214
|
s = arguments[i];
|
|
31023
31215
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31025,9 +31217,9 @@ var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31025
31217
|
}
|
|
31026
31218
|
return t;
|
|
31027
31219
|
};
|
|
31028
|
-
return __assign$
|
|
31220
|
+
return __assign$e.apply(this, arguments);
|
|
31029
31221
|
};
|
|
31030
|
-
var __importDefault$
|
|
31222
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31031
31223
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31032
31224
|
};
|
|
31033
31225
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -31047,17 +31239,17 @@ Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
|
31047
31239
|
* See the License for the specific language governing permissions and
|
|
31048
31240
|
* limitations under the License.
|
|
31049
31241
|
*/
|
|
31050
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
31051
|
-
var request_message_1$7 = __importDefault$
|
|
31242
|
+
var bolt_protocol_v4x2_1$1 = __importDefault$n(boltProtocolV4x2);
|
|
31243
|
+
var request_message_1$7 = __importDefault$n(requestMessage);
|
|
31052
31244
|
var stream_observers_1$7 = streamObservers;
|
|
31053
31245
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
31054
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
31055
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
31056
|
-
var transformer_1$
|
|
31057
|
-
var neo4j_driver_core_1$
|
|
31058
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
31059
|
-
var BoltProtocol$
|
|
31060
|
-
__extends$
|
|
31246
|
+
var bolt_protocol_v4x3_transformer_1 = __importDefault$n(boltProtocolV4x3_transformer);
|
|
31247
|
+
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$n(boltProtocolV5x0_utc_transformer);
|
|
31248
|
+
var transformer_1$9 = __importDefault$n(transformer);
|
|
31249
|
+
var neo4j_driver_core_1$l = lib$1;
|
|
31250
|
+
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;
|
|
31251
|
+
var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
31252
|
+
__extends$g(BoltProtocol, _super);
|
|
31061
31253
|
function BoltProtocol() {
|
|
31062
31254
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31063
31255
|
}
|
|
@@ -31072,7 +31264,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
31072
31264
|
get: function () {
|
|
31073
31265
|
var _this = this;
|
|
31074
31266
|
if (this._transformer === undefined) {
|
|
31075
|
-
this._transformer = new transformer_1$
|
|
31267
|
+
this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31076
31268
|
}
|
|
31077
31269
|
return this._transformer;
|
|
31078
31270
|
},
|
|
@@ -31141,15 +31333,15 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
31141
31333
|
};
|
|
31142
31334
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31143
31335
|
var _this = this;
|
|
31144
|
-
this._transformer = new transformer_1$
|
|
31336
|
+
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); }));
|
|
31145
31337
|
};
|
|
31146
31338
|
return BoltProtocol;
|
|
31147
31339
|
}(bolt_protocol_v4x2_1$1.default));
|
|
31148
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
31340
|
+
boltProtocolV4x3.default = BoltProtocol$9;
|
|
31149
31341
|
|
|
31150
31342
|
var boltProtocolV4x4 = {};
|
|
31151
31343
|
|
|
31152
|
-
var __extends$
|
|
31344
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31153
31345
|
var extendStatics = function (d, b) {
|
|
31154
31346
|
extendStatics = Object.setPrototypeOf ||
|
|
31155
31347
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31164,8 +31356,8 @@ var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31164
31356
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31165
31357
|
};
|
|
31166
31358
|
})();
|
|
31167
|
-
var __assign$
|
|
31168
|
-
__assign$
|
|
31359
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31360
|
+
__assign$d = Object.assign || function(t) {
|
|
31169
31361
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31170
31362
|
s = arguments[i];
|
|
31171
31363
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31173,9 +31365,9 @@ var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31173
31365
|
}
|
|
31174
31366
|
return t;
|
|
31175
31367
|
};
|
|
31176
|
-
return __assign$
|
|
31368
|
+
return __assign$d.apply(this, arguments);
|
|
31177
31369
|
};
|
|
31178
|
-
var __importDefault$
|
|
31370
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31179
31371
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31180
31372
|
};
|
|
31181
31373
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -31195,17 +31387,17 @@ Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
|
31195
31387
|
* See the License for the specific language governing permissions and
|
|
31196
31388
|
* limitations under the License.
|
|
31197
31389
|
*/
|
|
31198
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
31199
|
-
var neo4j_driver_core_1$
|
|
31200
|
-
var request_message_1$6 = __importDefault$
|
|
31390
|
+
var bolt_protocol_v4x3_1$1 = __importDefault$m(boltProtocolV4x3);
|
|
31391
|
+
var neo4j_driver_core_1$k = lib$1;
|
|
31392
|
+
var request_message_1$6 = __importDefault$m(requestMessage);
|
|
31201
31393
|
var stream_observers_1$6 = streamObservers;
|
|
31202
31394
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
31203
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
31204
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
31205
|
-
var transformer_1$
|
|
31206
|
-
var _a$6 = neo4j_driver_core_1$
|
|
31207
|
-
var BoltProtocol$
|
|
31208
|
-
__extends$
|
|
31395
|
+
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$m(boltProtocolV4x4_transformer);
|
|
31396
|
+
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$m(boltProtocolV5x0_utc_transformer);
|
|
31397
|
+
var transformer_1$8 = __importDefault$m(transformer);
|
|
31398
|
+
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;
|
|
31399
|
+
var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
31400
|
+
__extends$f(BoltProtocol, _super);
|
|
31209
31401
|
function BoltProtocol() {
|
|
31210
31402
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31211
31403
|
}
|
|
@@ -31220,7 +31412,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
31220
31412
|
get: function () {
|
|
31221
31413
|
var _this = this;
|
|
31222
31414
|
if (this._transformer === undefined) {
|
|
31223
|
-
this._transformer = new transformer_1$
|
|
31415
|
+
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); }));
|
|
31224
31416
|
}
|
|
31225
31417
|
return this._transformer;
|
|
31226
31418
|
},
|
|
@@ -31299,11 +31491,11 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
31299
31491
|
};
|
|
31300
31492
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31301
31493
|
var _this = this;
|
|
31302
|
-
this._transformer = new transformer_1$
|
|
31494
|
+
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); }));
|
|
31303
31495
|
};
|
|
31304
31496
|
return BoltProtocol;
|
|
31305
31497
|
}(bolt_protocol_v4x3_1$1.default));
|
|
31306
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
31498
|
+
boltProtocolV4x4.default = BoltProtocol$8;
|
|
31307
31499
|
|
|
31308
31500
|
var boltProtocolV5x0 = {};
|
|
31309
31501
|
|
|
@@ -31325,8 +31517,8 @@ var boltProtocolV5x0_transformer = {};
|
|
|
31325
31517
|
* See the License for the specific language governing permissions and
|
|
31326
31518
|
* limitations under the License.
|
|
31327
31519
|
*/
|
|
31328
|
-
var __assign$
|
|
31329
|
-
__assign$
|
|
31520
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31521
|
+
__assign$c = Object.assign || function(t) {
|
|
31330
31522
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31331
31523
|
s = arguments[i];
|
|
31332
31524
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31334,7 +31526,7 @@ var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31334
31526
|
}
|
|
31335
31527
|
return t;
|
|
31336
31528
|
};
|
|
31337
|
-
return __assign$
|
|
31529
|
+
return __assign$c.apply(this, arguments);
|
|
31338
31530
|
};
|
|
31339
31531
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
31340
31532
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -31352,14 +31544,14 @@ var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
31352
31544
|
}
|
|
31353
31545
|
return ar;
|
|
31354
31546
|
};
|
|
31355
|
-
var __importDefault$
|
|
31547
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31356
31548
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31357
31549
|
};
|
|
31358
31550
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
31359
31551
|
var packstream_1 = packstream;
|
|
31360
|
-
var neo4j_driver_core_1$
|
|
31361
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
31362
|
-
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$
|
|
31552
|
+
var neo4j_driver_core_1$j = lib$1;
|
|
31553
|
+
var bolt_protocol_v4x4_transformer_1 = __importDefault$l(boltProtocolV4x4_transformer);
|
|
31554
|
+
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$l(boltProtocolV5x0_utc_transformer);
|
|
31363
31555
|
var NODE_STRUCT_SIZE = 4;
|
|
31364
31556
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
31365
31557
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -31374,7 +31566,7 @@ function createNodeTransformer(config) {
|
|
|
31374
31566
|
fromStructure: function (struct) {
|
|
31375
31567
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
31376
31568
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
31377
|
-
return new neo4j_driver_core_1$
|
|
31569
|
+
return new neo4j_driver_core_1$j.Node(identity, lables, properties, elementId);
|
|
31378
31570
|
}
|
|
31379
31571
|
});
|
|
31380
31572
|
}
|
|
@@ -31389,7 +31581,7 @@ function createRelationshipTransformer(config) {
|
|
|
31389
31581
|
fromStructure: function (struct) {
|
|
31390
31582
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31391
31583
|
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];
|
|
31392
|
-
return new neo4j_driver_core_1$
|
|
31584
|
+
return new neo4j_driver_core_1$j.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
31393
31585
|
}
|
|
31394
31586
|
});
|
|
31395
31587
|
}
|
|
@@ -31404,13 +31596,13 @@ function createUnboundRelationshipTransformer(config) {
|
|
|
31404
31596
|
fromStructure: function (struct) {
|
|
31405
31597
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31406
31598
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
31407
|
-
return new neo4j_driver_core_1$
|
|
31599
|
+
return new neo4j_driver_core_1$j.UnboundRelationship(identity, type, properties, elementId);
|
|
31408
31600
|
}
|
|
31409
31601
|
});
|
|
31410
31602
|
}
|
|
31411
|
-
boltProtocolV5x0_transformer.default = __assign$
|
|
31603
|
+
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 });
|
|
31412
31604
|
|
|
31413
|
-
var __extends$
|
|
31605
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31414
31606
|
var extendStatics = function (d, b) {
|
|
31415
31607
|
extendStatics = Object.setPrototypeOf ||
|
|
31416
31608
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31425,7 +31617,7 @@ var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31425
31617
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31426
31618
|
};
|
|
31427
31619
|
})();
|
|
31428
|
-
var __importDefault$
|
|
31620
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31429
31621
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31430
31622
|
};
|
|
31431
31623
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -31445,16 +31637,16 @@ Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
|
31445
31637
|
* See the License for the specific language governing permissions and
|
|
31446
31638
|
* limitations under the License.
|
|
31447
31639
|
*/
|
|
31448
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
31640
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$k(boltProtocolV4x4);
|
|
31449
31641
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
31450
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
31451
|
-
var transformer_1$
|
|
31452
|
-
var request_message_1$5 = __importDefault$
|
|
31642
|
+
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$k(boltProtocolV5x0_transformer);
|
|
31643
|
+
var transformer_1$7 = __importDefault$k(transformer);
|
|
31644
|
+
var request_message_1$5 = __importDefault$k(requestMessage);
|
|
31453
31645
|
var stream_observers_1$5 = streamObservers;
|
|
31454
|
-
var neo4j_driver_core_1$
|
|
31455
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
31456
|
-
var BoltProtocol$
|
|
31457
|
-
__extends$
|
|
31646
|
+
var neo4j_driver_core_1$i = lib$1;
|
|
31647
|
+
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$i.internal.constants.BOLT_PROTOCOL_V5_0;
|
|
31648
|
+
var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
31649
|
+
__extends$e(BoltProtocol, _super);
|
|
31458
31650
|
function BoltProtocol() {
|
|
31459
31651
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31460
31652
|
}
|
|
@@ -31469,7 +31661,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
31469
31661
|
get: function () {
|
|
31470
31662
|
var _this = this;
|
|
31471
31663
|
if (this._transformer === undefined) {
|
|
31472
|
-
this._transformer = new transformer_1$
|
|
31664
|
+
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); }));
|
|
31473
31665
|
}
|
|
31474
31666
|
return this._transformer;
|
|
31475
31667
|
},
|
|
@@ -31501,7 +31693,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
31501
31693
|
};
|
|
31502
31694
|
return BoltProtocol;
|
|
31503
31695
|
}(bolt_protocol_v4x4_1$1.default));
|
|
31504
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
31696
|
+
boltProtocolV5x0.default = BoltProtocol$7;
|
|
31505
31697
|
|
|
31506
31698
|
var boltProtocolV5x1 = {};
|
|
31507
31699
|
|
|
@@ -31523,8 +31715,8 @@ var boltProtocolV5x1_transformer = {};
|
|
|
31523
31715
|
* See the License for the specific language governing permissions and
|
|
31524
31716
|
* limitations under the License.
|
|
31525
31717
|
*/
|
|
31526
|
-
var __assign$
|
|
31527
|
-
__assign$
|
|
31718
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31719
|
+
__assign$b = Object.assign || function(t) {
|
|
31528
31720
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31529
31721
|
s = arguments[i];
|
|
31530
31722
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31532,16 +31724,16 @@ var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31532
31724
|
}
|
|
31533
31725
|
return t;
|
|
31534
31726
|
};
|
|
31535
|
-
return __assign$
|
|
31727
|
+
return __assign$b.apply(this, arguments);
|
|
31536
31728
|
};
|
|
31537
|
-
var __importDefault$
|
|
31729
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31538
31730
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31539
31731
|
};
|
|
31540
31732
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
31541
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
31542
|
-
boltProtocolV5x1_transformer.default = __assign$
|
|
31733
|
+
var bolt_protocol_v5x0_transformer_1 = __importDefault$j(boltProtocolV5x0_transformer);
|
|
31734
|
+
boltProtocolV5x1_transformer.default = __assign$b({}, bolt_protocol_v5x0_transformer_1.default);
|
|
31543
31735
|
|
|
31544
|
-
var __extends$
|
|
31736
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31545
31737
|
var extendStatics = function (d, b) {
|
|
31546
31738
|
extendStatics = Object.setPrototypeOf ||
|
|
31547
31739
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31556,8 +31748,8 @@ var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31556
31748
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31557
31749
|
};
|
|
31558
31750
|
})();
|
|
31559
|
-
var __assign$
|
|
31560
|
-
__assign$
|
|
31751
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31752
|
+
__assign$a = Object.assign || function(t) {
|
|
31561
31753
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31562
31754
|
s = arguments[i];
|
|
31563
31755
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31565,9 +31757,9 @@ var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31565
31757
|
}
|
|
31566
31758
|
return t;
|
|
31567
31759
|
};
|
|
31568
|
-
return __assign$
|
|
31760
|
+
return __assign$a.apply(this, arguments);
|
|
31569
31761
|
};
|
|
31570
|
-
var __importDefault$
|
|
31762
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31571
31763
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31572
31764
|
};
|
|
31573
31765
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -31587,16 +31779,16 @@ Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
|
31587
31779
|
* See the License for the specific language governing permissions and
|
|
31588
31780
|
* limitations under the License.
|
|
31589
31781
|
*/
|
|
31590
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
31782
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$i(boltProtocolV5x0);
|
|
31591
31783
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
31592
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
31593
|
-
var transformer_1$
|
|
31594
|
-
var request_message_1$4 = __importDefault$
|
|
31784
|
+
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$i(boltProtocolV5x1_transformer);
|
|
31785
|
+
var transformer_1$6 = __importDefault$i(transformer);
|
|
31786
|
+
var request_message_1$4 = __importDefault$i(requestMessage);
|
|
31595
31787
|
var stream_observers_1$4 = streamObservers;
|
|
31596
|
-
var neo4j_driver_core_1$
|
|
31597
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
31598
|
-
var BoltProtocol$
|
|
31599
|
-
__extends$
|
|
31788
|
+
var neo4j_driver_core_1$h = lib$1;
|
|
31789
|
+
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$h.internal.constants.BOLT_PROTOCOL_V5_1;
|
|
31790
|
+
var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
31791
|
+
__extends$d(BoltProtocol, _super);
|
|
31600
31792
|
function BoltProtocol() {
|
|
31601
31793
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31602
31794
|
}
|
|
@@ -31611,7 +31803,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
31611
31803
|
get: function () {
|
|
31612
31804
|
var _this = this;
|
|
31613
31805
|
if (this._transformer === undefined) {
|
|
31614
|
-
this._transformer = new transformer_1$
|
|
31806
|
+
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); }));
|
|
31615
31807
|
}
|
|
31616
31808
|
return this._transformer;
|
|
31617
31809
|
},
|
|
@@ -31652,7 +31844,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
31652
31844
|
this.write(request_message_1$4.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
31653
31845
|
return this.logon({
|
|
31654
31846
|
authToken: authToken,
|
|
31655
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31847
|
+
onComplete: function (metadata) { return onComplete(__assign$a(__assign$a({}, metadata), state.metadata)); },
|
|
31656
31848
|
onError: onError,
|
|
31657
31849
|
flush: true
|
|
31658
31850
|
});
|
|
@@ -31699,7 +31891,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
31699
31891
|
};
|
|
31700
31892
|
return BoltProtocol;
|
|
31701
31893
|
}(bolt_protocol_v5x0_1$1.default));
|
|
31702
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
31894
|
+
boltProtocolV5x1.default = BoltProtocol$6;
|
|
31703
31895
|
|
|
31704
31896
|
var boltProtocolV5x2 = {};
|
|
31705
31897
|
|
|
@@ -31721,8 +31913,8 @@ var boltProtocolV5x2_transformer = {};
|
|
|
31721
31913
|
* See the License for the specific language governing permissions and
|
|
31722
31914
|
* limitations under the License.
|
|
31723
31915
|
*/
|
|
31724
|
-
var __assign$
|
|
31725
|
-
__assign$
|
|
31916
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31917
|
+
__assign$9 = Object.assign || function(t) {
|
|
31726
31918
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31727
31919
|
s = arguments[i];
|
|
31728
31920
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31730,16 +31922,16 @@ var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31730
31922
|
}
|
|
31731
31923
|
return t;
|
|
31732
31924
|
};
|
|
31733
|
-
return __assign$
|
|
31925
|
+
return __assign$9.apply(this, arguments);
|
|
31734
31926
|
};
|
|
31735
|
-
var __importDefault$
|
|
31927
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31736
31928
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31737
31929
|
};
|
|
31738
31930
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
31739
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
31740
|
-
boltProtocolV5x2_transformer.default = __assign$
|
|
31931
|
+
var bolt_protocol_v5x1_transformer_1 = __importDefault$h(boltProtocolV5x1_transformer);
|
|
31932
|
+
boltProtocolV5x2_transformer.default = __assign$9({}, bolt_protocol_v5x1_transformer_1.default);
|
|
31741
31933
|
|
|
31742
|
-
var __extends$
|
|
31934
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31743
31935
|
var extendStatics = function (d, b) {
|
|
31744
31936
|
extendStatics = Object.setPrototypeOf ||
|
|
31745
31937
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31754,8 +31946,8 @@ var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31754
31946
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31755
31947
|
};
|
|
31756
31948
|
})();
|
|
31757
|
-
var __assign$
|
|
31758
|
-
__assign$
|
|
31949
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31950
|
+
__assign$8 = Object.assign || function(t) {
|
|
31759
31951
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31760
31952
|
s = arguments[i];
|
|
31761
31953
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31763,9 +31955,9 @@ var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31763
31955
|
}
|
|
31764
31956
|
return t;
|
|
31765
31957
|
};
|
|
31766
|
-
return __assign$
|
|
31958
|
+
return __assign$8.apply(this, arguments);
|
|
31767
31959
|
};
|
|
31768
|
-
var __importDefault$
|
|
31960
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31769
31961
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31770
31962
|
};
|
|
31771
31963
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -31785,15 +31977,15 @@ Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
|
31785
31977
|
* See the License for the specific language governing permissions and
|
|
31786
31978
|
* limitations under the License.
|
|
31787
31979
|
*/
|
|
31788
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
31789
|
-
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$
|
|
31790
|
-
var transformer_1$
|
|
31791
|
-
var request_message_1$3 = __importDefault$
|
|
31980
|
+
var bolt_protocol_v5x1_1$1 = __importDefault$g(boltProtocolV5x1);
|
|
31981
|
+
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$g(boltProtocolV5x2_transformer);
|
|
31982
|
+
var transformer_1$5 = __importDefault$g(transformer);
|
|
31983
|
+
var request_message_1$3 = __importDefault$g(requestMessage);
|
|
31792
31984
|
var stream_observers_1$3 = streamObservers;
|
|
31793
|
-
var neo4j_driver_core_1$
|
|
31794
|
-
var _a$5 = neo4j_driver_core_1$
|
|
31795
|
-
var BoltProtocol$
|
|
31796
|
-
__extends$
|
|
31985
|
+
var neo4j_driver_core_1$g = lib$1;
|
|
31986
|
+
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;
|
|
31987
|
+
var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
31988
|
+
__extends$c(BoltProtocol, _super);
|
|
31797
31989
|
function BoltProtocol() {
|
|
31798
31990
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31799
31991
|
}
|
|
@@ -31808,7 +32000,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
31808
32000
|
get: function () {
|
|
31809
32001
|
var _this = this;
|
|
31810
32002
|
if (this._transformer === undefined) {
|
|
31811
|
-
this._transformer = new transformer_1$
|
|
32003
|
+
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); }));
|
|
31812
32004
|
}
|
|
31813
32005
|
return this._transformer;
|
|
31814
32006
|
},
|
|
@@ -31850,7 +32042,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
31850
32042
|
request_message_1$3.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31851
32043
|
return this.logon({
|
|
31852
32044
|
authToken: authToken,
|
|
31853
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32045
|
+
onComplete: function (metadata) { return onComplete(__assign$8(__assign$8({}, metadata), state.metadata)); },
|
|
31854
32046
|
onError: onError,
|
|
31855
32047
|
flush: true
|
|
31856
32048
|
});
|
|
@@ -31901,7 +32093,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
31901
32093
|
};
|
|
31902
32094
|
return BoltProtocol;
|
|
31903
32095
|
}(bolt_protocol_v5x1_1$1.default));
|
|
31904
|
-
boltProtocolV5x2.default = BoltProtocol$
|
|
32096
|
+
boltProtocolV5x2.default = BoltProtocol$5;
|
|
31905
32097
|
|
|
31906
32098
|
var boltProtocolV5x3 = {};
|
|
31907
32099
|
|
|
@@ -31923,8 +32115,8 @@ var boltProtocolV5x3_transformer = {};
|
|
|
31923
32115
|
* See the License for the specific language governing permissions and
|
|
31924
32116
|
* limitations under the License.
|
|
31925
32117
|
*/
|
|
31926
|
-
var __assign$
|
|
31927
|
-
__assign$
|
|
32118
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32119
|
+
__assign$7 = Object.assign || function(t) {
|
|
31928
32120
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31929
32121
|
s = arguments[i];
|
|
31930
32122
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31932,16 +32124,16 @@ var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31932
32124
|
}
|
|
31933
32125
|
return t;
|
|
31934
32126
|
};
|
|
31935
|
-
return __assign$
|
|
32127
|
+
return __assign$7.apply(this, arguments);
|
|
31936
32128
|
};
|
|
31937
|
-
var __importDefault$
|
|
32129
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31938
32130
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31939
32131
|
};
|
|
31940
32132
|
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
31941
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
31942
|
-
boltProtocolV5x3_transformer.default = __assign$
|
|
32133
|
+
var bolt_protocol_v5x2_transformer_1 = __importDefault$f(boltProtocolV5x2_transformer);
|
|
32134
|
+
boltProtocolV5x3_transformer.default = __assign$7({}, bolt_protocol_v5x2_transformer_1.default);
|
|
31943
32135
|
|
|
31944
|
-
var __extends$
|
|
32136
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31945
32137
|
var extendStatics = function (d, b) {
|
|
31946
32138
|
extendStatics = Object.setPrototypeOf ||
|
|
31947
32139
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31956,8 +32148,8 @@ var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31956
32148
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31957
32149
|
};
|
|
31958
32150
|
})();
|
|
31959
|
-
var __assign$
|
|
31960
|
-
__assign$
|
|
32151
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32152
|
+
__assign$6 = Object.assign || function(t) {
|
|
31961
32153
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31962
32154
|
s = arguments[i];
|
|
31963
32155
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31965,9 +32157,9 @@ var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31965
32157
|
}
|
|
31966
32158
|
return t;
|
|
31967
32159
|
};
|
|
31968
|
-
return __assign$
|
|
32160
|
+
return __assign$6.apply(this, arguments);
|
|
31969
32161
|
};
|
|
31970
|
-
var __importDefault$
|
|
32162
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31971
32163
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31972
32164
|
};
|
|
31973
32165
|
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
@@ -31987,15 +32179,15 @@ Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
|
31987
32179
|
* See the License for the specific language governing permissions and
|
|
31988
32180
|
* limitations under the License.
|
|
31989
32181
|
*/
|
|
31990
|
-
var bolt_protocol_v5x2_1$1 = __importDefault$
|
|
31991
|
-
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$
|
|
31992
|
-
var transformer_1$
|
|
31993
|
-
var request_message_1$2 = __importDefault$
|
|
32182
|
+
var bolt_protocol_v5x2_1$1 = __importDefault$e(boltProtocolV5x2);
|
|
32183
|
+
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$e(boltProtocolV5x3_transformer);
|
|
32184
|
+
var transformer_1$4 = __importDefault$e(transformer);
|
|
32185
|
+
var request_message_1$2 = __importDefault$e(requestMessage);
|
|
31994
32186
|
var stream_observers_1$2 = streamObservers;
|
|
31995
|
-
var neo4j_driver_core_1$
|
|
31996
|
-
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$
|
|
31997
|
-
var BoltProtocol$
|
|
31998
|
-
__extends$
|
|
32187
|
+
var neo4j_driver_core_1$f = lib$1;
|
|
32188
|
+
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$f.internal.constants.BOLT_PROTOCOL_V5_3;
|
|
32189
|
+
var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
32190
|
+
__extends$b(BoltProtocol, _super);
|
|
31999
32191
|
function BoltProtocol() {
|
|
32000
32192
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32001
32193
|
}
|
|
@@ -32010,7 +32202,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
32010
32202
|
get: function () {
|
|
32011
32203
|
var _this = this;
|
|
32012
32204
|
if (this._transformer === undefined) {
|
|
32013
|
-
this._transformer = new transformer_1$
|
|
32205
|
+
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); }));
|
|
32014
32206
|
}
|
|
32015
32207
|
return this._transformer;
|
|
32016
32208
|
},
|
|
@@ -32042,14 +32234,14 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
32042
32234
|
this.write(request_message_1$2.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32043
32235
|
return this.logon({
|
|
32044
32236
|
authToken: authToken,
|
|
32045
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32237
|
+
onComplete: function (metadata) { return onComplete(__assign$6(__assign$6({}, metadata), state.metadata)); },
|
|
32046
32238
|
onError: onError,
|
|
32047
32239
|
flush: true
|
|
32048
32240
|
});
|
|
32049
32241
|
};
|
|
32050
32242
|
return BoltProtocol;
|
|
32051
32243
|
}(bolt_protocol_v5x2_1$1.default));
|
|
32052
|
-
boltProtocolV5x3.default = BoltProtocol$
|
|
32244
|
+
boltProtocolV5x3.default = BoltProtocol$4;
|
|
32053
32245
|
|
|
32054
32246
|
var boltProtocolV5x4 = {};
|
|
32055
32247
|
|
|
@@ -32071,8 +32263,8 @@ var boltProtocolV5x4_transformer = {};
|
|
|
32071
32263
|
* See the License for the specific language governing permissions and
|
|
32072
32264
|
* limitations under the License.
|
|
32073
32265
|
*/
|
|
32074
|
-
var __assign$
|
|
32075
|
-
__assign$
|
|
32266
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32267
|
+
__assign$5 = Object.assign || function(t) {
|
|
32076
32268
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32077
32269
|
s = arguments[i];
|
|
32078
32270
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32080,16 +32272,16 @@ var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32080
32272
|
}
|
|
32081
32273
|
return t;
|
|
32082
32274
|
};
|
|
32083
|
-
return __assign$
|
|
32275
|
+
return __assign$5.apply(this, arguments);
|
|
32084
32276
|
};
|
|
32085
|
-
var __importDefault$
|
|
32277
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32086
32278
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32087
32279
|
};
|
|
32088
32280
|
Object.defineProperty(boltProtocolV5x4_transformer, "__esModule", { value: true });
|
|
32089
|
-
var bolt_protocol_v5x3_transformer_1 = __importDefault$
|
|
32090
|
-
boltProtocolV5x4_transformer.default = __assign$
|
|
32281
|
+
var bolt_protocol_v5x3_transformer_1 = __importDefault$d(boltProtocolV5x3_transformer);
|
|
32282
|
+
boltProtocolV5x4_transformer.default = __assign$5({}, bolt_protocol_v5x3_transformer_1.default);
|
|
32091
32283
|
|
|
32092
|
-
var __extends$
|
|
32284
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32093
32285
|
var extendStatics = function (d, b) {
|
|
32094
32286
|
extendStatics = Object.setPrototypeOf ||
|
|
32095
32287
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32104,7 +32296,7 @@ var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
32104
32296
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32105
32297
|
};
|
|
32106
32298
|
})();
|
|
32107
|
-
var __importDefault$
|
|
32299
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32108
32300
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32109
32301
|
};
|
|
32110
32302
|
Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
@@ -32124,15 +32316,15 @@ Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
|
32124
32316
|
* See the License for the specific language governing permissions and
|
|
32125
32317
|
* limitations under the License.
|
|
32126
32318
|
*/
|
|
32127
|
-
var bolt_protocol_v5x3_1$1 = __importDefault$
|
|
32128
|
-
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$
|
|
32129
|
-
var request_message_1$1 = __importDefault$
|
|
32319
|
+
var bolt_protocol_v5x3_1$1 = __importDefault$c(boltProtocolV5x3);
|
|
32320
|
+
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$c(boltProtocolV5x4_transformer);
|
|
32321
|
+
var request_message_1$1 = __importDefault$c(requestMessage);
|
|
32130
32322
|
var stream_observers_1$1 = streamObservers;
|
|
32131
|
-
var transformer_1$
|
|
32132
|
-
var neo4j_driver_core_1$
|
|
32133
|
-
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$
|
|
32134
|
-
var BoltProtocol$
|
|
32135
|
-
__extends$
|
|
32323
|
+
var transformer_1$3 = __importDefault$c(transformer);
|
|
32324
|
+
var neo4j_driver_core_1$e = lib$1;
|
|
32325
|
+
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_4;
|
|
32326
|
+
var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
32327
|
+
__extends$a(BoltProtocol, _super);
|
|
32136
32328
|
function BoltProtocol() {
|
|
32137
32329
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32138
32330
|
}
|
|
@@ -32147,7 +32339,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
32147
32339
|
get: function () {
|
|
32148
32340
|
var _this = this;
|
|
32149
32341
|
if (this._transformer === undefined) {
|
|
32150
|
-
this._transformer = new transformer_1$
|
|
32342
|
+
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); }));
|
|
32151
32343
|
}
|
|
32152
32344
|
return this._transformer;
|
|
32153
32345
|
},
|
|
@@ -32173,7 +32365,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
32173
32365
|
};
|
|
32174
32366
|
return BoltProtocol;
|
|
32175
32367
|
}(bolt_protocol_v5x3_1$1.default));
|
|
32176
|
-
boltProtocolV5x4.default = BoltProtocol$
|
|
32368
|
+
boltProtocolV5x4.default = BoltProtocol$3;
|
|
32177
32369
|
|
|
32178
32370
|
var boltProtocolV5x5 = {};
|
|
32179
32371
|
|
|
@@ -32195,8 +32387,8 @@ var boltProtocolV5x5_transformer = {};
|
|
|
32195
32387
|
* See the License for the specific language governing permissions and
|
|
32196
32388
|
* limitations under the License.
|
|
32197
32389
|
*/
|
|
32198
|
-
var __assign$
|
|
32199
|
-
__assign$
|
|
32390
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32391
|
+
__assign$4 = Object.assign || function(t) {
|
|
32200
32392
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32201
32393
|
s = arguments[i];
|
|
32202
32394
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32204,16 +32396,16 @@ var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32204
32396
|
}
|
|
32205
32397
|
return t;
|
|
32206
32398
|
};
|
|
32207
|
-
return __assign$
|
|
32399
|
+
return __assign$4.apply(this, arguments);
|
|
32208
32400
|
};
|
|
32209
|
-
var __importDefault$
|
|
32401
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32210
32402
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32211
32403
|
};
|
|
32212
32404
|
Object.defineProperty(boltProtocolV5x5_transformer, "__esModule", { value: true });
|
|
32213
|
-
var bolt_protocol_v5x4_transformer_1 = __importDefault$
|
|
32214
|
-
boltProtocolV5x5_transformer.default = __assign$
|
|
32405
|
+
var bolt_protocol_v5x4_transformer_1 = __importDefault$b(boltProtocolV5x4_transformer);
|
|
32406
|
+
boltProtocolV5x5_transformer.default = __assign$4({}, bolt_protocol_v5x4_transformer_1.default);
|
|
32215
32407
|
|
|
32216
|
-
var __extends$
|
|
32408
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32217
32409
|
var extendStatics = function (d, b) {
|
|
32218
32410
|
extendStatics = Object.setPrototypeOf ||
|
|
32219
32411
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32228,8 +32420,8 @@ var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
32228
32420
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32229
32421
|
};
|
|
32230
32422
|
})();
|
|
32231
|
-
var __assign$
|
|
32232
|
-
__assign$
|
|
32423
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32424
|
+
__assign$3 = Object.assign || function(t) {
|
|
32233
32425
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32234
32426
|
s = arguments[i];
|
|
32235
32427
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32237,9 +32429,9 @@ var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32237
32429
|
}
|
|
32238
32430
|
return t;
|
|
32239
32431
|
};
|
|
32240
|
-
return __assign$
|
|
32432
|
+
return __assign$3.apply(this, arguments);
|
|
32241
32433
|
};
|
|
32242
|
-
var __importDefault$
|
|
32434
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32243
32435
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32244
32436
|
};
|
|
32245
32437
|
Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
@@ -32259,20 +32451,20 @@ Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
|
32259
32451
|
* See the License for the specific language governing permissions and
|
|
32260
32452
|
* limitations under the License.
|
|
32261
32453
|
*/
|
|
32262
|
-
var bolt_protocol_v5x4_1$1 = __importDefault$
|
|
32263
|
-
var bolt_protocol_v5x5_transformer_1$
|
|
32264
|
-
var transformer_1$
|
|
32265
|
-
var request_message_1 = __importDefault$
|
|
32454
|
+
var bolt_protocol_v5x4_1$1 = __importDefault$a(boltProtocolV5x4);
|
|
32455
|
+
var bolt_protocol_v5x5_transformer_1$2 = __importDefault$a(boltProtocolV5x5_transformer);
|
|
32456
|
+
var transformer_1$2 = __importDefault$a(transformer);
|
|
32457
|
+
var request_message_1 = __importDefault$a(requestMessage);
|
|
32266
32458
|
var stream_observers_1 = streamObservers;
|
|
32267
|
-
var neo4j_driver_core_1$
|
|
32268
|
-
var _a$4 = neo4j_driver_core_1$
|
|
32269
|
-
var DEFAULT_DIAGNOSTIC_RECORD$
|
|
32459
|
+
var neo4j_driver_core_1$d = lib$1;
|
|
32460
|
+
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;
|
|
32461
|
+
var DEFAULT_DIAGNOSTIC_RECORD$2 = Object.freeze({
|
|
32270
32462
|
OPERATION: '',
|
|
32271
32463
|
OPERATION_CODE: '0',
|
|
32272
32464
|
CURRENT_SCHEMA: '/'
|
|
32273
32465
|
});
|
|
32274
|
-
var BoltProtocol$
|
|
32275
|
-
__extends$
|
|
32466
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
32467
|
+
__extends$9(BoltProtocol, _super);
|
|
32276
32468
|
function BoltProtocol() {
|
|
32277
32469
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32278
32470
|
}
|
|
@@ -32287,7 +32479,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
32287
32479
|
get: function () {
|
|
32288
32480
|
var _this = this;
|
|
32289
32481
|
if (this._transformer === undefined) {
|
|
32290
|
-
this._transformer = new transformer_1$
|
|
32482
|
+
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); }));
|
|
32291
32483
|
}
|
|
32292
32484
|
return this._transformer;
|
|
32293
32485
|
},
|
|
@@ -32319,7 +32511,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
32319
32511
|
this.write(request_message_1.default.hello5x5(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32320
32512
|
return this.logon({
|
|
32321
32513
|
authToken: authToken,
|
|
32322
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32514
|
+
onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
|
|
32323
32515
|
onError: onError,
|
|
32324
32516
|
flush: true
|
|
32325
32517
|
});
|
|
@@ -32376,16 +32568,112 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
32376
32568
|
*/
|
|
32377
32569
|
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
32378
32570
|
if (Array.isArray(metadata.statuses)) {
|
|
32379
|
-
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$
|
|
32571
|
+
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 })); });
|
|
32380
32572
|
}
|
|
32381
32573
|
return metadata;
|
|
32382
32574
|
};
|
|
32383
32575
|
return BoltProtocol;
|
|
32384
32576
|
}(bolt_protocol_v5x4_1$1.default));
|
|
32385
|
-
boltProtocolV5x5.default = BoltProtocol$
|
|
32577
|
+
boltProtocolV5x5.default = BoltProtocol$2;
|
|
32386
32578
|
|
|
32387
32579
|
var boltProtocolV5x6 = {};
|
|
32388
32580
|
|
|
32581
|
+
var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32582
|
+
var extendStatics = function (d, b) {
|
|
32583
|
+
extendStatics = Object.setPrototypeOf ||
|
|
32584
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32585
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
32586
|
+
return extendStatics(d, b);
|
|
32587
|
+
};
|
|
32588
|
+
return function (d, b) {
|
|
32589
|
+
if (typeof b !== "function" && b !== null)
|
|
32590
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
32591
|
+
extendStatics(d, b);
|
|
32592
|
+
function __() { this.constructor = d; }
|
|
32593
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32594
|
+
};
|
|
32595
|
+
})();
|
|
32596
|
+
var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32597
|
+
__assign$2 = Object.assign || function(t) {
|
|
32598
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32599
|
+
s = arguments[i];
|
|
32600
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
32601
|
+
t[p] = s[p];
|
|
32602
|
+
}
|
|
32603
|
+
return t;
|
|
32604
|
+
};
|
|
32605
|
+
return __assign$2.apply(this, arguments);
|
|
32606
|
+
};
|
|
32607
|
+
var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32608
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32609
|
+
};
|
|
32610
|
+
Object.defineProperty(boltProtocolV5x6, "__esModule", { value: true });
|
|
32611
|
+
/**
|
|
32612
|
+
* Copyright (c) "Neo4j"
|
|
32613
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
32614
|
+
*
|
|
32615
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
32616
|
+
* you may not use this file except in compliance with the License.
|
|
32617
|
+
* You may obtain a copy of the License at
|
|
32618
|
+
*
|
|
32619
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
32620
|
+
*
|
|
32621
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
32622
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
32623
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
32624
|
+
* See the License for the specific language governing permissions and
|
|
32625
|
+
* limitations under the License.
|
|
32626
|
+
*/
|
|
32627
|
+
var bolt_protocol_v5x5_1$1 = __importDefault$9(boltProtocolV5x5);
|
|
32628
|
+
var bolt_protocol_v5x5_transformer_1$1 = __importDefault$9(boltProtocolV5x5_transformer);
|
|
32629
|
+
var transformer_1$1 = __importDefault$9(transformer);
|
|
32630
|
+
var neo4j_driver_core_1$c = lib$1;
|
|
32631
|
+
var BOLT_PROTOCOL_V5_6 = neo4j_driver_core_1$c.internal.constants.BOLT_PROTOCOL_V5_6;
|
|
32632
|
+
var DEFAULT_DIAGNOSTIC_RECORD$1 = Object.freeze({
|
|
32633
|
+
OPERATION: '',
|
|
32634
|
+
OPERATION_CODE: '0',
|
|
32635
|
+
CURRENT_SCHEMA: '/'
|
|
32636
|
+
});
|
|
32637
|
+
var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
32638
|
+
__extends$8(BoltProtocol, _super);
|
|
32639
|
+
function BoltProtocol() {
|
|
32640
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
32641
|
+
}
|
|
32642
|
+
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
32643
|
+
get: function () {
|
|
32644
|
+
return BOLT_PROTOCOL_V5_6;
|
|
32645
|
+
},
|
|
32646
|
+
enumerable: false,
|
|
32647
|
+
configurable: true
|
|
32648
|
+
});
|
|
32649
|
+
Object.defineProperty(BoltProtocol.prototype, "transformer", {
|
|
32650
|
+
get: function () {
|
|
32651
|
+
var _this = this;
|
|
32652
|
+
if (this._transformer === undefined) {
|
|
32653
|
+
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); }));
|
|
32654
|
+
}
|
|
32655
|
+
return this._transformer;
|
|
32656
|
+
},
|
|
32657
|
+
enumerable: false,
|
|
32658
|
+
configurable: true
|
|
32659
|
+
});
|
|
32660
|
+
/**
|
|
32661
|
+
*
|
|
32662
|
+
* @param {object} metadata
|
|
32663
|
+
* @returns {object}
|
|
32664
|
+
*/
|
|
32665
|
+
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
32666
|
+
if (Array.isArray(metadata.statuses)) {
|
|
32667
|
+
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 })); });
|
|
32668
|
+
}
|
|
32669
|
+
return metadata;
|
|
32670
|
+
};
|
|
32671
|
+
return BoltProtocol;
|
|
32672
|
+
}(bolt_protocol_v5x5_1$1.default));
|
|
32673
|
+
boltProtocolV5x6.default = BoltProtocol$1;
|
|
32674
|
+
|
|
32675
|
+
var boltProtocolV5x7 = {};
|
|
32676
|
+
|
|
32389
32677
|
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32390
32678
|
var extendStatics = function (d, b) {
|
|
32391
32679
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -32415,7 +32703,7 @@ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32415
32703
|
var __importDefault$8 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32416
32704
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32417
32705
|
};
|
|
32418
|
-
Object.defineProperty(
|
|
32706
|
+
Object.defineProperty(boltProtocolV5x7, "__esModule", { value: true });
|
|
32419
32707
|
/**
|
|
32420
32708
|
* Copyright (c) "Neo4j"
|
|
32421
32709
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -32432,11 +32720,11 @@ Object.defineProperty(boltProtocolV5x6, "__esModule", { value: true });
|
|
|
32432
32720
|
* See the License for the specific language governing permissions and
|
|
32433
32721
|
* limitations under the License.
|
|
32434
32722
|
*/
|
|
32435
|
-
var
|
|
32723
|
+
var bolt_protocol_v5x6_1$1 = __importDefault$8(boltProtocolV5x6);
|
|
32436
32724
|
var bolt_protocol_v5x5_transformer_1 = __importDefault$8(boltProtocolV5x5_transformer);
|
|
32437
32725
|
var transformer_1 = __importDefault$8(transformer);
|
|
32438
32726
|
var neo4j_driver_core_1$b = lib$1;
|
|
32439
|
-
var
|
|
32727
|
+
var BOLT_PROTOCOL_V5_7 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_7;
|
|
32440
32728
|
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
32441
32729
|
OPERATION: '',
|
|
32442
32730
|
OPERATION_CODE: '0',
|
|
@@ -32449,7 +32737,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
32449
32737
|
}
|
|
32450
32738
|
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
32451
32739
|
get: function () {
|
|
32452
|
-
return
|
|
32740
|
+
return BOLT_PROTOCOL_V5_7;
|
|
32453
32741
|
},
|
|
32454
32742
|
enumerable: false,
|
|
32455
32743
|
configurable: true
|
|
@@ -32470,15 +32758,12 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
32470
32758
|
* @param {object} metadata
|
|
32471
32759
|
* @returns {object}
|
|
32472
32760
|
*/
|
|
32473
|
-
BoltProtocol.prototype.
|
|
32474
|
-
|
|
32475
|
-
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 })); });
|
|
32476
|
-
}
|
|
32477
|
-
return metadata;
|
|
32761
|
+
BoltProtocol.prototype.enrichErrorMetadata = function (metadata) {
|
|
32762
|
+
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 });
|
|
32478
32763
|
};
|
|
32479
32764
|
return BoltProtocol;
|
|
32480
|
-
}(
|
|
32481
|
-
|
|
32765
|
+
}(bolt_protocol_v5x6_1$1.default));
|
|
32766
|
+
boltProtocolV5x7.default = BoltProtocol;
|
|
32482
32767
|
|
|
32483
32768
|
var responseHandler = {};
|
|
32484
32769
|
|
|
@@ -32551,10 +32836,11 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
32551
32836
|
* @param {ResponseHandler~Observer} observer Object which will be notified about errors
|
|
32552
32837
|
*/
|
|
32553
32838
|
function ResponseHandler(_a) {
|
|
32554
|
-
var _b = _a === void 0 ? {} : _a, transformMetadata = _b.transformMetadata, log = _b.log, observer = _b.observer;
|
|
32839
|
+
var _b = _a === void 0 ? {} : _a, transformMetadata = _b.transformMetadata, enrichErrorMetadata = _b.enrichErrorMetadata, log = _b.log, observer = _b.observer;
|
|
32555
32840
|
this._pendingObservers = [];
|
|
32556
32841
|
this._log = log;
|
|
32557
32842
|
this._transformMetadata = transformMetadata || NO_OP_IDENTITY;
|
|
32843
|
+
this._enrichErrorMetadata = enrichErrorMetadata || NO_OP_IDENTITY;
|
|
32558
32844
|
this._observer = Object.assign({
|
|
32559
32845
|
onObserversCountChange: NO_OP,
|
|
32560
32846
|
onError: NO_OP,
|
|
@@ -32595,9 +32881,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
32595
32881
|
this._log.debug("S: FAILURE ".concat(neo4j_driver_core_1$a.json.stringify(msg)));
|
|
32596
32882
|
}
|
|
32597
32883
|
try {
|
|
32598
|
-
|
|
32599
|
-
var error = (0, neo4j_driver_core_1$a.newError)(payload.message, standardizedCode);
|
|
32600
|
-
this._currentFailure = this._observer.onErrorApplyTransformation(error);
|
|
32884
|
+
this._currentFailure = this._handleErrorPayload(this._enrichErrorMetadata(payload));
|
|
32601
32885
|
this._currentObserver.onError(this._currentFailure);
|
|
32602
32886
|
}
|
|
32603
32887
|
finally {
|
|
@@ -32672,6 +32956,17 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
32672
32956
|
ResponseHandler.prototype._resetFailure = function () {
|
|
32673
32957
|
this._currentFailure = null;
|
|
32674
32958
|
};
|
|
32959
|
+
ResponseHandler.prototype._handleErrorPayload = function (payload) {
|
|
32960
|
+
var standardizedCode = _standardizeCode(payload.code);
|
|
32961
|
+
var cause = payload.cause != null ? this._handleErrorCause(payload.cause) : undefined;
|
|
32962
|
+
var error = (0, neo4j_driver_core_1$a.newError)(payload.message, standardizedCode, cause, payload.gql_status, payload.description, payload.diagnostic_record);
|
|
32963
|
+
return this._observer.onErrorApplyTransformation(error);
|
|
32964
|
+
};
|
|
32965
|
+
ResponseHandler.prototype._handleErrorCause = function (payload) {
|
|
32966
|
+
var cause = payload.cause != null ? this._handleErrorCause(payload.cause) : undefined;
|
|
32967
|
+
var error = (0, neo4j_driver_core_1$a.newGQLError)(payload.message, cause, payload.gql_status, payload.description, payload.diagnostic_record);
|
|
32968
|
+
return this._observer.onErrorApplyTransformation(error);
|
|
32969
|
+
};
|
|
32675
32970
|
return ResponseHandler;
|
|
32676
32971
|
}());
|
|
32677
32972
|
responseHandler.default = ResponseHandler;
|
|
@@ -32730,6 +33025,7 @@ var bolt_protocol_v5x3_1 = __importDefault$7(boltProtocolV5x3);
|
|
|
32730
33025
|
var bolt_protocol_v5x4_1 = __importDefault$7(boltProtocolV5x4);
|
|
32731
33026
|
var bolt_protocol_v5x5_1 = __importDefault$7(boltProtocolV5x5);
|
|
32732
33027
|
var bolt_protocol_v5x6_1 = __importDefault$7(boltProtocolV5x6);
|
|
33028
|
+
var bolt_protocol_v5x7_1 = __importDefault$7(boltProtocolV5x7);
|
|
32733
33029
|
var response_handler_1 = __importDefault$7(responseHandler);
|
|
32734
33030
|
/**
|
|
32735
33031
|
* Creates a protocol with a given version
|
|
@@ -32751,6 +33047,7 @@ function create(_a) {
|
|
|
32751
33047
|
var createResponseHandler = function (protocol) {
|
|
32752
33048
|
var responseHandler = new response_handler_1.default({
|
|
32753
33049
|
transformMetadata: protocol.transformMetadata.bind(protocol),
|
|
33050
|
+
enrichErrorMetadata: protocol.enrichErrorMetadata.bind(protocol),
|
|
32754
33051
|
log: log,
|
|
32755
33052
|
observer: observer
|
|
32756
33053
|
});
|
|
@@ -32804,6 +33101,8 @@ function createProtocol(version, server, chunker, packingConfig, serversideRouti
|
|
|
32804
33101
|
return new bolt_protocol_v5x5_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32805
33102
|
case 5.6:
|
|
32806
33103
|
return new bolt_protocol_v5x6_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
33104
|
+
case 5.7:
|
|
33105
|
+
return new bolt_protocol_v5x7_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32807
33106
|
default:
|
|
32808
33107
|
throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
|
|
32809
33108
|
}
|
|
@@ -33542,7 +33841,7 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
33542
33841
|
reject(error);
|
|
33543
33842
|
}
|
|
33544
33843
|
else {
|
|
33545
|
-
var neo4jError = _this._handleProtocolError(
|
|
33844
|
+
var neo4jError = _this._handleProtocolError("Received FAILURE as a response for RESET: ".concat(error));
|
|
33546
33845
|
reject(neo4jError);
|
|
33547
33846
|
}
|
|
33548
33847
|
},
|