neo4j-driver 5.24.1 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/neo4j-web.esm.js +1145 -845
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +1145 -845
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
|
@@ -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 () {
|
|
@@ -5774,10 +5948,10 @@ var Pool$1 = /** @class */ (function () {
|
|
|
5774
5948
|
}
|
|
5775
5949
|
key = address.asKey();
|
|
5776
5950
|
pool = this._getOrInitializePoolFor(key);
|
|
5777
|
-
if (!!requireNew) return [3 /*break*/,
|
|
5951
|
+
if (!!requireNew) return [3 /*break*/, 10];
|
|
5778
5952
|
_a.label = 1;
|
|
5779
5953
|
case 1:
|
|
5780
|
-
if (!(pool.length > 0)) return [3 /*break*/,
|
|
5954
|
+
if (!(pool.length > 0)) return [3 /*break*/, 10];
|
|
5781
5955
|
resource_1 = pool.pop();
|
|
5782
5956
|
if (resource_1 == null) {
|
|
5783
5957
|
return [3 /*break*/, 1];
|
|
@@ -5789,35 +5963,36 @@ var Pool$1 = /** @class */ (function () {
|
|
|
5789
5963
|
valid = false;
|
|
5790
5964
|
_a.label = 2;
|
|
5791
5965
|
case 2:
|
|
5792
|
-
_a.trys.push([2, 4, ,
|
|
5966
|
+
_a.trys.push([2, 4, , 6]);
|
|
5793
5967
|
return [4 /*yield*/, this._validateOnAcquire(acquisitionContext, resource_1)];
|
|
5794
5968
|
case 3:
|
|
5795
5969
|
valid = _a.sent();
|
|
5796
|
-
return [3 /*break*/,
|
|
5970
|
+
return [3 /*break*/, 6];
|
|
5797
5971
|
case 4:
|
|
5798
5972
|
e_1 = _a.sent();
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
}
|
|
5803
|
-
return [3 /*break*/, 5];
|
|
5973
|
+
resourceReleased(key, this._activeResourceCounts);
|
|
5974
|
+
pool.removeInUse(resource_1);
|
|
5975
|
+
return [4 /*yield*/, this._destroy(resource_1)];
|
|
5804
5976
|
case 5:
|
|
5805
|
-
|
|
5977
|
+
_a.sent();
|
|
5978
|
+
throw e_1;
|
|
5979
|
+
case 6:
|
|
5980
|
+
if (!valid) return [3 /*break*/, 7];
|
|
5806
5981
|
// idle resource is valid and can be acquired
|
|
5807
5982
|
if (this._log.isDebugEnabled()) {
|
|
5808
5983
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
5809
5984
|
this._log.debug("".concat(resource_1, " acquired from the pool ").concat(key));
|
|
5810
5985
|
}
|
|
5811
5986
|
return [2 /*return*/, { resource: resource_1, pool: pool }];
|
|
5812
|
-
case
|
|
5987
|
+
case 7:
|
|
5813
5988
|
resourceReleased(key, this._activeResourceCounts);
|
|
5814
5989
|
pool.removeInUse(resource_1);
|
|
5815
5990
|
return [4 /*yield*/, this._destroy(resource_1)];
|
|
5816
|
-
case
|
|
5991
|
+
case 8:
|
|
5817
5992
|
_a.sent();
|
|
5818
|
-
_a.label =
|
|
5819
|
-
case
|
|
5820
|
-
case
|
|
5993
|
+
_a.label = 9;
|
|
5994
|
+
case 9: return [3 /*break*/, 1];
|
|
5995
|
+
case 10:
|
|
5821
5996
|
// Ensure requested max pool size
|
|
5822
5997
|
if (this._maxSize > 0) {
|
|
5823
5998
|
numConnections = this.activeResourceCount(address) + this._pendingCreates[key];
|
|
@@ -5829,28 +6004,28 @@ var Pool$1 = /** @class */ (function () {
|
|
|
5829
6004
|
// there exist no idle valid resources, create a new one for acquisition
|
|
5830
6005
|
// Keep track of how many pending creates there are to avoid making too many connections.
|
|
5831
6006
|
this._pendingCreates[key] = this._pendingCreates[key] + 1;
|
|
5832
|
-
_a.label =
|
|
5833
|
-
case
|
|
5834
|
-
_a.trys.push([
|
|
6007
|
+
_a.label = 11;
|
|
6008
|
+
case 11:
|
|
6009
|
+
_a.trys.push([11, , 15, 16]);
|
|
5835
6010
|
numConnections = this.activeResourceCount(address) + pool.length;
|
|
5836
|
-
if (!(numConnections >= this._maxSize && requireNew)) return [3 /*break*/,
|
|
6011
|
+
if (!(numConnections >= this._maxSize && requireNew)) return [3 /*break*/, 13];
|
|
5837
6012
|
resource_2 = pool.pop();
|
|
5838
|
-
if (!(resource_2 != null)) return [3 /*break*/,
|
|
6013
|
+
if (!(resource_2 != null)) return [3 /*break*/, 13];
|
|
5839
6014
|
if (this._removeIdleObserver != null) {
|
|
5840
6015
|
this._removeIdleObserver(resource_2);
|
|
5841
6016
|
}
|
|
5842
6017
|
pool.removeInUse(resource_2);
|
|
5843
6018
|
return [4 /*yield*/, this._destroy(resource_2)];
|
|
5844
|
-
case
|
|
6019
|
+
case 12:
|
|
5845
6020
|
_a.sent();
|
|
5846
|
-
_a.label =
|
|
5847
|
-
case
|
|
6021
|
+
_a.label = 13;
|
|
6022
|
+
case 13: return [4 /*yield*/, this._create(acquisitionContext, address, function (address, resource) { return __awaiter$i(_this, void 0, void 0, function () { return __generator$k(this, function (_a) {
|
|
5848
6023
|
switch (_a.label) {
|
|
5849
6024
|
case 0: return [4 /*yield*/, this._release(address, resource, pool)];
|
|
5850
6025
|
case 1: return [2 /*return*/, _a.sent()];
|
|
5851
6026
|
}
|
|
5852
6027
|
}); }); })];
|
|
5853
|
-
case
|
|
6028
|
+
case 14:
|
|
5854
6029
|
// Invoke callback that creates actual connection
|
|
5855
6030
|
resource = _a.sent();
|
|
5856
6031
|
pool.pushInUse(resource);
|
|
@@ -5859,11 +6034,11 @@ var Pool$1 = /** @class */ (function () {
|
|
|
5859
6034
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
5860
6035
|
this._log.debug("".concat(resource, " created for the pool ").concat(key));
|
|
5861
6036
|
}
|
|
5862
|
-
return [3 /*break*/,
|
|
5863
|
-
case
|
|
6037
|
+
return [3 /*break*/, 16];
|
|
6038
|
+
case 15:
|
|
5864
6039
|
this._pendingCreates[key] = this._pendingCreates[key] - 1;
|
|
5865
6040
|
return [7 /*endfinally*/];
|
|
5866
|
-
case
|
|
6041
|
+
case 16: return [2 /*return*/, { resource: resource, pool: pool }];
|
|
5867
6042
|
}
|
|
5868
6043
|
});
|
|
5869
6044
|
});
|
|
@@ -6284,8 +6459,8 @@ internal.pool = pool;
|
|
|
6284
6459
|
|
|
6285
6460
|
var notification = {};
|
|
6286
6461
|
|
|
6287
|
-
var __assign$
|
|
6288
|
-
__assign$
|
|
6462
|
+
var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
6463
|
+
__assign$r = Object.assign || function(t) {
|
|
6289
6464
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6290
6465
|
s = arguments[i];
|
|
6291
6466
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -6293,7 +6468,7 @@ var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
6293
6468
|
}
|
|
6294
6469
|
return t;
|
|
6295
6470
|
};
|
|
6296
|
-
return __assign$
|
|
6471
|
+
return __assign$r.apply(this, arguments);
|
|
6297
6472
|
};
|
|
6298
6473
|
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6299
6474
|
if (k2 === undefined) k2 = k;
|
|
@@ -6361,8 +6536,9 @@ notification.buildNotificationsFromMetadata = notification.buildGqlStatusObjectF
|
|
|
6361
6536
|
* See the License for the specific language governing permissions and
|
|
6362
6537
|
* limitations under the License.
|
|
6363
6538
|
*/
|
|
6364
|
-
var json$1 = __importStar$6(json$
|
|
6539
|
+
var json$1 = __importStar$6(json$3);
|
|
6365
6540
|
var internal_1$3 = internal;
|
|
6541
|
+
var gql_constants_1 = gqlConstants;
|
|
6366
6542
|
var unknownGqlStatus = {
|
|
6367
6543
|
WARNING: {
|
|
6368
6544
|
gql_status: '01N42',
|
|
@@ -6378,7 +6554,7 @@ var unknownGqlStatus = {
|
|
|
6378
6554
|
},
|
|
6379
6555
|
ERROR: {
|
|
6380
6556
|
gql_status: '50N42',
|
|
6381
|
-
status_description: 'error: general processing exception -
|
|
6557
|
+
status_description: 'error: general processing exception - unexpected error'
|
|
6382
6558
|
}
|
|
6383
6559
|
};
|
|
6384
6560
|
/**
|
|
@@ -6715,7 +6891,7 @@ function polyfillGqlStatusObject(notification) {
|
|
|
6715
6891
|
status_description: (_a = notification.description) !== null && _a !== void 0 ? _a : defaultStatus.status_description,
|
|
6716
6892
|
neo4j_code: notification.code,
|
|
6717
6893
|
title: notification.title,
|
|
6718
|
-
diagnostic_record: __assign$
|
|
6894
|
+
diagnostic_record: __assign$r({}, gql_constants_1.rawPolyfilledDiagnosticRecord)
|
|
6719
6895
|
};
|
|
6720
6896
|
if (notification.severity != null) {
|
|
6721
6897
|
polyfilledRawObj.diagnostic_record._severity = notification.severity;
|
|
@@ -6729,12 +6905,6 @@ function polyfillGqlStatusObject(notification) {
|
|
|
6729
6905
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6730
6906
|
}
|
|
6731
6907
|
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6732
|
-
var rawPolyfilledDiagnosticRecord = {
|
|
6733
|
-
OPERATION: '',
|
|
6734
|
-
OPERATION_CODE: '0',
|
|
6735
|
-
CURRENT_SCHEMA: '/'
|
|
6736
|
-
};
|
|
6737
|
-
Object.freeze(rawPolyfilledDiagnosticRecord);
|
|
6738
6908
|
/**
|
|
6739
6909
|
* This objects are used for polyfilling the first status on the status list
|
|
6740
6910
|
*
|
|
@@ -6744,18 +6914,18 @@ var staticGqlStatusObjects = {
|
|
|
6744
6914
|
SUCCESS: new GqlStatusObject({
|
|
6745
6915
|
gql_status: '00000',
|
|
6746
6916
|
status_description: 'note: successful completion',
|
|
6747
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6917
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6748
6918
|
}),
|
|
6749
6919
|
NO_DATA: new GqlStatusObject({
|
|
6750
6920
|
gql_status: '02000',
|
|
6751
6921
|
status_description: 'note: no data',
|
|
6752
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6922
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6753
6923
|
}),
|
|
6754
|
-
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 })),
|
|
6755
6925
|
OMITTED_RESULT: new GqlStatusObject({
|
|
6756
6926
|
gql_status: '00001',
|
|
6757
6927
|
status_description: 'note: successful completion - omitted result',
|
|
6758
|
-
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
6928
|
+
diagnostic_record: gql_constants_1.rawPolyfilledDiagnosticRecord
|
|
6759
6929
|
})
|
|
6760
6930
|
};
|
|
6761
6931
|
Object.freeze(staticGqlStatusObjects);
|
|
@@ -7423,13 +7593,13 @@ var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
7423
7593
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7424
7594
|
}
|
|
7425
7595
|
};
|
|
7426
|
-
var __importDefault$
|
|
7596
|
+
var __importDefault$W = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7427
7597
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7428
7598
|
};
|
|
7429
7599
|
var _a$g;
|
|
7430
7600
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
7431
7601
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
7432
|
-
var result_summary_1 = __importDefault$
|
|
7602
|
+
var result_summary_1 = __importDefault$W(resultSummary);
|
|
7433
7603
|
var internal_1$1 = internal;
|
|
7434
7604
|
var error_1$4 = error;
|
|
7435
7605
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -8373,7 +8543,7 @@ var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
8373
8543
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8374
8544
|
}
|
|
8375
8545
|
};
|
|
8376
|
-
var __importDefault$
|
|
8546
|
+
var __importDefault$V = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8377
8547
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8378
8548
|
};
|
|
8379
8549
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -8384,7 +8554,7 @@ var bookmarks_1$2 = bookmarks$1;
|
|
|
8384
8554
|
var tx_config_1$1 = txConfig$1;
|
|
8385
8555
|
var observers_1$1 = observers;
|
|
8386
8556
|
var error_1$3 = error;
|
|
8387
|
-
var result_1$1 = __importDefault$
|
|
8557
|
+
var result_1$1 = __importDefault$V(result);
|
|
8388
8558
|
/**
|
|
8389
8559
|
* Represents a transaction in the Neo4j database.
|
|
8390
8560
|
*
|
|
@@ -8932,7 +9102,7 @@ var transactionPromise = {};
|
|
|
8932
9102
|
* See the License for the specific language governing permissions and
|
|
8933
9103
|
* limitations under the License.
|
|
8934
9104
|
*/
|
|
8935
|
-
var __extends$
|
|
9105
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
8936
9106
|
var extendStatics = function (d, b) {
|
|
8937
9107
|
extendStatics = Object.setPrototypeOf ||
|
|
8938
9108
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8947,8 +9117,8 @@ var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
8947
9117
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8948
9118
|
};
|
|
8949
9119
|
})();
|
|
8950
|
-
var __assign$
|
|
8951
|
-
__assign$
|
|
9120
|
+
var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
9121
|
+
__assign$q = Object.assign || function(t) {
|
|
8952
9122
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8953
9123
|
s = arguments[i];
|
|
8954
9124
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -8956,15 +9126,15 @@ var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
8956
9126
|
}
|
|
8957
9127
|
return t;
|
|
8958
9128
|
};
|
|
8959
|
-
return __assign$
|
|
9129
|
+
return __assign$q.apply(this, arguments);
|
|
8960
9130
|
};
|
|
8961
|
-
var __importDefault$
|
|
9131
|
+
var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8962
9132
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8963
9133
|
};
|
|
8964
9134
|
var _a$f;
|
|
8965
9135
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
8966
9136
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
8967
|
-
var transaction_1 = __importDefault$
|
|
9137
|
+
var transaction_1 = __importDefault$U(transaction);
|
|
8968
9138
|
/**
|
|
8969
9139
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
8970
9140
|
*
|
|
@@ -8976,7 +9146,7 @@ var transaction_1 = __importDefault$T(transaction);
|
|
|
8976
9146
|
* @access public
|
|
8977
9147
|
*/
|
|
8978
9148
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
8979
|
-
__extends$
|
|
9149
|
+
__extends$O(TransactionPromise, _super);
|
|
8980
9150
|
/**
|
|
8981
9151
|
* @constructor
|
|
8982
9152
|
* @param {object} args
|
|
@@ -9057,7 +9227,7 @@ var TransactionPromise = /** @class */ (function (_super) {
|
|
|
9057
9227
|
* @access private
|
|
9058
9228
|
*/
|
|
9059
9229
|
TransactionPromise.prototype._toTransaction = function () {
|
|
9060
|
-
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) });
|
|
9061
9231
|
};
|
|
9062
9232
|
/**
|
|
9063
9233
|
* @access private
|
|
@@ -9172,7 +9342,7 @@ var __spreadArray$l = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
9172
9342
|
}
|
|
9173
9343
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9174
9344
|
};
|
|
9175
|
-
var __importDefault$
|
|
9345
|
+
var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9176
9346
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9177
9347
|
};
|
|
9178
9348
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -9181,13 +9351,13 @@ var observers_1 = observers;
|
|
|
9181
9351
|
var util_1$1 = util$4;
|
|
9182
9352
|
var constants_1$2 = constants$1;
|
|
9183
9353
|
var error_1$2 = error;
|
|
9184
|
-
var result_1 = __importDefault$
|
|
9354
|
+
var result_1 = __importDefault$T(result);
|
|
9185
9355
|
var connection_holder_1 = connectionHolder$1;
|
|
9186
9356
|
var transaction_executor_1 = transactionExecutor$1;
|
|
9187
9357
|
var bookmarks_1$1 = bookmarks$1;
|
|
9188
9358
|
var tx_config_1 = txConfig$1;
|
|
9189
|
-
var transaction_promise_1 = __importDefault$
|
|
9190
|
-
var transaction_managed_1 = __importDefault$
|
|
9359
|
+
var transaction_promise_1 = __importDefault$T(transactionPromise);
|
|
9360
|
+
var transaction_managed_1 = __importDefault$T(transactionManaged);
|
|
9191
9361
|
/**
|
|
9192
9362
|
* A Session instance is used for handling the connection and
|
|
9193
9363
|
* sending queries through the connection.
|
|
@@ -9999,11 +10169,11 @@ var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
9999
10169
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10000
10170
|
}
|
|
10001
10171
|
};
|
|
10002
|
-
var __importDefault$
|
|
10172
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10003
10173
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10004
10174
|
};
|
|
10005
10175
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
10006
|
-
var result_eager_1 = __importDefault$
|
|
10176
|
+
var result_eager_1 = __importDefault$S(resultEager);
|
|
10007
10177
|
var error_1$1 = error;
|
|
10008
10178
|
/**
|
|
10009
10179
|
* Protocol for transforming {@link Result}.
|
|
@@ -10512,20 +10682,20 @@ var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
10512
10682
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10513
10683
|
}
|
|
10514
10684
|
};
|
|
10515
|
-
var __importDefault$
|
|
10685
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10516
10686
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10517
10687
|
};
|
|
10518
10688
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
10519
10689
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
10520
10690
|
var bookmarks_1 = bookmarks$1;
|
|
10521
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
10691
|
+
var configured_custom_resolver_1 = __importDefault$R(configuredCustomResolver);
|
|
10522
10692
|
var constants_1 = constants$1;
|
|
10523
10693
|
var logger_1 = logger$1;
|
|
10524
|
-
var session_1 = __importDefault$
|
|
10694
|
+
var session_1 = __importDefault$R(session);
|
|
10525
10695
|
var util_1 = util$4;
|
|
10526
10696
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
10527
|
-
var result_transformers_1 = __importDefault$
|
|
10528
|
-
var query_executor_1 = __importDefault$
|
|
10697
|
+
var result_transformers_1 = __importDefault$R(resultTransformers$1);
|
|
10698
|
+
var query_executor_1 = __importDefault$R(queryExecutor);
|
|
10529
10699
|
var error_1 = error;
|
|
10530
10700
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
10531
10701
|
/**
|
|
@@ -11510,12 +11680,12 @@ var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
11510
11680
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
11511
11681
|
}
|
|
11512
11682
|
};
|
|
11513
|
-
var __importDefault$
|
|
11683
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
11514
11684
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11515
11685
|
};
|
|
11516
11686
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11517
11687
|
authTokenManager.staticAuthTokenManager = authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
11518
|
-
var auth_1 = __importDefault$
|
|
11688
|
+
var auth_1 = __importDefault$Q(auth$1);
|
|
11519
11689
|
var internal_1 = internal;
|
|
11520
11690
|
/**
|
|
11521
11691
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11779,7 +11949,7 @@ var types$1 = {};
|
|
|
11779
11949
|
* See the License for the specific language governing permissions and
|
|
11780
11950
|
* limitations under the License.
|
|
11781
11951
|
*/
|
|
11782
|
-
var __extends$
|
|
11952
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11783
11953
|
var extendStatics = function (d, b) {
|
|
11784
11954
|
extendStatics = Object.setPrototypeOf ||
|
|
11785
11955
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12062,7 +12232,7 @@ var Config = /** @class */ (function () {
|
|
|
12062
12232
|
}());
|
|
12063
12233
|
types$1.Config = Config;
|
|
12064
12234
|
var InternalConfig = /** @class */ (function (_super) {
|
|
12065
|
-
__extends$
|
|
12235
|
+
__extends$N(InternalConfig, _super);
|
|
12066
12236
|
function InternalConfig() {
|
|
12067
12237
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12068
12238
|
}
|
|
@@ -12088,7 +12258,7 @@ var clientCertificate = {};
|
|
|
12088
12258
|
* See the License for the specific language governing permissions and
|
|
12089
12259
|
* limitations under the License.
|
|
12090
12260
|
*/
|
|
12091
|
-
var __extends$
|
|
12261
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12092
12262
|
var extendStatics = function (d, b) {
|
|
12093
12263
|
extendStatics = Object.setPrototypeOf ||
|
|
12094
12264
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12103,8 +12273,8 @@ var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
12103
12273
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12104
12274
|
};
|
|
12105
12275
|
})();
|
|
12106
|
-
var __assign$
|
|
12107
|
-
__assign$
|
|
12276
|
+
var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
12277
|
+
__assign$p = Object.assign || function(t) {
|
|
12108
12278
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12109
12279
|
s = arguments[i];
|
|
12110
12280
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -12112,7 +12282,7 @@ var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
12112
12282
|
}
|
|
12113
12283
|
return t;
|
|
12114
12284
|
};
|
|
12115
|
-
return __assign$
|
|
12285
|
+
return __assign$p.apply(this, arguments);
|
|
12116
12286
|
};
|
|
12117
12287
|
var __createBinding$5 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12118
12288
|
if (k2 === undefined) k2 = k;
|
|
@@ -12139,7 +12309,7 @@ var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
12139
12309
|
};
|
|
12140
12310
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12141
12311
|
clientCertificate.resolveCertificateProvider = clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12142
|
-
var json = __importStar$5(json$
|
|
12312
|
+
var json = __importStar$5(json$3);
|
|
12143
12313
|
/**
|
|
12144
12314
|
* Represents KeyFile represented as file.
|
|
12145
12315
|
*
|
|
@@ -12238,7 +12408,7 @@ clientCertificate.ClientCertificateProvider = ClientCertificateProvider;
|
|
|
12238
12408
|
* @since 5.19
|
|
12239
12409
|
*/
|
|
12240
12410
|
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
12241
|
-
__extends$
|
|
12411
|
+
__extends$M(RotatingClientCertificateProvider, _super);
|
|
12242
12412
|
function RotatingClientCertificateProvider() {
|
|
12243
12413
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12244
12414
|
}
|
|
@@ -12278,7 +12448,7 @@ var ClientCertificateProviders = /** @class */ (function () {
|
|
|
12278
12448
|
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
12279
12449
|
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
12280
12450
|
}
|
|
12281
|
-
var certificate = __assign$
|
|
12451
|
+
var certificate = __assign$p({}, initialCertificate);
|
|
12282
12452
|
return new InternalRotatingClientCertificateProvider(certificate);
|
|
12283
12453
|
};
|
|
12284
12454
|
return ClientCertificateProviders;
|
|
@@ -12311,7 +12481,7 @@ function resolveCertificateProvider(input) {
|
|
|
12311
12481
|
return input;
|
|
12312
12482
|
}
|
|
12313
12483
|
if (isClientClientCertificate(input)) {
|
|
12314
|
-
var certificate_1 = __assign$
|
|
12484
|
+
var certificate_1 = __assign$p({}, input);
|
|
12315
12485
|
return {
|
|
12316
12486
|
getClientCertificate: function () { return certificate_1; },
|
|
12317
12487
|
hasUpdate: function () { return false; }
|
|
@@ -12433,7 +12603,7 @@ var InternalRotatingClientCertificateProvider = /** @class */ (function () {
|
|
|
12433
12603
|
if (!isClientClientCertificate(certificate)) {
|
|
12434
12604
|
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
12435
12605
|
}
|
|
12436
|
-
this._certificate = __assign$
|
|
12606
|
+
this._certificate = __assign$p({}, certificate);
|
|
12437
12607
|
this._updated = true;
|
|
12438
12608
|
};
|
|
12439
12609
|
return InternalRotatingClientCertificateProvider;
|
|
@@ -12483,11 +12653,13 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
12483
12653
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12484
12654
|
};
|
|
12485
12655
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12486
|
-
exports.
|
|
12487
|
-
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;
|
|
12488
12658
|
var error_1 = error;
|
|
12489
12659
|
Object.defineProperty(exports, "newError", { enumerable: true, get: function () { return error_1.newError; } });
|
|
12490
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; } });
|
|
12491
12663
|
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return error_1.isRetriableError; } });
|
|
12492
12664
|
var integer_1 = __importStar(integer);
|
|
12493
12665
|
exports.Integer = integer_1.default;
|
|
@@ -12574,7 +12746,7 @@ var driver_2 = driver;
|
|
|
12574
12746
|
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return driver_2.routing; } });
|
|
12575
12747
|
var types = __importStar(types$1);
|
|
12576
12748
|
exports.types = types;
|
|
12577
|
-
var json = __importStar(json$
|
|
12749
|
+
var json = __importStar(json$3);
|
|
12578
12750
|
exports.json = json;
|
|
12579
12751
|
var result_transformers_1 = __importDefault(resultTransformers$1);
|
|
12580
12752
|
exports.resultTransformers = result_transformers_1.default;
|
|
@@ -12599,6 +12771,8 @@ var forExport = {
|
|
|
12599
12771
|
authTokenManagers: auth_token_manager_1.authTokenManagers,
|
|
12600
12772
|
newError: error_1.newError,
|
|
12601
12773
|
Neo4jError: error_1.Neo4jError,
|
|
12774
|
+
newGQLError: error_1.newGQLError,
|
|
12775
|
+
GQLError: error_1.GQLError,
|
|
12602
12776
|
isRetriableError: error_1.isRetriableError,
|
|
12603
12777
|
error: error$1,
|
|
12604
12778
|
Integer: integer_1.default,
|
|
@@ -13431,7 +13605,7 @@ lift.operate = operate;
|
|
|
13431
13605
|
|
|
13432
13606
|
var OperatorSubscriber$1 = {};
|
|
13433
13607
|
|
|
13434
|
-
var __extends$
|
|
13608
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13435
13609
|
var extendStatics = function (d, b) {
|
|
13436
13610
|
extendStatics = Object.setPrototypeOf ||
|
|
13437
13611
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13454,7 +13628,7 @@ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFi
|
|
|
13454
13628
|
}
|
|
13455
13629
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
13456
13630
|
var OperatorSubscriber = (function (_super) {
|
|
13457
|
-
__extends$
|
|
13631
|
+
__extends$L(OperatorSubscriber, _super);
|
|
13458
13632
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
13459
13633
|
var _this = _super.call(this, destination) || this;
|
|
13460
13634
|
_this.onFinalize = onFinalize;
|
|
@@ -13538,7 +13712,7 @@ function refCount() {
|
|
|
13538
13712
|
}
|
|
13539
13713
|
refCount$1.refCount = refCount;
|
|
13540
13714
|
|
|
13541
|
-
var __extends$
|
|
13715
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13542
13716
|
var extendStatics = function (d, b) {
|
|
13543
13717
|
extendStatics = Object.setPrototypeOf ||
|
|
13544
13718
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13561,7 +13735,7 @@ var refCount_1 = refCount$1;
|
|
|
13561
13735
|
var OperatorSubscriber_1$U = OperatorSubscriber$1;
|
|
13562
13736
|
var lift_1$13 = lift;
|
|
13563
13737
|
var ConnectableObservable = (function (_super) {
|
|
13564
|
-
__extends$
|
|
13738
|
+
__extends$K(ConnectableObservable, _super);
|
|
13565
13739
|
function ConnectableObservable(source, subjectFactory) {
|
|
13566
13740
|
var _this = _super.call(this) || this;
|
|
13567
13741
|
_this.source = source;
|
|
@@ -13748,7 +13922,7 @@ ObjectUnsubscribedError.ObjectUnsubscribedError = createErrorClass_1$4.createErr
|
|
|
13748
13922
|
};
|
|
13749
13923
|
});
|
|
13750
13924
|
|
|
13751
|
-
var __extends$
|
|
13925
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13752
13926
|
var extendStatics = function (d, b) {
|
|
13753
13927
|
extendStatics = Object.setPrototypeOf ||
|
|
13754
13928
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13782,7 +13956,7 @@ var ObjectUnsubscribedError_1 = ObjectUnsubscribedError;
|
|
|
13782
13956
|
var arrRemove_1$6 = arrRemove$1;
|
|
13783
13957
|
var errorContext_1 = errorContext$1;
|
|
13784
13958
|
var Subject = (function (_super) {
|
|
13785
|
-
__extends$
|
|
13959
|
+
__extends$J(Subject, _super);
|
|
13786
13960
|
function Subject() {
|
|
13787
13961
|
var _this = _super.call(this) || this;
|
|
13788
13962
|
_this.closed = false;
|
|
@@ -13910,7 +14084,7 @@ var Subject = (function (_super) {
|
|
|
13910
14084
|
}(Observable_1$l.Observable));
|
|
13911
14085
|
Subject$1.Subject = Subject;
|
|
13912
14086
|
var AnonymousSubject = (function (_super) {
|
|
13913
|
-
__extends$
|
|
14087
|
+
__extends$J(AnonymousSubject, _super);
|
|
13914
14088
|
function AnonymousSubject(destination, source) {
|
|
13915
14089
|
var _this = _super.call(this) || this;
|
|
13916
14090
|
_this.destination = destination;
|
|
@@ -13939,7 +14113,7 @@ Subject$1.AnonymousSubject = AnonymousSubject;
|
|
|
13939
14113
|
|
|
13940
14114
|
var BehaviorSubject$1 = {};
|
|
13941
14115
|
|
|
13942
|
-
var __extends$
|
|
14116
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13943
14117
|
var extendStatics = function (d, b) {
|
|
13944
14118
|
extendStatics = Object.setPrototypeOf ||
|
|
13945
14119
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13958,7 +14132,7 @@ Object.defineProperty(BehaviorSubject$1, "__esModule", { value: true });
|
|
|
13958
14132
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
13959
14133
|
var Subject_1$e = Subject$1;
|
|
13960
14134
|
var BehaviorSubject = (function (_super) {
|
|
13961
|
-
__extends$
|
|
14135
|
+
__extends$I(BehaviorSubject, _super);
|
|
13962
14136
|
function BehaviorSubject(_value) {
|
|
13963
14137
|
var _this = _super.call(this) || this;
|
|
13964
14138
|
_this._value = _value;
|
|
@@ -14007,7 +14181,7 @@ exports.dateTimestampProvider = {
|
|
|
14007
14181
|
|
|
14008
14182
|
}(dateTimestampProvider));
|
|
14009
14183
|
|
|
14010
|
-
var __extends$
|
|
14184
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14011
14185
|
var extendStatics = function (d, b) {
|
|
14012
14186
|
extendStatics = Object.setPrototypeOf ||
|
|
14013
14187
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14027,7 +14201,7 @@ ReplaySubject$1.ReplaySubject = void 0;
|
|
|
14027
14201
|
var Subject_1$d = Subject$1;
|
|
14028
14202
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
14029
14203
|
var ReplaySubject = (function (_super) {
|
|
14030
|
-
__extends$
|
|
14204
|
+
__extends$H(ReplaySubject, _super);
|
|
14031
14205
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
14032
14206
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
14033
14207
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -14083,7 +14257,7 @@ ReplaySubject$1.ReplaySubject = ReplaySubject;
|
|
|
14083
14257
|
|
|
14084
14258
|
var AsyncSubject$1 = {};
|
|
14085
14259
|
|
|
14086
|
-
var __extends$
|
|
14260
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14087
14261
|
var extendStatics = function (d, b) {
|
|
14088
14262
|
extendStatics = Object.setPrototypeOf ||
|
|
14089
14263
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14102,7 +14276,7 @@ Object.defineProperty(AsyncSubject$1, "__esModule", { value: true });
|
|
|
14102
14276
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
14103
14277
|
var Subject_1$c = Subject$1;
|
|
14104
14278
|
var AsyncSubject = (function (_super) {
|
|
14105
|
-
__extends$
|
|
14279
|
+
__extends$G(AsyncSubject, _super);
|
|
14106
14280
|
function AsyncSubject() {
|
|
14107
14281
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14108
14282
|
_this._value = null;
|
|
@@ -14146,7 +14320,7 @@ var AsyncAction$1 = {};
|
|
|
14146
14320
|
|
|
14147
14321
|
var Action$1 = {};
|
|
14148
14322
|
|
|
14149
|
-
var __extends$
|
|
14323
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14150
14324
|
var extendStatics = function (d, b) {
|
|
14151
14325
|
extendStatics = Object.setPrototypeOf ||
|
|
14152
14326
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14165,7 +14339,7 @@ Object.defineProperty(Action$1, "__esModule", { value: true });
|
|
|
14165
14339
|
Action$1.Action = void 0;
|
|
14166
14340
|
var Subscription_1$5 = Subscription$1;
|
|
14167
14341
|
var Action = (function (_super) {
|
|
14168
|
-
__extends$
|
|
14342
|
+
__extends$F(Action, _super);
|
|
14169
14343
|
function Action(scheduler, work) {
|
|
14170
14344
|
return _super.call(this) || this;
|
|
14171
14345
|
}
|
|
@@ -14223,7 +14397,7 @@ exports.intervalProvider = {
|
|
|
14223
14397
|
|
|
14224
14398
|
}(intervalProvider));
|
|
14225
14399
|
|
|
14226
|
-
var __extends$
|
|
14400
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14227
14401
|
var extendStatics = function (d, b) {
|
|
14228
14402
|
extendStatics = Object.setPrototypeOf ||
|
|
14229
14403
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14244,7 +14418,7 @@ var Action_1 = Action$1;
|
|
|
14244
14418
|
var intervalProvider_1 = intervalProvider;
|
|
14245
14419
|
var arrRemove_1$5 = arrRemove$1;
|
|
14246
14420
|
var AsyncAction = (function (_super) {
|
|
14247
|
-
__extends$
|
|
14421
|
+
__extends$E(AsyncAction, _super);
|
|
14248
14422
|
function AsyncAction(scheduler, work) {
|
|
14249
14423
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14250
14424
|
_this.scheduler = scheduler;
|
|
@@ -14409,7 +14583,7 @@ exports.immediateProvider = {
|
|
|
14409
14583
|
|
|
14410
14584
|
}(immediateProvider));
|
|
14411
14585
|
|
|
14412
|
-
var __extends$
|
|
14586
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14413
14587
|
var extendStatics = function (d, b) {
|
|
14414
14588
|
extendStatics = Object.setPrototypeOf ||
|
|
14415
14589
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14429,7 +14603,7 @@ AsapAction$1.AsapAction = void 0;
|
|
|
14429
14603
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
14430
14604
|
var immediateProvider_1 = immediateProvider;
|
|
14431
14605
|
var AsapAction = (function (_super) {
|
|
14432
|
-
__extends$
|
|
14606
|
+
__extends$D(AsapAction, _super);
|
|
14433
14607
|
function AsapAction(scheduler, work) {
|
|
14434
14608
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14435
14609
|
_this.scheduler = scheduler;
|
|
@@ -14487,7 +14661,7 @@ var Scheduler = (function () {
|
|
|
14487
14661
|
}());
|
|
14488
14662
|
Scheduler$1.Scheduler = Scheduler;
|
|
14489
14663
|
|
|
14490
|
-
var __extends$
|
|
14664
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14491
14665
|
var extendStatics = function (d, b) {
|
|
14492
14666
|
extendStatics = Object.setPrototypeOf ||
|
|
14493
14667
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14506,7 +14680,7 @@ Object.defineProperty(AsyncScheduler$1, "__esModule", { value: true });
|
|
|
14506
14680
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
14507
14681
|
var Scheduler_1 = Scheduler$1;
|
|
14508
14682
|
var AsyncScheduler = (function (_super) {
|
|
14509
|
-
__extends$
|
|
14683
|
+
__extends$C(AsyncScheduler, _super);
|
|
14510
14684
|
function AsyncScheduler(SchedulerAction, now) {
|
|
14511
14685
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
14512
14686
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -14539,7 +14713,7 @@ var AsyncScheduler = (function (_super) {
|
|
|
14539
14713
|
}(Scheduler_1.Scheduler));
|
|
14540
14714
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
14541
14715
|
|
|
14542
|
-
var __extends$
|
|
14716
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14543
14717
|
var extendStatics = function (d, b) {
|
|
14544
14718
|
extendStatics = Object.setPrototypeOf ||
|
|
14545
14719
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14558,7 +14732,7 @@ Object.defineProperty(AsapScheduler$1, "__esModule", { value: true });
|
|
|
14558
14732
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
14559
14733
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
14560
14734
|
var AsapScheduler = (function (_super) {
|
|
14561
|
-
__extends$
|
|
14735
|
+
__extends$B(AsapScheduler, _super);
|
|
14562
14736
|
function AsapScheduler() {
|
|
14563
14737
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14564
14738
|
}
|
|
@@ -14612,7 +14786,7 @@ var queue = {};
|
|
|
14612
14786
|
|
|
14613
14787
|
var QueueAction$1 = {};
|
|
14614
14788
|
|
|
14615
|
-
var __extends$
|
|
14789
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14616
14790
|
var extendStatics = function (d, b) {
|
|
14617
14791
|
extendStatics = Object.setPrototypeOf ||
|
|
14618
14792
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14631,7 +14805,7 @@ Object.defineProperty(QueueAction$1, "__esModule", { value: true });
|
|
|
14631
14805
|
QueueAction$1.QueueAction = void 0;
|
|
14632
14806
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
14633
14807
|
var QueueAction = (function (_super) {
|
|
14634
|
-
__extends$
|
|
14808
|
+
__extends$A(QueueAction, _super);
|
|
14635
14809
|
function QueueAction(scheduler, work) {
|
|
14636
14810
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14637
14811
|
_this.scheduler = scheduler;
|
|
@@ -14665,7 +14839,7 @@ QueueAction$1.QueueAction = QueueAction;
|
|
|
14665
14839
|
|
|
14666
14840
|
var QueueScheduler$1 = {};
|
|
14667
14841
|
|
|
14668
|
-
var __extends$
|
|
14842
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14669
14843
|
var extendStatics = function (d, b) {
|
|
14670
14844
|
extendStatics = Object.setPrototypeOf ||
|
|
14671
14845
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14684,7 +14858,7 @@ Object.defineProperty(QueueScheduler$1, "__esModule", { value: true });
|
|
|
14684
14858
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
14685
14859
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
14686
14860
|
var QueueScheduler = (function (_super) {
|
|
14687
|
-
__extends$
|
|
14861
|
+
__extends$z(QueueScheduler, _super);
|
|
14688
14862
|
function QueueScheduler() {
|
|
14689
14863
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14690
14864
|
}
|
|
@@ -14706,7 +14880,7 @@ var animationFrame = {};
|
|
|
14706
14880
|
|
|
14707
14881
|
var AnimationFrameAction$1 = {};
|
|
14708
14882
|
|
|
14709
|
-
var __extends$
|
|
14883
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14710
14884
|
var extendStatics = function (d, b) {
|
|
14711
14885
|
extendStatics = Object.setPrototypeOf ||
|
|
14712
14886
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14726,7 +14900,7 @@ AnimationFrameAction$1.AnimationFrameAction = void 0;
|
|
|
14726
14900
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
14727
14901
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
14728
14902
|
var AnimationFrameAction = (function (_super) {
|
|
14729
|
-
__extends$
|
|
14903
|
+
__extends$y(AnimationFrameAction, _super);
|
|
14730
14904
|
function AnimationFrameAction(scheduler, work) {
|
|
14731
14905
|
var _this = _super.call(this, scheduler, work) || this;
|
|
14732
14906
|
_this.scheduler = scheduler;
|
|
@@ -14760,7 +14934,7 @@ AnimationFrameAction$1.AnimationFrameAction = AnimationFrameAction;
|
|
|
14760
14934
|
|
|
14761
14935
|
var AnimationFrameScheduler$1 = {};
|
|
14762
14936
|
|
|
14763
|
-
var __extends$
|
|
14937
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14764
14938
|
var extendStatics = function (d, b) {
|
|
14765
14939
|
extendStatics = Object.setPrototypeOf ||
|
|
14766
14940
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14779,7 +14953,7 @@ Object.defineProperty(AnimationFrameScheduler$1, "__esModule", { value: true });
|
|
|
14779
14953
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
14780
14954
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
14781
14955
|
var AnimationFrameScheduler = (function (_super) {
|
|
14782
|
-
__extends$
|
|
14956
|
+
__extends$x(AnimationFrameScheduler, _super);
|
|
14783
14957
|
function AnimationFrameScheduler() {
|
|
14784
14958
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14785
14959
|
}
|
|
@@ -14819,7 +14993,7 @@ exports.animationFrame = exports.animationFrameScheduler;
|
|
|
14819
14993
|
|
|
14820
14994
|
var VirtualTimeScheduler$1 = {};
|
|
14821
14995
|
|
|
14822
|
-
var __extends$
|
|
14996
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14823
14997
|
var extendStatics = function (d, b) {
|
|
14824
14998
|
extendStatics = Object.setPrototypeOf ||
|
|
14825
14999
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14840,7 +15014,7 @@ var AsyncAction_1 = AsyncAction$1;
|
|
|
14840
15014
|
var Subscription_1$4 = Subscription$1;
|
|
14841
15015
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
14842
15016
|
var VirtualTimeScheduler = (function (_super) {
|
|
14843
|
-
__extends$
|
|
15017
|
+
__extends$w(VirtualTimeScheduler, _super);
|
|
14844
15018
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
14845
15019
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
14846
15020
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -14873,7 +15047,7 @@ var VirtualTimeScheduler = (function (_super) {
|
|
|
14873
15047
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
14874
15048
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
14875
15049
|
var VirtualAction = (function (_super) {
|
|
14876
|
-
__extends$
|
|
15050
|
+
__extends$w(VirtualAction, _super);
|
|
14877
15051
|
function VirtualAction(scheduler, work, index) {
|
|
14878
15052
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
14879
15053
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -20695,7 +20869,7 @@ Object.defineProperty(resultRx, "__esModule", { value: true });
|
|
|
20695
20869
|
* limitations under the License.
|
|
20696
20870
|
*/
|
|
20697
20871
|
/* eslint-disable-next-line no-unused-vars */
|
|
20698
|
-
var neo4j_driver_core_1$
|
|
20872
|
+
var neo4j_driver_core_1$L = lib$1;
|
|
20699
20873
|
var rxjs_1$3 = cjs;
|
|
20700
20874
|
var operators_1$2 = operators;
|
|
20701
20875
|
var States = {
|
|
@@ -20829,7 +21003,7 @@ var RxResult = /** @class */ (function () {
|
|
|
20829
21003
|
});
|
|
20830
21004
|
}
|
|
20831
21005
|
else if (recordsObserver) {
|
|
20832
|
-
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.'));
|
|
20833
21007
|
}
|
|
20834
21008
|
return function () {
|
|
20835
21009
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -21020,7 +21194,7 @@ var StreamControl = /** @class */ (function () {
|
|
|
21020
21194
|
|
|
21021
21195
|
var transactionRx = {};
|
|
21022
21196
|
|
|
21023
|
-
var __importDefault$
|
|
21197
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21024
21198
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21025
21199
|
};
|
|
21026
21200
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -21041,9 +21215,9 @@ Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
|
21041
21215
|
* limitations under the License.
|
|
21042
21216
|
*/
|
|
21043
21217
|
var rxjs_1$2 = cjs;
|
|
21044
|
-
var result_rx_1$1 = __importDefault$
|
|
21218
|
+
var result_rx_1$1 = __importDefault$P(resultRx);
|
|
21045
21219
|
// eslint-disable-next-line no-unused-vars
|
|
21046
|
-
__importDefault$
|
|
21220
|
+
__importDefault$P(lib$1);
|
|
21047
21221
|
/**
|
|
21048
21222
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
21049
21223
|
*/
|
|
@@ -21142,7 +21316,7 @@ transactionRx.default = RxTransaction;
|
|
|
21142
21316
|
|
|
21143
21317
|
var transactionManagedRx = {};
|
|
21144
21318
|
|
|
21145
|
-
var __importDefault$
|
|
21319
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21146
21320
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21147
21321
|
};
|
|
21148
21322
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -21163,9 +21337,9 @@ Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
|
21163
21337
|
* limitations under the License.
|
|
21164
21338
|
*/
|
|
21165
21339
|
// eslint-disable-next-line no-unused-vars
|
|
21166
|
-
__importDefault$
|
|
21340
|
+
__importDefault$O(resultRx);
|
|
21167
21341
|
// eslint-disable-next-line no-unused-vars
|
|
21168
|
-
__importDefault$
|
|
21342
|
+
__importDefault$O(transactionRx);
|
|
21169
21343
|
/**
|
|
21170
21344
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
21171
21345
|
*
|
|
@@ -21223,13 +21397,13 @@ var retryLogicRx = {};
|
|
|
21223
21397
|
* limitations under the License.
|
|
21224
21398
|
*/
|
|
21225
21399
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
21226
|
-
var neo4j_driver_core_1$
|
|
21400
|
+
var neo4j_driver_core_1$K = lib$1;
|
|
21227
21401
|
// eslint-disable-next-line no-unused-vars
|
|
21228
21402
|
var rxjs_1$1 = cjs;
|
|
21229
21403
|
var operators_1$1 = operators;
|
|
21230
21404
|
// eslint-disable-next-line no-unused-vars
|
|
21231
|
-
neo4j_driver_core_1$
|
|
21232
|
-
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;
|
|
21233
21407
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
21234
21408
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
21235
21409
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -21260,13 +21434,13 @@ var RxRetryLogic = /** @class */ (function () {
|
|
|
21260
21434
|
var retryCount = 1;
|
|
21261
21435
|
var delayDuration = _this._initialDelay;
|
|
21262
21436
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
21263
|
-
if (!(0, neo4j_driver_core_1$
|
|
21437
|
+
if (!(0, neo4j_driver_core_1$K.isRetriableError)(err)) {
|
|
21264
21438
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
21265
21439
|
}
|
|
21266
21440
|
handledExceptions.push(err);
|
|
21267
21441
|
if (retryCount >= 2 &&
|
|
21268
21442
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
21269
|
-
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);
|
|
21270
21444
|
error_1.seenErrors = handledExceptions;
|
|
21271
21445
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
21272
21446
|
}
|
|
@@ -21294,7 +21468,7 @@ function valueOrDefault(value, defaultValue) {
|
|
|
21294
21468
|
return defaultValue;
|
|
21295
21469
|
}
|
|
21296
21470
|
|
|
21297
|
-
var __importDefault$
|
|
21471
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21298
21472
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21299
21473
|
};
|
|
21300
21474
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -21316,13 +21490,13 @@ Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
|
21316
21490
|
*/
|
|
21317
21491
|
var rxjs_1 = cjs;
|
|
21318
21492
|
var operators_1 = operators;
|
|
21319
|
-
var result_rx_1 = __importDefault$
|
|
21493
|
+
var result_rx_1 = __importDefault$N(resultRx);
|
|
21320
21494
|
// eslint-disable-next-line no-unused-vars
|
|
21321
|
-
var neo4j_driver_core_1$
|
|
21322
|
-
var transaction_rx_1 = __importDefault$
|
|
21323
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
21324
|
-
var retry_logic_rx_1 = __importDefault$
|
|
21325
|
-
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;
|
|
21326
21500
|
/**
|
|
21327
21501
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
21328
21502
|
*/
|
|
@@ -21560,7 +21734,7 @@ function _createRetryLogic(config) {
|
|
|
21560
21734
|
* See the License for the specific language governing permissions and
|
|
21561
21735
|
* limitations under the License.
|
|
21562
21736
|
*/
|
|
21563
|
-
var __extends$
|
|
21737
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21564
21738
|
var extendStatics = function (d, b) {
|
|
21565
21739
|
extendStatics = Object.setPrototypeOf ||
|
|
21566
21740
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21575,15 +21749,15 @@ var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
21575
21749
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21576
21750
|
};
|
|
21577
21751
|
})();
|
|
21578
|
-
var __importDefault$
|
|
21752
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21579
21753
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21580
21754
|
};
|
|
21581
21755
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
21582
21756
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
21583
|
-
var neo4j_driver_core_1$
|
|
21584
|
-
var session_rx_1 = __importDefault$
|
|
21585
|
-
var FETCH_ALL$6 = neo4j_driver_core_1$
|
|
21586
|
-
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;
|
|
21587
21761
|
driver$1.READ = READ$2;
|
|
21588
21762
|
driver$1.WRITE = WRITE$2;
|
|
21589
21763
|
/**
|
|
@@ -21597,7 +21771,7 @@ driver$1.WRITE = WRITE$2;
|
|
|
21597
21771
|
* @access public
|
|
21598
21772
|
*/
|
|
21599
21773
|
var Driver = /** @class */ (function (_super) {
|
|
21600
|
-
__extends$
|
|
21774
|
+
__extends$v(Driver, _super);
|
|
21601
21775
|
function Driver() {
|
|
21602
21776
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21603
21777
|
}
|
|
@@ -21636,7 +21810,7 @@ var Driver = /** @class */ (function (_super) {
|
|
|
21636
21810
|
});
|
|
21637
21811
|
};
|
|
21638
21812
|
return Driver;
|
|
21639
|
-
}(neo4j_driver_core_1$
|
|
21813
|
+
}(neo4j_driver_core_1$I.Driver));
|
|
21640
21814
|
driver$1.Driver = Driver;
|
|
21641
21815
|
/**
|
|
21642
21816
|
* @private
|
|
@@ -21682,7 +21856,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
21682
21856
|
// This is set up this way to keep the version in the code in
|
|
21683
21857
|
// sync with the npm package version, and to allow the build
|
|
21684
21858
|
// system to control version names at packaging time.
|
|
21685
|
-
version$1.default = '5.
|
|
21859
|
+
version$1.default = '5.26.0';
|
|
21686
21860
|
|
|
21687
21861
|
var lib = {};
|
|
21688
21862
|
|
|
@@ -21782,7 +21956,7 @@ var RoundRobinArrayIndex = /** @class */ (function () {
|
|
|
21782
21956
|
}());
|
|
21783
21957
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
21784
21958
|
|
|
21785
|
-
var __extends$
|
|
21959
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21786
21960
|
var extendStatics = function (d, b) {
|
|
21787
21961
|
extendStatics = Object.setPrototypeOf ||
|
|
21788
21962
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21797,7 +21971,7 @@ var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
21797
21971
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21798
21972
|
};
|
|
21799
21973
|
})();
|
|
21800
|
-
var __importDefault$
|
|
21974
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21801
21975
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21802
21976
|
};
|
|
21803
21977
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -21817,10 +21991,10 @@ Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value
|
|
|
21817
21991
|
* See the License for the specific language governing permissions and
|
|
21818
21992
|
* limitations under the License.
|
|
21819
21993
|
*/
|
|
21820
|
-
var round_robin_array_index_1 = __importDefault$
|
|
21821
|
-
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);
|
|
21822
21996
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
21823
|
-
__extends$
|
|
21997
|
+
__extends$u(LeastConnectedLoadBalancingStrategy, _super);
|
|
21824
21998
|
/**
|
|
21825
21999
|
* @constructor
|
|
21826
22000
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -21876,7 +22050,7 @@ var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
|
21876
22050
|
}(load_balancing_strategy_1$1.default));
|
|
21877
22051
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
21878
22052
|
|
|
21879
|
-
var __importDefault$
|
|
22053
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21880
22054
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21881
22055
|
};
|
|
21882
22056
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -21897,9 +22071,9 @@ loadBalancing.LeastConnectedLoadBalancingStrategy = loadBalancing.LoadBalancingS
|
|
|
21897
22071
|
* See the License for the specific language governing permissions and
|
|
21898
22072
|
* limitations under the License.
|
|
21899
22073
|
*/
|
|
21900
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
22074
|
+
var load_balancing_strategy_1 = __importDefault$K(loadBalancingStrategy);
|
|
21901
22075
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
21902
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
22076
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$K(leastConnectedLoadBalancingStrategy);
|
|
21903
22077
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
21904
22078
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
21905
22079
|
|
|
@@ -24284,7 +24458,7 @@ var baseBuf = {};
|
|
|
24284
24458
|
* See the License for the specific language governing permissions and
|
|
24285
24459
|
* limitations under the License.
|
|
24286
24460
|
*/
|
|
24287
|
-
var __extends$
|
|
24461
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24288
24462
|
var extendStatics = function (d, b) {
|
|
24289
24463
|
extendStatics = Object.setPrototypeOf ||
|
|
24290
24464
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24620,7 +24794,7 @@ baseBuf.default = BaseBuffer;
|
|
|
24620
24794
|
* @access private
|
|
24621
24795
|
*/
|
|
24622
24796
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
24623
|
-
__extends$
|
|
24797
|
+
__extends$t(SliceBuffer, _super);
|
|
24624
24798
|
function SliceBuffer(start, length, inner) {
|
|
24625
24799
|
var _this = _super.call(this, length) || this;
|
|
24626
24800
|
_this._start = start;
|
|
@@ -24664,12 +24838,12 @@ var SliceBuffer = /** @class */ (function (_super) {
|
|
|
24664
24838
|
* See the License for the specific language governing permissions and
|
|
24665
24839
|
* limitations under the License.
|
|
24666
24840
|
*/
|
|
24667
|
-
var __importDefault$
|
|
24841
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24668
24842
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24669
24843
|
};
|
|
24670
24844
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
24671
24845
|
buf.BaseBuffer = void 0;
|
|
24672
|
-
var base_buf_1$1 = __importDefault$
|
|
24846
|
+
var base_buf_1$1 = __importDefault$J(baseBuf);
|
|
24673
24847
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
24674
24848
|
buf.default = base_buf_1$1.default;
|
|
24675
24849
|
|
|
@@ -24689,7 +24863,7 @@ buf.default = base_buf_1$1.default;
|
|
|
24689
24863
|
* See the License for the specific language governing permissions and
|
|
24690
24864
|
* limitations under the License.
|
|
24691
24865
|
*/
|
|
24692
|
-
var __extends$
|
|
24866
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24693
24867
|
var extendStatics = function (d, b) {
|
|
24694
24868
|
extendStatics = Object.setPrototypeOf ||
|
|
24695
24869
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24704,15 +24878,15 @@ var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
24704
24878
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24705
24879
|
};
|
|
24706
24880
|
})();
|
|
24707
|
-
var __importDefault$
|
|
24881
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24708
24882
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24709
24883
|
};
|
|
24710
24884
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
24711
24885
|
channelBuf.alloc = void 0;
|
|
24712
|
-
var buffer_1$1 = __importDefault$
|
|
24713
|
-
var buf_1$1 = __importDefault$
|
|
24886
|
+
var buffer_1$1 = __importDefault$I(buffer);
|
|
24887
|
+
var buf_1$1 = __importDefault$I(buf);
|
|
24714
24888
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
24715
|
-
__extends$
|
|
24889
|
+
__extends$s(ChannelBuffer, _super);
|
|
24716
24890
|
function ChannelBuffer(arg) {
|
|
24717
24891
|
var _this = this;
|
|
24718
24892
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -24780,7 +24954,7 @@ function newChannelJSBuffer(arg) {
|
|
|
24780
24954
|
}
|
|
24781
24955
|
}
|
|
24782
24956
|
|
|
24783
|
-
var __importDefault$
|
|
24957
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24784
24958
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24785
24959
|
};
|
|
24786
24960
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -24801,9 +24975,9 @@ Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
|
24801
24975
|
* limitations under the License.
|
|
24802
24976
|
*/
|
|
24803
24977
|
/* eslint-env browser */
|
|
24804
|
-
var channel_buf_1$3 = __importDefault$
|
|
24805
|
-
var neo4j_driver_core_1$
|
|
24806
|
-
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;
|
|
24807
24981
|
var WS_OPEN = 1;
|
|
24808
24982
|
var WS_CLOSED = 3;
|
|
24809
24983
|
/**
|
|
@@ -24869,7 +25043,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24869
25043
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
24870
25044
|
if (this._connectionTimeoutFired) {
|
|
24871
25045
|
// timeout fired - not connected within configured time
|
|
24872
|
-
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);
|
|
24873
25047
|
if (this.onerror) {
|
|
24874
25048
|
this.onerror(this._error);
|
|
24875
25049
|
}
|
|
@@ -24878,7 +25052,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24878
25052
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
24879
25053
|
if (this._open && !this._timedout) {
|
|
24880
25054
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
24881
|
-
this._error = (0, neo4j_driver_core_1$
|
|
25055
|
+
this._error = (0, neo4j_driver_core_1$H.newError)('WebSocket connection failure. Due to security ' +
|
|
24882
25056
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
24883
25057
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
24884
25058
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -24917,7 +25091,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24917
25091
|
}
|
|
24918
25092
|
}
|
|
24919
25093
|
else {
|
|
24920
|
-
throw (0, neo4j_driver_core_1$
|
|
25094
|
+
throw (0, neo4j_driver_core_1$H.newError)("Don't know how to send buffer: " + buffer);
|
|
24921
25095
|
}
|
|
24922
25096
|
};
|
|
24923
25097
|
/**
|
|
@@ -24988,7 +25162,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24988
25162
|
_this._receiveTimeoutId = null;
|
|
24989
25163
|
_this._timedout = true;
|
|
24990
25164
|
_this.stopReceiveTimeout();
|
|
24991
|
-
_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);
|
|
24992
25166
|
_this.close();
|
|
24993
25167
|
if (_this.onerror) {
|
|
24994
25168
|
_this.onerror(_this._error);
|
|
@@ -25097,7 +25271,7 @@ function determineWebSocketScheme(config, protocolSupplier) {
|
|
|
25097
25271
|
return { scheme: 'wss', error: null };
|
|
25098
25272
|
}
|
|
25099
25273
|
else {
|
|
25100
|
-
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 ' +
|
|
25101
25275
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
25102
25276
|
trust +
|
|
25103
25277
|
' is not supported. Please ' +
|
|
@@ -25172,7 +25346,7 @@ var browserHostNameResolver = {};
|
|
|
25172
25346
|
* See the License for the specific language governing permissions and
|
|
25173
25347
|
* limitations under the License.
|
|
25174
25348
|
*/
|
|
25175
|
-
var __extends$
|
|
25349
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25176
25350
|
var extendStatics = function (d, b) {
|
|
25177
25351
|
extendStatics = Object.setPrototypeOf ||
|
|
25178
25352
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25188,10 +25362,10 @@ var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
25188
25362
|
};
|
|
25189
25363
|
})();
|
|
25190
25364
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
25191
|
-
var neo4j_driver_core_1$
|
|
25192
|
-
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;
|
|
25193
25367
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
25194
|
-
__extends$
|
|
25368
|
+
__extends$r(BrowserHostNameResolver, _super);
|
|
25195
25369
|
function BrowserHostNameResolver() {
|
|
25196
25370
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25197
25371
|
}
|
|
@@ -25283,14 +25457,14 @@ browserClientCertificatesLoader.default = {
|
|
|
25283
25457
|
* See the License for the specific language governing permissions and
|
|
25284
25458
|
* limitations under the License.
|
|
25285
25459
|
*/
|
|
25286
|
-
var __importDefault$
|
|
25460
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25287
25461
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25288
25462
|
};
|
|
25289
25463
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
25290
25464
|
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
25291
|
-
var browser_channel_1 = __importDefault$
|
|
25292
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
25293
|
-
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);
|
|
25294
25468
|
/*
|
|
25295
25469
|
|
|
25296
25470
|
This module exports a set of components to be used in browser environment.
|
|
@@ -25325,7 +25499,7 @@ var combinedBuf = {};
|
|
|
25325
25499
|
* See the License for the specific language governing permissions and
|
|
25326
25500
|
* limitations under the License.
|
|
25327
25501
|
*/
|
|
25328
|
-
var __extends$
|
|
25502
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25329
25503
|
var extendStatics = function (d, b) {
|
|
25330
25504
|
extendStatics = Object.setPrototypeOf ||
|
|
25331
25505
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25347,7 +25521,7 @@ var channel_buf_1$2 = channelBuf;
|
|
|
25347
25521
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
25348
25522
|
*/
|
|
25349
25523
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
25350
|
-
__extends$
|
|
25524
|
+
__extends$q(CombinedBuffer, _super);
|
|
25351
25525
|
function CombinedBuffer(buffers) {
|
|
25352
25526
|
var _this = this;
|
|
25353
25527
|
var length = 0;
|
|
@@ -25413,7 +25587,7 @@ combinedBuf.default = CombinedBuffer;
|
|
|
25413
25587
|
* See the License for the specific language governing permissions and
|
|
25414
25588
|
* limitations under the License.
|
|
25415
25589
|
*/
|
|
25416
|
-
var __extends$
|
|
25590
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25417
25591
|
var extendStatics = function (d, b) {
|
|
25418
25592
|
extendStatics = Object.setPrototypeOf ||
|
|
25419
25593
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25428,14 +25602,14 @@ var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
25428
25602
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25429
25603
|
};
|
|
25430
25604
|
})();
|
|
25431
|
-
var __importDefault$
|
|
25605
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25432
25606
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25433
25607
|
};
|
|
25434
25608
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
25435
25609
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
25436
|
-
var base_buf_1 = __importDefault$
|
|
25610
|
+
var base_buf_1 = __importDefault$F(baseBuf);
|
|
25437
25611
|
var channel_buf_1$1 = channelBuf;
|
|
25438
|
-
var combined_buf_1 = __importDefault$
|
|
25612
|
+
var combined_buf_1 = __importDefault$F(combinedBuf);
|
|
25439
25613
|
var _CHUNK_HEADER_SIZE = 2;
|
|
25440
25614
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
25441
25615
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -25444,7 +25618,7 @@ var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/m
|
|
|
25444
25618
|
* @access private
|
|
25445
25619
|
*/
|
|
25446
25620
|
var Chunker = /** @class */ (function (_super) {
|
|
25447
|
-
__extends$
|
|
25621
|
+
__extends$p(Chunker, _super);
|
|
25448
25622
|
function Chunker(channel, bufferSize) {
|
|
25449
25623
|
var _this = _super.call(this, 0) || this;
|
|
25450
25624
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -25627,9 +25801,9 @@ var channelConfig = {};
|
|
|
25627
25801
|
* limitations under the License.
|
|
25628
25802
|
*/
|
|
25629
25803
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
25630
|
-
var neo4j_driver_core_1$
|
|
25631
|
-
var _a$c = neo4j_driver_core_1$
|
|
25632
|
-
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;
|
|
25633
25807
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
25634
25808
|
null,
|
|
25635
25809
|
undefined,
|
|
@@ -25669,14 +25843,14 @@ channelConfig.default = ChannelConfig;
|
|
|
25669
25843
|
function extractEncrypted(driverConfig) {
|
|
25670
25844
|
var value = driverConfig.encrypted;
|
|
25671
25845
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
25672
|
-
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));
|
|
25673
25847
|
}
|
|
25674
25848
|
return value;
|
|
25675
25849
|
}
|
|
25676
25850
|
function extractTrust(driverConfig) {
|
|
25677
25851
|
var value = driverConfig.trust;
|
|
25678
25852
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
25679
|
-
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));
|
|
25680
25854
|
}
|
|
25681
25855
|
return value;
|
|
25682
25856
|
}
|
|
@@ -26051,13 +26225,13 @@ function simpleEnd(buf) {
|
|
|
26051
26225
|
* See the License for the specific language governing permissions and
|
|
26052
26226
|
* limitations under the License.
|
|
26053
26227
|
*/
|
|
26054
|
-
var __importDefault$
|
|
26228
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26055
26229
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26056
26230
|
};
|
|
26057
26231
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
26058
|
-
var channel_buf_1 = __importDefault$
|
|
26059
|
-
var neo4j_driver_core_1$
|
|
26060
|
-
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);
|
|
26061
26235
|
var string_decoder_1 = string_decoder;
|
|
26062
26236
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
26063
26237
|
function encode(str) {
|
|
@@ -26071,7 +26245,7 @@ function decode(buffer, length) {
|
|
|
26071
26245
|
return decodeCombinedBuffer(buffer, length);
|
|
26072
26246
|
}
|
|
26073
26247
|
else {
|
|
26074
|
-
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, "'"));
|
|
26075
26249
|
}
|
|
26076
26250
|
}
|
|
26077
26251
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -26188,7 +26362,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
26188
26362
|
*/
|
|
26189
26363
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26190
26364
|
var channel_1$4 = channel;
|
|
26191
|
-
var neo4j_driver_core_1$
|
|
26365
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
26192
26366
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
26193
26367
|
function version(major, minor) {
|
|
26194
26368
|
return {
|
|
@@ -26198,7 +26372,7 @@ function version(major, minor) {
|
|
|
26198
26372
|
}
|
|
26199
26373
|
function createHandshakeMessage(versions) {
|
|
26200
26374
|
if (versions.length > 4) {
|
|
26201
|
-
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');
|
|
26202
26376
|
}
|
|
26203
26377
|
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
26204
26378
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -26226,7 +26400,7 @@ function parseNegotiatedResponse(buffer, log) {
|
|
|
26226
26400
|
];
|
|
26227
26401
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
26228
26402
|
log.error('Handshake failed since server responded with HTTP.');
|
|
26229
|
-
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 ' +
|
|
26230
26404
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
26231
26405
|
}
|
|
26232
26406
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -26237,7 +26411,7 @@ function parseNegotiatedResponse(buffer, log) {
|
|
|
26237
26411
|
*/
|
|
26238
26412
|
function newHandshakeBuffer() {
|
|
26239
26413
|
return createHandshakeMessage([
|
|
26240
|
-
[version(5,
|
|
26414
|
+
[version(5, 7), version(5, 0)],
|
|
26241
26415
|
[version(4, 4), version(4, 2)],
|
|
26242
26416
|
version(4, 1),
|
|
26243
26417
|
version(3, 0)
|
|
@@ -26302,7 +26476,7 @@ var streamObservers = {};
|
|
|
26302
26476
|
|
|
26303
26477
|
var routingTableRaw = {};
|
|
26304
26478
|
|
|
26305
|
-
var __extends$
|
|
26479
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26306
26480
|
var extendStatics = function (d, b) {
|
|
26307
26481
|
extendStatics = Object.setPrototypeOf ||
|
|
26308
26482
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26317,7 +26491,7 @@ var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
26317
26491
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26318
26492
|
};
|
|
26319
26493
|
})();
|
|
26320
|
-
var __importDefault$
|
|
26494
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26321
26495
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26322
26496
|
};
|
|
26323
26497
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -26338,7 +26512,7 @@ Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
|
26338
26512
|
* limitations under the License.
|
|
26339
26513
|
*/
|
|
26340
26514
|
// eslint-disable-next-line no-unused-vars
|
|
26341
|
-
__importDefault$
|
|
26515
|
+
__importDefault$D(lib$1);
|
|
26342
26516
|
/**
|
|
26343
26517
|
* Represente the raw version of the routing table
|
|
26344
26518
|
*/
|
|
@@ -26433,7 +26607,7 @@ routingTableRaw.default = RawRoutingTable;
|
|
|
26433
26607
|
* Get the raw routing table information from route message response
|
|
26434
26608
|
*/
|
|
26435
26609
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
26436
|
-
__extends$
|
|
26610
|
+
__extends$o(ResponseRawRoutingTable, _super);
|
|
26437
26611
|
function ResponseRawRoutingTable(response) {
|
|
26438
26612
|
var _this = _super.call(this) || this;
|
|
26439
26613
|
_this._response = response;
|
|
@@ -26473,7 +26647,7 @@ var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
|
26473
26647
|
* Null routing table
|
|
26474
26648
|
*/
|
|
26475
26649
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
26476
|
-
__extends$
|
|
26650
|
+
__extends$o(NullRawRoutingTable, _super);
|
|
26477
26651
|
function NullRawRoutingTable() {
|
|
26478
26652
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26479
26653
|
}
|
|
@@ -26490,7 +26664,7 @@ var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
|
26490
26664
|
* Get the raw routing table information from the record
|
|
26491
26665
|
*/
|
|
26492
26666
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
26493
|
-
__extends$
|
|
26667
|
+
__extends$o(RecordRawRoutingTable, _super);
|
|
26494
26668
|
function RecordRawRoutingTable(record) {
|
|
26495
26669
|
var _this = _super.call(this) || this;
|
|
26496
26670
|
_this._record = record;
|
|
@@ -26549,7 +26723,7 @@ var functional = {};
|
|
|
26549
26723
|
*/
|
|
26550
26724
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
26551
26725
|
functional.reuseOngoingRequest = functional.identity = void 0;
|
|
26552
|
-
var neo4j_driver_core_1$
|
|
26726
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
26553
26727
|
/**
|
|
26554
26728
|
* Identity function.
|
|
26555
26729
|
*
|
|
@@ -26577,7 +26751,7 @@ function reuseOngoingRequest(func, thisArg) {
|
|
|
26577
26751
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
26578
26752
|
args[_i] = arguments[_i];
|
|
26579
26753
|
}
|
|
26580
|
-
var key = neo4j_driver_core_1$
|
|
26754
|
+
var key = neo4j_driver_core_1$C.json.stringify(args);
|
|
26581
26755
|
if (ongoingRequests.has(key)) {
|
|
26582
26756
|
return ongoingRequests.get(key);
|
|
26583
26757
|
}
|
|
@@ -26700,7 +26874,7 @@ lang.object = lang.functional = void 0;
|
|
|
26700
26874
|
lang.functional = __importStar$4(functional);
|
|
26701
26875
|
lang.object = __importStar$4(object);
|
|
26702
26876
|
|
|
26703
|
-
var __extends$
|
|
26877
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
26704
26878
|
var extendStatics = function (d, b) {
|
|
26705
26879
|
extendStatics = Object.setPrototypeOf ||
|
|
26706
26880
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26715,7 +26889,7 @@ var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
26715
26889
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26716
26890
|
};
|
|
26717
26891
|
})();
|
|
26718
|
-
var __importDefault$
|
|
26892
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
26719
26893
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26720
26894
|
};
|
|
26721
26895
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -26736,11 +26910,11 @@ streamObservers.TelemetryObserver = streamObservers.ProcedureRouteObserver = str
|
|
|
26736
26910
|
* See the License for the specific language governing permissions and
|
|
26737
26911
|
* limitations under the License.
|
|
26738
26912
|
*/
|
|
26739
|
-
var neo4j_driver_core_1$
|
|
26740
|
-
var routing_table_raw_1 = __importDefault$
|
|
26913
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
26914
|
+
var routing_table_raw_1 = __importDefault$C(routingTableRaw);
|
|
26741
26915
|
var lang_1$4 = lang;
|
|
26742
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
26743
|
-
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;
|
|
26744
26918
|
var StreamObserver = /** @class */ (function () {
|
|
26745
26919
|
function StreamObserver() {
|
|
26746
26920
|
}
|
|
@@ -26761,7 +26935,7 @@ streamObservers.StreamObserver = StreamObserver;
|
|
|
26761
26935
|
* @access private
|
|
26762
26936
|
*/
|
|
26763
26937
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
26764
|
-
__extends$
|
|
26938
|
+
__extends$n(ResultStreamObserver, _super);
|
|
26765
26939
|
/**
|
|
26766
26940
|
*
|
|
26767
26941
|
* @param {Object} param
|
|
@@ -26838,7 +27012,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26838
27012
|
*/
|
|
26839
27013
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
26840
27014
|
this._haveRecordStreamed = true;
|
|
26841
|
-
var record = new neo4j_driver_core_1$
|
|
27015
|
+
var record = new neo4j_driver_core_1$B.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
26842
27016
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
26843
27017
|
this._observers.forEach(function (o) {
|
|
26844
27018
|
if (o.onNext) {
|
|
@@ -26947,7 +27121,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26947
27121
|
}
|
|
26948
27122
|
}, meta));
|
|
26949
27123
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
26950
|
-
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));
|
|
26951
27125
|
return;
|
|
26952
27126
|
}
|
|
26953
27127
|
this._setState(_states.SUCCEEDED);
|
|
@@ -27092,7 +27266,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
27092
27266
|
}(StreamObserver));
|
|
27093
27267
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
27094
27268
|
var LoginObserver = /** @class */ (function (_super) {
|
|
27095
|
-
__extends$
|
|
27269
|
+
__extends$n(LoginObserver, _super);
|
|
27096
27270
|
/**
|
|
27097
27271
|
*
|
|
27098
27272
|
* @param {Object} param -
|
|
@@ -27107,7 +27281,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
27107
27281
|
return _this;
|
|
27108
27282
|
}
|
|
27109
27283
|
LoginObserver.prototype.onNext = function (record) {
|
|
27110
|
-
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)));
|
|
27111
27285
|
};
|
|
27112
27286
|
LoginObserver.prototype.onError = function (error) {
|
|
27113
27287
|
if (this._onError) {
|
|
@@ -27123,7 +27297,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
27123
27297
|
}(StreamObserver));
|
|
27124
27298
|
streamObservers.LoginObserver = LoginObserver;
|
|
27125
27299
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
27126
|
-
__extends$
|
|
27300
|
+
__extends$n(LogoffObserver, _super);
|
|
27127
27301
|
/**
|
|
27128
27302
|
*
|
|
27129
27303
|
* @param {Object} param -
|
|
@@ -27138,7 +27312,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
27138
27312
|
return _this;
|
|
27139
27313
|
}
|
|
27140
27314
|
LogoffObserver.prototype.onNext = function (record) {
|
|
27141
|
-
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)));
|
|
27142
27316
|
};
|
|
27143
27317
|
LogoffObserver.prototype.onError = function (error) {
|
|
27144
27318
|
if (this._onError) {
|
|
@@ -27154,7 +27328,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
27154
27328
|
}(StreamObserver));
|
|
27155
27329
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
27156
27330
|
var ResetObserver = /** @class */ (function (_super) {
|
|
27157
|
-
__extends$
|
|
27331
|
+
__extends$n(ResetObserver, _super);
|
|
27158
27332
|
/**
|
|
27159
27333
|
*
|
|
27160
27334
|
* @param {Object} param -
|
|
@@ -27171,8 +27345,8 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
27171
27345
|
return _this;
|
|
27172
27346
|
}
|
|
27173
27347
|
ResetObserver.prototype.onNext = function (record) {
|
|
27174
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27175
|
-
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));
|
|
27176
27350
|
};
|
|
27177
27351
|
ResetObserver.prototype.onError = function (error) {
|
|
27178
27352
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27191,7 +27365,7 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
27191
27365
|
}(StreamObserver));
|
|
27192
27366
|
streamObservers.ResetObserver = ResetObserver;
|
|
27193
27367
|
var TelemetryObserver = /** @class */ (function (_super) {
|
|
27194
|
-
__extends$
|
|
27368
|
+
__extends$n(TelemetryObserver, _super);
|
|
27195
27369
|
/**
|
|
27196
27370
|
*
|
|
27197
27371
|
* @param {Object} param -
|
|
@@ -27206,7 +27380,7 @@ var TelemetryObserver = /** @class */ (function (_super) {
|
|
|
27206
27380
|
return _this;
|
|
27207
27381
|
}
|
|
27208
27382
|
TelemetryObserver.prototype.onNext = function (record) {
|
|
27209
|
-
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));
|
|
27210
27384
|
};
|
|
27211
27385
|
TelemetryObserver.prototype.onError = function (error) {
|
|
27212
27386
|
if (this._onError) {
|
|
@@ -27222,7 +27396,7 @@ var TelemetryObserver = /** @class */ (function (_super) {
|
|
|
27222
27396
|
}(ResultStreamObserver));
|
|
27223
27397
|
streamObservers.TelemetryObserver = TelemetryObserver;
|
|
27224
27398
|
var FailedObserver = /** @class */ (function (_super) {
|
|
27225
|
-
__extends$
|
|
27399
|
+
__extends$n(FailedObserver, _super);
|
|
27226
27400
|
function FailedObserver(_a) {
|
|
27227
27401
|
var error = _a.error, onError = _a.onError;
|
|
27228
27402
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -27233,7 +27407,7 @@ var FailedObserver = /** @class */ (function (_super) {
|
|
|
27233
27407
|
}(ResultStreamObserver));
|
|
27234
27408
|
streamObservers.FailedObserver = FailedObserver;
|
|
27235
27409
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
27236
|
-
__extends$
|
|
27410
|
+
__extends$n(CompletedObserver, _super);
|
|
27237
27411
|
function CompletedObserver() {
|
|
27238
27412
|
var _this = _super.call(this) || this;
|
|
27239
27413
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -27243,7 +27417,7 @@ var CompletedObserver = /** @class */ (function (_super) {
|
|
|
27243
27417
|
}(ResultStreamObserver));
|
|
27244
27418
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
27245
27419
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
27246
|
-
__extends$
|
|
27420
|
+
__extends$n(ProcedureRouteObserver, _super);
|
|
27247
27421
|
function ProcedureRouteObserver(_a) {
|
|
27248
27422
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
27249
27423
|
var _this = _super.call(this) || this;
|
|
@@ -27268,10 +27442,10 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
27268
27442
|
};
|
|
27269
27443
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
27270
27444
|
if (this._records !== null && this._records.length !== 1) {
|
|
27271
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27445
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Illegal response from router. Received ' +
|
|
27272
27446
|
this._records.length +
|
|
27273
27447
|
' records but expected only one.\n' +
|
|
27274
|
-
neo4j_driver_core_1$
|
|
27448
|
+
neo4j_driver_core_1$B.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
27275
27449
|
return;
|
|
27276
27450
|
}
|
|
27277
27451
|
if (this._onCompleted) {
|
|
@@ -27282,7 +27456,7 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
27282
27456
|
}(StreamObserver));
|
|
27283
27457
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
27284
27458
|
var RouteObserver = /** @class */ (function (_super) {
|
|
27285
|
-
__extends$
|
|
27459
|
+
__extends$n(RouteObserver, _super);
|
|
27286
27460
|
/**
|
|
27287
27461
|
*
|
|
27288
27462
|
* @param {Object} param -
|
|
@@ -27299,8 +27473,8 @@ var RouteObserver = /** @class */ (function (_super) {
|
|
|
27299
27473
|
return _this;
|
|
27300
27474
|
}
|
|
27301
27475
|
RouteObserver.prototype.onNext = function (record) {
|
|
27302
|
-
this.onError((0, neo4j_driver_core_1$
|
|
27303
|
-
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));
|
|
27304
27478
|
};
|
|
27305
27479
|
RouteObserver.prototype.onError = function (error) {
|
|
27306
27480
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -27402,7 +27576,7 @@ boltProtocolUtil.assertNotificationFilterIsEmpty = boltProtocolUtil.assertImpers
|
|
|
27402
27576
|
* See the License for the specific language governing permissions and
|
|
27403
27577
|
* limitations under the License.
|
|
27404
27578
|
*/
|
|
27405
|
-
var neo4j_driver_core_1$
|
|
27579
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
27406
27580
|
/**
|
|
27407
27581
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
27408
27582
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -27411,7 +27585,7 @@ var neo4j_driver_core_1$z = lib$1;
|
|
|
27411
27585
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
27412
27586
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27413
27587
|
if (txConfig && !txConfig.isEmpty()) {
|
|
27414
|
-
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. ' +
|
|
27415
27589
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
27416
27590
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27417
27591
|
onProtocolError(error.message);
|
|
@@ -27428,7 +27602,7 @@ boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
|
27428
27602
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
27429
27603
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27430
27604
|
if (database) {
|
|
27431
|
-
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. ' +
|
|
27432
27606
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
27433
27607
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27434
27608
|
onProtocolError(error.message);
|
|
@@ -27446,7 +27620,7 @@ boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
|
27446
27620
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
27447
27621
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27448
27622
|
if (impersonatedUser) {
|
|
27449
|
-
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. ' +
|
|
27450
27624
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
27451
27625
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
27452
27626
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -27465,9 +27639,9 @@ boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
|
27465
27639
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
27466
27640
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
27467
27641
|
if (notificationFilter !== undefined) {
|
|
27468
|
-
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. ' +
|
|
27469
27643
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
27470
|
-
"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), "."));
|
|
27471
27645
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
27472
27646
|
onProtocolError(error.message);
|
|
27473
27647
|
observer.onError(error);
|
|
@@ -27500,8 +27674,8 @@ var structure$1 = {};
|
|
|
27500
27674
|
*/
|
|
27501
27675
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
27502
27676
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
27503
|
-
var neo4j_driver_core_1$
|
|
27504
|
-
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;
|
|
27505
27679
|
/**
|
|
27506
27680
|
* A Structure have a signature and fields.
|
|
27507
27681
|
*/
|
|
@@ -27535,7 +27709,7 @@ var Structure = /** @class */ (function () {
|
|
|
27535
27709
|
structure$1.Structure = Structure;
|
|
27536
27710
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
27537
27711
|
if (expectedSize !== actualSize) {
|
|
27538
|
-
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);
|
|
27539
27713
|
}
|
|
27540
27714
|
}
|
|
27541
27715
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -27562,8 +27736,8 @@ packstreamV1.Unpacker = packstreamV1.Packer = void 0;
|
|
|
27562
27736
|
var channel_1$3 = channel;
|
|
27563
27737
|
var lang_1$3 = lang;
|
|
27564
27738
|
var structure_1 = structure$1;
|
|
27565
|
-
var neo4j_driver_core_1$
|
|
27566
|
-
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;
|
|
27567
27741
|
var TINY_STRING = 0x80;
|
|
27568
27742
|
var TINY_LIST = 0x90;
|
|
27569
27743
|
var TINY_MAP = 0xa0;
|
|
@@ -27633,9 +27807,9 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27633
27807
|
return function () { return _this.packString(x); };
|
|
27634
27808
|
}
|
|
27635
27809
|
else if (typeof x === 'bigint') {
|
|
27636
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
27810
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$y.int)(x)); };
|
|
27637
27811
|
}
|
|
27638
|
-
else if ((0, neo4j_driver_core_1$
|
|
27812
|
+
else if ((0, neo4j_driver_core_1$y.isInt)(x)) {
|
|
27639
27813
|
return function () { return _this.packInteger(x); };
|
|
27640
27814
|
}
|
|
27641
27815
|
else if (x instanceof Int8Array) {
|
|
@@ -27689,7 +27863,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27689
27863
|
}
|
|
27690
27864
|
catch (e) {
|
|
27691
27865
|
// handle errors from iterable to array conversion
|
|
27692
|
-
throw (0, neo4j_driver_core_1$
|
|
27866
|
+
throw (0, neo4j_driver_core_1$y.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
27693
27867
|
}
|
|
27694
27868
|
};
|
|
27695
27869
|
/**
|
|
@@ -27759,7 +27933,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27759
27933
|
this._ch.writeBytes(bytes);
|
|
27760
27934
|
}
|
|
27761
27935
|
else {
|
|
27762
|
-
throw (0, neo4j_driver_core_1$
|
|
27936
|
+
throw (0, neo4j_driver_core_1$y.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
27763
27937
|
}
|
|
27764
27938
|
};
|
|
27765
27939
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -27783,7 +27957,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27783
27957
|
this._ch.writeUInt8(size % 256);
|
|
27784
27958
|
}
|
|
27785
27959
|
else {
|
|
27786
|
-
throw (0, neo4j_driver_core_1$
|
|
27960
|
+
throw (0, neo4j_driver_core_1$y.newError)('Lists of size ' + size + ' are not supported');
|
|
27787
27961
|
}
|
|
27788
27962
|
};
|
|
27789
27963
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -27794,7 +27968,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27794
27968
|
}
|
|
27795
27969
|
}
|
|
27796
27970
|
else {
|
|
27797
|
-
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');
|
|
27798
27972
|
}
|
|
27799
27973
|
};
|
|
27800
27974
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -27815,7 +27989,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27815
27989
|
this._ch.writeUInt8(size % 256);
|
|
27816
27990
|
}
|
|
27817
27991
|
else {
|
|
27818
|
-
throw (0, neo4j_driver_core_1$
|
|
27992
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
27819
27993
|
}
|
|
27820
27994
|
};
|
|
27821
27995
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -27839,7 +28013,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27839
28013
|
this._ch.writeUInt8(size % 256);
|
|
27840
28014
|
}
|
|
27841
28015
|
else {
|
|
27842
|
-
throw (0, neo4j_driver_core_1$
|
|
28016
|
+
throw (0, neo4j_driver_core_1$y.newError)('Maps of size ' + size + ' are not supported');
|
|
27843
28017
|
}
|
|
27844
28018
|
};
|
|
27845
28019
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -27858,7 +28032,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27858
28032
|
this._ch.writeUInt8(size % 256);
|
|
27859
28033
|
}
|
|
27860
28034
|
else {
|
|
27861
|
-
throw (0, neo4j_driver_core_1$
|
|
28035
|
+
throw (0, neo4j_driver_core_1$y.newError)('Structures of size ' + size + ' are not supported');
|
|
27862
28036
|
}
|
|
27863
28037
|
};
|
|
27864
28038
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -27866,7 +28040,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27866
28040
|
};
|
|
27867
28041
|
Packer.prototype._nonPackableValue = function (message) {
|
|
27868
28042
|
return function () {
|
|
27869
|
-
throw (0, neo4j_driver_core_1$
|
|
28043
|
+
throw (0, neo4j_driver_core_1$y.newError)(message, PROTOCOL_ERROR$3);
|
|
27870
28044
|
};
|
|
27871
28045
|
};
|
|
27872
28046
|
return Packer;
|
|
@@ -27902,7 +28076,7 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27902
28076
|
}
|
|
27903
28077
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
27904
28078
|
if (numberOrInteger !== null) {
|
|
27905
|
-
if ((0, neo4j_driver_core_1$
|
|
28079
|
+
if ((0, neo4j_driver_core_1$y.isInt)(numberOrInteger)) {
|
|
27906
28080
|
if (this._useBigInt) {
|
|
27907
28081
|
return numberOrInteger.toBigInt();
|
|
27908
28082
|
}
|
|
@@ -27932,13 +28106,13 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27932
28106
|
if (struct !== null) {
|
|
27933
28107
|
return struct;
|
|
27934
28108
|
}
|
|
27935
|
-
throw (0, neo4j_driver_core_1$
|
|
28109
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
27936
28110
|
};
|
|
27937
28111
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
27938
28112
|
var marker = buffer.readUInt8();
|
|
27939
28113
|
var result = this._unpackInteger(marker, buffer);
|
|
27940
28114
|
if (result == null) {
|
|
27941
|
-
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));
|
|
27942
28116
|
}
|
|
27943
28117
|
return result;
|
|
27944
28118
|
};
|
|
@@ -27963,25 +28137,25 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27963
28137
|
};
|
|
27964
28138
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
27965
28139
|
if (marker >= 0 && marker < 128) {
|
|
27966
|
-
return (0, neo4j_driver_core_1$
|
|
28140
|
+
return (0, neo4j_driver_core_1$y.int)(marker);
|
|
27967
28141
|
}
|
|
27968
28142
|
else if (marker >= 240 && marker < 256) {
|
|
27969
|
-
return (0, neo4j_driver_core_1$
|
|
28143
|
+
return (0, neo4j_driver_core_1$y.int)(marker - 256);
|
|
27970
28144
|
}
|
|
27971
28145
|
else if (marker === INT_8) {
|
|
27972
|
-
return (0, neo4j_driver_core_1$
|
|
28146
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt8());
|
|
27973
28147
|
}
|
|
27974
28148
|
else if (marker === INT_16) {
|
|
27975
|
-
return (0, neo4j_driver_core_1$
|
|
28149
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt16());
|
|
27976
28150
|
}
|
|
27977
28151
|
else if (marker === INT_32) {
|
|
27978
28152
|
var b = buffer.readInt32();
|
|
27979
|
-
return (0, neo4j_driver_core_1$
|
|
28153
|
+
return (0, neo4j_driver_core_1$y.int)(b);
|
|
27980
28154
|
}
|
|
27981
28155
|
else if (marker === INT_64) {
|
|
27982
28156
|
var high = buffer.readInt32();
|
|
27983
28157
|
var low = buffer.readInt32();
|
|
27984
|
-
return new neo4j_driver_core_1$
|
|
28158
|
+
return new neo4j_driver_core_1$y.Integer(low, high);
|
|
27985
28159
|
}
|
|
27986
28160
|
else {
|
|
27987
28161
|
return null;
|
|
@@ -28124,7 +28298,7 @@ var packstreamV2 = {};
|
|
|
28124
28298
|
* See the License for the specific language governing permissions and
|
|
28125
28299
|
* limitations under the License.
|
|
28126
28300
|
*/
|
|
28127
|
-
var __extends$
|
|
28301
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
28128
28302
|
var extendStatics = function (d, b) {
|
|
28129
28303
|
extendStatics = Object.setPrototypeOf ||
|
|
28130
28304
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -28166,7 +28340,7 @@ Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
|
28166
28340
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28167
28341
|
var v1$1 = __importStar$3(packstreamV1);
|
|
28168
28342
|
var Packer = /** @class */ (function (_super) {
|
|
28169
|
-
__extends$
|
|
28343
|
+
__extends$m(Packer, _super);
|
|
28170
28344
|
function Packer() {
|
|
28171
28345
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28172
28346
|
}
|
|
@@ -28177,7 +28351,7 @@ var Packer = /** @class */ (function (_super) {
|
|
|
28177
28351
|
}(v1$1.Packer));
|
|
28178
28352
|
packstreamV2.Packer = Packer;
|
|
28179
28353
|
var Unpacker = /** @class */ (function (_super) {
|
|
28180
|
-
__extends$
|
|
28354
|
+
__extends$m(Unpacker, _super);
|
|
28181
28355
|
/**
|
|
28182
28356
|
* @constructor
|
|
28183
28357
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -28261,8 +28435,8 @@ var requestMessage = {};
|
|
|
28261
28435
|
*/
|
|
28262
28436
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
28263
28437
|
requestMessage.SIGNATURES = void 0;
|
|
28264
|
-
var neo4j_driver_core_1$
|
|
28265
|
-
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;
|
|
28266
28440
|
/* eslint-disable no-unused-vars */
|
|
28267
28441
|
// Signature bytes for each request message type
|
|
28268
28442
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -28323,7 +28497,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28323
28497
|
* @return {RequestMessage} new RUN message.
|
|
28324
28498
|
*/
|
|
28325
28499
|
RequestMessage.run = function (query, parameters) {
|
|
28326
|
-
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)); });
|
|
28327
28501
|
};
|
|
28328
28502
|
/**
|
|
28329
28503
|
* Get a PULL_ALL message.
|
|
@@ -28387,7 +28561,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28387
28561
|
if (routing) {
|
|
28388
28562
|
metadata.routing = routing;
|
|
28389
28563
|
}
|
|
28390
|
-
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)); });
|
|
28391
28565
|
};
|
|
28392
28566
|
/**
|
|
28393
28567
|
* Create a new HELLO message.
|
|
@@ -28416,7 +28590,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28416
28590
|
if (routing) {
|
|
28417
28591
|
metadata.routing = routing;
|
|
28418
28592
|
}
|
|
28419
|
-
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)); });
|
|
28420
28594
|
};
|
|
28421
28595
|
/**
|
|
28422
28596
|
* Create a new HELLO message.
|
|
@@ -28445,7 +28619,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28445
28619
|
if (routing) {
|
|
28446
28620
|
metadata.routing = routing;
|
|
28447
28621
|
}
|
|
28448
|
-
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)); });
|
|
28449
28623
|
};
|
|
28450
28624
|
/**
|
|
28451
28625
|
* Create a new LOGON message.
|
|
@@ -28477,7 +28651,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28477
28651
|
RequestMessage.begin = function (_a) {
|
|
28478
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;
|
|
28479
28653
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28480
|
-
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)); });
|
|
28481
28655
|
};
|
|
28482
28656
|
/**
|
|
28483
28657
|
* Create a new BEGIN message.
|
|
@@ -28494,7 +28668,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28494
28668
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter, {
|
|
28495
28669
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28496
28670
|
});
|
|
28497
|
-
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)); });
|
|
28498
28672
|
};
|
|
28499
28673
|
/**
|
|
28500
28674
|
* Get a COMMIT message.
|
|
@@ -28527,7 +28701,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28527
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;
|
|
28528
28702
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
28529
28703
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28530
|
-
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));
|
|
28531
28705
|
});
|
|
28532
28706
|
};
|
|
28533
28707
|
/**
|
|
@@ -28549,7 +28723,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28549
28723
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
28550
28724
|
});
|
|
28551
28725
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
28552
|
-
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));
|
|
28553
28727
|
});
|
|
28554
28728
|
};
|
|
28555
28729
|
/**
|
|
@@ -28568,7 +28742,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28568
28742
|
RequestMessage.pull = function (_a) {
|
|
28569
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;
|
|
28570
28744
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28571
|
-
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)); });
|
|
28572
28746
|
};
|
|
28573
28747
|
/**
|
|
28574
28748
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -28579,11 +28753,11 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28579
28753
|
RequestMessage.discard = function (_a) {
|
|
28580
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;
|
|
28581
28755
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
28582
|
-
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)); });
|
|
28583
28757
|
};
|
|
28584
28758
|
RequestMessage.telemetry = function (_a) {
|
|
28585
28759
|
var api = _a.api;
|
|
28586
|
-
var parsedApi = (0, neo4j_driver_core_1$
|
|
28760
|
+
var parsedApi = (0, neo4j_driver_core_1$x.int)(api);
|
|
28587
28761
|
return new RequestMessage(TELEMETRY, [parsedApi], function () { return "TELEMETRY ".concat(parsedApi.toString()); });
|
|
28588
28762
|
};
|
|
28589
28763
|
/**
|
|
@@ -28599,7 +28773,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28599
28773
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
28600
28774
|
if (databaseName === void 0) { databaseName = null; }
|
|
28601
28775
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
28602
|
-
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);
|
|
28603
28777
|
});
|
|
28604
28778
|
};
|
|
28605
28779
|
/**
|
|
@@ -28624,7 +28798,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
28624
28798
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
28625
28799
|
}
|
|
28626
28800
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
28627
|
-
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));
|
|
28628
28802
|
});
|
|
28629
28803
|
};
|
|
28630
28804
|
return RequestMessage;
|
|
@@ -28675,9 +28849,9 @@ function buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser,
|
|
|
28675
28849
|
* @returns {Object} a metadata object.
|
|
28676
28850
|
*/
|
|
28677
28851
|
function buildStreamMetadata(stmtId, n) {
|
|
28678
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
28852
|
+
var metadata = { n: (0, neo4j_driver_core_1$x.int)(n) };
|
|
28679
28853
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
28680
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
28854
|
+
metadata.qid = (0, neo4j_driver_core_1$x.int)(stmtId);
|
|
28681
28855
|
}
|
|
28682
28856
|
return metadata;
|
|
28683
28857
|
}
|
|
@@ -28737,8 +28911,8 @@ var transformer = {};
|
|
|
28737
28911
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
28738
28912
|
transformer.TypeTransformer = void 0;
|
|
28739
28913
|
var packstream_1$6 = packstream;
|
|
28740
|
-
var neo4j_driver_core_1$
|
|
28741
|
-
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;
|
|
28742
28916
|
/**
|
|
28743
28917
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
28744
28918
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -28881,10 +29055,10 @@ var __read$6 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28881
29055
|
return ar;
|
|
28882
29056
|
};
|
|
28883
29057
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
28884
|
-
var neo4j_driver_core_1$
|
|
29058
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
28885
29059
|
var packstream_1$5 = packstream;
|
|
28886
|
-
var transformer_1$
|
|
28887
|
-
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;
|
|
28888
29062
|
var NODE = 0x4e;
|
|
28889
29063
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
28890
29064
|
var RELATIONSHIP = 0x52;
|
|
@@ -28898,16 +29072,16 @@ var PATH_STRUCT_SIZE = 3;
|
|
|
28898
29072
|
* @returns {TypeTransformer}
|
|
28899
29073
|
*/
|
|
28900
29074
|
function createNodeTransformer$1() {
|
|
28901
|
-
return new transformer_1$
|
|
29075
|
+
return new transformer_1$h.TypeTransformer({
|
|
28902
29076
|
signature: NODE,
|
|
28903
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29077
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Node; },
|
|
28904
29078
|
toStructure: function (object) {
|
|
28905
|
-
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);
|
|
28906
29080
|
},
|
|
28907
29081
|
fromStructure: function (struct) {
|
|
28908
29082
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
28909
29083
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
28910
|
-
return new neo4j_driver_core_1$
|
|
29084
|
+
return new neo4j_driver_core_1$v.Node(identity, labels, properties);
|
|
28911
29085
|
}
|
|
28912
29086
|
});
|
|
28913
29087
|
}
|
|
@@ -28916,16 +29090,16 @@ function createNodeTransformer$1() {
|
|
|
28916
29090
|
* @returns {TypeTransformer}
|
|
28917
29091
|
*/
|
|
28918
29092
|
function createRelationshipTransformer$1() {
|
|
28919
|
-
return new transformer_1$
|
|
29093
|
+
return new transformer_1$h.TypeTransformer({
|
|
28920
29094
|
signature: RELATIONSHIP,
|
|
28921
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29095
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Relationship; },
|
|
28922
29096
|
toStructure: function (object) {
|
|
28923
|
-
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);
|
|
28924
29098
|
},
|
|
28925
29099
|
fromStructure: function (struct) {
|
|
28926
29100
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28927
29101
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
28928
|
-
return new neo4j_driver_core_1$
|
|
29102
|
+
return new neo4j_driver_core_1$v.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
28929
29103
|
}
|
|
28930
29104
|
});
|
|
28931
29105
|
}
|
|
@@ -28934,16 +29108,16 @@ function createRelationshipTransformer$1() {
|
|
|
28934
29108
|
* @returns {TypeTransformer}
|
|
28935
29109
|
*/
|
|
28936
29110
|
function createUnboundRelationshipTransformer$1() {
|
|
28937
|
-
return new transformer_1$
|
|
29111
|
+
return new transformer_1$h.TypeTransformer({
|
|
28938
29112
|
signature: UNBOUND_RELATIONSHIP,
|
|
28939
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29113
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.UnboundRelationship; },
|
|
28940
29114
|
toStructure: function (object) {
|
|
28941
|
-
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);
|
|
28942
29116
|
},
|
|
28943
29117
|
fromStructure: function (struct) {
|
|
28944
29118
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28945
29119
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
28946
|
-
return new neo4j_driver_core_1$
|
|
29120
|
+
return new neo4j_driver_core_1$v.UnboundRelationship(identity, type, properties);
|
|
28947
29121
|
}
|
|
28948
29122
|
});
|
|
28949
29123
|
}
|
|
@@ -28952,11 +29126,11 @@ function createUnboundRelationshipTransformer$1() {
|
|
|
28952
29126
|
* @returns {TypeTransformer}
|
|
28953
29127
|
*/
|
|
28954
29128
|
function createPathTransformer() {
|
|
28955
|
-
return new transformer_1$
|
|
29129
|
+
return new transformer_1$h.TypeTransformer({
|
|
28956
29130
|
signature: PATH,
|
|
28957
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
29131
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Path; },
|
|
28958
29132
|
toStructure: function (object) {
|
|
28959
|
-
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);
|
|
28960
29134
|
},
|
|
28961
29135
|
fromStructure: function (struct) {
|
|
28962
29136
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -28965,11 +29139,11 @@ function createPathTransformer() {
|
|
|
28965
29139
|
var prevNode = nodes[0];
|
|
28966
29140
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
28967
29141
|
var nextNode = nodes[sequence[i + 1]];
|
|
28968
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
29142
|
+
var relIndex = (0, neo4j_driver_core_1$v.toNumber)(sequence[i]);
|
|
28969
29143
|
var rel = void 0;
|
|
28970
29144
|
if (relIndex > 0) {
|
|
28971
29145
|
rel = rels[relIndex - 1];
|
|
28972
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29146
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28973
29147
|
// To avoid duplication, relationships in a path do not contain
|
|
28974
29148
|
// information about their start and end nodes, that's instead
|
|
28975
29149
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -28979,16 +29153,16 @@ function createPathTransformer() {
|
|
|
28979
29153
|
}
|
|
28980
29154
|
else {
|
|
28981
29155
|
rel = rels[-relIndex - 1];
|
|
28982
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
29156
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28983
29157
|
// See above
|
|
28984
29158
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
28985
29159
|
}
|
|
28986
29160
|
}
|
|
28987
29161
|
// Done hydrating one path segment.
|
|
28988
|
-
segments.push(new neo4j_driver_core_1$
|
|
29162
|
+
segments.push(new neo4j_driver_core_1$v.PathSegment(prevNode, rel, nextNode));
|
|
28989
29163
|
prevNode = nextNode;
|
|
28990
29164
|
}
|
|
28991
|
-
return new neo4j_driver_core_1$
|
|
29165
|
+
return new neo4j_driver_core_1$v.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
28992
29166
|
}
|
|
28993
29167
|
});
|
|
28994
29168
|
}
|
|
@@ -28999,6 +29173,17 @@ boltProtocolV1_transformer.default = {
|
|
|
28999
29173
|
createPathTransformer: createPathTransformer
|
|
29000
29174
|
};
|
|
29001
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
|
+
};
|
|
29002
29187
|
var __createBinding$1 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29003
29188
|
if (k2 === undefined) k2 = k;
|
|
29004
29189
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -29022,7 +29207,7 @@ var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
29022
29207
|
__setModuleDefault$1(result, mod);
|
|
29023
29208
|
return result;
|
|
29024
29209
|
};
|
|
29025
|
-
var __importDefault$
|
|
29210
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29026
29211
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29027
29212
|
};
|
|
29028
29213
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -29046,11 +29231,16 @@ var bolt_protocol_util_1$7 = boltProtocolUtil;
|
|
|
29046
29231
|
var packstream_1$4 = packstream;
|
|
29047
29232
|
var request_message_1$b = __importStar$1(requestMessage);
|
|
29048
29233
|
var stream_observers_1$b = streamObservers;
|
|
29049
|
-
var neo4j_driver_core_1$
|
|
29050
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
29051
|
-
var transformer_1$
|
|
29052
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
29053
|
-
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 () {
|
|
29054
29244
|
/**
|
|
29055
29245
|
* @callback CreateResponseHandler Creates the response handler
|
|
29056
29246
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -29089,7 +29279,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29089
29279
|
get: function () {
|
|
29090
29280
|
var _this = this;
|
|
29091
29281
|
if (this._transformer === undefined) {
|
|
29092
|
-
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); }));
|
|
29093
29283
|
}
|
|
29094
29284
|
return this._transformer;
|
|
29095
29285
|
},
|
|
@@ -29174,6 +29364,9 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29174
29364
|
BoltProtocol.prototype.transformMetadata = function (metadata) {
|
|
29175
29365
|
return metadata;
|
|
29176
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
|
+
};
|
|
29177
29370
|
/**
|
|
29178
29371
|
* Perform initialization and authentication of the underlying connection.
|
|
29179
29372
|
* @param {Object} param
|
|
@@ -29213,7 +29406,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29213
29406
|
onError: onError
|
|
29214
29407
|
});
|
|
29215
29408
|
// TODO: Verify the Neo4j version in the message
|
|
29216
|
-
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. ' +
|
|
29217
29410
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29218
29411
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29219
29412
|
this._onProtocolError(error.message);
|
|
@@ -29239,7 +29432,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29239
29432
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
29240
29433
|
});
|
|
29241
29434
|
// TODO: Verify the Neo4j version in the message
|
|
29242
|
-
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. ' +
|
|
29243
29436
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
29244
29437
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
29245
29438
|
this._onProtocolError(error.message);
|
|
@@ -29530,7 +29723,7 @@ var BoltProtocol$e = /** @class */ (function () {
|
|
|
29530
29723
|
};
|
|
29531
29724
|
return BoltProtocol;
|
|
29532
29725
|
}());
|
|
29533
|
-
boltProtocolV1.default = BoltProtocol$
|
|
29726
|
+
boltProtocolV1.default = BoltProtocol$f;
|
|
29534
29727
|
|
|
29535
29728
|
var boltProtocolV2 = {};
|
|
29536
29729
|
|
|
@@ -29556,17 +29749,17 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = temporalFactory.nanoOfDayToL
|
|
|
29556
29749
|
* See the License for the specific language governing permissions and
|
|
29557
29750
|
* limitations under the License.
|
|
29558
29751
|
*/
|
|
29559
|
-
var neo4j_driver_core_1$
|
|
29560
|
-
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;
|
|
29561
29754
|
/**
|
|
29562
29755
|
* Converts given epoch day to a local date.
|
|
29563
29756
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
29564
29757
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
29565
29758
|
*/
|
|
29566
29759
|
function epochDayToDate(epochDay) {
|
|
29567
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
29760
|
+
epochDay = (0, neo4j_driver_core_1$t.int)(epochDay);
|
|
29568
29761
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
29569
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
29762
|
+
var adjust = (0, neo4j_driver_core_1$t.int)(0);
|
|
29570
29763
|
if (zeroDay.lessThan(0)) {
|
|
29571
29764
|
var adjustCycles = zeroDay
|
|
29572
29765
|
.add(1)
|
|
@@ -29609,7 +29802,7 @@ function epochDayToDate(epochDay) {
|
|
|
29609
29802
|
.div(10))
|
|
29610
29803
|
.add(1);
|
|
29611
29804
|
year = year.add(marchMonth.div(10));
|
|
29612
|
-
return new neo4j_driver_core_1$
|
|
29805
|
+
return new neo4j_driver_core_1$t.Date(year, month, day);
|
|
29613
29806
|
}
|
|
29614
29807
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
29615
29808
|
/**
|
|
@@ -29618,14 +29811,14 @@ temporalFactory.epochDayToDate = epochDayToDate;
|
|
|
29618
29811
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
29619
29812
|
*/
|
|
29620
29813
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
29621
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
29814
|
+
nanoOfDay = (0, neo4j_driver_core_1$t.int)(nanoOfDay);
|
|
29622
29815
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
29623
29816
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
29624
29817
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
29625
29818
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
29626
29819
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
29627
29820
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
29628
|
-
return new neo4j_driver_core_1$
|
|
29821
|
+
return new neo4j_driver_core_1$t.LocalTime(hour, minute, second, nanosecond);
|
|
29629
29822
|
}
|
|
29630
29823
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
29631
29824
|
/**
|
|
@@ -29640,7 +29833,7 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
29640
29833
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
29641
29834
|
var localDate = epochDayToDate(epochDay);
|
|
29642
29835
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
29643
|
-
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);
|
|
29644
29837
|
}
|
|
29645
29838
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
29646
29839
|
|
|
@@ -29660,8 +29853,8 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDat
|
|
|
29660
29853
|
* See the License for the specific language governing permissions and
|
|
29661
29854
|
* limitations under the License.
|
|
29662
29855
|
*/
|
|
29663
|
-
var __assign$
|
|
29664
|
-
__assign$
|
|
29856
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29857
|
+
__assign$n = Object.assign || function(t) {
|
|
29665
29858
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29666
29859
|
s = arguments[i];
|
|
29667
29860
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29669,7 +29862,7 @@ var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29669
29862
|
}
|
|
29670
29863
|
return t;
|
|
29671
29864
|
};
|
|
29672
|
-
return __assign$
|
|
29865
|
+
return __assign$n.apply(this, arguments);
|
|
29673
29866
|
};
|
|
29674
29867
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
29675
29868
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -29687,16 +29880,16 @@ var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
29687
29880
|
}
|
|
29688
29881
|
return ar;
|
|
29689
29882
|
};
|
|
29690
|
-
var __importDefault$
|
|
29883
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29691
29884
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29692
29885
|
};
|
|
29693
29886
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
29694
|
-
var neo4j_driver_core_1$
|
|
29887
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
29695
29888
|
var packstream_1$3 = packstream;
|
|
29696
|
-
var transformer_1$
|
|
29889
|
+
var transformer_1$f = transformer;
|
|
29697
29890
|
var temporal_factory_1$1 = temporalFactory;
|
|
29698
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
29699
|
-
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;
|
|
29700
29893
|
var POINT_2D = 0x58;
|
|
29701
29894
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
29702
29895
|
var POINT_3D = 0x59;
|
|
@@ -29720,18 +29913,18 @@ var DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1 = 3;
|
|
|
29720
29913
|
* @returns {TypeTransformer}
|
|
29721
29914
|
*/
|
|
29722
29915
|
function createPoint2DTransformer() {
|
|
29723
|
-
return new transformer_1$
|
|
29916
|
+
return new transformer_1$f.TypeTransformer({
|
|
29724
29917
|
signature: POINT_2D,
|
|
29725
|
-
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); },
|
|
29726
29919
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
29727
|
-
(0, neo4j_driver_core_1$
|
|
29920
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29728
29921
|
point.x,
|
|
29729
29922
|
point.y
|
|
29730
29923
|
]); },
|
|
29731
29924
|
fromStructure: function (struct) {
|
|
29732
29925
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
29733
29926
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
29734
|
-
return new neo4j_driver_core_1$
|
|
29927
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, undefined // z
|
|
29735
29928
|
);
|
|
29736
29929
|
}
|
|
29737
29930
|
});
|
|
@@ -29741,11 +29934,11 @@ function createPoint2DTransformer() {
|
|
|
29741
29934
|
* @returns {TypeTransformer}
|
|
29742
29935
|
*/
|
|
29743
29936
|
function createPoint3DTransformer() {
|
|
29744
|
-
return new transformer_1$
|
|
29937
|
+
return new transformer_1$f.TypeTransformer({
|
|
29745
29938
|
signature: POINT_3D,
|
|
29746
|
-
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; },
|
|
29747
29940
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
29748
|
-
(0, neo4j_driver_core_1$
|
|
29941
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
29749
29942
|
point.x,
|
|
29750
29943
|
point.y,
|
|
29751
29944
|
point.z
|
|
@@ -29753,7 +29946,7 @@ function createPoint3DTransformer() {
|
|
|
29753
29946
|
fromStructure: function (struct) {
|
|
29754
29947
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
29755
29948
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
29756
|
-
return new neo4j_driver_core_1$
|
|
29949
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, z);
|
|
29757
29950
|
}
|
|
29758
29951
|
});
|
|
29759
29952
|
}
|
|
@@ -29762,20 +29955,20 @@ function createPoint3DTransformer() {
|
|
|
29762
29955
|
* @returns {TypeTransformer}
|
|
29763
29956
|
*/
|
|
29764
29957
|
function createDurationTransformer() {
|
|
29765
|
-
return new transformer_1$
|
|
29958
|
+
return new transformer_1$f.TypeTransformer({
|
|
29766
29959
|
signature: DURATION,
|
|
29767
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29960
|
+
isTypeInstance: neo4j_driver_core_1$s.isDuration,
|
|
29768
29961
|
toStructure: function (value) {
|
|
29769
|
-
var months = (0, neo4j_driver_core_1$
|
|
29770
|
-
var days = (0, neo4j_driver_core_1$
|
|
29771
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
29772
|
-
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);
|
|
29773
29966
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
29774
29967
|
},
|
|
29775
29968
|
fromStructure: function (struct) {
|
|
29776
29969
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
29777
29970
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
29778
|
-
return new neo4j_driver_core_1$
|
|
29971
|
+
return new neo4j_driver_core_1$s.Duration(months, days, seconds, nanoseconds);
|
|
29779
29972
|
}
|
|
29780
29973
|
});
|
|
29781
29974
|
}
|
|
@@ -29788,9 +29981,9 @@ function createDurationTransformer() {
|
|
|
29788
29981
|
*/
|
|
29789
29982
|
function createLocalTimeTransformer(_a) {
|
|
29790
29983
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29791
|
-
return new transformer_1$
|
|
29984
|
+
return new transformer_1$f.TypeTransformer({
|
|
29792
29985
|
signature: LOCAL_TIME,
|
|
29793
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29986
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalTime,
|
|
29794
29987
|
toStructure: function (value) {
|
|
29795
29988
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29796
29989
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -29812,19 +30005,19 @@ function createLocalTimeTransformer(_a) {
|
|
|
29812
30005
|
*/
|
|
29813
30006
|
function createTimeTransformer(_a) {
|
|
29814
30007
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29815
|
-
return new transformer_1$
|
|
30008
|
+
return new transformer_1$f.TypeTransformer({
|
|
29816
30009
|
signature: TIME,
|
|
29817
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30010
|
+
isTypeInstance: neo4j_driver_core_1$s.isTime,
|
|
29818
30011
|
toStructure: function (value) {
|
|
29819
30012
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29820
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
30013
|
+
var offsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29821
30014
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
29822
30015
|
},
|
|
29823
30016
|
fromStructure: function (struct) {
|
|
29824
30017
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
29825
30018
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
29826
30019
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
29827
|
-
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);
|
|
29828
30021
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29829
30022
|
}
|
|
29830
30023
|
});
|
|
@@ -29838,9 +30031,9 @@ function createTimeTransformer(_a) {
|
|
|
29838
30031
|
*/
|
|
29839
30032
|
function createDateTransformer(_a) {
|
|
29840
30033
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29841
|
-
return new transformer_1$
|
|
30034
|
+
return new transformer_1$f.TypeTransformer({
|
|
29842
30035
|
signature: DATE,
|
|
29843
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30036
|
+
isTypeInstance: neo4j_driver_core_1$s.isDate,
|
|
29844
30037
|
toStructure: function (value) {
|
|
29845
30038
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
29846
30039
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -29862,12 +30055,12 @@ function createDateTransformer(_a) {
|
|
|
29862
30055
|
*/
|
|
29863
30056
|
function createLocalDateTimeTransformer(_a) {
|
|
29864
30057
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29865
|
-
return new transformer_1$
|
|
30058
|
+
return new transformer_1$f.TypeTransformer({
|
|
29866
30059
|
signature: LOCAL_DATE_TIME,
|
|
29867
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
30060
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalDateTime,
|
|
29868
30061
|
toStructure: function (value) {
|
|
29869
30062
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29870
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30063
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29871
30064
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
29872
30065
|
},
|
|
29873
30066
|
fromStructure: function (struct) {
|
|
@@ -29887,12 +30080,12 @@ function createLocalDateTimeTransformer(_a) {
|
|
|
29887
30080
|
*/
|
|
29888
30081
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
29889
30082
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29890
|
-
return new transformer_1$
|
|
30083
|
+
return new transformer_1$f.TypeTransformer({
|
|
29891
30084
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
29892
|
-
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; },
|
|
29893
30086
|
toStructure: function (value) {
|
|
29894
30087
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29895
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30088
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29896
30089
|
var timeZoneId = value.timeZoneId;
|
|
29897
30090
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
29898
30091
|
},
|
|
@@ -29900,7 +30093,7 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
29900
30093
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
29901
30094
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
29902
30095
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29903
|
-
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);
|
|
29904
30097
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29905
30098
|
}
|
|
29906
30099
|
});
|
|
@@ -29914,20 +30107,20 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
29914
30107
|
*/
|
|
29915
30108
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
29916
30109
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29917
|
-
return new transformer_1$
|
|
30110
|
+
return new transformer_1$f.TypeTransformer({
|
|
29918
30111
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
29919
|
-
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; },
|
|
29920
30113
|
toStructure: function (value) {
|
|
29921
30114
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29922
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29923
|
-
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);
|
|
29924
30117
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
29925
30118
|
},
|
|
29926
30119
|
fromStructure: function (struct) {
|
|
29927
30120
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
29928
30121
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
29929
30122
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29930
|
-
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);
|
|
29931
30124
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29932
30125
|
}
|
|
29933
30126
|
});
|
|
@@ -29943,15 +30136,15 @@ function convertIntegerPropsIfNeeded$1(obj, disableLosslessIntegers, useBigInt)
|
|
|
29943
30136
|
for (var prop in obj) {
|
|
29944
30137
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
29945
30138
|
var value = obj[prop];
|
|
29946
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
30139
|
+
clone[prop] = (0, neo4j_driver_core_1$s.isInt)(value) ? convert(value) : value;
|
|
29947
30140
|
}
|
|
29948
30141
|
}
|
|
29949
30142
|
Object.freeze(clone);
|
|
29950
30143
|
return clone;
|
|
29951
30144
|
}
|
|
29952
|
-
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 });
|
|
29953
30146
|
|
|
29954
|
-
var __extends$
|
|
30147
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29955
30148
|
var extendStatics = function (d, b) {
|
|
29956
30149
|
extendStatics = Object.setPrototypeOf ||
|
|
29957
30150
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29966,7 +30159,7 @@ var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29966
30159
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29967
30160
|
};
|
|
29968
30161
|
})();
|
|
29969
|
-
var __importDefault$
|
|
30162
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29970
30163
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29971
30164
|
};
|
|
29972
30165
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -29986,14 +30179,14 @@ Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
|
29986
30179
|
* See the License for the specific language governing permissions and
|
|
29987
30180
|
* limitations under the License.
|
|
29988
30181
|
*/
|
|
29989
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
29990
|
-
var packstream_1$2 = __importDefault$
|
|
29991
|
-
var neo4j_driver_core_1$
|
|
29992
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
29993
|
-
var transformer_1$
|
|
29994
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
29995
|
-
var BoltProtocol$
|
|
29996
|
-
__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);
|
|
29997
30190
|
function BoltProtocol() {
|
|
29998
30191
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29999
30192
|
}
|
|
@@ -30007,7 +30200,7 @@ var BoltProtocol$d = /** @class */ (function (_super) {
|
|
|
30007
30200
|
get: function () {
|
|
30008
30201
|
var _this = this;
|
|
30009
30202
|
if (this._transformer === undefined) {
|
|
30010
|
-
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); }));
|
|
30011
30204
|
}
|
|
30012
30205
|
return this._transformer;
|
|
30013
30206
|
},
|
|
@@ -30023,7 +30216,7 @@ var BoltProtocol$d = /** @class */ (function (_super) {
|
|
|
30023
30216
|
});
|
|
30024
30217
|
return BoltProtocol;
|
|
30025
30218
|
}(bolt_protocol_v1_1$1.default));
|
|
30026
|
-
boltProtocolV2.default = BoltProtocol$
|
|
30219
|
+
boltProtocolV2.default = BoltProtocol$e;
|
|
30027
30220
|
|
|
30028
30221
|
var boltProtocolV3 = {};
|
|
30029
30222
|
|
|
@@ -30045,8 +30238,8 @@ var boltProtocolV3_transformer = {};
|
|
|
30045
30238
|
* See the License for the specific language governing permissions and
|
|
30046
30239
|
* limitations under the License.
|
|
30047
30240
|
*/
|
|
30048
|
-
var __assign$
|
|
30049
|
-
__assign$
|
|
30241
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30242
|
+
__assign$m = Object.assign || function(t) {
|
|
30050
30243
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30051
30244
|
s = arguments[i];
|
|
30052
30245
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30054,16 +30247,16 @@ var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30054
30247
|
}
|
|
30055
30248
|
return t;
|
|
30056
30249
|
};
|
|
30057
|
-
return __assign$
|
|
30250
|
+
return __assign$m.apply(this, arguments);
|
|
30058
30251
|
};
|
|
30059
|
-
var __importDefault$
|
|
30252
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30060
30253
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30061
30254
|
};
|
|
30062
30255
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
30063
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
30064
|
-
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);
|
|
30065
30258
|
|
|
30066
|
-
var __extends$
|
|
30259
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30067
30260
|
var extendStatics = function (d, b) {
|
|
30068
30261
|
extendStatics = Object.setPrototypeOf ||
|
|
30069
30262
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30078,8 +30271,8 @@ var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30078
30271
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30079
30272
|
};
|
|
30080
30273
|
})();
|
|
30081
|
-
var __assign$
|
|
30082
|
-
__assign$
|
|
30274
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30275
|
+
__assign$l = Object.assign || function(t) {
|
|
30083
30276
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30084
30277
|
s = arguments[i];
|
|
30085
30278
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30087,9 +30280,9 @@ var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30087
30280
|
}
|
|
30088
30281
|
return t;
|
|
30089
30282
|
};
|
|
30090
|
-
return __assign$
|
|
30283
|
+
return __assign$l.apply(this, arguments);
|
|
30091
30284
|
};
|
|
30092
|
-
var __importDefault$
|
|
30285
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30093
30286
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30094
30287
|
};
|
|
30095
30288
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -30109,19 +30302,19 @@ Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
|
30109
30302
|
* See the License for the specific language governing permissions and
|
|
30110
30303
|
* limitations under the License.
|
|
30111
30304
|
*/
|
|
30112
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
30113
|
-
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);
|
|
30114
30307
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
30115
30308
|
var stream_observers_1$a = streamObservers;
|
|
30116
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
30117
|
-
var transformer_1$
|
|
30118
|
-
var neo4j_driver_core_1$
|
|
30119
|
-
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;
|
|
30120
30313
|
var CONTEXT$1 = 'context';
|
|
30121
30314
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
30122
30315
|
var noOpObserver = new stream_observers_1$a.StreamObserver();
|
|
30123
|
-
var BoltProtocol$
|
|
30124
|
-
__extends$
|
|
30316
|
+
var BoltProtocol$d = /** @class */ (function (_super) {
|
|
30317
|
+
__extends$k(BoltProtocol, _super);
|
|
30125
30318
|
function BoltProtocol() {
|
|
30126
30319
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30127
30320
|
}
|
|
@@ -30136,7 +30329,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
30136
30329
|
get: function () {
|
|
30137
30330
|
var _this = this;
|
|
30138
30331
|
if (this._transformer === undefined) {
|
|
30139
|
-
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); }));
|
|
30140
30333
|
}
|
|
30141
30334
|
return this._transformer;
|
|
30142
30335
|
},
|
|
@@ -30263,7 +30456,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
30263
30456
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
30264
30457
|
var _b;
|
|
30265
30458
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
30266
|
-
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() }));
|
|
30267
30460
|
return new stream_observers_1$a.ProcedureRouteObserver({
|
|
30268
30461
|
resultObserver: resultObserver,
|
|
30269
30462
|
onProtocolError: this._onProtocolError,
|
|
@@ -30273,7 +30466,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
30273
30466
|
};
|
|
30274
30467
|
return BoltProtocol;
|
|
30275
30468
|
}(bolt_protocol_v2_1$1.default));
|
|
30276
|
-
boltProtocolV3.default = BoltProtocol$
|
|
30469
|
+
boltProtocolV3.default = BoltProtocol$d;
|
|
30277
30470
|
|
|
30278
30471
|
var boltProtocolV4x0 = {};
|
|
30279
30472
|
|
|
@@ -30295,8 +30488,8 @@ var boltProtocolV4x0_transformer = {};
|
|
|
30295
30488
|
* See the License for the specific language governing permissions and
|
|
30296
30489
|
* limitations under the License.
|
|
30297
30490
|
*/
|
|
30298
|
-
var __assign$
|
|
30299
|
-
__assign$
|
|
30491
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30492
|
+
__assign$k = Object.assign || function(t) {
|
|
30300
30493
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30301
30494
|
s = arguments[i];
|
|
30302
30495
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30304,16 +30497,16 @@ var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30304
30497
|
}
|
|
30305
30498
|
return t;
|
|
30306
30499
|
};
|
|
30307
|
-
return __assign$
|
|
30500
|
+
return __assign$k.apply(this, arguments);
|
|
30308
30501
|
};
|
|
30309
|
-
var __importDefault$
|
|
30502
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30310
30503
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30311
30504
|
};
|
|
30312
30505
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
30313
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
30314
|
-
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);
|
|
30315
30508
|
|
|
30316
|
-
var __extends$
|
|
30509
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30317
30510
|
var extendStatics = function (d, b) {
|
|
30318
30511
|
extendStatics = Object.setPrototypeOf ||
|
|
30319
30512
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30328,8 +30521,8 @@ var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30328
30521
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30329
30522
|
};
|
|
30330
30523
|
})();
|
|
30331
|
-
var __assign$
|
|
30332
|
-
__assign$
|
|
30524
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30525
|
+
__assign$j = Object.assign || function(t) {
|
|
30333
30526
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30334
30527
|
s = arguments[i];
|
|
30335
30528
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30337,9 +30530,9 @@ var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30337
30530
|
}
|
|
30338
30531
|
return t;
|
|
30339
30532
|
};
|
|
30340
|
-
return __assign$
|
|
30533
|
+
return __assign$j.apply(this, arguments);
|
|
30341
30534
|
};
|
|
30342
|
-
var __importDefault$
|
|
30535
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30343
30536
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30344
30537
|
};
|
|
30345
30538
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -30359,19 +30552,19 @@ Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
|
30359
30552
|
* See the License for the specific language governing permissions and
|
|
30360
30553
|
* limitations under the License.
|
|
30361
30554
|
*/
|
|
30362
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
30363
|
-
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);
|
|
30364
30557
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
30365
30558
|
var stream_observers_1$9 = streamObservers;
|
|
30366
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
30367
|
-
var transformer_1$
|
|
30368
|
-
var neo4j_driver_core_1$
|
|
30369
|
-
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;
|
|
30370
30563
|
var CONTEXT = 'context';
|
|
30371
30564
|
var DATABASE = 'database';
|
|
30372
30565
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
30373
|
-
var BoltProtocol$
|
|
30374
|
-
__extends$
|
|
30566
|
+
var BoltProtocol$c = /** @class */ (function (_super) {
|
|
30567
|
+
__extends$j(BoltProtocol, _super);
|
|
30375
30568
|
function BoltProtocol() {
|
|
30376
30569
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30377
30570
|
}
|
|
@@ -30386,7 +30579,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
30386
30579
|
get: function () {
|
|
30387
30580
|
var _this = this;
|
|
30388
30581
|
if (this._transformer === undefined) {
|
|
30389
|
-
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); }));
|
|
30390
30583
|
}
|
|
30391
30584
|
return this._transformer;
|
|
30392
30585
|
},
|
|
@@ -30471,7 +30664,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
30471
30664
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
30472
30665
|
_b[CONTEXT] = routingContext,
|
|
30473
30666
|
_b[DATABASE] = databaseName,
|
|
30474
|
-
_b), __assign$
|
|
30667
|
+
_b), __assign$j(__assign$j({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
30475
30668
|
return new stream_observers_1$9.ProcedureRouteObserver({
|
|
30476
30669
|
resultObserver: resultObserver,
|
|
30477
30670
|
onProtocolError: this._onProtocolError,
|
|
@@ -30481,7 +30674,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
30481
30674
|
};
|
|
30482
30675
|
return BoltProtocol;
|
|
30483
30676
|
}(bolt_protocol_v3_1$1.default));
|
|
30484
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
30677
|
+
boltProtocolV4x0.default = BoltProtocol$c;
|
|
30485
30678
|
|
|
30486
30679
|
var boltProtocolV4x1 = {};
|
|
30487
30680
|
|
|
@@ -30503,8 +30696,8 @@ var boltProtocolV4x1_transformer = {};
|
|
|
30503
30696
|
* See the License for the specific language governing permissions and
|
|
30504
30697
|
* limitations under the License.
|
|
30505
30698
|
*/
|
|
30506
|
-
var __assign$
|
|
30507
|
-
__assign$
|
|
30699
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30700
|
+
__assign$i = Object.assign || function(t) {
|
|
30508
30701
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30509
30702
|
s = arguments[i];
|
|
30510
30703
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30512,16 +30705,16 @@ var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30512
30705
|
}
|
|
30513
30706
|
return t;
|
|
30514
30707
|
};
|
|
30515
|
-
return __assign$
|
|
30708
|
+
return __assign$i.apply(this, arguments);
|
|
30516
30709
|
};
|
|
30517
|
-
var __importDefault$
|
|
30710
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30518
30711
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30519
30712
|
};
|
|
30520
30713
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
30521
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
30522
|
-
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);
|
|
30523
30716
|
|
|
30524
|
-
var __extends$
|
|
30717
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30525
30718
|
var extendStatics = function (d, b) {
|
|
30526
30719
|
extendStatics = Object.setPrototypeOf ||
|
|
30527
30720
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30536,7 +30729,7 @@ var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30536
30729
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30537
30730
|
};
|
|
30538
30731
|
})();
|
|
30539
|
-
var __importDefault$
|
|
30732
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30540
30733
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30541
30734
|
};
|
|
30542
30735
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -30556,16 +30749,16 @@ Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
|
30556
30749
|
* See the License for the specific language governing permissions and
|
|
30557
30750
|
* limitations under the License.
|
|
30558
30751
|
*/
|
|
30559
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
30560
|
-
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);
|
|
30561
30754
|
var stream_observers_1$8 = streamObservers;
|
|
30562
|
-
var neo4j_driver_core_1$
|
|
30755
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
30563
30756
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
30564
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
30565
|
-
var transformer_1$
|
|
30566
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
30567
|
-
var BoltProtocol$
|
|
30568
|
-
__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);
|
|
30569
30762
|
/**
|
|
30570
30763
|
* @constructor
|
|
30571
30764
|
* @param {Object} server the server informatio.
|
|
@@ -30595,7 +30788,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
30595
30788
|
get: function () {
|
|
30596
30789
|
var _this = this;
|
|
30597
30790
|
if (this._transformer === undefined) {
|
|
30598
|
-
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); }));
|
|
30599
30792
|
}
|
|
30600
30793
|
return this._transformer;
|
|
30601
30794
|
},
|
|
@@ -30616,7 +30809,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
30616
30809
|
};
|
|
30617
30810
|
return BoltProtocol;
|
|
30618
30811
|
}(bolt_protocol_v4x0_1$1.default));
|
|
30619
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
30812
|
+
boltProtocolV4x1.default = BoltProtocol$b;
|
|
30620
30813
|
|
|
30621
30814
|
var boltProtocolV4x2 = {};
|
|
30622
30815
|
|
|
@@ -30638,8 +30831,8 @@ var boltProtocolV4x2_transformer = {};
|
|
|
30638
30831
|
* See the License for the specific language governing permissions and
|
|
30639
30832
|
* limitations under the License.
|
|
30640
30833
|
*/
|
|
30641
|
-
var __assign$
|
|
30642
|
-
__assign$
|
|
30834
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30835
|
+
__assign$h = Object.assign || function(t) {
|
|
30643
30836
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30644
30837
|
s = arguments[i];
|
|
30645
30838
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30647,16 +30840,16 @@ var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30647
30840
|
}
|
|
30648
30841
|
return t;
|
|
30649
30842
|
};
|
|
30650
|
-
return __assign$
|
|
30843
|
+
return __assign$h.apply(this, arguments);
|
|
30651
30844
|
};
|
|
30652
|
-
var __importDefault$
|
|
30845
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30653
30846
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30654
30847
|
};
|
|
30655
30848
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
30656
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
30657
|
-
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);
|
|
30658
30851
|
|
|
30659
|
-
var __extends$
|
|
30852
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30660
30853
|
var extendStatics = function (d, b) {
|
|
30661
30854
|
extendStatics = Object.setPrototypeOf ||
|
|
30662
30855
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30671,7 +30864,7 @@ var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30671
30864
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30672
30865
|
};
|
|
30673
30866
|
})();
|
|
30674
|
-
var __importDefault$
|
|
30867
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30675
30868
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30676
30869
|
};
|
|
30677
30870
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -30691,13 +30884,13 @@ Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
|
30691
30884
|
* See the License for the specific language governing permissions and
|
|
30692
30885
|
* limitations under the License.
|
|
30693
30886
|
*/
|
|
30694
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
30695
|
-
var neo4j_driver_core_1$
|
|
30696
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
30697
|
-
var transformer_1$
|
|
30698
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
30699
|
-
var BoltProtocol$
|
|
30700
|
-
__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);
|
|
30701
30894
|
function BoltProtocol() {
|
|
30702
30895
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30703
30896
|
}
|
|
@@ -30712,7 +30905,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
30712
30905
|
get: function () {
|
|
30713
30906
|
var _this = this;
|
|
30714
30907
|
if (this._transformer === undefined) {
|
|
30715
|
-
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); }));
|
|
30716
30909
|
}
|
|
30717
30910
|
return this._transformer;
|
|
30718
30911
|
},
|
|
@@ -30721,7 +30914,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
30721
30914
|
});
|
|
30722
30915
|
return BoltProtocol;
|
|
30723
30916
|
}(bolt_protocol_v4x1_1$1.default));
|
|
30724
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
30917
|
+
boltProtocolV4x2.default = BoltProtocol$a;
|
|
30725
30918
|
|
|
30726
30919
|
var boltProtocolV4x3 = {};
|
|
30727
30920
|
|
|
@@ -30743,8 +30936,8 @@ var boltProtocolV4x3_transformer = {};
|
|
|
30743
30936
|
* See the License for the specific language governing permissions and
|
|
30744
30937
|
* limitations under the License.
|
|
30745
30938
|
*/
|
|
30746
|
-
var __assign$
|
|
30747
|
-
__assign$
|
|
30939
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30940
|
+
__assign$g = Object.assign || function(t) {
|
|
30748
30941
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30749
30942
|
s = arguments[i];
|
|
30750
30943
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30752,14 +30945,14 @@ var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30752
30945
|
}
|
|
30753
30946
|
return t;
|
|
30754
30947
|
};
|
|
30755
|
-
return __assign$
|
|
30948
|
+
return __assign$g.apply(this, arguments);
|
|
30756
30949
|
};
|
|
30757
|
-
var __importDefault$
|
|
30950
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30758
30951
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30759
30952
|
};
|
|
30760
30953
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
30761
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
30762
|
-
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);
|
|
30763
30956
|
|
|
30764
30957
|
var boltProtocolV5x0_utc_transformer = {};
|
|
30765
30958
|
|
|
@@ -30781,8 +30974,8 @@ var boltProtocolV4x4_transformer = {};
|
|
|
30781
30974
|
* See the License for the specific language governing permissions and
|
|
30782
30975
|
* limitations under the License.
|
|
30783
30976
|
*/
|
|
30784
|
-
var __assign$
|
|
30785
|
-
__assign$
|
|
30977
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30978
|
+
__assign$f = Object.assign || function(t) {
|
|
30786
30979
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30787
30980
|
s = arguments[i];
|
|
30788
30981
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30790,14 +30983,14 @@ var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30790
30983
|
}
|
|
30791
30984
|
return t;
|
|
30792
30985
|
};
|
|
30793
|
-
return __assign$
|
|
30986
|
+
return __assign$f.apply(this, arguments);
|
|
30794
30987
|
};
|
|
30795
|
-
var __importDefault$
|
|
30988
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30796
30989
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30797
30990
|
};
|
|
30798
30991
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
30799
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
30800
|
-
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);
|
|
30801
30994
|
|
|
30802
30995
|
/**
|
|
30803
30996
|
* Copyright (c) "Neo4j"
|
|
@@ -30831,16 +31024,16 @@ var __read$4 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
30831
31024
|
}
|
|
30832
31025
|
return ar;
|
|
30833
31026
|
};
|
|
30834
|
-
var __importDefault$
|
|
31027
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30835
31028
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30836
31029
|
};
|
|
30837
31030
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
30838
31031
|
var packstream_1$1 = packstream;
|
|
30839
|
-
var neo4j_driver_core_1$
|
|
30840
|
-
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);
|
|
30841
31034
|
var temporal_factory_1 = temporalFactory;
|
|
30842
31035
|
var functional_1 = functional;
|
|
30843
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
31036
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$m.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
30844
31037
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
30845
31038
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
30846
31039
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -30854,7 +31047,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
30854
31047
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
30855
31048
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
30856
31049
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
30857
|
-
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);
|
|
30858
31051
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30859
31052
|
},
|
|
30860
31053
|
toStructure: function (value) {
|
|
@@ -30868,7 +31061,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
30868
31061
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
30869
31062
|
}
|
|
30870
31063
|
var utc = epochSecond.subtract(offset);
|
|
30871
|
-
var nano = (0, neo4j_driver_core_1$
|
|
31064
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30872
31065
|
var timeZoneId = value.timeZoneId;
|
|
30873
31066
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
30874
31067
|
}
|
|
@@ -30930,9 +31123,9 @@ function getDateTimeFormatForZoneId(timeZoneId) {
|
|
|
30930
31123
|
}
|
|
30931
31124
|
function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
30932
31125
|
var formatter = getDateTimeFormatForZoneId(timeZoneId);
|
|
30933
|
-
var utc = (0, neo4j_driver_core_1$
|
|
31126
|
+
var utc = (0, neo4j_driver_core_1$m.int)(epochSecond)
|
|
30934
31127
|
.multiply(1000)
|
|
30935
|
-
.add((0, neo4j_driver_core_1$
|
|
31128
|
+
.add((0, neo4j_driver_core_1$m.int)(nano).div(1000000))
|
|
30936
31129
|
.toNumber();
|
|
30937
31130
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
30938
31131
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -30943,10 +31136,10 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
30943
31136
|
: functional_1.identity;
|
|
30944
31137
|
}
|
|
30945
31138
|
else if (currentValue.type === 'hour') {
|
|
30946
|
-
obj.hour = (0, neo4j_driver_core_1$
|
|
31139
|
+
obj.hour = (0, neo4j_driver_core_1$m.int)(currentValue.value).modulo(24);
|
|
30947
31140
|
}
|
|
30948
31141
|
else if (currentValue.type !== 'literal') {
|
|
30949
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
31142
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$m.int)(currentValue.value);
|
|
30950
31143
|
}
|
|
30951
31144
|
return obj;
|
|
30952
31145
|
}, {});
|
|
@@ -30963,17 +31156,17 @@ function createDateTimeWithOffsetTransformer(config) {
|
|
|
30963
31156
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
30964
31157
|
toStructure: function (value) {
|
|
30965
31158
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
30966
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30967
|
-
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);
|
|
30968
31161
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
30969
31162
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
30970
31163
|
},
|
|
30971
31164
|
fromStructure: function (struct) {
|
|
30972
31165
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
30973
31166
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
30974
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
31167
|
+
var epochSecond = (0, neo4j_driver_core_1$m.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
30975
31168
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
30976
|
-
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);
|
|
30977
31170
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30978
31171
|
}
|
|
30979
31172
|
});
|
|
@@ -30989,7 +31182,7 @@ function convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {
|
|
|
30989
31182
|
for (var prop in obj) {
|
|
30990
31183
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
30991
31184
|
var value = obj[prop];
|
|
30992
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
31185
|
+
clone[prop] = (0, neo4j_driver_core_1$m.isInt)(value) ? convert(value) : value;
|
|
30993
31186
|
}
|
|
30994
31187
|
}
|
|
30995
31188
|
Object.freeze(clone);
|
|
@@ -31000,7 +31193,7 @@ boltProtocolV5x0_utc_transformer.default = {
|
|
|
31000
31193
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
31001
31194
|
};
|
|
31002
31195
|
|
|
31003
|
-
var __extends$
|
|
31196
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31004
31197
|
var extendStatics = function (d, b) {
|
|
31005
31198
|
extendStatics = Object.setPrototypeOf ||
|
|
31006
31199
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31015,8 +31208,8 @@ var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31015
31208
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31016
31209
|
};
|
|
31017
31210
|
})();
|
|
31018
|
-
var __assign$
|
|
31019
|
-
__assign$
|
|
31211
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31212
|
+
__assign$e = Object.assign || function(t) {
|
|
31020
31213
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31021
31214
|
s = arguments[i];
|
|
31022
31215
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31024,9 +31217,9 @@ var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31024
31217
|
}
|
|
31025
31218
|
return t;
|
|
31026
31219
|
};
|
|
31027
|
-
return __assign$
|
|
31220
|
+
return __assign$e.apply(this, arguments);
|
|
31028
31221
|
};
|
|
31029
|
-
var __importDefault$
|
|
31222
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31030
31223
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31031
31224
|
};
|
|
31032
31225
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -31046,17 +31239,17 @@ Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
|
31046
31239
|
* See the License for the specific language governing permissions and
|
|
31047
31240
|
* limitations under the License.
|
|
31048
31241
|
*/
|
|
31049
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
31050
|
-
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);
|
|
31051
31244
|
var stream_observers_1$7 = streamObservers;
|
|
31052
31245
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
31053
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
31054
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
31055
|
-
var transformer_1$
|
|
31056
|
-
var neo4j_driver_core_1$
|
|
31057
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
31058
|
-
var BoltProtocol$
|
|
31059
|
-
__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);
|
|
31060
31253
|
function BoltProtocol() {
|
|
31061
31254
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31062
31255
|
}
|
|
@@ -31071,7 +31264,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
31071
31264
|
get: function () {
|
|
31072
31265
|
var _this = this;
|
|
31073
31266
|
if (this._transformer === undefined) {
|
|
31074
|
-
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); }));
|
|
31075
31268
|
}
|
|
31076
31269
|
return this._transformer;
|
|
31077
31270
|
},
|
|
@@ -31140,15 +31333,15 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
31140
31333
|
};
|
|
31141
31334
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31142
31335
|
var _this = this;
|
|
31143
|
-
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); }));
|
|
31144
31337
|
};
|
|
31145
31338
|
return BoltProtocol;
|
|
31146
31339
|
}(bolt_protocol_v4x2_1$1.default));
|
|
31147
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
31340
|
+
boltProtocolV4x3.default = BoltProtocol$9;
|
|
31148
31341
|
|
|
31149
31342
|
var boltProtocolV4x4 = {};
|
|
31150
31343
|
|
|
31151
|
-
var __extends$
|
|
31344
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31152
31345
|
var extendStatics = function (d, b) {
|
|
31153
31346
|
extendStatics = Object.setPrototypeOf ||
|
|
31154
31347
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31163,8 +31356,8 @@ var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31163
31356
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31164
31357
|
};
|
|
31165
31358
|
})();
|
|
31166
|
-
var __assign$
|
|
31167
|
-
__assign$
|
|
31359
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31360
|
+
__assign$d = Object.assign || function(t) {
|
|
31168
31361
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31169
31362
|
s = arguments[i];
|
|
31170
31363
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31172,9 +31365,9 @@ var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31172
31365
|
}
|
|
31173
31366
|
return t;
|
|
31174
31367
|
};
|
|
31175
|
-
return __assign$
|
|
31368
|
+
return __assign$d.apply(this, arguments);
|
|
31176
31369
|
};
|
|
31177
|
-
var __importDefault$
|
|
31370
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31178
31371
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31179
31372
|
};
|
|
31180
31373
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -31194,17 +31387,17 @@ Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
|
31194
31387
|
* See the License for the specific language governing permissions and
|
|
31195
31388
|
* limitations under the License.
|
|
31196
31389
|
*/
|
|
31197
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
31198
|
-
var neo4j_driver_core_1$
|
|
31199
|
-
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);
|
|
31200
31393
|
var stream_observers_1$6 = streamObservers;
|
|
31201
31394
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
31202
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
31203
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
31204
|
-
var transformer_1$
|
|
31205
|
-
var _a$6 = neo4j_driver_core_1$
|
|
31206
|
-
var BoltProtocol$
|
|
31207
|
-
__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);
|
|
31208
31401
|
function BoltProtocol() {
|
|
31209
31402
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31210
31403
|
}
|
|
@@ -31219,7 +31412,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
31219
31412
|
get: function () {
|
|
31220
31413
|
var _this = this;
|
|
31221
31414
|
if (this._transformer === undefined) {
|
|
31222
|
-
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); }));
|
|
31223
31416
|
}
|
|
31224
31417
|
return this._transformer;
|
|
31225
31418
|
},
|
|
@@ -31298,11 +31491,11 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
31298
31491
|
};
|
|
31299
31492
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
31300
31493
|
var _this = this;
|
|
31301
|
-
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); }));
|
|
31302
31495
|
};
|
|
31303
31496
|
return BoltProtocol;
|
|
31304
31497
|
}(bolt_protocol_v4x3_1$1.default));
|
|
31305
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
31498
|
+
boltProtocolV4x4.default = BoltProtocol$8;
|
|
31306
31499
|
|
|
31307
31500
|
var boltProtocolV5x0 = {};
|
|
31308
31501
|
|
|
@@ -31324,8 +31517,8 @@ var boltProtocolV5x0_transformer = {};
|
|
|
31324
31517
|
* See the License for the specific language governing permissions and
|
|
31325
31518
|
* limitations under the License.
|
|
31326
31519
|
*/
|
|
31327
|
-
var __assign$
|
|
31328
|
-
__assign$
|
|
31520
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31521
|
+
__assign$c = Object.assign || function(t) {
|
|
31329
31522
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31330
31523
|
s = arguments[i];
|
|
31331
31524
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31333,7 +31526,7 @@ var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31333
31526
|
}
|
|
31334
31527
|
return t;
|
|
31335
31528
|
};
|
|
31336
|
-
return __assign$
|
|
31529
|
+
return __assign$c.apply(this, arguments);
|
|
31337
31530
|
};
|
|
31338
31531
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
31339
31532
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -31351,14 +31544,14 @@ var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
31351
31544
|
}
|
|
31352
31545
|
return ar;
|
|
31353
31546
|
};
|
|
31354
|
-
var __importDefault$
|
|
31547
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31355
31548
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31356
31549
|
};
|
|
31357
31550
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
31358
31551
|
var packstream_1 = packstream;
|
|
31359
|
-
var neo4j_driver_core_1$
|
|
31360
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
31361
|
-
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);
|
|
31362
31555
|
var NODE_STRUCT_SIZE = 4;
|
|
31363
31556
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
31364
31557
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -31373,7 +31566,7 @@ function createNodeTransformer(config) {
|
|
|
31373
31566
|
fromStructure: function (struct) {
|
|
31374
31567
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
31375
31568
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
31376
|
-
return new neo4j_driver_core_1$
|
|
31569
|
+
return new neo4j_driver_core_1$j.Node(identity, lables, properties, elementId);
|
|
31377
31570
|
}
|
|
31378
31571
|
});
|
|
31379
31572
|
}
|
|
@@ -31388,7 +31581,7 @@ function createRelationshipTransformer(config) {
|
|
|
31388
31581
|
fromStructure: function (struct) {
|
|
31389
31582
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31390
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];
|
|
31391
|
-
return new neo4j_driver_core_1$
|
|
31584
|
+
return new neo4j_driver_core_1$j.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
31392
31585
|
}
|
|
31393
31586
|
});
|
|
31394
31587
|
}
|
|
@@ -31403,13 +31596,13 @@ function createUnboundRelationshipTransformer(config) {
|
|
|
31403
31596
|
fromStructure: function (struct) {
|
|
31404
31597
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
31405
31598
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
31406
|
-
return new neo4j_driver_core_1$
|
|
31599
|
+
return new neo4j_driver_core_1$j.UnboundRelationship(identity, type, properties, elementId);
|
|
31407
31600
|
}
|
|
31408
31601
|
});
|
|
31409
31602
|
}
|
|
31410
|
-
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 });
|
|
31411
31604
|
|
|
31412
|
-
var __extends$
|
|
31605
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31413
31606
|
var extendStatics = function (d, b) {
|
|
31414
31607
|
extendStatics = Object.setPrototypeOf ||
|
|
31415
31608
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31424,7 +31617,7 @@ var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31424
31617
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31425
31618
|
};
|
|
31426
31619
|
})();
|
|
31427
|
-
var __importDefault$
|
|
31620
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31428
31621
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31429
31622
|
};
|
|
31430
31623
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -31444,16 +31637,16 @@ Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
|
31444
31637
|
* See the License for the specific language governing permissions and
|
|
31445
31638
|
* limitations under the License.
|
|
31446
31639
|
*/
|
|
31447
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
31640
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$k(boltProtocolV4x4);
|
|
31448
31641
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
31449
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
31450
|
-
var transformer_1$
|
|
31451
|
-
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);
|
|
31452
31645
|
var stream_observers_1$5 = streamObservers;
|
|
31453
|
-
var neo4j_driver_core_1$
|
|
31454
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
31455
|
-
var BoltProtocol$
|
|
31456
|
-
__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);
|
|
31457
31650
|
function BoltProtocol() {
|
|
31458
31651
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31459
31652
|
}
|
|
@@ -31468,7 +31661,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
31468
31661
|
get: function () {
|
|
31469
31662
|
var _this = this;
|
|
31470
31663
|
if (this._transformer === undefined) {
|
|
31471
|
-
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); }));
|
|
31472
31665
|
}
|
|
31473
31666
|
return this._transformer;
|
|
31474
31667
|
},
|
|
@@ -31500,7 +31693,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
31500
31693
|
};
|
|
31501
31694
|
return BoltProtocol;
|
|
31502
31695
|
}(bolt_protocol_v4x4_1$1.default));
|
|
31503
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
31696
|
+
boltProtocolV5x0.default = BoltProtocol$7;
|
|
31504
31697
|
|
|
31505
31698
|
var boltProtocolV5x1 = {};
|
|
31506
31699
|
|
|
@@ -31522,8 +31715,8 @@ var boltProtocolV5x1_transformer = {};
|
|
|
31522
31715
|
* See the License for the specific language governing permissions and
|
|
31523
31716
|
* limitations under the License.
|
|
31524
31717
|
*/
|
|
31525
|
-
var __assign$
|
|
31526
|
-
__assign$
|
|
31718
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31719
|
+
__assign$b = Object.assign || function(t) {
|
|
31527
31720
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31528
31721
|
s = arguments[i];
|
|
31529
31722
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31531,16 +31724,16 @@ var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31531
31724
|
}
|
|
31532
31725
|
return t;
|
|
31533
31726
|
};
|
|
31534
|
-
return __assign$
|
|
31727
|
+
return __assign$b.apply(this, arguments);
|
|
31535
31728
|
};
|
|
31536
|
-
var __importDefault$
|
|
31729
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31537
31730
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31538
31731
|
};
|
|
31539
31732
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
31540
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
31541
|
-
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);
|
|
31542
31735
|
|
|
31543
|
-
var __extends$
|
|
31736
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31544
31737
|
var extendStatics = function (d, b) {
|
|
31545
31738
|
extendStatics = Object.setPrototypeOf ||
|
|
31546
31739
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31555,8 +31748,8 @@ var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31555
31748
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31556
31749
|
};
|
|
31557
31750
|
})();
|
|
31558
|
-
var __assign$
|
|
31559
|
-
__assign$
|
|
31751
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31752
|
+
__assign$a = Object.assign || function(t) {
|
|
31560
31753
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31561
31754
|
s = arguments[i];
|
|
31562
31755
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31564,9 +31757,9 @@ var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31564
31757
|
}
|
|
31565
31758
|
return t;
|
|
31566
31759
|
};
|
|
31567
|
-
return __assign$
|
|
31760
|
+
return __assign$a.apply(this, arguments);
|
|
31568
31761
|
};
|
|
31569
|
-
var __importDefault$
|
|
31762
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31570
31763
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31571
31764
|
};
|
|
31572
31765
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -31586,16 +31779,16 @@ Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
|
31586
31779
|
* See the License for the specific language governing permissions and
|
|
31587
31780
|
* limitations under the License.
|
|
31588
31781
|
*/
|
|
31589
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
31782
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$i(boltProtocolV5x0);
|
|
31590
31783
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
31591
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
31592
|
-
var transformer_1$
|
|
31593
|
-
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);
|
|
31594
31787
|
var stream_observers_1$4 = streamObservers;
|
|
31595
|
-
var neo4j_driver_core_1$
|
|
31596
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
31597
|
-
var BoltProtocol$
|
|
31598
|
-
__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);
|
|
31599
31792
|
function BoltProtocol() {
|
|
31600
31793
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31601
31794
|
}
|
|
@@ -31610,7 +31803,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
31610
31803
|
get: function () {
|
|
31611
31804
|
var _this = this;
|
|
31612
31805
|
if (this._transformer === undefined) {
|
|
31613
|
-
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); }));
|
|
31614
31807
|
}
|
|
31615
31808
|
return this._transformer;
|
|
31616
31809
|
},
|
|
@@ -31651,7 +31844,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
31651
31844
|
this.write(request_message_1$4.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
31652
31845
|
return this.logon({
|
|
31653
31846
|
authToken: authToken,
|
|
31654
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31847
|
+
onComplete: function (metadata) { return onComplete(__assign$a(__assign$a({}, metadata), state.metadata)); },
|
|
31655
31848
|
onError: onError,
|
|
31656
31849
|
flush: true
|
|
31657
31850
|
});
|
|
@@ -31698,7 +31891,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
31698
31891
|
};
|
|
31699
31892
|
return BoltProtocol;
|
|
31700
31893
|
}(bolt_protocol_v5x0_1$1.default));
|
|
31701
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
31894
|
+
boltProtocolV5x1.default = BoltProtocol$6;
|
|
31702
31895
|
|
|
31703
31896
|
var boltProtocolV5x2 = {};
|
|
31704
31897
|
|
|
@@ -31720,8 +31913,8 @@ var boltProtocolV5x2_transformer = {};
|
|
|
31720
31913
|
* See the License for the specific language governing permissions and
|
|
31721
31914
|
* limitations under the License.
|
|
31722
31915
|
*/
|
|
31723
|
-
var __assign$
|
|
31724
|
-
__assign$
|
|
31916
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31917
|
+
__assign$9 = Object.assign || function(t) {
|
|
31725
31918
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31726
31919
|
s = arguments[i];
|
|
31727
31920
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31729,16 +31922,16 @@ var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31729
31922
|
}
|
|
31730
31923
|
return t;
|
|
31731
31924
|
};
|
|
31732
|
-
return __assign$
|
|
31925
|
+
return __assign$9.apply(this, arguments);
|
|
31733
31926
|
};
|
|
31734
|
-
var __importDefault$
|
|
31927
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31735
31928
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31736
31929
|
};
|
|
31737
31930
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
31738
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
31739
|
-
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);
|
|
31740
31933
|
|
|
31741
|
-
var __extends$
|
|
31934
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31742
31935
|
var extendStatics = function (d, b) {
|
|
31743
31936
|
extendStatics = Object.setPrototypeOf ||
|
|
31744
31937
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31753,8 +31946,8 @@ var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31753
31946
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31754
31947
|
};
|
|
31755
31948
|
})();
|
|
31756
|
-
var __assign$
|
|
31757
|
-
__assign$
|
|
31949
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31950
|
+
__assign$8 = Object.assign || function(t) {
|
|
31758
31951
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31759
31952
|
s = arguments[i];
|
|
31760
31953
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31762,9 +31955,9 @@ var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31762
31955
|
}
|
|
31763
31956
|
return t;
|
|
31764
31957
|
};
|
|
31765
|
-
return __assign$
|
|
31958
|
+
return __assign$8.apply(this, arguments);
|
|
31766
31959
|
};
|
|
31767
|
-
var __importDefault$
|
|
31960
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31768
31961
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31769
31962
|
};
|
|
31770
31963
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -31784,15 +31977,15 @@ Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
|
31784
31977
|
* See the License for the specific language governing permissions and
|
|
31785
31978
|
* limitations under the License.
|
|
31786
31979
|
*/
|
|
31787
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
31788
|
-
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$
|
|
31789
|
-
var transformer_1$
|
|
31790
|
-
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);
|
|
31791
31984
|
var stream_observers_1$3 = streamObservers;
|
|
31792
|
-
var neo4j_driver_core_1$
|
|
31793
|
-
var _a$5 = neo4j_driver_core_1$
|
|
31794
|
-
var BoltProtocol$
|
|
31795
|
-
__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);
|
|
31796
31989
|
function BoltProtocol() {
|
|
31797
31990
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31798
31991
|
}
|
|
@@ -31807,7 +32000,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
31807
32000
|
get: function () {
|
|
31808
32001
|
var _this = this;
|
|
31809
32002
|
if (this._transformer === undefined) {
|
|
31810
|
-
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); }));
|
|
31811
32004
|
}
|
|
31812
32005
|
return this._transformer;
|
|
31813
32006
|
},
|
|
@@ -31849,7 +32042,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
31849
32042
|
request_message_1$3.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31850
32043
|
return this.logon({
|
|
31851
32044
|
authToken: authToken,
|
|
31852
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32045
|
+
onComplete: function (metadata) { return onComplete(__assign$8(__assign$8({}, metadata), state.metadata)); },
|
|
31853
32046
|
onError: onError,
|
|
31854
32047
|
flush: true
|
|
31855
32048
|
});
|
|
@@ -31900,7 +32093,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
31900
32093
|
};
|
|
31901
32094
|
return BoltProtocol;
|
|
31902
32095
|
}(bolt_protocol_v5x1_1$1.default));
|
|
31903
|
-
boltProtocolV5x2.default = BoltProtocol$
|
|
32096
|
+
boltProtocolV5x2.default = BoltProtocol$5;
|
|
31904
32097
|
|
|
31905
32098
|
var boltProtocolV5x3 = {};
|
|
31906
32099
|
|
|
@@ -31922,8 +32115,8 @@ var boltProtocolV5x3_transformer = {};
|
|
|
31922
32115
|
* See the License for the specific language governing permissions and
|
|
31923
32116
|
* limitations under the License.
|
|
31924
32117
|
*/
|
|
31925
|
-
var __assign$
|
|
31926
|
-
__assign$
|
|
32118
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32119
|
+
__assign$7 = Object.assign || function(t) {
|
|
31927
32120
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31928
32121
|
s = arguments[i];
|
|
31929
32122
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31931,16 +32124,16 @@ var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31931
32124
|
}
|
|
31932
32125
|
return t;
|
|
31933
32126
|
};
|
|
31934
|
-
return __assign$
|
|
32127
|
+
return __assign$7.apply(this, arguments);
|
|
31935
32128
|
};
|
|
31936
|
-
var __importDefault$
|
|
32129
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31937
32130
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31938
32131
|
};
|
|
31939
32132
|
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
31940
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
31941
|
-
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);
|
|
31942
32135
|
|
|
31943
|
-
var __extends$
|
|
32136
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31944
32137
|
var extendStatics = function (d, b) {
|
|
31945
32138
|
extendStatics = Object.setPrototypeOf ||
|
|
31946
32139
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31955,8 +32148,8 @@ var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31955
32148
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31956
32149
|
};
|
|
31957
32150
|
})();
|
|
31958
|
-
var __assign$
|
|
31959
|
-
__assign$
|
|
32151
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32152
|
+
__assign$6 = Object.assign || function(t) {
|
|
31960
32153
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31961
32154
|
s = arguments[i];
|
|
31962
32155
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31964,9 +32157,9 @@ var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31964
32157
|
}
|
|
31965
32158
|
return t;
|
|
31966
32159
|
};
|
|
31967
|
-
return __assign$
|
|
32160
|
+
return __assign$6.apply(this, arguments);
|
|
31968
32161
|
};
|
|
31969
|
-
var __importDefault$
|
|
32162
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31970
32163
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31971
32164
|
};
|
|
31972
32165
|
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
@@ -31986,15 +32179,15 @@ Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
|
31986
32179
|
* See the License for the specific language governing permissions and
|
|
31987
32180
|
* limitations under the License.
|
|
31988
32181
|
*/
|
|
31989
|
-
var bolt_protocol_v5x2_1$1 = __importDefault$
|
|
31990
|
-
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$
|
|
31991
|
-
var transformer_1$
|
|
31992
|
-
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);
|
|
31993
32186
|
var stream_observers_1$2 = streamObservers;
|
|
31994
|
-
var neo4j_driver_core_1$
|
|
31995
|
-
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$
|
|
31996
|
-
var BoltProtocol$
|
|
31997
|
-
__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);
|
|
31998
32191
|
function BoltProtocol() {
|
|
31999
32192
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32000
32193
|
}
|
|
@@ -32009,7 +32202,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
32009
32202
|
get: function () {
|
|
32010
32203
|
var _this = this;
|
|
32011
32204
|
if (this._transformer === undefined) {
|
|
32012
|
-
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); }));
|
|
32013
32206
|
}
|
|
32014
32207
|
return this._transformer;
|
|
32015
32208
|
},
|
|
@@ -32041,14 +32234,14 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
32041
32234
|
this.write(request_message_1$2.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32042
32235
|
return this.logon({
|
|
32043
32236
|
authToken: authToken,
|
|
32044
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32237
|
+
onComplete: function (metadata) { return onComplete(__assign$6(__assign$6({}, metadata), state.metadata)); },
|
|
32045
32238
|
onError: onError,
|
|
32046
32239
|
flush: true
|
|
32047
32240
|
});
|
|
32048
32241
|
};
|
|
32049
32242
|
return BoltProtocol;
|
|
32050
32243
|
}(bolt_protocol_v5x2_1$1.default));
|
|
32051
|
-
boltProtocolV5x3.default = BoltProtocol$
|
|
32244
|
+
boltProtocolV5x3.default = BoltProtocol$4;
|
|
32052
32245
|
|
|
32053
32246
|
var boltProtocolV5x4 = {};
|
|
32054
32247
|
|
|
@@ -32070,8 +32263,8 @@ var boltProtocolV5x4_transformer = {};
|
|
|
32070
32263
|
* See the License for the specific language governing permissions and
|
|
32071
32264
|
* limitations under the License.
|
|
32072
32265
|
*/
|
|
32073
|
-
var __assign$
|
|
32074
|
-
__assign$
|
|
32266
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32267
|
+
__assign$5 = Object.assign || function(t) {
|
|
32075
32268
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32076
32269
|
s = arguments[i];
|
|
32077
32270
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32079,16 +32272,16 @@ var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32079
32272
|
}
|
|
32080
32273
|
return t;
|
|
32081
32274
|
};
|
|
32082
|
-
return __assign$
|
|
32275
|
+
return __assign$5.apply(this, arguments);
|
|
32083
32276
|
};
|
|
32084
|
-
var __importDefault$
|
|
32277
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32085
32278
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32086
32279
|
};
|
|
32087
32280
|
Object.defineProperty(boltProtocolV5x4_transformer, "__esModule", { value: true });
|
|
32088
|
-
var bolt_protocol_v5x3_transformer_1 = __importDefault$
|
|
32089
|
-
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);
|
|
32090
32283
|
|
|
32091
|
-
var __extends$
|
|
32284
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32092
32285
|
var extendStatics = function (d, b) {
|
|
32093
32286
|
extendStatics = Object.setPrototypeOf ||
|
|
32094
32287
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32103,7 +32296,7 @@ var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
32103
32296
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32104
32297
|
};
|
|
32105
32298
|
})();
|
|
32106
|
-
var __importDefault$
|
|
32299
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32107
32300
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32108
32301
|
};
|
|
32109
32302
|
Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
@@ -32123,15 +32316,15 @@ Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
|
32123
32316
|
* See the License for the specific language governing permissions and
|
|
32124
32317
|
* limitations under the License.
|
|
32125
32318
|
*/
|
|
32126
|
-
var bolt_protocol_v5x3_1$1 = __importDefault$
|
|
32127
|
-
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$
|
|
32128
|
-
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);
|
|
32129
32322
|
var stream_observers_1$1 = streamObservers;
|
|
32130
|
-
var transformer_1$
|
|
32131
|
-
var neo4j_driver_core_1$
|
|
32132
|
-
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$
|
|
32133
|
-
var BoltProtocol$
|
|
32134
|
-
__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);
|
|
32135
32328
|
function BoltProtocol() {
|
|
32136
32329
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32137
32330
|
}
|
|
@@ -32146,7 +32339,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
32146
32339
|
get: function () {
|
|
32147
32340
|
var _this = this;
|
|
32148
32341
|
if (this._transformer === undefined) {
|
|
32149
|
-
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); }));
|
|
32150
32343
|
}
|
|
32151
32344
|
return this._transformer;
|
|
32152
32345
|
},
|
|
@@ -32172,7 +32365,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
32172
32365
|
};
|
|
32173
32366
|
return BoltProtocol;
|
|
32174
32367
|
}(bolt_protocol_v5x3_1$1.default));
|
|
32175
|
-
boltProtocolV5x4.default = BoltProtocol$
|
|
32368
|
+
boltProtocolV5x4.default = BoltProtocol$3;
|
|
32176
32369
|
|
|
32177
32370
|
var boltProtocolV5x5 = {};
|
|
32178
32371
|
|
|
@@ -32194,8 +32387,8 @@ var boltProtocolV5x5_transformer = {};
|
|
|
32194
32387
|
* See the License for the specific language governing permissions and
|
|
32195
32388
|
* limitations under the License.
|
|
32196
32389
|
*/
|
|
32197
|
-
var __assign$
|
|
32198
|
-
__assign$
|
|
32390
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32391
|
+
__assign$4 = Object.assign || function(t) {
|
|
32199
32392
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32200
32393
|
s = arguments[i];
|
|
32201
32394
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32203,16 +32396,16 @@ var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32203
32396
|
}
|
|
32204
32397
|
return t;
|
|
32205
32398
|
};
|
|
32206
|
-
return __assign$
|
|
32399
|
+
return __assign$4.apply(this, arguments);
|
|
32207
32400
|
};
|
|
32208
|
-
var __importDefault$
|
|
32401
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32209
32402
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32210
32403
|
};
|
|
32211
32404
|
Object.defineProperty(boltProtocolV5x5_transformer, "__esModule", { value: true });
|
|
32212
|
-
var bolt_protocol_v5x4_transformer_1 = __importDefault$
|
|
32213
|
-
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);
|
|
32214
32407
|
|
|
32215
|
-
var __extends$
|
|
32408
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32216
32409
|
var extendStatics = function (d, b) {
|
|
32217
32410
|
extendStatics = Object.setPrototypeOf ||
|
|
32218
32411
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -32227,8 +32420,8 @@ var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
32227
32420
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32228
32421
|
};
|
|
32229
32422
|
})();
|
|
32230
|
-
var __assign$
|
|
32231
|
-
__assign$
|
|
32423
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
32424
|
+
__assign$3 = Object.assign || function(t) {
|
|
32232
32425
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32233
32426
|
s = arguments[i];
|
|
32234
32427
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -32236,9 +32429,9 @@ var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32236
32429
|
}
|
|
32237
32430
|
return t;
|
|
32238
32431
|
};
|
|
32239
|
-
return __assign$
|
|
32432
|
+
return __assign$3.apply(this, arguments);
|
|
32240
32433
|
};
|
|
32241
|
-
var __importDefault$
|
|
32434
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32242
32435
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32243
32436
|
};
|
|
32244
32437
|
Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
@@ -32258,20 +32451,20 @@ Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
|
32258
32451
|
* See the License for the specific language governing permissions and
|
|
32259
32452
|
* limitations under the License.
|
|
32260
32453
|
*/
|
|
32261
|
-
var bolt_protocol_v5x4_1$1 = __importDefault$
|
|
32262
|
-
var bolt_protocol_v5x5_transformer_1$
|
|
32263
|
-
var transformer_1$
|
|
32264
|
-
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);
|
|
32265
32458
|
var stream_observers_1 = streamObservers;
|
|
32266
|
-
var neo4j_driver_core_1$
|
|
32267
|
-
var _a$4 = neo4j_driver_core_1$
|
|
32268
|
-
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({
|
|
32269
32462
|
OPERATION: '',
|
|
32270
32463
|
OPERATION_CODE: '0',
|
|
32271
32464
|
CURRENT_SCHEMA: '/'
|
|
32272
32465
|
});
|
|
32273
|
-
var BoltProtocol$
|
|
32274
|
-
__extends$
|
|
32466
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
32467
|
+
__extends$9(BoltProtocol, _super);
|
|
32275
32468
|
function BoltProtocol() {
|
|
32276
32469
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32277
32470
|
}
|
|
@@ -32286,7 +32479,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
32286
32479
|
get: function () {
|
|
32287
32480
|
var _this = this;
|
|
32288
32481
|
if (this._transformer === undefined) {
|
|
32289
|
-
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); }));
|
|
32290
32483
|
}
|
|
32291
32484
|
return this._transformer;
|
|
32292
32485
|
},
|
|
@@ -32318,7 +32511,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
32318
32511
|
this.write(request_message_1.default.hello5x5(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
32319
32512
|
return this.logon({
|
|
32320
32513
|
authToken: authToken,
|
|
32321
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
32514
|
+
onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
|
|
32322
32515
|
onError: onError,
|
|
32323
32516
|
flush: true
|
|
32324
32517
|
});
|
|
@@ -32375,16 +32568,112 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
32375
32568
|
*/
|
|
32376
32569
|
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
32377
32570
|
if (Array.isArray(metadata.statuses)) {
|
|
32378
|
-
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 })); });
|
|
32379
32572
|
}
|
|
32380
32573
|
return metadata;
|
|
32381
32574
|
};
|
|
32382
32575
|
return BoltProtocol;
|
|
32383
32576
|
}(bolt_protocol_v5x4_1$1.default));
|
|
32384
|
-
boltProtocolV5x5.default = BoltProtocol$
|
|
32577
|
+
boltProtocolV5x5.default = BoltProtocol$2;
|
|
32385
32578
|
|
|
32386
32579
|
var boltProtocolV5x6 = {};
|
|
32387
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
|
+
|
|
32388
32677
|
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32389
32678
|
var extendStatics = function (d, b) {
|
|
32390
32679
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -32414,7 +32703,7 @@ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
32414
32703
|
var __importDefault$8 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
32415
32704
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32416
32705
|
};
|
|
32417
|
-
Object.defineProperty(
|
|
32706
|
+
Object.defineProperty(boltProtocolV5x7, "__esModule", { value: true });
|
|
32418
32707
|
/**
|
|
32419
32708
|
* Copyright (c) "Neo4j"
|
|
32420
32709
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -32431,11 +32720,11 @@ Object.defineProperty(boltProtocolV5x6, "__esModule", { value: true });
|
|
|
32431
32720
|
* See the License for the specific language governing permissions and
|
|
32432
32721
|
* limitations under the License.
|
|
32433
32722
|
*/
|
|
32434
|
-
var
|
|
32723
|
+
var bolt_protocol_v5x6_1$1 = __importDefault$8(boltProtocolV5x6);
|
|
32435
32724
|
var bolt_protocol_v5x5_transformer_1 = __importDefault$8(boltProtocolV5x5_transformer);
|
|
32436
32725
|
var transformer_1 = __importDefault$8(transformer);
|
|
32437
32726
|
var neo4j_driver_core_1$b = lib$1;
|
|
32438
|
-
var
|
|
32727
|
+
var BOLT_PROTOCOL_V5_7 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_7;
|
|
32439
32728
|
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
32440
32729
|
OPERATION: '',
|
|
32441
32730
|
OPERATION_CODE: '0',
|
|
@@ -32448,7 +32737,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
32448
32737
|
}
|
|
32449
32738
|
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
32450
32739
|
get: function () {
|
|
32451
|
-
return
|
|
32740
|
+
return BOLT_PROTOCOL_V5_7;
|
|
32452
32741
|
},
|
|
32453
32742
|
enumerable: false,
|
|
32454
32743
|
configurable: true
|
|
@@ -32469,15 +32758,12 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
32469
32758
|
* @param {object} metadata
|
|
32470
32759
|
* @returns {object}
|
|
32471
32760
|
*/
|
|
32472
|
-
BoltProtocol.prototype.
|
|
32473
|
-
|
|
32474
|
-
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 })); });
|
|
32475
|
-
}
|
|
32476
|
-
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 });
|
|
32477
32763
|
};
|
|
32478
32764
|
return BoltProtocol;
|
|
32479
|
-
}(
|
|
32480
|
-
|
|
32765
|
+
}(bolt_protocol_v5x6_1$1.default));
|
|
32766
|
+
boltProtocolV5x7.default = BoltProtocol;
|
|
32481
32767
|
|
|
32482
32768
|
var responseHandler = {};
|
|
32483
32769
|
|
|
@@ -32550,10 +32836,11 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
32550
32836
|
* @param {ResponseHandler~Observer} observer Object which will be notified about errors
|
|
32551
32837
|
*/
|
|
32552
32838
|
function ResponseHandler(_a) {
|
|
32553
|
-
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;
|
|
32554
32840
|
this._pendingObservers = [];
|
|
32555
32841
|
this._log = log;
|
|
32556
32842
|
this._transformMetadata = transformMetadata || NO_OP_IDENTITY;
|
|
32843
|
+
this._enrichErrorMetadata = enrichErrorMetadata || NO_OP_IDENTITY;
|
|
32557
32844
|
this._observer = Object.assign({
|
|
32558
32845
|
onObserversCountChange: NO_OP,
|
|
32559
32846
|
onError: NO_OP,
|
|
@@ -32594,9 +32881,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
32594
32881
|
this._log.debug("S: FAILURE ".concat(neo4j_driver_core_1$a.json.stringify(msg)));
|
|
32595
32882
|
}
|
|
32596
32883
|
try {
|
|
32597
|
-
|
|
32598
|
-
var error = (0, neo4j_driver_core_1$a.newError)(payload.message, standardizedCode);
|
|
32599
|
-
this._currentFailure = this._observer.onErrorApplyTransformation(error);
|
|
32884
|
+
this._currentFailure = this._handleErrorPayload(this._enrichErrorMetadata(payload));
|
|
32600
32885
|
this._currentObserver.onError(this._currentFailure);
|
|
32601
32886
|
}
|
|
32602
32887
|
finally {
|
|
@@ -32671,6 +32956,17 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
32671
32956
|
ResponseHandler.prototype._resetFailure = function () {
|
|
32672
32957
|
this._currentFailure = null;
|
|
32673
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
|
+
};
|
|
32674
32970
|
return ResponseHandler;
|
|
32675
32971
|
}());
|
|
32676
32972
|
responseHandler.default = ResponseHandler;
|
|
@@ -32729,6 +33025,7 @@ var bolt_protocol_v5x3_1 = __importDefault$7(boltProtocolV5x3);
|
|
|
32729
33025
|
var bolt_protocol_v5x4_1 = __importDefault$7(boltProtocolV5x4);
|
|
32730
33026
|
var bolt_protocol_v5x5_1 = __importDefault$7(boltProtocolV5x5);
|
|
32731
33027
|
var bolt_protocol_v5x6_1 = __importDefault$7(boltProtocolV5x6);
|
|
33028
|
+
var bolt_protocol_v5x7_1 = __importDefault$7(boltProtocolV5x7);
|
|
32732
33029
|
var response_handler_1 = __importDefault$7(responseHandler);
|
|
32733
33030
|
/**
|
|
32734
33031
|
* Creates a protocol with a given version
|
|
@@ -32750,6 +33047,7 @@ function create(_a) {
|
|
|
32750
33047
|
var createResponseHandler = function (protocol) {
|
|
32751
33048
|
var responseHandler = new response_handler_1.default({
|
|
32752
33049
|
transformMetadata: protocol.transformMetadata.bind(protocol),
|
|
33050
|
+
enrichErrorMetadata: protocol.enrichErrorMetadata.bind(protocol),
|
|
32753
33051
|
log: log,
|
|
32754
33052
|
observer: observer
|
|
32755
33053
|
});
|
|
@@ -32803,6 +33101,8 @@ function createProtocol(version, server, chunker, packingConfig, serversideRouti
|
|
|
32803
33101
|
return new bolt_protocol_v5x5_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32804
33102
|
case 5.6:
|
|
32805
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);
|
|
32806
33106
|
default:
|
|
32807
33107
|
throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
|
|
32808
33108
|
}
|
|
@@ -33541,7 +33841,7 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
33541
33841
|
reject(error);
|
|
33542
33842
|
}
|
|
33543
33843
|
else {
|
|
33544
|
-
var neo4jError = _this._handleProtocolError(
|
|
33844
|
+
var neo4jError = _this._handleProtocolError("Received FAILURE as a response for RESET: ".concat(error));
|
|
33545
33845
|
reject(neo4jError);
|
|
33546
33846
|
}
|
|
33547
33847
|
},
|