neo4j-driver 5.28.1 → 5.28.3
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/README.md +2 -2
- package/lib/browser/neo4j-web.esm.js +616 -406
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +616 -406
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +8 -8
- package/lib/result-rx.js +2 -2
- package/lib/version.js +1 -1
- package/package.json +19 -8
|
@@ -17,7 +17,9 @@ var json$3 = {};
|
|
|
17
17
|
var objectUtil$2 = {};
|
|
18
18
|
|
|
19
19
|
Object.defineProperty(objectUtil$2, "__esModule", { value: true });
|
|
20
|
-
objectUtil$2.
|
|
20
|
+
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
21
|
+
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
22
|
+
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
21
23
|
/**
|
|
22
24
|
* Copyright (c) "Neo4j"
|
|
23
25
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -77,7 +79,6 @@ function createBrokenObject(error, object) {
|
|
|
77
79
|
setPrototypeOf: fail
|
|
78
80
|
});
|
|
79
81
|
}
|
|
80
|
-
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
81
82
|
/**
|
|
82
83
|
* Verifies if it is a Broken Object
|
|
83
84
|
* @param {any} object The object
|
|
@@ -86,7 +87,6 @@ objectUtil$2.createBrokenObject = createBrokenObject;
|
|
|
86
87
|
function isBrokenObject(object) {
|
|
87
88
|
return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;
|
|
88
89
|
}
|
|
89
|
-
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
90
90
|
/**
|
|
91
91
|
* Returns if the reason the object is broken.
|
|
92
92
|
*
|
|
@@ -98,7 +98,6 @@ objectUtil$2.isBrokenObject = isBrokenObject;
|
|
|
98
98
|
function getBrokenObjectReason(object) {
|
|
99
99
|
return object[__reason__];
|
|
100
100
|
}
|
|
101
|
-
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
103
|
* Copyright (c) "Neo4j"
|
|
@@ -117,7 +116,7 @@ objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
|
117
116
|
* limitations under the License.
|
|
118
117
|
*/
|
|
119
118
|
Object.defineProperty(json$3, "__esModule", { value: true });
|
|
120
|
-
json$3.stringify =
|
|
119
|
+
json$3.stringify = stringify;
|
|
121
120
|
var object_util_1 = objectUtil$2;
|
|
122
121
|
/**
|
|
123
122
|
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
@@ -155,7 +154,6 @@ function stringify(val, opts) {
|
|
|
155
154
|
return value;
|
|
156
155
|
});
|
|
157
156
|
}
|
|
158
|
-
json$3.stringify = stringify;
|
|
159
157
|
|
|
160
158
|
var gqlConstants = {};
|
|
161
159
|
|
|
@@ -217,15 +215,27 @@ var __setModuleDefault$d = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
217
215
|
}) : function(o, v) {
|
|
218
216
|
o["default"] = v;
|
|
219
217
|
});
|
|
220
|
-
var __importStar$d = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
};
|
|
218
|
+
var __importStar$d = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
219
|
+
var ownKeys = function(o) {
|
|
220
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
221
|
+
var ar = [];
|
|
222
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
223
|
+
return ar;
|
|
224
|
+
};
|
|
225
|
+
return ownKeys(o);
|
|
226
|
+
};
|
|
227
|
+
return function (mod) {
|
|
228
|
+
if (mod && mod.__esModule) return mod;
|
|
229
|
+
var result = {};
|
|
230
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$d(result, mod, k[i]);
|
|
231
|
+
__setModuleDefault$d(result, mod);
|
|
232
|
+
return result;
|
|
233
|
+
};
|
|
234
|
+
})();
|
|
227
235
|
Object.defineProperty(error, "__esModule", { value: true });
|
|
228
|
-
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.GQLError = error.Neo4jError = error.isRetriableError =
|
|
236
|
+
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.GQLError = error.Neo4jError = error.isRetriableError = void 0;
|
|
237
|
+
error.newError = newError;
|
|
238
|
+
error.newGQLError = newGQLError;
|
|
229
239
|
// A common place for constructing error objects, to keep them
|
|
230
240
|
// uniform across the driver surface.
|
|
231
241
|
var json$2 = __importStar$d(json$3);
|
|
@@ -281,11 +291,10 @@ var GQLError = /** @class */ (function (_super) {
|
|
|
281
291
|
* @param {Error} cause - Optional nested error, the cause of the error
|
|
282
292
|
*/
|
|
283
293
|
function GQLError(message, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) {
|
|
284
|
-
var _this = this;
|
|
285
294
|
var _a;
|
|
286
295
|
// eslint-disable-next-line
|
|
287
296
|
// @ts-ignore: not available in ES6 yet
|
|
288
|
-
_this = _super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
297
|
+
var _this = _super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
289
298
|
_this.constructor = GQLError;
|
|
290
299
|
// eslint-disable-next-line no-proto
|
|
291
300
|
_this.__proto__ = GQLError.prototype;
|
|
@@ -336,6 +345,13 @@ var GQLError = /** @class */ (function (_super) {
|
|
|
336
345
|
* @public
|
|
337
346
|
*/
|
|
338
347
|
_this.rawClassification = (_a = diagnosticRecord === null || diagnosticRecord === void 0 ? void 0 : diagnosticRecord._classification) !== null && _a !== void 0 ? _a : undefined;
|
|
348
|
+
/**
|
|
349
|
+
* Represents the name for the type of error, inherited from base JavaScript {@link Error}.
|
|
350
|
+
* Will be 'GQLError' for {@link GQLError}s and 'Neo4jError' for {@link Neo4jError}s.
|
|
351
|
+
*
|
|
352
|
+
* @type {string}
|
|
353
|
+
* @public
|
|
354
|
+
*/
|
|
339
355
|
_this.name = 'GQLError';
|
|
340
356
|
return _this;
|
|
341
357
|
}
|
|
@@ -383,7 +399,20 @@ var Neo4jError = /** @class */ (function (_super) {
|
|
|
383
399
|
* @public
|
|
384
400
|
*/
|
|
385
401
|
_this.code = code;
|
|
402
|
+
/**
|
|
403
|
+
* The name of the type of error.
|
|
404
|
+
*
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @public
|
|
407
|
+
*/
|
|
386
408
|
_this.name = 'Neo4jError';
|
|
409
|
+
/**
|
|
410
|
+
* If the error is considered retriable.
|
|
411
|
+
* This does not apply when running auto-commit transactions using {@link Session#run}
|
|
412
|
+
*
|
|
413
|
+
* @type {boolean}
|
|
414
|
+
* @public
|
|
415
|
+
*/
|
|
387
416
|
_this.retriable = _isRetriableCode(code);
|
|
388
417
|
return _this;
|
|
389
418
|
}
|
|
@@ -416,7 +445,6 @@ error.Neo4jError = Neo4jError;
|
|
|
416
445
|
function newError(message, code, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
417
446
|
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);
|
|
418
447
|
}
|
|
419
|
-
error.newError = newError;
|
|
420
448
|
/**
|
|
421
449
|
* Create a new GQL error from a message and optional data
|
|
422
450
|
* @param message the error message
|
|
@@ -431,7 +459,6 @@ error.newError = newError;
|
|
|
431
459
|
function newGQLError(message, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
432
460
|
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);
|
|
433
461
|
}
|
|
434
|
-
error.newGQLError = newGQLError;
|
|
435
462
|
/**
|
|
436
463
|
* Verifies if the given error is retriable.
|
|
437
464
|
*
|
|
@@ -1510,13 +1537,23 @@ var __setModuleDefault$c = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
1510
1537
|
}) : function(o, v) {
|
|
1511
1538
|
o["default"] = v;
|
|
1512
1539
|
});
|
|
1513
|
-
var __importStar$c = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
};
|
|
1540
|
+
var __importStar$c = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
1541
|
+
var ownKeys = function(o) {
|
|
1542
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
1543
|
+
var ar = [];
|
|
1544
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
1545
|
+
return ar;
|
|
1546
|
+
};
|
|
1547
|
+
return ownKeys(o);
|
|
1548
|
+
};
|
|
1549
|
+
return function (mod) {
|
|
1550
|
+
if (mod && mod.__esModule) return mod;
|
|
1551
|
+
var result = {};
|
|
1552
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$c(result, mod, k[i]);
|
|
1553
|
+
__setModuleDefault$c(result, mod);
|
|
1554
|
+
return result;
|
|
1555
|
+
};
|
|
1556
|
+
})();
|
|
1520
1557
|
var __values$d = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
1521
1558
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1522
1559
|
if (m) return m.call(o);
|
|
@@ -1529,7 +1566,18 @@ var __values$d = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
|
1529
1566
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1530
1567
|
};
|
|
1531
1568
|
Object.defineProperty(util$4, "__esModule", { value: true });
|
|
1532
|
-
util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON =
|
|
1569
|
+
util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON = void 0;
|
|
1570
|
+
util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
1571
|
+
util$4.isObject = isObject;
|
|
1572
|
+
util$4.isString = isString$1;
|
|
1573
|
+
util$4.assertObject = assertObject;
|
|
1574
|
+
util$4.assertString = assertString$1;
|
|
1575
|
+
util$4.assertNumber = assertNumber;
|
|
1576
|
+
util$4.assertNumberOrInteger = assertNumberOrInteger;
|
|
1577
|
+
util$4.assertValidDate = assertValidDate;
|
|
1578
|
+
util$4.toNumber = toNumber;
|
|
1579
|
+
util$4.validateQueryAndParameters = validateQueryAndParameters;
|
|
1580
|
+
util$4.equals = equals$1;
|
|
1533
1581
|
/**
|
|
1534
1582
|
* Copyright (c) "Neo4j"
|
|
1535
1583
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -1572,7 +1620,6 @@ function isEmptyObjectOrNull(obj) {
|
|
|
1572
1620
|
}
|
|
1573
1621
|
return true;
|
|
1574
1622
|
}
|
|
1575
|
-
util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
1576
1623
|
/**
|
|
1577
1624
|
* Verify if it's an object
|
|
1578
1625
|
* @param obj The subject
|
|
@@ -1581,7 +1628,6 @@ util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
|
1581
1628
|
function isObject(obj) {
|
|
1582
1629
|
return typeof obj === 'object' && !Array.isArray(obj) && obj !== null;
|
|
1583
1630
|
}
|
|
1584
|
-
util$4.isObject = isObject;
|
|
1585
1631
|
/**
|
|
1586
1632
|
* Check and normalize given query and parameters.
|
|
1587
1633
|
* @param {string|{text: string, parameters: Object}} query the query to check.
|
|
@@ -1610,7 +1656,6 @@ function validateQueryAndParameters(query, parameters, opt) {
|
|
|
1610
1656
|
}
|
|
1611
1657
|
return { validatedQuery: validatedQuery, params: params };
|
|
1612
1658
|
}
|
|
1613
|
-
util$4.validateQueryAndParameters = validateQueryAndParameters;
|
|
1614
1659
|
/**
|
|
1615
1660
|
* Assert it's a object
|
|
1616
1661
|
* @param {any} obj The subject
|
|
@@ -1624,7 +1669,6 @@ function assertObject(obj, objName) {
|
|
|
1624
1669
|
}
|
|
1625
1670
|
return obj;
|
|
1626
1671
|
}
|
|
1627
|
-
util$4.assertObject = assertObject;
|
|
1628
1672
|
/**
|
|
1629
1673
|
* Assert it's a string
|
|
1630
1674
|
* @param {any} obj The subject
|
|
@@ -1638,7 +1682,6 @@ function assertString$1(obj, objName) {
|
|
|
1638
1682
|
}
|
|
1639
1683
|
return obj;
|
|
1640
1684
|
}
|
|
1641
|
-
util$4.assertString = assertString$1;
|
|
1642
1685
|
/**
|
|
1643
1686
|
* Assert it's a number
|
|
1644
1687
|
* @param {any} obj The subject
|
|
@@ -1652,7 +1695,6 @@ function assertNumber(obj, objName) {
|
|
|
1652
1695
|
}
|
|
1653
1696
|
return obj;
|
|
1654
1697
|
}
|
|
1655
|
-
util$4.assertNumber = assertNumber;
|
|
1656
1698
|
/**
|
|
1657
1699
|
* Assert it's a number or integer
|
|
1658
1700
|
* @param {any} obj The subject
|
|
@@ -1668,7 +1710,6 @@ function assertNumberOrInteger(obj, objName) {
|
|
|
1668
1710
|
}
|
|
1669
1711
|
return obj;
|
|
1670
1712
|
}
|
|
1671
|
-
util$4.assertNumberOrInteger = assertNumberOrInteger;
|
|
1672
1713
|
/**
|
|
1673
1714
|
* Assert it's a valid datae
|
|
1674
1715
|
* @param {any} obj The subject
|
|
@@ -1689,7 +1730,6 @@ function assertValidDate(obj, objName) {
|
|
|
1689
1730
|
}
|
|
1690
1731
|
return obj;
|
|
1691
1732
|
}
|
|
1692
|
-
util$4.assertValidDate = assertValidDate;
|
|
1693
1733
|
/**
|
|
1694
1734
|
* Validates a cypher query string
|
|
1695
1735
|
* @param {any} obj The query
|
|
@@ -1725,7 +1765,6 @@ function assertQueryParameters(obj) {
|
|
|
1725
1765
|
function isString$1(str) {
|
|
1726
1766
|
return Object.prototype.toString.call(str) === '[object String]';
|
|
1727
1767
|
}
|
|
1728
|
-
util$4.isString = isString$1;
|
|
1729
1768
|
/**
|
|
1730
1769
|
* Verifies if object are the equals
|
|
1731
1770
|
* @param {unknown} a
|
|
@@ -1765,7 +1804,6 @@ function equals$1(a, b) {
|
|
|
1765
1804
|
}
|
|
1766
1805
|
return false;
|
|
1767
1806
|
}
|
|
1768
|
-
util$4.equals = equals$1;
|
|
1769
1807
|
/**
|
|
1770
1808
|
* Converts (Integer | bigint) to number.
|
|
1771
1809
|
*
|
|
@@ -1784,7 +1822,6 @@ function toNumber(value) {
|
|
|
1784
1822
|
return value;
|
|
1785
1823
|
}
|
|
1786
1824
|
}
|
|
1787
|
-
util$4.toNumber = toNumber;
|
|
1788
1825
|
|
|
1789
1826
|
(function (exports) {
|
|
1790
1827
|
/**
|
|
@@ -1819,15 +1856,49 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
1819
1856
|
}) : function(o, v) {
|
|
1820
1857
|
o["default"] = v;
|
|
1821
1858
|
});
|
|
1822
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
};
|
|
1859
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
1860
|
+
var ownKeys = function(o) {
|
|
1861
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
1862
|
+
var ar = [];
|
|
1863
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
1864
|
+
return ar;
|
|
1865
|
+
};
|
|
1866
|
+
return ownKeys(o);
|
|
1867
|
+
};
|
|
1868
|
+
return function (mod) {
|
|
1869
|
+
if (mod && mod.__esModule) return mod;
|
|
1870
|
+
var result = {};
|
|
1871
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
1872
|
+
__setModuleDefault(result, mod);
|
|
1873
|
+
return result;
|
|
1874
|
+
};
|
|
1875
|
+
})();
|
|
1829
1876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1830
|
-
exports.
|
|
1877
|
+
exports.SECONDS_PER_DAY = exports.DAYS_PER_400_YEAR_CYCLE = exports.DAYS_0000_TO_1970 = exports.NANOS_PER_HOUR = exports.NANOS_PER_MINUTE = exports.NANOS_PER_MILLISECOND = exports.NANOS_PER_SECOND = exports.SECONDS_PER_HOUR = exports.SECONDS_PER_MINUTE = exports.MINUTES_PER_HOUR = exports.NANOSECOND_OF_SECOND_RANGE = exports.SECOND_OF_MINUTE_RANGE = exports.MINUTE_OF_HOUR_RANGE = exports.HOUR_OF_DAY_RANGE = exports.DAY_OF_MONTH_RANGE = exports.MONTH_OF_YEAR_RANGE = exports.YEAR_RANGE = void 0;
|
|
1878
|
+
exports.normalizeSecondsForDuration = normalizeSecondsForDuration;
|
|
1879
|
+
exports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;
|
|
1880
|
+
exports.localTimeToNanoOfDay = localTimeToNanoOfDay;
|
|
1881
|
+
exports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;
|
|
1882
|
+
exports.dateToEpochDay = dateToEpochDay;
|
|
1883
|
+
exports.durationToIsoString = durationToIsoString;
|
|
1884
|
+
exports.timeToIsoString = timeToIsoString;
|
|
1885
|
+
exports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;
|
|
1886
|
+
exports.dateToIsoString = dateToIsoString;
|
|
1887
|
+
exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
1888
|
+
exports.toStandardDate = toStandardDate;
|
|
1889
|
+
exports.newDate = newDate;
|
|
1890
|
+
exports.totalNanoseconds = totalNanoseconds;
|
|
1891
|
+
exports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;
|
|
1892
|
+
exports.assertValidYear = assertValidYear;
|
|
1893
|
+
exports.assertValidMonth = assertValidMonth;
|
|
1894
|
+
exports.assertValidDay = assertValidDay;
|
|
1895
|
+
exports.assertValidHour = assertValidHour;
|
|
1896
|
+
exports.assertValidMinute = assertValidMinute;
|
|
1897
|
+
exports.assertValidSecond = assertValidSecond;
|
|
1898
|
+
exports.assertValidNanosecond = assertValidNanosecond;
|
|
1899
|
+
exports.assertValidZoneId = assertValidZoneId;
|
|
1900
|
+
exports.floorDiv = floorDiv;
|
|
1901
|
+
exports.floorMod = floorMod;
|
|
1831
1902
|
var integer_1 = __importStar(integer);
|
|
1832
1903
|
var error_1 = error;
|
|
1833
1904
|
var util_1 = util$4;
|
|
@@ -1887,11 +1958,9 @@ exports.SECONDS_PER_DAY = 86400;
|
|
|
1887
1958
|
function normalizeSecondsForDuration(seconds, nanoseconds) {
|
|
1888
1959
|
return (0, integer_1.int)(seconds).add(floorDiv(nanoseconds, exports.NANOS_PER_SECOND));
|
|
1889
1960
|
}
|
|
1890
|
-
exports.normalizeSecondsForDuration = normalizeSecondsForDuration;
|
|
1891
1961
|
function normalizeNanosecondsForDuration(nanoseconds) {
|
|
1892
1962
|
return floorMod(nanoseconds, exports.NANOS_PER_SECOND);
|
|
1893
1963
|
}
|
|
1894
|
-
exports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;
|
|
1895
1964
|
/**
|
|
1896
1965
|
* Converts given local time into a single integer representing this same time in nanoseconds of the day.
|
|
1897
1966
|
* @param {Integer|number|string} hour the hour of the local time to convert.
|
|
@@ -1910,7 +1979,6 @@ function localTimeToNanoOfDay(hour, minute, second, nanosecond) {
|
|
|
1910
1979
|
totalNanos = totalNanos.add(second.multiply(exports.NANOS_PER_SECOND));
|
|
1911
1980
|
return totalNanos.add(nanosecond);
|
|
1912
1981
|
}
|
|
1913
|
-
exports.localTimeToNanoOfDay = localTimeToNanoOfDay;
|
|
1914
1982
|
/**
|
|
1915
1983
|
* Converts given local date time into a single integer representing this same time in epoch seconds UTC.
|
|
1916
1984
|
* @param {Integer|number|string} year the year of the local date-time to convert.
|
|
@@ -1927,7 +1995,6 @@ function localDateTimeToEpochSecond(year, month, day, hour, minute, second, nano
|
|
|
1927
1995
|
var localTimeSeconds = localTimeToSecondOfDay(hour, minute, second);
|
|
1928
1996
|
return epochDay.multiply(exports.SECONDS_PER_DAY).add(localTimeSeconds);
|
|
1929
1997
|
}
|
|
1930
|
-
exports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;
|
|
1931
1998
|
/**
|
|
1932
1999
|
* Converts given local date into a single integer representing it's epoch day.
|
|
1933
2000
|
* @param {Integer|number|string} year the year of the local date to convert.
|
|
@@ -1966,7 +2033,6 @@ function dateToEpochDay(year, month, day) {
|
|
|
1966
2033
|
}
|
|
1967
2034
|
return epochDay.subtract(exports.DAYS_0000_TO_1970);
|
|
1968
2035
|
}
|
|
1969
|
-
exports.dateToEpochDay = dateToEpochDay;
|
|
1970
2036
|
/**
|
|
1971
2037
|
* Format given duration to an ISO 8601 string.
|
|
1972
2038
|
* @param {Integer|number|string} months the number of months.
|
|
@@ -1981,7 +2047,6 @@ function durationToIsoString(months, days, seconds, nanoseconds) {
|
|
|
1981
2047
|
var secondsAndNanosecondsString = formatSecondsAndNanosecondsForDuration(seconds, nanoseconds);
|
|
1982
2048
|
return "P".concat(monthsString, "M").concat(daysString, "DT").concat(secondsAndNanosecondsString, "S");
|
|
1983
2049
|
}
|
|
1984
|
-
exports.durationToIsoString = durationToIsoString;
|
|
1985
2050
|
/**
|
|
1986
2051
|
* Formats given time to an ISO 8601 string.
|
|
1987
2052
|
* @param {Integer|number|string} hour the hour value.
|
|
@@ -1997,7 +2062,6 @@ function timeToIsoString(hour, minute, second, nanosecond) {
|
|
|
1997
2062
|
var nanosecondString = formatNanosecond(nanosecond);
|
|
1998
2063
|
return "".concat(hourString, ":").concat(minuteString, ":").concat(secondString).concat(nanosecondString);
|
|
1999
2064
|
}
|
|
2000
|
-
exports.timeToIsoString = timeToIsoString;
|
|
2001
2065
|
/**
|
|
2002
2066
|
* Formats given time zone offset in seconds to string representation like '±HH:MM', '±HH:MM:SS' or 'Z' for UTC.
|
|
2003
2067
|
* @param {Integer|number|string} offsetSeconds the offset in seconds.
|
|
@@ -2021,7 +2085,6 @@ function timeZoneOffsetToIsoString(offsetSeconds) {
|
|
|
2021
2085
|
? "".concat(signPrefix).concat(hours, ":").concat(minutes, ":").concat(seconds)
|
|
2022
2086
|
: "".concat(signPrefix).concat(hours, ":").concat(minutes);
|
|
2023
2087
|
}
|
|
2024
|
-
exports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;
|
|
2025
2088
|
/**
|
|
2026
2089
|
* Formats given date to an ISO 8601 string.
|
|
2027
2090
|
* @param {Integer|number|string} year the date year.
|
|
@@ -2035,7 +2098,6 @@ function dateToIsoString(year, month, day) {
|
|
|
2035
2098
|
var dayString = formatNumber(day, 2);
|
|
2036
2099
|
return "".concat(yearString, "-").concat(monthString, "-").concat(dayString);
|
|
2037
2100
|
}
|
|
2038
|
-
exports.dateToIsoString = dateToIsoString;
|
|
2039
2101
|
/**
|
|
2040
2102
|
* Convert the given iso date string to a JavaScript Date object
|
|
2041
2103
|
*
|
|
@@ -2045,7 +2107,6 @@ exports.dateToIsoString = dateToIsoString;
|
|
|
2045
2107
|
function isoStringToStandardDate(isoString) {
|
|
2046
2108
|
return new Date(isoString);
|
|
2047
2109
|
}
|
|
2048
|
-
exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
2049
2110
|
/**
|
|
2050
2111
|
* Convert the given utc timestamp to a JavaScript Date object
|
|
2051
2112
|
*
|
|
@@ -2055,7 +2116,6 @@ exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
|
2055
2116
|
function toStandardDate(utc) {
|
|
2056
2117
|
return new Date(utc);
|
|
2057
2118
|
}
|
|
2058
|
-
exports.toStandardDate = toStandardDate;
|
|
2059
2119
|
/**
|
|
2060
2120
|
* Shortcut for creating a new StandardDate
|
|
2061
2121
|
* @param date
|
|
@@ -2064,7 +2124,6 @@ exports.toStandardDate = toStandardDate;
|
|
|
2064
2124
|
function newDate(date) {
|
|
2065
2125
|
return new Date(date);
|
|
2066
2126
|
}
|
|
2067
|
-
exports.newDate = newDate;
|
|
2068
2127
|
/**
|
|
2069
2128
|
* Get the total number of nanoseconds from the milliseconds of the given standard JavaScript date and optional nanosecond part.
|
|
2070
2129
|
* @param {global.Date} standardDate the standard JavaScript date.
|
|
@@ -2076,7 +2135,6 @@ function totalNanoseconds(standardDate, nanoseconds) {
|
|
|
2076
2135
|
var nanosFromMillis = standardDate.getMilliseconds() * exports.NANOS_PER_MILLISECOND;
|
|
2077
2136
|
return add(nanoseconds, nanosFromMillis);
|
|
2078
2137
|
}
|
|
2079
|
-
exports.totalNanoseconds = totalNanoseconds;
|
|
2080
2138
|
/**
|
|
2081
2139
|
* Get the time zone offset in seconds from the given standard JavaScript date.
|
|
2082
2140
|
*
|
|
@@ -2090,7 +2148,6 @@ function timeZoneOffsetInSeconds(standardDate) {
|
|
|
2090
2148
|
var daysPortion = _getDayOffset(standardDate);
|
|
2091
2149
|
return hoursPortion * exports.SECONDS_PER_HOUR + minutesPortion * exports.SECONDS_PER_MINUTE + secondsPortion + daysPortion * exports.SECONDS_PER_DAY;
|
|
2092
2150
|
}
|
|
2093
|
-
exports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;
|
|
2094
2151
|
/**
|
|
2095
2152
|
* Get the difference in days from the given JavaScript date in local time and UTC.
|
|
2096
2153
|
*
|
|
@@ -2141,7 +2198,6 @@ function _daysUntilNextMonth(month, year) {
|
|
|
2141
2198
|
function assertValidYear(year) {
|
|
2142
2199
|
return assertValidTemporalValue(year, exports.YEAR_RANGE, 'Year');
|
|
2143
2200
|
}
|
|
2144
|
-
exports.assertValidYear = assertValidYear;
|
|
2145
2201
|
/**
|
|
2146
2202
|
* Assert that the month value is valid.
|
|
2147
2203
|
* @param {Integer|number} month the value to check.
|
|
@@ -2150,7 +2206,6 @@ exports.assertValidYear = assertValidYear;
|
|
|
2150
2206
|
function assertValidMonth(month) {
|
|
2151
2207
|
return assertValidTemporalValue(month, exports.MONTH_OF_YEAR_RANGE, 'Month');
|
|
2152
2208
|
}
|
|
2153
|
-
exports.assertValidMonth = assertValidMonth;
|
|
2154
2209
|
/**
|
|
2155
2210
|
* Assert that the day value is valid.
|
|
2156
2211
|
* @param {Integer|number} day the value to check.
|
|
@@ -2159,7 +2214,6 @@ exports.assertValidMonth = assertValidMonth;
|
|
|
2159
2214
|
function assertValidDay(day) {
|
|
2160
2215
|
return assertValidTemporalValue(day, exports.DAY_OF_MONTH_RANGE, 'Day');
|
|
2161
2216
|
}
|
|
2162
|
-
exports.assertValidDay = assertValidDay;
|
|
2163
2217
|
/**
|
|
2164
2218
|
* Assert that the hour value is valid.
|
|
2165
2219
|
* @param {Integer|number} hour the value to check.
|
|
@@ -2168,7 +2222,6 @@ exports.assertValidDay = assertValidDay;
|
|
|
2168
2222
|
function assertValidHour(hour) {
|
|
2169
2223
|
return assertValidTemporalValue(hour, exports.HOUR_OF_DAY_RANGE, 'Hour');
|
|
2170
2224
|
}
|
|
2171
|
-
exports.assertValidHour = assertValidHour;
|
|
2172
2225
|
/**
|
|
2173
2226
|
* Assert that the minute value is valid.
|
|
2174
2227
|
* @param {Integer|number} minute the value to check.
|
|
@@ -2177,7 +2230,6 @@ exports.assertValidHour = assertValidHour;
|
|
|
2177
2230
|
function assertValidMinute(minute) {
|
|
2178
2231
|
return assertValidTemporalValue(minute, exports.MINUTE_OF_HOUR_RANGE, 'Minute');
|
|
2179
2232
|
}
|
|
2180
|
-
exports.assertValidMinute = assertValidMinute;
|
|
2181
2233
|
/**
|
|
2182
2234
|
* Assert that the second value is valid.
|
|
2183
2235
|
* @param {Integer|number} second the value to check.
|
|
@@ -2186,7 +2238,6 @@ exports.assertValidMinute = assertValidMinute;
|
|
|
2186
2238
|
function assertValidSecond(second) {
|
|
2187
2239
|
return assertValidTemporalValue(second, exports.SECOND_OF_MINUTE_RANGE, 'Second');
|
|
2188
2240
|
}
|
|
2189
|
-
exports.assertValidSecond = assertValidSecond;
|
|
2190
2241
|
/**
|
|
2191
2242
|
* Assert that the nanosecond value is valid.
|
|
2192
2243
|
* @param {Integer|number} nanosecond the value to check.
|
|
@@ -2195,7 +2246,6 @@ exports.assertValidSecond = assertValidSecond;
|
|
|
2195
2246
|
function assertValidNanosecond(nanosecond) {
|
|
2196
2247
|
return assertValidTemporalValue(nanosecond, exports.NANOSECOND_OF_SECOND_RANGE, 'Nanosecond');
|
|
2197
2248
|
}
|
|
2198
|
-
exports.assertValidNanosecond = assertValidNanosecond;
|
|
2199
2249
|
var timeZoneValidityCache = new Map();
|
|
2200
2250
|
var newInvalidZoneIdError = function (zoneId, fieldName) { return (0, error_1.newError)("".concat(fieldName, " is expected to be a valid ZoneId but was: \"").concat(zoneId, "\"")); };
|
|
2201
2251
|
function assertValidZoneId(fieldName, zoneId) {
|
|
@@ -2215,7 +2265,6 @@ function assertValidZoneId(fieldName, zoneId) {
|
|
|
2215
2265
|
throw newInvalidZoneIdError(zoneId, fieldName);
|
|
2216
2266
|
}
|
|
2217
2267
|
}
|
|
2218
|
-
exports.assertValidZoneId = assertValidZoneId;
|
|
2219
2268
|
/**
|
|
2220
2269
|
* Check if the given value is of expected type and is in the expected range.
|
|
2221
2270
|
* @param {Integer|number} value the value to check.
|
|
@@ -2279,7 +2328,6 @@ function floorDiv(x, y) {
|
|
|
2279
2328
|
}
|
|
2280
2329
|
return result;
|
|
2281
2330
|
}
|
|
2282
|
-
exports.floorDiv = floorDiv;
|
|
2283
2331
|
/**
|
|
2284
2332
|
* @param {Integer|number|string} x the divident.
|
|
2285
2333
|
* @param {Integer|number|string} y the divisor.
|
|
@@ -2290,7 +2338,6 @@ function floorMod(x, y) {
|
|
|
2290
2338
|
y = (0, integer_1.int)(y);
|
|
2291
2339
|
return x.subtract(floorDiv(x, y).multiply(y));
|
|
2292
2340
|
}
|
|
2293
|
-
exports.floorMod = floorMod;
|
|
2294
2341
|
/**
|
|
2295
2342
|
* @param {Integer|number|string} seconds the number of seconds to format.
|
|
2296
2343
|
* @param {Integer|number|string} nanoseconds the number of nanoseconds to format.
|
|
@@ -2416,13 +2463,23 @@ var __setModuleDefault$b = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
2416
2463
|
}) : function(o, v) {
|
|
2417
2464
|
o["default"] = v;
|
|
2418
2465
|
});
|
|
2419
|
-
var __importStar$b = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
};
|
|
2466
|
+
var __importStar$b = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
2467
|
+
var ownKeys = function(o) {
|
|
2468
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
2469
|
+
var ar = [];
|
|
2470
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
2471
|
+
return ar;
|
|
2472
|
+
};
|
|
2473
|
+
return ownKeys(o);
|
|
2474
|
+
};
|
|
2475
|
+
return function (mod) {
|
|
2476
|
+
if (mod && mod.__esModule) return mod;
|
|
2477
|
+
var result = {};
|
|
2478
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$b(result, mod, k[i]);
|
|
2479
|
+
__setModuleDefault$b(result, mod);
|
|
2480
|
+
return result;
|
|
2481
|
+
};
|
|
2482
|
+
})();
|
|
2426
2483
|
var __read$x = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
2427
2484
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2428
2485
|
if (!m) return o;
|
|
@@ -2440,7 +2497,13 @@ var __read$x = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
2440
2497
|
return ar;
|
|
2441
2498
|
};
|
|
2442
2499
|
Object.defineProperty(temporalTypes, "__esModule", { value: true });
|
|
2443
|
-
temporalTypes.
|
|
2500
|
+
temporalTypes.DateTime = temporalTypes.LocalDateTime = temporalTypes.Date = temporalTypes.Time = temporalTypes.LocalTime = temporalTypes.Duration = void 0;
|
|
2501
|
+
temporalTypes.isDuration = isDuration;
|
|
2502
|
+
temporalTypes.isLocalTime = isLocalTime;
|
|
2503
|
+
temporalTypes.isTime = isTime;
|
|
2504
|
+
temporalTypes.isDate = isDate$1;
|
|
2505
|
+
temporalTypes.isLocalDateTime = isLocalDateTime;
|
|
2506
|
+
temporalTypes.isDateTime = isDateTime;
|
|
2444
2507
|
var util$3 = __importStar$b(temporalUtil$1);
|
|
2445
2508
|
var util_1$7 = util$4;
|
|
2446
2509
|
var error_1$c = error;
|
|
@@ -2512,7 +2575,6 @@ Object.defineProperty(Duration.prototype, DURATION_IDENTIFIER_PROPERTY, IDENTIFI
|
|
|
2512
2575
|
function isDuration(obj) {
|
|
2513
2576
|
return hasIdentifierProperty$1(obj, DURATION_IDENTIFIER_PROPERTY);
|
|
2514
2577
|
}
|
|
2515
|
-
temporalTypes.isDuration = isDuration;
|
|
2516
2578
|
/**
|
|
2517
2579
|
* Represents an instant capturing the time of day, but not the date, nor the timezone.
|
|
2518
2580
|
* Created {@link LocalTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2582,7 +2644,6 @@ Object.defineProperty(LocalTime.prototype, LOCAL_TIME_IDENTIFIER_PROPERTY, IDENT
|
|
|
2582
2644
|
function isLocalTime(obj) {
|
|
2583
2645
|
return hasIdentifierProperty$1(obj, LOCAL_TIME_IDENTIFIER_PROPERTY);
|
|
2584
2646
|
}
|
|
2585
|
-
temporalTypes.isLocalTime = isLocalTime;
|
|
2586
2647
|
/**
|
|
2587
2648
|
* Represents an instant capturing the time of day, and the timezone offset in seconds, but not the date.
|
|
2588
2649
|
* Created {@link Time} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2654,7 +2715,6 @@ Object.defineProperty(Time.prototype, TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPE
|
|
|
2654
2715
|
function isTime(obj) {
|
|
2655
2716
|
return hasIdentifierProperty$1(obj, TIME_IDENTIFIER_PROPERTY);
|
|
2656
2717
|
}
|
|
2657
|
-
temporalTypes.isTime = isTime;
|
|
2658
2718
|
/**
|
|
2659
2719
|
* Represents an instant capturing the date, but not the time, nor the timezone.
|
|
2660
2720
|
* Created {@link Date} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2729,7 +2789,6 @@ Object.defineProperty(Date$1.prototype, DATE_IDENTIFIER_PROPERTY, IDENTIFIER_PRO
|
|
|
2729
2789
|
function isDate$1(obj) {
|
|
2730
2790
|
return hasIdentifierProperty$1(obj, DATE_IDENTIFIER_PROPERTY);
|
|
2731
2791
|
}
|
|
2732
|
-
temporalTypes.isDate = isDate$1;
|
|
2733
2792
|
/**
|
|
2734
2793
|
* Represents an instant capturing the date and the time, but not the timezone.
|
|
2735
2794
|
* Created {@link LocalDateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2820,7 +2879,6 @@ Object.defineProperty(LocalDateTime.prototype, LOCAL_DATE_TIME_IDENTIFIER_PROPER
|
|
|
2820
2879
|
function isLocalDateTime(obj) {
|
|
2821
2880
|
return hasIdentifierProperty$1(obj, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY);
|
|
2822
2881
|
}
|
|
2823
|
-
temporalTypes.isLocalDateTime = isLocalDateTime;
|
|
2824
2882
|
/**
|
|
2825
2883
|
* Represents an instant capturing the date, the time and the timezone identifier.
|
|
2826
2884
|
* Created {@ DateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2956,7 +3014,6 @@ Object.defineProperty(DateTime.prototype, DATE_TIME_IDENTIFIER_PROPERTY, IDENTIF
|
|
|
2956
3014
|
function isDateTime(obj) {
|
|
2957
3015
|
return hasIdentifierProperty$1(obj, DATE_TIME_IDENTIFIER_PROPERTY);
|
|
2958
3016
|
}
|
|
2959
|
-
temporalTypes.isDateTime = isDateTime;
|
|
2960
3017
|
function hasIdentifierProperty$1(obj, property) {
|
|
2961
3018
|
return obj != null && obj[property] === true;
|
|
2962
3019
|
}
|
|
@@ -3007,7 +3064,12 @@ function verifyStandardDateAndNanos(standardDate, nanosecond) {
|
|
|
3007
3064
|
var graphTypes = {};
|
|
3008
3065
|
|
|
3009
3066
|
Object.defineProperty(graphTypes, "__esModule", { value: true });
|
|
3010
|
-
graphTypes.
|
|
3067
|
+
graphTypes.PathSegment = graphTypes.Path = graphTypes.UnboundRelationship = graphTypes.Relationship = graphTypes.Node = void 0;
|
|
3068
|
+
graphTypes.isNode = isNode;
|
|
3069
|
+
graphTypes.isRelationship = isRelationship;
|
|
3070
|
+
graphTypes.isUnboundRelationship = isUnboundRelationship;
|
|
3071
|
+
graphTypes.isPath = isPath;
|
|
3072
|
+
graphTypes.isPathSegment = isPathSegment;
|
|
3011
3073
|
var json_1$2 = json$3;
|
|
3012
3074
|
var IDENTIFIER_PROPERTY_ATTRIBUTES = {
|
|
3013
3075
|
value: true,
|
|
@@ -3091,7 +3153,6 @@ Object.defineProperty(Node.prototype, NODE_IDENTIFIER_PROPERTY, IDENTIFIER_PROPE
|
|
|
3091
3153
|
function isNode(obj) {
|
|
3092
3154
|
return hasIdentifierProperty(obj, NODE_IDENTIFIER_PROPERTY);
|
|
3093
3155
|
}
|
|
3094
|
-
graphTypes.isNode = isNode;
|
|
3095
3156
|
/**
|
|
3096
3157
|
* Class for Relationship Type.
|
|
3097
3158
|
*/
|
|
@@ -3183,7 +3244,6 @@ Object.defineProperty(Relationship.prototype, RELATIONSHIP_IDENTIFIER_PROPERTY,
|
|
|
3183
3244
|
function isRelationship(obj) {
|
|
3184
3245
|
return hasIdentifierProperty(obj, RELATIONSHIP_IDENTIFIER_PROPERTY);
|
|
3185
3246
|
}
|
|
3186
|
-
graphTypes.isRelationship = isRelationship;
|
|
3187
3247
|
/**
|
|
3188
3248
|
* Class for UnboundRelationship Type.
|
|
3189
3249
|
* @access private
|
|
@@ -3274,7 +3334,6 @@ Object.defineProperty(UnboundRelationship.prototype, UNBOUND_RELATIONSHIP_IDENTI
|
|
|
3274
3334
|
function isUnboundRelationship(obj) {
|
|
3275
3335
|
return hasIdentifierProperty(obj, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY);
|
|
3276
3336
|
}
|
|
3277
|
-
graphTypes.isUnboundRelationship = isUnboundRelationship;
|
|
3278
3337
|
/**
|
|
3279
3338
|
* Class for PathSegment Type.
|
|
3280
3339
|
*/
|
|
@@ -3315,7 +3374,6 @@ Object.defineProperty(PathSegment.prototype, PATH_SEGMENT_IDENTIFIER_PROPERTY, I
|
|
|
3315
3374
|
function isPathSegment(obj) {
|
|
3316
3375
|
return hasIdentifierProperty(obj, PATH_SEGMENT_IDENTIFIER_PROPERTY);
|
|
3317
3376
|
}
|
|
3318
|
-
graphTypes.isPathSegment = isPathSegment;
|
|
3319
3377
|
/**
|
|
3320
3378
|
* Class for Path Type.
|
|
3321
3379
|
*/
|
|
@@ -3361,7 +3419,6 @@ Object.defineProperty(Path.prototype, PATH_IDENTIFIER_PROPERTY, IDENTIFIER_PROPE
|
|
|
3361
3419
|
function isPath(obj) {
|
|
3362
3420
|
return hasIdentifierProperty(obj, PATH_IDENTIFIER_PROPERTY);
|
|
3363
3421
|
}
|
|
3364
|
-
graphTypes.isPath = isPath;
|
|
3365
3422
|
function _valueOrGetDefault(value, getDefault) {
|
|
3366
3423
|
return value === undefined || value === null ? getDefault() : value;
|
|
3367
3424
|
}
|
|
@@ -3385,8 +3442,8 @@ var record = {};
|
|
|
3385
3442
|
* limitations under the License.
|
|
3386
3443
|
*/
|
|
3387
3444
|
var __generator$n = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
3388
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3389
|
-
return g =
|
|
3445
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
3446
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3390
3447
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3391
3448
|
function step(op) {
|
|
3392
3449
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -3694,7 +3751,8 @@ record.default = Record;
|
|
|
3694
3751
|
var spatialTypes = {};
|
|
3695
3752
|
|
|
3696
3753
|
Object.defineProperty(spatialTypes, "__esModule", { value: true });
|
|
3697
|
-
spatialTypes.
|
|
3754
|
+
spatialTypes.Point = void 0;
|
|
3755
|
+
spatialTypes.isPoint = isPoint;
|
|
3698
3756
|
/**
|
|
3699
3757
|
* Copyright (c) "Neo4j"
|
|
3700
3758
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -3777,7 +3835,6 @@ function isPoint(obj) {
|
|
|
3777
3835
|
var anyObj = obj;
|
|
3778
3836
|
return obj != null && anyObj[POINT_IDENTIFIER_PROPERTY] === true;
|
|
3779
3837
|
}
|
|
3780
|
-
spatialTypes.isPoint = isPoint;
|
|
3781
3838
|
|
|
3782
3839
|
var resultSummary = {};
|
|
3783
3840
|
|
|
@@ -3908,13 +3965,23 @@ var __setModuleDefault$a = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
3908
3965
|
}) : function(o, v) {
|
|
3909
3966
|
o["default"] = v;
|
|
3910
3967
|
});
|
|
3911
|
-
var __importStar$a = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
};
|
|
3968
|
+
var __importStar$a = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
3969
|
+
var ownKeys = function(o) {
|
|
3970
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
3971
|
+
var ar = [];
|
|
3972
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
3973
|
+
return ar;
|
|
3974
|
+
};
|
|
3975
|
+
return ownKeys(o);
|
|
3976
|
+
};
|
|
3977
|
+
return function (mod) {
|
|
3978
|
+
if (mod && mod.__esModule) return mod;
|
|
3979
|
+
var result = {};
|
|
3980
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$a(result, mod, k[i]);
|
|
3981
|
+
__setModuleDefault$a(result, mod);
|
|
3982
|
+
return result;
|
|
3983
|
+
};
|
|
3984
|
+
})();
|
|
3918
3985
|
var __read$v = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
3919
3986
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3920
3987
|
if (!m) return o;
|
|
@@ -4372,8 +4439,8 @@ var __awaiter$k = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
4372
4439
|
});
|
|
4373
4440
|
};
|
|
4374
4441
|
var __generator$m = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4375
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4376
|
-
return g =
|
|
4442
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
4443
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4377
4444
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4378
4445
|
function step(op) {
|
|
4379
4446
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -4716,13 +4783,23 @@ var __setModuleDefault$9 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
4716
4783
|
}) : function(o, v) {
|
|
4717
4784
|
o["default"] = v;
|
|
4718
4785
|
});
|
|
4719
|
-
var __importStar$9 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
};
|
|
4786
|
+
var __importStar$9 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
4787
|
+
var ownKeys = function(o) {
|
|
4788
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
4789
|
+
var ar = [];
|
|
4790
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
4791
|
+
return ar;
|
|
4792
|
+
};
|
|
4793
|
+
return ownKeys(o);
|
|
4794
|
+
};
|
|
4795
|
+
return function (mod) {
|
|
4796
|
+
if (mod && mod.__esModule) return mod;
|
|
4797
|
+
var result = {};
|
|
4798
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$9(result, mod, k[i]);
|
|
4799
|
+
__setModuleDefault$9(result, mod);
|
|
4800
|
+
return result;
|
|
4801
|
+
};
|
|
4802
|
+
})();
|
|
4726
4803
|
Object.defineProperty(txConfig$1, "__esModule", { value: true });
|
|
4727
4804
|
txConfig$1.TxConfig = void 0;
|
|
4728
4805
|
var util$1 = __importStar$9(util$4);
|
|
@@ -4826,8 +4903,8 @@ var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
4826
4903
|
});
|
|
4827
4904
|
};
|
|
4828
4905
|
var __generator$l = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4829
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4830
|
-
return g =
|
|
4906
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
4907
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4831
4908
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4832
4909
|
function step(op) {
|
|
4833
4910
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -5135,7 +5212,11 @@ var __read$t = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
5135
5212
|
return ar;
|
|
5136
5213
|
};
|
|
5137
5214
|
Object.defineProperty(urlUtil$2, "__esModule", { value: true });
|
|
5138
|
-
urlUtil$2.Url =
|
|
5215
|
+
urlUtil$2.Url = void 0;
|
|
5216
|
+
urlUtil$2.parseDatabaseUrl = parseDatabaseUrl;
|
|
5217
|
+
urlUtil$2.defaultPortForScheme = defaultPortForScheme;
|
|
5218
|
+
urlUtil$2.formatIPv4Address = formatIPv4Address;
|
|
5219
|
+
urlUtil$2.formatIPv6Address = formatIPv6Address;
|
|
5139
5220
|
var util_1$4 = util$4;
|
|
5140
5221
|
var DEFAULT_BOLT_PORT = 7687;
|
|
5141
5222
|
var DEFAULT_HTTP_PORT = 7474;
|
|
@@ -5194,7 +5275,6 @@ function parseDatabaseUrl(url) {
|
|
|
5194
5275
|
(_a = parsedUrl.query) !== null && _a !== void 0 ? _a : extractResourceQueryString(parsedUrl.resourceName), url);
|
|
5195
5276
|
return new Url(scheme, host, port, hostAndPort, query);
|
|
5196
5277
|
}
|
|
5197
|
-
urlUtil$2.parseDatabaseUrl = parseDatabaseUrl;
|
|
5198
5278
|
function extractResourceQueryString(resource) {
|
|
5199
5279
|
if (typeof resource !== 'string') {
|
|
5200
5280
|
return null;
|
|
@@ -5286,12 +5366,10 @@ function formatHost(host) {
|
|
|
5286
5366
|
function formatIPv4Address(address, port) {
|
|
5287
5367
|
return "".concat(address, ":").concat(port);
|
|
5288
5368
|
}
|
|
5289
|
-
urlUtil$2.formatIPv4Address = formatIPv4Address;
|
|
5290
5369
|
function formatIPv6Address(address, port) {
|
|
5291
5370
|
var escapedAddress = escapeIPv6Address(address);
|
|
5292
5371
|
return "".concat(escapedAddress, ":").concat(port);
|
|
5293
5372
|
}
|
|
5294
|
-
urlUtil$2.formatIPv6Address = formatIPv6Address;
|
|
5295
5373
|
function defaultPortForScheme(scheme) {
|
|
5296
5374
|
if (scheme === 'http') {
|
|
5297
5375
|
return DEFAULT_HTTP_PORT;
|
|
@@ -5303,7 +5381,6 @@ function defaultPortForScheme(scheme) {
|
|
|
5303
5381
|
return DEFAULT_BOLT_PORT;
|
|
5304
5382
|
}
|
|
5305
5383
|
}
|
|
5306
|
-
urlUtil$2.defaultPortForScheme = defaultPortForScheme;
|
|
5307
5384
|
function uriJsParse(value) {
|
|
5308
5385
|
// JS version of Python partition function
|
|
5309
5386
|
function partition(s, delimiter) {
|
|
@@ -5405,13 +5482,23 @@ var __setModuleDefault$8 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
5405
5482
|
}) : function(o, v) {
|
|
5406
5483
|
o["default"] = v;
|
|
5407
5484
|
});
|
|
5408
|
-
var __importStar$8 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
};
|
|
5485
|
+
var __importStar$8 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
5486
|
+
var ownKeys = function(o) {
|
|
5487
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
5488
|
+
var ar = [];
|
|
5489
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
5490
|
+
return ar;
|
|
5491
|
+
};
|
|
5492
|
+
return ownKeys(o);
|
|
5493
|
+
};
|
|
5494
|
+
return function (mod) {
|
|
5495
|
+
if (mod && mod.__esModule) return mod;
|
|
5496
|
+
var result = {};
|
|
5497
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$8(result, mod, k[i]);
|
|
5498
|
+
__setModuleDefault$8(result, mod);
|
|
5499
|
+
return result;
|
|
5500
|
+
};
|
|
5501
|
+
})();
|
|
5415
5502
|
Object.defineProperty(serverAddress$1, "__esModule", { value: true });
|
|
5416
5503
|
serverAddress$1.ServerAddress = void 0;
|
|
5417
5504
|
/**
|
|
@@ -5600,7 +5687,7 @@ var boltAgent$1 = {};
|
|
|
5600
5687
|
*/
|
|
5601
5688
|
/* eslint-disable */
|
|
5602
5689
|
Object.defineProperty(boltAgent$1, "__esModule", { value: true });
|
|
5603
|
-
boltAgent$1.fromVersion =
|
|
5690
|
+
boltAgent$1.fromVersion = fromVersion;
|
|
5604
5691
|
/**
|
|
5605
5692
|
* Constructs a BoltAgent structure from a given product version.
|
|
5606
5693
|
*
|
|
@@ -5629,7 +5716,6 @@ function fromVersion(version, getSystemInfo) {
|
|
|
5629
5716
|
languageDetails: languageDetails
|
|
5630
5717
|
};
|
|
5631
5718
|
}
|
|
5632
|
-
boltAgent$1.fromVersion = fromVersion;
|
|
5633
5719
|
|
|
5634
5720
|
(function (exports) {
|
|
5635
5721
|
/**
|
|
@@ -5747,8 +5833,8 @@ var __awaiter$i = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
5747
5833
|
});
|
|
5748
5834
|
};
|
|
5749
5835
|
var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5750
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5751
|
-
return g =
|
|
5836
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
5837
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5752
5838
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
5753
5839
|
function step(op) {
|
|
5754
5840
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -6416,13 +6502,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
6416
6502
|
}) : function(o, v) {
|
|
6417
6503
|
o["default"] = v;
|
|
6418
6504
|
});
|
|
6419
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
};
|
|
6505
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
6506
|
+
var ownKeys = function(o) {
|
|
6507
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
6508
|
+
var ar = [];
|
|
6509
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
6510
|
+
return ar;
|
|
6511
|
+
};
|
|
6512
|
+
return ownKeys(o);
|
|
6513
|
+
};
|
|
6514
|
+
return function (mod) {
|
|
6515
|
+
if (mod && mod.__esModule) return mod;
|
|
6516
|
+
var result = {};
|
|
6517
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
6518
|
+
__setModuleDefault(result, mod);
|
|
6519
|
+
return result;
|
|
6520
|
+
};
|
|
6521
|
+
})();
|
|
6426
6522
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6427
6523
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6428
6524
|
};
|
|
@@ -6469,13 +6565,23 @@ var __setModuleDefault$7 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
6469
6565
|
}) : function(o, v) {
|
|
6470
6566
|
o["default"] = v;
|
|
6471
6567
|
});
|
|
6472
|
-
var __importStar$7 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
};
|
|
6568
|
+
var __importStar$7 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
6569
|
+
var ownKeys = function(o) {
|
|
6570
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
6571
|
+
var ar = [];
|
|
6572
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
6573
|
+
return ar;
|
|
6574
|
+
};
|
|
6575
|
+
return ownKeys(o);
|
|
6576
|
+
};
|
|
6577
|
+
return function (mod) {
|
|
6578
|
+
if (mod && mod.__esModule) return mod;
|
|
6579
|
+
var result = {};
|
|
6580
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$7(result, mod, k[i]);
|
|
6581
|
+
__setModuleDefault$7(result, mod);
|
|
6582
|
+
return result;
|
|
6583
|
+
};
|
|
6584
|
+
})();
|
|
6479
6585
|
Object.defineProperty(internal, "__esModule", { value: true });
|
|
6480
6586
|
internal.pool = internal.boltAgent = internal.objectUtil = internal.resolver = internal.serverAddress = internal.urlUtil = internal.logger = internal.transactionExecutor = internal.txConfig = internal.connectionHolder = internal.constants = internal.bookmarks = internal.observer = internal.temporalUtil = internal.util = void 0;
|
|
6481
6587
|
var util = __importStar$7(util$4);
|
|
@@ -6538,13 +6644,23 @@ var __setModuleDefault$6 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
6538
6644
|
}) : function(o, v) {
|
|
6539
6645
|
o["default"] = v;
|
|
6540
6646
|
});
|
|
6541
|
-
var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
};
|
|
6647
|
+
var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
6648
|
+
var ownKeys = function(o) {
|
|
6649
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
6650
|
+
var ar = [];
|
|
6651
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
6652
|
+
return ar;
|
|
6653
|
+
};
|
|
6654
|
+
return ownKeys(o);
|
|
6655
|
+
};
|
|
6656
|
+
return function (mod) {
|
|
6657
|
+
if (mod && mod.__esModule) return mod;
|
|
6658
|
+
var result = {};
|
|
6659
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$6(result, mod, k[i]);
|
|
6660
|
+
__setModuleDefault$6(result, mod);
|
|
6661
|
+
return result;
|
|
6662
|
+
};
|
|
6663
|
+
})();
|
|
6548
6664
|
var __read$s = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
6549
6665
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
6550
6666
|
if (!m) return o;
|
|
@@ -6571,7 +6687,11 @@ var __spreadArray$m = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
6571
6687
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6572
6688
|
};
|
|
6573
6689
|
Object.defineProperty(notification, "__esModule", { value: true });
|
|
6574
|
-
notification.
|
|
6690
|
+
notification.GqlStatusObject = notification.Notification = notification.notificationClassification = notification.notificationCategory = notification.notificationSeverityLevel = void 0;
|
|
6691
|
+
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6692
|
+
notification.polyfillNotification = polyfillNotification;
|
|
6693
|
+
notification.buildGqlStatusObjectFromMetadata = buildGqlStatusObjectFromMetadata;
|
|
6694
|
+
notification.buildNotificationsFromMetadata = buildNotificationsFromMetadata;
|
|
6575
6695
|
/**
|
|
6576
6696
|
* Copyright (c) "Neo4j"
|
|
6577
6697
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -6929,7 +7049,6 @@ function polyfillNotification(status) {
|
|
|
6929
7049
|
position: (_c = status.diagnostic_record) === null || _c === void 0 ? void 0 : _c._position
|
|
6930
7050
|
});
|
|
6931
7051
|
}
|
|
6932
|
-
notification.polyfillNotification = polyfillNotification;
|
|
6933
7052
|
/**
|
|
6934
7053
|
* @private
|
|
6935
7054
|
* @param notification
|
|
@@ -6956,7 +7075,6 @@ function polyfillGqlStatusObject(notification) {
|
|
|
6956
7075
|
}
|
|
6957
7076
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6958
7077
|
}
|
|
6959
|
-
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6960
7078
|
/**
|
|
6961
7079
|
* This objects are used for polyfilling the first status on the status list
|
|
6962
7080
|
*
|
|
@@ -7008,7 +7126,6 @@ function buildGqlStatusObjectFromMetadata(metadata) {
|
|
|
7008
7126
|
var polyfilledObjects = __spreadArray$m([clientGenerated], __read$s(((_b = (_a = metadata.notifications) === null || _a === void 0 ? void 0 : _a.map(polyfillGqlStatusObject)) !== null && _b !== void 0 ? _b : [])), false);
|
|
7009
7127
|
return polyfilledObjects.sort(function (a, b) { return calculateWeight(a) - calculateWeight(b); });
|
|
7010
7128
|
}
|
|
7011
|
-
notification.buildGqlStatusObjectFromMetadata = buildGqlStatusObjectFromMetadata;
|
|
7012
7129
|
var gqlStatusWeightByClass = Object.freeze({
|
|
7013
7130
|
'02': 0,
|
|
7014
7131
|
'01': 1,
|
|
@@ -7040,7 +7157,6 @@ function buildNotificationsFromMetadata(metadata) {
|
|
|
7040
7157
|
}
|
|
7041
7158
|
return [];
|
|
7042
7159
|
}
|
|
7043
|
-
notification.buildNotificationsFromMetadata = buildNotificationsFromMetadata;
|
|
7044
7160
|
/**
|
|
7045
7161
|
*
|
|
7046
7162
|
* @private
|
|
@@ -7619,8 +7735,8 @@ var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
7619
7735
|
});
|
|
7620
7736
|
};
|
|
7621
7737
|
var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
7622
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
7623
|
-
return g =
|
|
7738
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
7739
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
7624
7740
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
7625
7741
|
function step(op) {
|
|
7626
7742
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -7805,7 +7921,7 @@ var Result = /** @class */ (function () {
|
|
|
7805
7921
|
/**
|
|
7806
7922
|
* Provides a async iterator over the records in the result.
|
|
7807
7923
|
*
|
|
7808
|
-
* *Should not be combined with {@link Result#subscribe} or
|
|
7924
|
+
* *Should not be combined with {@link Result#subscribe} or {@link Result#then} functions.*
|
|
7809
7925
|
*
|
|
7810
7926
|
* @public
|
|
7811
7927
|
* @returns {PeekableAsyncIterator<Record<R>, ResultSummary>} The async iterator for the Results
|
|
@@ -8106,9 +8222,9 @@ var Result = /** @class */ (function () {
|
|
|
8106
8222
|
return elementOrError instanceof Error;
|
|
8107
8223
|
}
|
|
8108
8224
|
function dequeue() {
|
|
8109
|
-
var _b;
|
|
8110
8225
|
return __awaiter$h(this, void 0, void 0, function () {
|
|
8111
8226
|
var element;
|
|
8227
|
+
var _b;
|
|
8112
8228
|
return __generator$j(this, function (_c) {
|
|
8113
8229
|
switch (_c.label) {
|
|
8114
8230
|
case 0:
|
|
@@ -8574,8 +8690,8 @@ var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
8574
8690
|
});
|
|
8575
8691
|
};
|
|
8576
8692
|
var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
8577
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8578
|
-
return g =
|
|
8693
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8694
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
8579
8695
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
8580
8696
|
function step(op) {
|
|
8581
8697
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9346,7 +9462,7 @@ var authUtil = {};
|
|
|
9346
9462
|
* limitations under the License.
|
|
9347
9463
|
*/
|
|
9348
9464
|
Object.defineProperty(authUtil, "__esModule", { value: true });
|
|
9349
|
-
authUtil.cacheKey =
|
|
9465
|
+
authUtil.cacheKey = cacheKey;
|
|
9350
9466
|
var json_1$1 = json$3;
|
|
9351
9467
|
function cacheKey(auth, impersonatedUser) {
|
|
9352
9468
|
var _a;
|
|
@@ -9370,7 +9486,6 @@ function cacheKey(auth, impersonatedUser) {
|
|
|
9370
9486
|
}
|
|
9371
9487
|
return (0, json_1$1.stringify)(auth, { sortedElements: true });
|
|
9372
9488
|
}
|
|
9373
|
-
authUtil.cacheKey = cacheKey;
|
|
9374
9489
|
|
|
9375
9490
|
/**
|
|
9376
9491
|
* Copyright (c) "Neo4j"
|
|
@@ -9398,8 +9513,8 @@ var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
9398
9513
|
});
|
|
9399
9514
|
};
|
|
9400
9515
|
var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
9401
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
9402
|
-
return g =
|
|
9516
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
9517
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
9403
9518
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
9404
9519
|
function step(op) {
|
|
9405
9520
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9732,9 +9847,9 @@ var Session = /** @class */ (function () {
|
|
|
9732
9847
|
return this._lastBookmarks.values();
|
|
9733
9848
|
};
|
|
9734
9849
|
Session.prototype._bookmarks = function () {
|
|
9735
|
-
var _a;
|
|
9736
9850
|
return __awaiter$f(this, void 0, void 0, function () {
|
|
9737
9851
|
var bookmarks;
|
|
9852
|
+
var _a;
|
|
9738
9853
|
return __generator$h(this, function (_b) {
|
|
9739
9854
|
switch (_b.label) {
|
|
9740
9855
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
@@ -9871,9 +9986,9 @@ var Session = /** @class */ (function () {
|
|
|
9871
9986
|
}
|
|
9872
9987
|
};
|
|
9873
9988
|
Session.prototype._getConnectionAcquistionBookmarks = function () {
|
|
9874
|
-
var _a;
|
|
9875
9989
|
return __awaiter$f(this, void 0, void 0, function () {
|
|
9876
9990
|
var bookmarks;
|
|
9991
|
+
var _a;
|
|
9877
9992
|
return __generator$h(this, function (_b) {
|
|
9878
9993
|
switch (_b.label) {
|
|
9879
9994
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
@@ -9957,7 +10072,7 @@ var Session = /** @class */ (function () {
|
|
|
9957
10072
|
Session.prototype._calculateWatermaks = function () {
|
|
9958
10073
|
if (this._fetchSize === constants_1$2.FETCH_ALL) {
|
|
9959
10074
|
return {
|
|
9960
|
-
low: Number.MAX_VALUE,
|
|
10075
|
+
low: Number.MAX_VALUE, // we shall always lower than this number to enable auto pull
|
|
9961
10076
|
high: Number.MAX_VALUE // we shall never reach this number to disable auto pull
|
|
9962
10077
|
};
|
|
9963
10078
|
}
|
|
@@ -10031,8 +10146,8 @@ var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10031
10146
|
});
|
|
10032
10147
|
};
|
|
10033
10148
|
var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10034
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10035
|
-
return g =
|
|
10149
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10150
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10036
10151
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10037
10152
|
function step(op) {
|
|
10038
10153
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10094,7 +10209,7 @@ var __spreadArray$k = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
10094
10209
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10095
10210
|
};
|
|
10096
10211
|
Object.defineProperty(bookmarkManager$1, "__esModule", { value: true });
|
|
10097
|
-
bookmarkManager$1.bookmarkManager =
|
|
10212
|
+
bookmarkManager$1.bookmarkManager = bookmarkManager;
|
|
10098
10213
|
/**
|
|
10099
10214
|
* Interface for the piece of software responsible for keeping track of current active bookmarks accross the driver.
|
|
10100
10215
|
* @interface
|
|
@@ -10160,7 +10275,6 @@ function bookmarkManager(config) {
|
|
|
10160
10275
|
var initialBookmarks = new Set(config.initialBookmarks);
|
|
10161
10276
|
return new Neo4jBookmarkManager(initialBookmarks, config.bookmarksSupplier, config.bookmarksConsumer);
|
|
10162
10277
|
}
|
|
10163
|
-
bookmarkManager$1.bookmarkManager = bookmarkManager;
|
|
10164
10278
|
var Neo4jBookmarkManager = /** @class */ (function () {
|
|
10165
10279
|
function Neo4jBookmarkManager(_bookmarks, _bookmarksSupplier, _bookmarksConsumer) {
|
|
10166
10280
|
this._bookmarks = _bookmarks;
|
|
@@ -10212,10 +10326,10 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
10212
10326
|
});
|
|
10213
10327
|
};
|
|
10214
10328
|
Neo4jBookmarkManager.prototype.getBookmarks = function () {
|
|
10215
|
-
var _a;
|
|
10216
10329
|
return __awaiter$e(this, void 0, void 0, function () {
|
|
10217
10330
|
var bookmarks, suppliedBookmarks, suppliedBookmarks_1, suppliedBookmarks_1_1, bm;
|
|
10218
|
-
var e_3,
|
|
10331
|
+
var e_3, _a;
|
|
10332
|
+
var _b;
|
|
10219
10333
|
return __generator$g(this, function (_c) {
|
|
10220
10334
|
switch (_c.label) {
|
|
10221
10335
|
case 0:
|
|
@@ -10223,7 +10337,7 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
10223
10337
|
if (!(typeof this._bookmarksSupplier === 'function')) return [3 /*break*/, 2];
|
|
10224
10338
|
return [4 /*yield*/, this._bookmarksSupplier()];
|
|
10225
10339
|
case 1:
|
|
10226
|
-
suppliedBookmarks = (
|
|
10340
|
+
suppliedBookmarks = (_b = _c.sent()) !== null && _b !== void 0 ? _b : [];
|
|
10227
10341
|
try {
|
|
10228
10342
|
for (suppliedBookmarks_1 = __values$b(suppliedBookmarks), suppliedBookmarks_1_1 = suppliedBookmarks_1.next(); !suppliedBookmarks_1_1.done; suppliedBookmarks_1_1 = suppliedBookmarks_1.next()) {
|
|
10229
10343
|
bm = suppliedBookmarks_1_1.value;
|
|
@@ -10233,7 +10347,7 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
10233
10347
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
10234
10348
|
finally {
|
|
10235
10349
|
try {
|
|
10236
|
-
if (suppliedBookmarks_1_1 && !suppliedBookmarks_1_1.done && (
|
|
10350
|
+
if (suppliedBookmarks_1_1 && !suppliedBookmarks_1_1.done && (_a = suppliedBookmarks_1.return)) _a.call(suppliedBookmarks_1);
|
|
10237
10351
|
}
|
|
10238
10352
|
finally { if (e_3) throw e_3.error; }
|
|
10239
10353
|
}
|
|
@@ -10274,8 +10388,8 @@ var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10274
10388
|
});
|
|
10275
10389
|
};
|
|
10276
10390
|
var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10277
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10278
|
-
return g =
|
|
10391
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10392
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10279
10393
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10280
10394
|
function step(op) {
|
|
10281
10395
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10677,8 +10791,8 @@ var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10677
10791
|
});
|
|
10678
10792
|
};
|
|
10679
10793
|
var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10680
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10681
|
-
return g =
|
|
10794
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10795
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10682
10796
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10683
10797
|
function step(op) {
|
|
10684
10798
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10874,8 +10988,8 @@ var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10874
10988
|
});
|
|
10875
10989
|
};
|
|
10876
10990
|
var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10877
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10878
|
-
return g =
|
|
10991
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
10992
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10879
10993
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10880
10994
|
function step(op) {
|
|
10881
10995
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -11387,11 +11501,11 @@ var Driver$1 = /** @class */ (function () {
|
|
|
11387
11501
|
*
|
|
11388
11502
|
* @see {@link resultTransformers} for provided result transformers.
|
|
11389
11503
|
*/
|
|
11390
|
-
Driver.prototype.executeQuery = function (
|
|
11391
|
-
|
|
11392
|
-
if (config === void 0) { config = {}; }
|
|
11393
|
-
return __awaiter$b(this, void 0, void 0, function () {
|
|
11504
|
+
Driver.prototype.executeQuery = function (query_1, parameters_1) {
|
|
11505
|
+
return __awaiter$b(this, arguments, void 0, function (query, parameters, config) {
|
|
11394
11506
|
var bookmarkManager, resultTransformer, routingConfig;
|
|
11507
|
+
var _a, _b, _c;
|
|
11508
|
+
if (config === void 0) { config = {}; }
|
|
11395
11509
|
return __generator$d(this, function (_d) {
|
|
11396
11510
|
switch (_d.label) {
|
|
11397
11511
|
case 0:
|
|
@@ -11443,10 +11557,10 @@ var Driver$1 = /** @class */ (function () {
|
|
|
11443
11557
|
* @returns {Promise<boolean>} promise resolved with true if succeed, false if failed with
|
|
11444
11558
|
* authentication issue and rejected with error if non-authentication error happens.
|
|
11445
11559
|
*/
|
|
11446
|
-
Driver.prototype.verifyAuthentication = function (
|
|
11447
|
-
|
|
11448
|
-
return __awaiter$b(this, void 0, void 0, function () {
|
|
11560
|
+
Driver.prototype.verifyAuthentication = function () {
|
|
11561
|
+
return __awaiter$b(this, arguments, void 0, function (_a) {
|
|
11449
11562
|
var connectionProvider;
|
|
11563
|
+
var _b = _a === void 0 ? {} : _a, database = _b.database, auth = _b.auth;
|
|
11450
11564
|
return __generator$d(this, function (_c) {
|
|
11451
11565
|
switch (_c.label) {
|
|
11452
11566
|
case 0:
|
|
@@ -11599,6 +11713,12 @@ var Driver$1 = /** @class */ (function () {
|
|
|
11599
11713
|
/**
|
|
11600
11714
|
* Close all open sessions and other associated resources. You should
|
|
11601
11715
|
* make sure to use this when you are done with this driver instance.
|
|
11716
|
+
*
|
|
11717
|
+
* This will interrupt any running connections.
|
|
11718
|
+
* Make sure you are done using the driver object and any resources
|
|
11719
|
+
* spawned from it (such as sessions or transactions) while calling
|
|
11720
|
+
* this method. Failing to do so will result in unspecified behavior.
|
|
11721
|
+
*
|
|
11602
11722
|
* @public
|
|
11603
11723
|
* @return {Promise<void>} promise resolved when the driver is closed.
|
|
11604
11724
|
*/
|
|
@@ -11823,7 +11943,7 @@ var auth = {
|
|
|
11823
11943
|
kerberos: function (base64EncodedTicket) {
|
|
11824
11944
|
return {
|
|
11825
11945
|
scheme: 'kerberos',
|
|
11826
|
-
principal: '',
|
|
11946
|
+
principal: '', // This empty string is required for backwards compatibility.
|
|
11827
11947
|
credentials: base64EncodedTicket
|
|
11828
11948
|
};
|
|
11829
11949
|
},
|
|
@@ -11897,8 +12017,8 @@ var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
11897
12017
|
});
|
|
11898
12018
|
};
|
|
11899
12019
|
var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
11900
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
11901
|
-
return g =
|
|
12020
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12021
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
11902
12022
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
11903
12023
|
function step(op) {
|
|
11904
12024
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -11927,7 +12047,8 @@ var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
11927
12047
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11928
12048
|
};
|
|
11929
12049
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11930
|
-
authTokenManager.
|
|
12050
|
+
authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
12051
|
+
authTokenManager.staticAuthTokenManager = staticAuthTokenManager;
|
|
11931
12052
|
var auth_1 = __importDefault$U(auth$1);
|
|
11932
12053
|
var internal_1 = internal;
|
|
11933
12054
|
/**
|
|
@@ -12068,7 +12189,6 @@ function staticAuthTokenManager(_a) {
|
|
|
12068
12189
|
var authToken = _a.authToken;
|
|
12069
12190
|
return new StaticAuthTokenManager(authToken);
|
|
12070
12191
|
}
|
|
12071
|
-
authTokenManager.staticAuthTokenManager = staticAuthTokenManager;
|
|
12072
12192
|
var TokenRefreshObservable = /** @class */ (function () {
|
|
12073
12193
|
function TokenRefreshObservable(_subscribers) {
|
|
12074
12194
|
if (_subscribers === void 0) { _subscribers = []; }
|
|
@@ -12093,8 +12213,8 @@ var ExpirationBasedAuthTokenManager = /** @class */ (function () {
|
|
|
12093
12213
|
this._refreshObservable = _refreshObservable;
|
|
12094
12214
|
}
|
|
12095
12215
|
ExpirationBasedAuthTokenManager.prototype.getToken = function () {
|
|
12096
|
-
var _a;
|
|
12097
12216
|
return __awaiter$a(this, void 0, void 0, function () {
|
|
12217
|
+
var _a;
|
|
12098
12218
|
return __generator$c(this, function (_b) {
|
|
12099
12219
|
switch (_b.label) {
|
|
12100
12220
|
case 0:
|
|
@@ -12302,7 +12422,7 @@ var Config = /** @class */ (function () {
|
|
|
12302
12422
|
this.connectionAcquisitionTimeout = 60000; // 1 minute
|
|
12303
12423
|
/**
|
|
12304
12424
|
* Specify the maximum time in milliseconds transactions are allowed to retry via
|
|
12305
|
-
* {@link Session#executeRead}
|
|
12425
|
+
* {@link Session#executeRead}, {@link Session#executeWrite}, and {@link Driver#executeQuery} functions.
|
|
12306
12426
|
*
|
|
12307
12427
|
* These functions will retry the given unit of work on `ServiceUnavailable`, `SessionExpired` and transient
|
|
12308
12428
|
* errors with exponential backoff using an initial delay of 1 second.
|
|
@@ -12542,15 +12662,26 @@ var __setModuleDefault$5 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
12542
12662
|
}) : function(o, v) {
|
|
12543
12663
|
o["default"] = v;
|
|
12544
12664
|
});
|
|
12545
|
-
var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
};
|
|
12665
|
+
var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
12666
|
+
var ownKeys = function(o) {
|
|
12667
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
12668
|
+
var ar = [];
|
|
12669
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
12670
|
+
return ar;
|
|
12671
|
+
};
|
|
12672
|
+
return ownKeys(o);
|
|
12673
|
+
};
|
|
12674
|
+
return function (mod) {
|
|
12675
|
+
if (mod && mod.__esModule) return mod;
|
|
12676
|
+
var result = {};
|
|
12677
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$5(result, mod, k[i]);
|
|
12678
|
+
__setModuleDefault$5(result, mod);
|
|
12679
|
+
return result;
|
|
12680
|
+
};
|
|
12681
|
+
})();
|
|
12552
12682
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12553
|
-
clientCertificate.
|
|
12683
|
+
clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12684
|
+
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
12554
12685
|
var json = __importStar$5(json$3);
|
|
12555
12686
|
/**
|
|
12556
12687
|
* Represents KeyFile represented as file.
|
|
@@ -12726,7 +12857,6 @@ function resolveCertificateProvider(input) {
|
|
|
12726
12857
|
}
|
|
12727
12858
|
throw new TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(json.stringify(input)));
|
|
12728
12859
|
}
|
|
12729
|
-
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
12730
12860
|
/**
|
|
12731
12861
|
* Verify if object is a client certificate
|
|
12732
12862
|
* @private
|
|
@@ -12879,13 +13009,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
12879
13009
|
}) : function(o, v) {
|
|
12880
13010
|
o["default"] = v;
|
|
12881
13011
|
});
|
|
12882
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
};
|
|
13012
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
13013
|
+
var ownKeys = function(o) {
|
|
13014
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
13015
|
+
var ar = [];
|
|
13016
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
13017
|
+
return ar;
|
|
13018
|
+
};
|
|
13019
|
+
return ownKeys(o);
|
|
13020
|
+
};
|
|
13021
|
+
return function (mod) {
|
|
13022
|
+
if (mod && mod.__esModule) return mod;
|
|
13023
|
+
var result = {};
|
|
13024
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
13025
|
+
__setModuleDefault(result, mod);
|
|
13026
|
+
return result;
|
|
13027
|
+
};
|
|
13028
|
+
})();
|
|
12889
13029
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
12890
13030
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12891
13031
|
};
|
|
@@ -15159,7 +15299,7 @@ var AnimationFrameAction = (function (_super) {
|
|
|
15159
15299
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
15160
15300
|
}
|
|
15161
15301
|
var actions = scheduler.actions;
|
|
15162
|
-
if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
|
15302
|
+
if (id != null && id === scheduler._scheduled && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
|
15163
15303
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
15164
15304
|
scheduler._scheduled = undefined;
|
|
15165
15305
|
}
|
|
@@ -15196,8 +15336,14 @@ var AnimationFrameScheduler = (function (_super) {
|
|
|
15196
15336
|
}
|
|
15197
15337
|
AnimationFrameScheduler.prototype.flush = function (action) {
|
|
15198
15338
|
this._active = true;
|
|
15199
|
-
var flushId
|
|
15200
|
-
|
|
15339
|
+
var flushId;
|
|
15340
|
+
if (action) {
|
|
15341
|
+
flushId = action.id;
|
|
15342
|
+
}
|
|
15343
|
+
else {
|
|
15344
|
+
flushId = this._scheduled;
|
|
15345
|
+
this._scheduled = undefined;
|
|
15346
|
+
}
|
|
15201
15347
|
var actions = this.actions;
|
|
15202
15348
|
var error;
|
|
15203
15349
|
action = action || actions.shift();
|
|
@@ -16110,11 +16256,13 @@ var EmptyError = {};
|
|
|
16110
16256
|
Object.defineProperty(EmptyError, "__esModule", { value: true });
|
|
16111
16257
|
EmptyError.EmptyError = void 0;
|
|
16112
16258
|
var createErrorClass_1$3 = createErrorClass$1;
|
|
16113
|
-
EmptyError.EmptyError = createErrorClass_1$3.createErrorClass(function (_super) {
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16259
|
+
EmptyError.EmptyError = createErrorClass_1$3.createErrorClass(function (_super) {
|
|
16260
|
+
return function EmptyErrorImpl() {
|
|
16261
|
+
_super(this);
|
|
16262
|
+
this.name = 'EmptyError';
|
|
16263
|
+
this.message = 'no elements in sequence';
|
|
16264
|
+
};
|
|
16265
|
+
});
|
|
16118
16266
|
|
|
16119
16267
|
Object.defineProperty(lastValueFrom$1, "__esModule", { value: true });
|
|
16120
16268
|
lastValueFrom$1.lastValueFrom = void 0;
|
|
@@ -17108,7 +17256,7 @@ argsOrArgArray$1.argsOrArgArray = argsOrArgArray;
|
|
|
17108
17256
|
Object.defineProperty(onErrorResumeNext$1, "__esModule", { value: true });
|
|
17109
17257
|
onErrorResumeNext$1.onErrorResumeNext = void 0;
|
|
17110
17258
|
var Observable_1$6 = Observable$1;
|
|
17111
|
-
var argsOrArgArray_1$
|
|
17259
|
+
var argsOrArgArray_1$5 = argsOrArgArray$1;
|
|
17112
17260
|
var OperatorSubscriber_1$O = OperatorSubscriber$1;
|
|
17113
17261
|
var noop_1$c = noop$1;
|
|
17114
17262
|
var innerFrom_1$u = innerFrom$1;
|
|
@@ -17117,7 +17265,7 @@ function onErrorResumeNext() {
|
|
|
17117
17265
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17118
17266
|
sources[_i] = arguments[_i];
|
|
17119
17267
|
}
|
|
17120
|
-
var nextSources = argsOrArgArray_1$
|
|
17268
|
+
var nextSources = argsOrArgArray_1$5.argsOrArgArray(sources);
|
|
17121
17269
|
return new Observable_1$6.Observable(function (subscriber) {
|
|
17122
17270
|
var sourceIndex = 0;
|
|
17123
17271
|
var subscribeNext = function () {
|
|
@@ -17194,14 +17342,14 @@ Object.defineProperty(race$3, "__esModule", { value: true });
|
|
|
17194
17342
|
race$3.raceInit = race$3.race = void 0;
|
|
17195
17343
|
var Observable_1$5 = Observable$1;
|
|
17196
17344
|
var innerFrom_1$s = innerFrom$1;
|
|
17197
|
-
var argsOrArgArray_1$
|
|
17345
|
+
var argsOrArgArray_1$4 = argsOrArgArray$1;
|
|
17198
17346
|
var OperatorSubscriber_1$M = OperatorSubscriber$1;
|
|
17199
17347
|
function race$2() {
|
|
17200
17348
|
var sources = [];
|
|
17201
17349
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17202
17350
|
sources[_i] = arguments[_i];
|
|
17203
17351
|
}
|
|
17204
|
-
sources = argsOrArgArray_1$
|
|
17352
|
+
sources = argsOrArgArray_1$4.argsOrArgArray(sources);
|
|
17205
17353
|
return sources.length === 1 ? innerFrom_1$s.innerFrom(sources[0]) : new Observable_1$5.Observable(raceInit(sources));
|
|
17206
17354
|
}
|
|
17207
17355
|
race$3.race = race$2;
|
|
@@ -17315,7 +17463,7 @@ Object.defineProperty(zip$3, "__esModule", { value: true });
|
|
|
17315
17463
|
zip$3.zip = void 0;
|
|
17316
17464
|
var Observable_1$2 = Observable$1;
|
|
17317
17465
|
var innerFrom_1$q = innerFrom$1;
|
|
17318
|
-
var argsOrArgArray_1$
|
|
17466
|
+
var argsOrArgArray_1$3 = argsOrArgArray$1;
|
|
17319
17467
|
var empty_1$3 = empty;
|
|
17320
17468
|
var OperatorSubscriber_1$L = OperatorSubscriber$1;
|
|
17321
17469
|
var args_1$7 = args;
|
|
@@ -17325,7 +17473,7 @@ function zip$2() {
|
|
|
17325
17473
|
args[_i] = arguments[_i];
|
|
17326
17474
|
}
|
|
17327
17475
|
var resultSelector = args_1$7.popResultSelector(args);
|
|
17328
|
-
var sources = argsOrArgArray_1$
|
|
17476
|
+
var sources = argsOrArgArray_1$3.argsOrArgArray(args);
|
|
17329
17477
|
return sources.length
|
|
17330
17478
|
? new Observable_1$2.Observable(function (subscriber) {
|
|
17331
17479
|
var buffers = sources.map(function () { return []; });
|
|
@@ -17856,7 +18004,7 @@ Object.defineProperty(combineLatest$1, "__esModule", { value: true });
|
|
|
17856
18004
|
combineLatest$1.combineLatest = void 0;
|
|
17857
18005
|
var combineLatest_1$1 = combineLatest$3;
|
|
17858
18006
|
var lift_1$Q = lift;
|
|
17859
|
-
var argsOrArgArray_1$
|
|
18007
|
+
var argsOrArgArray_1$2 = argsOrArgArray$1;
|
|
17860
18008
|
var mapOneOrManyArgs_1 = mapOneOrManyArgs$1;
|
|
17861
18009
|
var pipe_1 = pipe$1;
|
|
17862
18010
|
var args_1$5 = args;
|
|
@@ -17869,7 +18017,7 @@ function combineLatest() {
|
|
|
17869
18017
|
return resultSelector
|
|
17870
18018
|
? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray$f([], __read$k(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector))
|
|
17871
18019
|
: lift_1$Q.operate(function (source, subscriber) {
|
|
17872
|
-
combineLatest_1$1.combineLatestInit(__spreadArray$f([source], __read$k(argsOrArgArray_1$
|
|
18020
|
+
combineLatest_1$1.combineLatestInit(__spreadArray$f([source], __read$k(argsOrArgArray_1$2.argsOrArgArray(args))))(subscriber);
|
|
17873
18021
|
});
|
|
17874
18022
|
}
|
|
17875
18023
|
combineLatest$1.combineLatest = combineLatest;
|
|
@@ -18311,7 +18459,7 @@ Object.defineProperty(distinctUntilKeyChanged$1, "__esModule", { value: true });
|
|
|
18311
18459
|
distinctUntilKeyChanged$1.distinctUntilKeyChanged = void 0;
|
|
18312
18460
|
var distinctUntilChanged_1 = distinctUntilChanged$1;
|
|
18313
18461
|
function distinctUntilKeyChanged(key, compare) {
|
|
18314
|
-
return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });
|
|
18462
|
+
return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return (compare ? compare(x[key], y[key]) : x[key] === y[key]); });
|
|
18315
18463
|
}
|
|
18316
18464
|
distinctUntilKeyChanged$1.distinctUntilKeyChanged = distinctUntilKeyChanged;
|
|
18317
18465
|
|
|
@@ -18813,7 +18961,6 @@ var __spreadArray$a = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
18813
18961
|
Object.defineProperty(merge$1, "__esModule", { value: true });
|
|
18814
18962
|
merge$1.merge = void 0;
|
|
18815
18963
|
var lift_1$t = lift;
|
|
18816
|
-
var argsOrArgArray_1$2 = argsOrArgArray$1;
|
|
18817
18964
|
var mergeAll_1 = mergeAll$1;
|
|
18818
18965
|
var args_1$3 = args;
|
|
18819
18966
|
var from_1 = from$1;
|
|
@@ -18824,7 +18971,6 @@ function merge() {
|
|
|
18824
18971
|
}
|
|
18825
18972
|
var scheduler = args_1$3.popScheduler(args);
|
|
18826
18973
|
var concurrent = args_1$3.popNumber(args, Infinity);
|
|
18827
|
-
args = argsOrArgArray_1$2.argsOrArgArray(args);
|
|
18828
18974
|
return lift_1$t.operate(function (source, subscriber) {
|
|
18829
18975
|
mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray$a([source], __read$f(args)), scheduler)).subscribe(subscriber);
|
|
18830
18976
|
});
|
|
@@ -21062,8 +21208,8 @@ var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
21062
21208
|
});
|
|
21063
21209
|
};
|
|
21064
21210
|
var __generator$8 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
21065
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
21066
|
-
return g =
|
|
21211
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
21212
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
21067
21213
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
21068
21214
|
function step(op) {
|
|
21069
21215
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -22093,7 +22239,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
22093
22239
|
// This is set up this way to keep the version in the code in
|
|
22094
22240
|
// sync with the npm package version, and to allow the build
|
|
22095
22241
|
// system to control version names at packaging time.
|
|
22096
|
-
version$1.default = '5.28.
|
|
22242
|
+
version$1.default = '5.28.3';
|
|
22097
22243
|
|
|
22098
22244
|
var lib = {};
|
|
22099
22245
|
|
|
@@ -25147,7 +25293,7 @@ var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
25147
25293
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25148
25294
|
};
|
|
25149
25295
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
25150
|
-
channelBuf.alloc =
|
|
25296
|
+
channelBuf.alloc = alloc;
|
|
25151
25297
|
var buffer_1$1 = __importDefault$M(buffer);
|
|
25152
25298
|
var buf_1$1 = __importDefault$M(buf);
|
|
25153
25299
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
@@ -25213,7 +25359,6 @@ channelBuf.default = ChannelBuffer;
|
|
|
25213
25359
|
function alloc(size) {
|
|
25214
25360
|
return new ChannelBuffer(size);
|
|
25215
25361
|
}
|
|
25216
|
-
channelBuf.alloc = alloc;
|
|
25217
25362
|
function newChannelJSBuffer(arg) {
|
|
25218
25363
|
if (arg instanceof buffer_1$1.default.Buffer) {
|
|
25219
25364
|
return arg;
|
|
@@ -25362,7 +25507,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
25362
25507
|
}
|
|
25363
25508
|
else {
|
|
25364
25509
|
// Some other error occured
|
|
25365
|
-
throw error;
|
|
25510
|
+
throw (0, neo4j_driver_core_1$I.newError)('unexpected failure to write.', undefined, error);
|
|
25366
25511
|
}
|
|
25367
25512
|
}
|
|
25368
25513
|
}
|
|
@@ -25664,8 +25809,8 @@ var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
25664
25809
|
});
|
|
25665
25810
|
};
|
|
25666
25811
|
var __generator$7 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
25667
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
25668
|
-
return g =
|
|
25812
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
25813
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25669
25814
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25670
25815
|
function step(op) {
|
|
25671
25816
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -26637,6 +26782,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
26637
26782
|
* limitations under the License.
|
|
26638
26783
|
*/
|
|
26639
26784
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26785
|
+
handshake$1.default = handshake;
|
|
26640
26786
|
var channel_1$4 = channel;
|
|
26641
26787
|
var neo4j_driver_core_1$E = lib$1;
|
|
26642
26788
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
@@ -26776,7 +26922,6 @@ function handshake(channel, log) {
|
|
|
26776
26922
|
}
|
|
26777
26923
|
});
|
|
26778
26924
|
}
|
|
26779
|
-
handshake$1.default = handshake;
|
|
26780
26925
|
/**
|
|
26781
26926
|
* Shake hands using the channel and return the protocol version, or the improved handshake protocol if communicating with a newer server.
|
|
26782
26927
|
*
|
|
@@ -27085,7 +27230,8 @@ var functional = {};
|
|
|
27085
27230
|
* limitations under the License.
|
|
27086
27231
|
*/
|
|
27087
27232
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
27088
|
-
functional.
|
|
27233
|
+
functional.identity = identity;
|
|
27234
|
+
functional.reuseOngoingRequest = reuseOngoingRequest;
|
|
27089
27235
|
var neo4j_driver_core_1$D = lib$1;
|
|
27090
27236
|
/**
|
|
27091
27237
|
* Identity function.
|
|
@@ -27098,7 +27244,6 @@ var neo4j_driver_core_1$D = lib$1;
|
|
|
27098
27244
|
function identity(x) {
|
|
27099
27245
|
return x;
|
|
27100
27246
|
}
|
|
27101
|
-
functional.identity = identity;
|
|
27102
27247
|
/**
|
|
27103
27248
|
* Makes the function able to share ongoing requests
|
|
27104
27249
|
*
|
|
@@ -27125,7 +27270,6 @@ function reuseOngoingRequest(func, thisArg) {
|
|
|
27125
27270
|
});
|
|
27126
27271
|
};
|
|
27127
27272
|
}
|
|
27128
|
-
functional.reuseOngoingRequest = reuseOngoingRequest;
|
|
27129
27273
|
|
|
27130
27274
|
var object = {};
|
|
27131
27275
|
|
|
@@ -27157,7 +27301,7 @@ var __values$1 = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
|
27157
27301
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27158
27302
|
};
|
|
27159
27303
|
Object.defineProperty(object, "__esModule", { value: true });
|
|
27160
|
-
object.equals =
|
|
27304
|
+
object.equals = equals;
|
|
27161
27305
|
function equals(a, b) {
|
|
27162
27306
|
var e_1, _a;
|
|
27163
27307
|
if (a === b) {
|
|
@@ -27191,7 +27335,6 @@ function equals(a, b) {
|
|
|
27191
27335
|
}
|
|
27192
27336
|
return false;
|
|
27193
27337
|
}
|
|
27194
|
-
object.equals = equals;
|
|
27195
27338
|
|
|
27196
27339
|
/**
|
|
27197
27340
|
* Copyright (c) "Neo4j"
|
|
@@ -27225,13 +27368,23 @@ var __setModuleDefault$4 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
27225
27368
|
}) : function(o, v) {
|
|
27226
27369
|
o["default"] = v;
|
|
27227
27370
|
});
|
|
27228
|
-
var __importStar$4 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
27229
|
-
|
|
27230
|
-
|
|
27231
|
-
|
|
27232
|
-
|
|
27233
|
-
|
|
27234
|
-
};
|
|
27371
|
+
var __importStar$4 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
27372
|
+
var ownKeys = function(o) {
|
|
27373
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27374
|
+
var ar = [];
|
|
27375
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27376
|
+
return ar;
|
|
27377
|
+
};
|
|
27378
|
+
return ownKeys(o);
|
|
27379
|
+
};
|
|
27380
|
+
return function (mod) {
|
|
27381
|
+
if (mod && mod.__esModule) return mod;
|
|
27382
|
+
var result = {};
|
|
27383
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$4(result, mod, k[i]);
|
|
27384
|
+
__setModuleDefault$4(result, mod);
|
|
27385
|
+
return result;
|
|
27386
|
+
};
|
|
27387
|
+
})();
|
|
27235
27388
|
Object.defineProperty(lang, "__esModule", { value: true });
|
|
27236
27389
|
lang.object = lang.functional = void 0;
|
|
27237
27390
|
lang.functional = __importStar$4(functional);
|
|
@@ -27926,7 +28079,10 @@ var _states = {
|
|
|
27926
28079
|
};
|
|
27927
28080
|
|
|
27928
28081
|
Object.defineProperty(boltProtocolUtil, "__esModule", { value: true });
|
|
27929
|
-
boltProtocolUtil.
|
|
28082
|
+
boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
28083
|
+
boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
28084
|
+
boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
28085
|
+
boltProtocolUtil.assertNotificationFilterIsEmpty = assertNotificationFilterIsEmpty;
|
|
27930
28086
|
/**
|
|
27931
28087
|
* Copyright (c) "Neo4j"
|
|
27932
28088
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -27960,7 +28116,6 @@ function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
|
27960
28116
|
throw error;
|
|
27961
28117
|
}
|
|
27962
28118
|
}
|
|
27963
|
-
boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
27964
28119
|
/**
|
|
27965
28120
|
* Asserts that the passed-in database name is empty.
|
|
27966
28121
|
* @param {string} database
|
|
@@ -27977,7 +28132,6 @@ function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
|
27977
28132
|
throw error;
|
|
27978
28133
|
}
|
|
27979
28134
|
}
|
|
27980
|
-
boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
27981
28135
|
/**
|
|
27982
28136
|
* Asserts that the passed-in impersonated user is empty
|
|
27983
28137
|
* @param {string} impersonatedUser
|
|
@@ -27996,7 +28150,6 @@ function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observ
|
|
|
27996
28150
|
throw error;
|
|
27997
28151
|
}
|
|
27998
28152
|
}
|
|
27999
|
-
boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
28000
28153
|
/**
|
|
28001
28154
|
* Asserts that the passed-in notificationFilter is empty
|
|
28002
28155
|
* @param {NotificationFilter} notificationFilter
|
|
@@ -28015,7 +28168,6 @@ function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, ob
|
|
|
28015
28168
|
throw error;
|
|
28016
28169
|
}
|
|
28017
28170
|
}
|
|
28018
|
-
boltProtocolUtil.assertNotificationFilterIsEmpty = assertNotificationFilterIsEmpty;
|
|
28019
28171
|
|
|
28020
28172
|
var packstream = {};
|
|
28021
28173
|
|
|
@@ -28040,7 +28192,8 @@ var structure$1 = {};
|
|
|
28040
28192
|
* limitations under the License.
|
|
28041
28193
|
*/
|
|
28042
28194
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
28043
|
-
structure$1.
|
|
28195
|
+
structure$1.Structure = void 0;
|
|
28196
|
+
structure$1.verifyStructSize = verifyStructSize;
|
|
28044
28197
|
var neo4j_driver_core_1$A = lib$1;
|
|
28045
28198
|
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$A.error.PROTOCOL_ERROR;
|
|
28046
28199
|
/**
|
|
@@ -28079,7 +28232,6 @@ function verifyStructSize(structName, expectedSize, actualSize) {
|
|
|
28079
28232
|
throw (0, neo4j_driver_core_1$A.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
28080
28233
|
}
|
|
28081
28234
|
}
|
|
28082
|
-
structure$1.verifyStructSize = verifyStructSize;
|
|
28083
28235
|
structure$1.default = Structure;
|
|
28084
28236
|
|
|
28085
28237
|
Object.defineProperty(packstreamV1, "__esModule", { value: true });
|
|
@@ -28696,13 +28848,23 @@ var __setModuleDefault$3 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
28696
28848
|
}) : function(o, v) {
|
|
28697
28849
|
o["default"] = v;
|
|
28698
28850
|
});
|
|
28699
|
-
var __importStar$3 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
28700
|
-
|
|
28701
|
-
|
|
28702
|
-
|
|
28703
|
-
|
|
28704
|
-
|
|
28705
|
-
};
|
|
28851
|
+
var __importStar$3 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
28852
|
+
var ownKeys = function(o) {
|
|
28853
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28854
|
+
var ar = [];
|
|
28855
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28856
|
+
return ar;
|
|
28857
|
+
};
|
|
28858
|
+
return ownKeys(o);
|
|
28859
|
+
};
|
|
28860
|
+
return function (mod) {
|
|
28861
|
+
if (mod && mod.__esModule) return mod;
|
|
28862
|
+
var result = {};
|
|
28863
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$3(result, mod, k[i]);
|
|
28864
|
+
__setModuleDefault$3(result, mod);
|
|
28865
|
+
return result;
|
|
28866
|
+
};
|
|
28867
|
+
})();
|
|
28706
28868
|
Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
28707
28869
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28708
28870
|
var v1$1 = __importStar$3(packstreamV1);
|
|
@@ -28765,13 +28927,23 @@ var __setModuleDefault$2 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
28765
28927
|
}) : function(o, v) {
|
|
28766
28928
|
o["default"] = v;
|
|
28767
28929
|
});
|
|
28768
|
-
var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
28769
|
-
|
|
28770
|
-
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
};
|
|
28930
|
+
var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
28931
|
+
var ownKeys = function(o) {
|
|
28932
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28933
|
+
var ar = [];
|
|
28934
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28935
|
+
return ar;
|
|
28936
|
+
};
|
|
28937
|
+
return ownKeys(o);
|
|
28938
|
+
};
|
|
28939
|
+
return function (mod) {
|
|
28940
|
+
if (mod && mod.__esModule) return mod;
|
|
28941
|
+
var result = {};
|
|
28942
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$2(result, mod, k[i]);
|
|
28943
|
+
__setModuleDefault$2(result, mod);
|
|
28944
|
+
return result;
|
|
28945
|
+
};
|
|
28946
|
+
})();
|
|
28775
28947
|
Object.defineProperty(packstream, "__esModule", { value: true });
|
|
28776
28948
|
packstream.structure = packstream.v2 = packstream.v1 = void 0;
|
|
28777
28949
|
var v1 = __importStar$2(packstreamV1);
|
|
@@ -29567,13 +29739,23 @@ var __setModuleDefault$1 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
29567
29739
|
}) : function(o, v) {
|
|
29568
29740
|
o["default"] = v;
|
|
29569
29741
|
});
|
|
29570
|
-
var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
29571
|
-
|
|
29572
|
-
|
|
29573
|
-
|
|
29574
|
-
|
|
29575
|
-
|
|
29576
|
-
};
|
|
29742
|
+
var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
29743
|
+
var ownKeys = function(o) {
|
|
29744
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29745
|
+
var ar = [];
|
|
29746
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29747
|
+
return ar;
|
|
29748
|
+
};
|
|
29749
|
+
return ownKeys(o);
|
|
29750
|
+
};
|
|
29751
|
+
return function (mod) {
|
|
29752
|
+
if (mod && mod.__esModule) return mod;
|
|
29753
|
+
var result = {};
|
|
29754
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$1(result, mod, k[i]);
|
|
29755
|
+
__setModuleDefault$1(result, mod);
|
|
29756
|
+
return result;
|
|
29757
|
+
};
|
|
29758
|
+
})();
|
|
29577
29759
|
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29578
29760
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29579
29761
|
};
|
|
@@ -30099,7 +30281,9 @@ var boltProtocolV2_transformer = {};
|
|
|
30099
30281
|
var temporalFactory = {};
|
|
30100
30282
|
|
|
30101
30283
|
Object.defineProperty(temporalFactory, "__esModule", { value: true });
|
|
30102
|
-
temporalFactory.
|
|
30284
|
+
temporalFactory.epochDayToDate = epochDayToDate;
|
|
30285
|
+
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
30286
|
+
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
30103
30287
|
/**
|
|
30104
30288
|
* Copyright (c) "Neo4j"
|
|
30105
30289
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -30171,7 +30355,6 @@ function epochDayToDate(epochDay) {
|
|
|
30171
30355
|
year = year.add(marchMonth.div(10));
|
|
30172
30356
|
return new neo4j_driver_core_1$u.Date(year, month, day);
|
|
30173
30357
|
}
|
|
30174
|
-
temporalFactory.epochDayToDate = epochDayToDate;
|
|
30175
30358
|
/**
|
|
30176
30359
|
* Converts nanoseconds of the day into local time.
|
|
30177
30360
|
* @param {Integer|number|string} nanoOfDay the nanoseconds of the day to convert.
|
|
@@ -30187,7 +30370,6 @@ function nanoOfDayToLocalTime(nanoOfDay) {
|
|
|
30187
30370
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
30188
30371
|
return new neo4j_driver_core_1$u.LocalTime(hour, minute, second, nanosecond);
|
|
30189
30372
|
}
|
|
30190
|
-
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
30191
30373
|
/**
|
|
30192
30374
|
* Converts given epoch second and nanosecond adjustment into a local date time object.
|
|
30193
30375
|
* @param {Integer|number|string} epochSecond the epoch second to use.
|
|
@@ -30202,7 +30384,6 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
30202
30384
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
30203
30385
|
return new neo4j_driver_core_1$u.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
30204
30386
|
}
|
|
30205
|
-
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
30206
30387
|
|
|
30207
30388
|
/**
|
|
30208
30389
|
* Copyright (c) "Neo4j"
|
|
@@ -33588,6 +33769,7 @@ var __importDefault$7 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
33588
33769
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33589
33770
|
};
|
|
33590
33771
|
Object.defineProperty(create$1, "__esModule", { value: true });
|
|
33772
|
+
create$1.default = create;
|
|
33591
33773
|
var neo4j_driver_core_1$9 = lib$1;
|
|
33592
33774
|
var bolt_protocol_v1_1 = __importDefault$7(boltProtocolV1);
|
|
33593
33775
|
var bolt_protocol_v2_1 = __importDefault$7(boltProtocolV2);
|
|
@@ -33648,7 +33830,6 @@ function create(_a) {
|
|
|
33648
33830
|
};
|
|
33649
33831
|
return createProtocol(version, server, chunker, { disableLosslessIntegers: disableLosslessIntegers, useBigInt: useBigInt }, serversideRouting, createResponseHandler, observer.onProtocolError.bind(observer), log);
|
|
33650
33832
|
}
|
|
33651
|
-
create$1.default = create;
|
|
33652
33833
|
function createProtocol(version, server, chunker, packingConfig, serversideRouting, createResponseHandler, onProtocolError, log) {
|
|
33653
33834
|
switch (version) {
|
|
33654
33835
|
case 1:
|
|
@@ -34004,8 +34185,8 @@ var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
34004
34185
|
});
|
|
34005
34186
|
};
|
|
34006
34187
|
var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
34007
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
34008
|
-
return g =
|
|
34188
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
34189
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
34009
34190
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34010
34191
|
function step(op) {
|
|
34011
34192
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -34034,7 +34215,7 @@ var __importDefault$6 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
34034
34215
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34035
34216
|
};
|
|
34036
34217
|
Object.defineProperty(connectionChannel, "__esModule", { value: true });
|
|
34037
|
-
connectionChannel.createChannelConnection =
|
|
34218
|
+
connectionChannel.createChannelConnection = createChannelConnection;
|
|
34038
34219
|
var channel_1$2 = channel;
|
|
34039
34220
|
var neo4j_driver_core_1$6 = lib$1;
|
|
34040
34221
|
var connection_1$4 = __importDefault$6(connection);
|
|
@@ -34096,7 +34277,6 @@ function createChannelConnection(address, config, errorHandler, log, clientCerti
|
|
|
34096
34277
|
});
|
|
34097
34278
|
});
|
|
34098
34279
|
}
|
|
34099
|
-
connectionChannel.createChannelConnection = createChannelConnection;
|
|
34100
34280
|
var ChannelConnection = /** @class */ (function (_super) {
|
|
34101
34281
|
__extends$4(ChannelConnection, _super);
|
|
34102
34282
|
/**
|
|
@@ -34522,8 +34702,8 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
34522
34702
|
* @returns {Promise<void>} - A promise that will be resolved when the underlying channel is closed.
|
|
34523
34703
|
*/
|
|
34524
34704
|
ChannelConnection.prototype.close = function () {
|
|
34525
|
-
var _a;
|
|
34526
34705
|
return __awaiter$6(this, void 0, void 0, function () {
|
|
34706
|
+
var _a;
|
|
34527
34707
|
return __generator$6(this, function (_b) {
|
|
34528
34708
|
switch (_b.label) {
|
|
34529
34709
|
case 0:
|
|
@@ -34863,13 +35043,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
34863
35043
|
}) : function(o, v) {
|
|
34864
35044
|
o["default"] = v;
|
|
34865
35045
|
});
|
|
34866
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
34867
|
-
|
|
34868
|
-
|
|
34869
|
-
|
|
34870
|
-
|
|
34871
|
-
|
|
34872
|
-
};
|
|
35046
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
35047
|
+
var ownKeys = function(o) {
|
|
35048
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
35049
|
+
var ar = [];
|
|
35050
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35051
|
+
return ar;
|
|
35052
|
+
};
|
|
35053
|
+
return ownKeys(o);
|
|
35054
|
+
};
|
|
35055
|
+
return function (mod) {
|
|
35056
|
+
if (mod && mod.__esModule) return mod;
|
|
35057
|
+
var result = {};
|
|
35058
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35059
|
+
__setModuleDefault(result, mod);
|
|
35060
|
+
return result;
|
|
35061
|
+
};
|
|
35062
|
+
})();
|
|
34873
35063
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
34874
35064
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34875
35065
|
};
|
|
@@ -34915,8 +35105,8 @@ var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
34915
35105
|
});
|
|
34916
35106
|
};
|
|
34917
35107
|
var __generator$5 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
34918
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
34919
|
-
return g =
|
|
35108
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35109
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
34920
35110
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34921
35111
|
function step(op) {
|
|
34922
35112
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -34955,25 +35145,25 @@ var AuthenticationProvider = /** @class */ (function () {
|
|
|
34955
35145
|
this._boltAgent = boltAgent;
|
|
34956
35146
|
}
|
|
34957
35147
|
AuthenticationProvider.prototype.authenticate = function (_a) {
|
|
34958
|
-
|
|
34959
|
-
return __awaiter$5(this, void 0, void 0, function () {
|
|
35148
|
+
return __awaiter$5(this, arguments, void 0, function (_b) {
|
|
34960
35149
|
var shouldReAuth, authToken;
|
|
34961
|
-
|
|
34962
|
-
|
|
35150
|
+
var connection = _b.connection, auth = _b.auth, skipReAuth = _b.skipReAuth, waitReAuth = _b.waitReAuth, forceReAuth = _b.forceReAuth;
|
|
35151
|
+
return __generator$5(this, function (_c) {
|
|
35152
|
+
switch (_c.label) {
|
|
34963
35153
|
case 0:
|
|
34964
35154
|
if (!(auth != null)) return [3 /*break*/, 3];
|
|
34965
35155
|
shouldReAuth = connection.supportsReAuth === true && ((!lang_1$2.object.equals(connection.authToken, auth) && skipReAuth !== true) ||
|
|
34966
35156
|
forceReAuth === true);
|
|
34967
35157
|
if (!(connection.authToken == null || shouldReAuth)) return [3 /*break*/, 2];
|
|
34968
35158
|
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, auth, waitReAuth || false)];
|
|
34969
|
-
case 1: return [2 /*return*/,
|
|
35159
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
34970
35160
|
case 2: return [2 /*return*/, connection];
|
|
34971
35161
|
case 3: return [4 /*yield*/, this._authTokenManager.getToken()];
|
|
34972
35162
|
case 4:
|
|
34973
|
-
authToken =
|
|
35163
|
+
authToken = _c.sent();
|
|
34974
35164
|
if (!!lang_1$2.object.equals(authToken, connection.authToken)) return [3 /*break*/, 6];
|
|
34975
35165
|
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, authToken, false)];
|
|
34976
|
-
case 5: return [2 /*return*/,
|
|
35166
|
+
case 5: return [2 /*return*/, _c.sent()];
|
|
34977
35167
|
case 6: return [2 /*return*/, connection];
|
|
34978
35168
|
}
|
|
34979
35169
|
});
|
|
@@ -35003,8 +35193,8 @@ var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35003
35193
|
});
|
|
35004
35194
|
};
|
|
35005
35195
|
var __generator$4 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35006
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35007
|
-
return g =
|
|
35196
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35197
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35008
35198
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35009
35199
|
function step(op) {
|
|
35010
35200
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35103,8 +35293,8 @@ var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35103
35293
|
});
|
|
35104
35294
|
};
|
|
35105
35295
|
var __generator$3 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35106
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35107
|
-
return g =
|
|
35296
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35297
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35108
35298
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35109
35299
|
function step(op) {
|
|
35110
35300
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35235,8 +35425,8 @@ var __awaiter$2 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35235
35425
|
});
|
|
35236
35426
|
};
|
|
35237
35427
|
var __generator$2 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35238
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35239
|
-
return g =
|
|
35428
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35429
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35240
35430
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35241
35431
|
function step(op) {
|
|
35242
35432
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35387,35 +35577,35 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35387
35577
|
});
|
|
35388
35578
|
});
|
|
35389
35579
|
};
|
|
35390
|
-
PooledConnectionProvider.prototype._validateConnectionOnAcquire = function (_a,
|
|
35391
|
-
|
|
35392
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35580
|
+
PooledConnectionProvider.prototype._validateConnectionOnAcquire = function (_a, conn_1) {
|
|
35581
|
+
return __awaiter$2(this, arguments, void 0, function (_b, conn) {
|
|
35393
35582
|
var error_1, error_2;
|
|
35394
|
-
|
|
35395
|
-
|
|
35583
|
+
var auth = _b.auth, skipReAuth = _b.skipReAuth;
|
|
35584
|
+
return __generator$2(this, function (_c) {
|
|
35585
|
+
switch (_c.label) {
|
|
35396
35586
|
case 0:
|
|
35397
35587
|
if (!this._validateConnection(conn)) {
|
|
35398
35588
|
return [2 /*return*/, false];
|
|
35399
35589
|
}
|
|
35400
|
-
|
|
35590
|
+
_c.label = 1;
|
|
35401
35591
|
case 1:
|
|
35402
|
-
|
|
35592
|
+
_c.trys.push([1, 3, , 4]);
|
|
35403
35593
|
return [4 /*yield*/, this._livenessCheckProvider.check(conn)];
|
|
35404
35594
|
case 2:
|
|
35405
|
-
|
|
35595
|
+
_c.sent();
|
|
35406
35596
|
return [3 /*break*/, 4];
|
|
35407
35597
|
case 3:
|
|
35408
|
-
error_1 =
|
|
35598
|
+
error_1 = _c.sent();
|
|
35409
35599
|
this._log.debug("The connection ".concat(conn.id, " is not alive because of an error ").concat(error_1.code, " '").concat(error_1.message, "'"));
|
|
35410
35600
|
return [2 /*return*/, false];
|
|
35411
35601
|
case 4:
|
|
35412
|
-
|
|
35602
|
+
_c.trys.push([4, 6, , 7]);
|
|
35413
35603
|
return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: conn, auth: auth, skipReAuth: skipReAuth })];
|
|
35414
35604
|
case 5:
|
|
35415
|
-
|
|
35605
|
+
_c.sent();
|
|
35416
35606
|
return [2 /*return*/, true];
|
|
35417
35607
|
case 6:
|
|
35418
|
-
error_2 =
|
|
35608
|
+
error_2 = _c.sent();
|
|
35419
35609
|
this._log.debug("The connection ".concat(conn.id, " is not valid because of an error ").concat(error_2.code, " '").concat(error_2.message, "'"));
|
|
35420
35610
|
return [2 /*return*/, false];
|
|
35421
35611
|
case 7: return [2 /*return*/];
|
|
@@ -35458,27 +35648,27 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35458
35648
|
* @return {Promise<ServerInfo>} the server info
|
|
35459
35649
|
*/
|
|
35460
35650
|
PooledConnectionProvider.prototype._verifyConnectivityAndGetServerVersion = function (_a) {
|
|
35461
|
-
|
|
35462
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35651
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35463
35652
|
var connection, serverInfo;
|
|
35464
|
-
|
|
35465
|
-
|
|
35653
|
+
var address = _b.address;
|
|
35654
|
+
return __generator$2(this, function (_c) {
|
|
35655
|
+
switch (_c.label) {
|
|
35466
35656
|
case 0: return [4 /*yield*/, this._connectionPool.acquire({}, address)];
|
|
35467
35657
|
case 1:
|
|
35468
|
-
connection =
|
|
35658
|
+
connection = _c.sent();
|
|
35469
35659
|
serverInfo = new neo4j_driver_core_1$3.ServerInfo(connection.server, connection.protocol().version);
|
|
35470
|
-
|
|
35660
|
+
_c.label = 2;
|
|
35471
35661
|
case 2:
|
|
35472
|
-
|
|
35662
|
+
_c.trys.push([2, , 5, 7]);
|
|
35473
35663
|
if (!!connection.protocol().isLastMessageLogon()) return [3 /*break*/, 4];
|
|
35474
35664
|
return [4 /*yield*/, connection.resetAndFlush()];
|
|
35475
35665
|
case 3:
|
|
35476
|
-
|
|
35477
|
-
|
|
35666
|
+
_c.sent();
|
|
35667
|
+
_c.label = 4;
|
|
35478
35668
|
case 4: return [3 /*break*/, 7];
|
|
35479
35669
|
case 5: return [4 /*yield*/, connection.release()];
|
|
35480
35670
|
case 6:
|
|
35481
|
-
|
|
35671
|
+
_c.sent();
|
|
35482
35672
|
return [7 /*endfinally*/];
|
|
35483
35673
|
case 7: return [2 /*return*/, serverInfo];
|
|
35484
35674
|
}
|
|
@@ -35486,22 +35676,22 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35486
35676
|
});
|
|
35487
35677
|
};
|
|
35488
35678
|
PooledConnectionProvider.prototype._verifyAuthentication = function (_a) {
|
|
35489
|
-
|
|
35490
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35679
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35491
35680
|
var connectionsToRelease, address, connection, lastMessageIsNotLogin, stickyConnection, error_3;
|
|
35492
|
-
|
|
35493
|
-
|
|
35681
|
+
var getAddress = _b.getAddress, auth = _b.auth;
|
|
35682
|
+
return __generator$2(this, function (_c) {
|
|
35683
|
+
switch (_c.label) {
|
|
35494
35684
|
case 0:
|
|
35495
35685
|
connectionsToRelease = [];
|
|
35496
|
-
|
|
35686
|
+
_c.label = 1;
|
|
35497
35687
|
case 1:
|
|
35498
|
-
|
|
35688
|
+
_c.trys.push([1, 8, 9, 11]);
|
|
35499
35689
|
return [4 /*yield*/, getAddress()];
|
|
35500
35690
|
case 2:
|
|
35501
|
-
address =
|
|
35691
|
+
address = _c.sent();
|
|
35502
35692
|
return [4 /*yield*/, this._connectionPool.acquire({ auth: auth, skipReAuth: true }, address)];
|
|
35503
35693
|
case 3:
|
|
35504
|
-
connection =
|
|
35694
|
+
connection = _c.sent();
|
|
35505
35695
|
connectionsToRelease.push(connection);
|
|
35506
35696
|
lastMessageIsNotLogin = !connection.protocol().isLastMessageLogon();
|
|
35507
35697
|
if (!connection.supportsReAuth) {
|
|
@@ -35510,26 +35700,26 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35510
35700
|
if (!(lastMessageIsNotLogin && connection.supportsReAuth)) return [3 /*break*/, 5];
|
|
35511
35701
|
return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: connection, auth: auth, waitReAuth: true, forceReAuth: true })];
|
|
35512
35702
|
case 4:
|
|
35513
|
-
|
|
35703
|
+
_c.sent();
|
|
35514
35704
|
return [3 /*break*/, 7];
|
|
35515
35705
|
case 5:
|
|
35516
35706
|
if (!(lastMessageIsNotLogin && !connection.supportsReAuth)) return [3 /*break*/, 7];
|
|
35517
35707
|
return [4 /*yield*/, this._connectionPool.acquire({ auth: auth }, address, { requireNew: true })];
|
|
35518
35708
|
case 6:
|
|
35519
|
-
stickyConnection =
|
|
35709
|
+
stickyConnection = _c.sent();
|
|
35520
35710
|
stickyConnection._sticky = true;
|
|
35521
35711
|
connectionsToRelease.push(stickyConnection);
|
|
35522
|
-
|
|
35712
|
+
_c.label = 7;
|
|
35523
35713
|
case 7: return [2 /*return*/, true];
|
|
35524
35714
|
case 8:
|
|
35525
|
-
error_3 =
|
|
35715
|
+
error_3 = _c.sent();
|
|
35526
35716
|
if (AUTHENTICATION_ERRORS.includes(error_3.code)) {
|
|
35527
35717
|
return [2 /*return*/, false];
|
|
35528
35718
|
}
|
|
35529
35719
|
throw error_3;
|
|
35530
35720
|
case 9: return [4 /*yield*/, Promise.all(connectionsToRelease.map(function (conn) { return conn.release(); }))];
|
|
35531
35721
|
case 10:
|
|
35532
|
-
|
|
35722
|
+
_c.sent();
|
|
35533
35723
|
return [7 /*endfinally*/];
|
|
35534
35724
|
case 11: return [2 /*return*/];
|
|
35535
35725
|
}
|
|
@@ -35537,11 +35727,11 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35537
35727
|
});
|
|
35538
35728
|
};
|
|
35539
35729
|
PooledConnectionProvider.prototype._verifyStickyConnection = function (_a) {
|
|
35540
|
-
|
|
35541
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35730
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35542
35731
|
var connectionWithSameCredentials, shouldCreateStickyConnection;
|
|
35543
|
-
|
|
35544
|
-
|
|
35732
|
+
var auth = _b.auth, connection = _b.connection; _b.address;
|
|
35733
|
+
return __generator$2(this, function (_c) {
|
|
35734
|
+
switch (_c.label) {
|
|
35545
35735
|
case 0:
|
|
35546
35736
|
connectionWithSameCredentials = lang_1$1.object.equals(auth, connection.authToken);
|
|
35547
35737
|
shouldCreateStickyConnection = !connectionWithSameCredentials;
|
|
@@ -35549,7 +35739,7 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35549
35739
|
if (!(shouldCreateStickyConnection || connection._sticky)) return [3 /*break*/, 2];
|
|
35550
35740
|
return [4 /*yield*/, connection.release()];
|
|
35551
35741
|
case 1:
|
|
35552
|
-
|
|
35742
|
+
_c.sent();
|
|
35553
35743
|
throw (0, neo4j_driver_core_1$3.newError)('Driver is connected to a database that does not support user switch.');
|
|
35554
35744
|
case 2: return [2 /*return*/];
|
|
35555
35745
|
}
|
|
@@ -35647,8 +35837,8 @@ var __awaiter$1 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35647
35837
|
});
|
|
35648
35838
|
};
|
|
35649
35839
|
var __generator$1 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35650
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35651
|
-
return g =
|
|
35840
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
35841
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35652
35842
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35653
35843
|
function step(op) {
|
|
35654
35844
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35694,11 +35884,11 @@ var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
|
35694
35884
|
* See {@link ConnectionProvider} for more information about this method and
|
|
35695
35885
|
* its arguments.
|
|
35696
35886
|
*/
|
|
35697
|
-
DirectConnectionProvider.prototype.acquireConnection = function (
|
|
35698
|
-
|
|
35699
|
-
return __awaiter$1(this, void 0, void 0, function () {
|
|
35887
|
+
DirectConnectionProvider.prototype.acquireConnection = function () {
|
|
35888
|
+
return __awaiter$1(this, arguments, void 0, function (_a) {
|
|
35700
35889
|
var databaseSpecificErrorHandler, connection;
|
|
35701
35890
|
var _this = this;
|
|
35891
|
+
var _b = _a === void 0 ? {} : _a; _b.accessMode; var database = _b.database; _b.bookmarks; var auth = _b.auth, forceReAuth = _b.forceReAuth;
|
|
35702
35892
|
return __generator$1(this, function (_c) {
|
|
35703
35893
|
switch (_c.label) {
|
|
35704
35894
|
case 0:
|
|
@@ -35799,10 +35989,10 @@ var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
|
35799
35989
|
});
|
|
35800
35990
|
};
|
|
35801
35991
|
DirectConnectionProvider.prototype.verifyAuthentication = function (_a) {
|
|
35802
|
-
|
|
35803
|
-
return __awaiter$1(this, void 0, void 0, function () {
|
|
35992
|
+
return __awaiter$1(this, arguments, void 0, function (_b) {
|
|
35804
35993
|
var _this = this;
|
|
35805
|
-
|
|
35994
|
+
var auth = _b.auth;
|
|
35995
|
+
return __generator$1(this, function (_c) {
|
|
35806
35996
|
return [2 /*return*/, this._verifyAuthentication({
|
|
35807
35997
|
auth: auth,
|
|
35808
35998
|
getAddress: function () { return _this._address; }
|
|
@@ -35858,7 +36048,7 @@ var __spreadArray = (commonjsGlobal && commonjsGlobal.__spreadArray) || function
|
|
|
35858
36048
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35859
36049
|
};
|
|
35860
36050
|
Object.defineProperty(routingTable, "__esModule", { value: true });
|
|
35861
|
-
routingTable.createValidRoutingTable =
|
|
36051
|
+
routingTable.createValidRoutingTable = createValidRoutingTable;
|
|
35862
36052
|
/**
|
|
35863
36053
|
* Copyright (c) "Neo4j"
|
|
35864
36054
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -35984,7 +36174,6 @@ function createValidRoutingTable(database, routerAddress, rawRoutingTable) {
|
|
|
35984
36174
|
ttl: ttl
|
|
35985
36175
|
});
|
|
35986
36176
|
}
|
|
35987
|
-
routingTable.createValidRoutingTable = createValidRoutingTable;
|
|
35988
36177
|
/**
|
|
35989
36178
|
* Parse server from the RawRoutingTable.
|
|
35990
36179
|
*
|
|
@@ -36223,13 +36412,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
36223
36412
|
}) : function(o, v) {
|
|
36224
36413
|
o["default"] = v;
|
|
36225
36414
|
});
|
|
36226
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
36227
|
-
|
|
36228
|
-
|
|
36229
|
-
|
|
36230
|
-
|
|
36231
|
-
|
|
36232
|
-
};
|
|
36415
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
36416
|
+
var ownKeys = function(o) {
|
|
36417
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36418
|
+
var ar = [];
|
|
36419
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36420
|
+
return ar;
|
|
36421
|
+
};
|
|
36422
|
+
return ownKeys(o);
|
|
36423
|
+
};
|
|
36424
|
+
return function (mod) {
|
|
36425
|
+
if (mod && mod.__esModule) return mod;
|
|
36426
|
+
var result = {};
|
|
36427
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36428
|
+
__setModuleDefault(result, mod);
|
|
36429
|
+
return result;
|
|
36430
|
+
};
|
|
36431
|
+
})();
|
|
36233
36432
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36234
36433
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36235
36434
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -36240,8 +36439,8 @@ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisAr
|
|
|
36240
36439
|
});
|
|
36241
36440
|
};
|
|
36242
36441
|
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
36243
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36244
|
-
return g =
|
|
36442
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
36443
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36245
36444
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
36246
36445
|
function step(op) {
|
|
36247
36446
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -36378,11 +36577,11 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36378
36577
|
* See {@link ConnectionProvider} for more information about this method and
|
|
36379
36578
|
* its arguments.
|
|
36380
36579
|
*/
|
|
36381
|
-
RoutingConnectionProvider.prototype.acquireConnection = function (
|
|
36382
|
-
|
|
36383
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36580
|
+
RoutingConnectionProvider.prototype.acquireConnection = function () {
|
|
36581
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
36384
36582
|
var context, databaseSpecificErrorHandler, conn, currentRoutingTable, routingTable;
|
|
36385
36583
|
var _this = this;
|
|
36584
|
+
var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved, auth = _b.auth, homeDb = _b.homeDb;
|
|
36386
36585
|
return __generator(this, function (_c) {
|
|
36387
36586
|
switch (_c.label) {
|
|
36388
36587
|
case 0:
|
|
@@ -36558,10 +36757,10 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36558
36757
|
});
|
|
36559
36758
|
};
|
|
36560
36759
|
RoutingConnectionProvider.prototype.verifyAuthentication = function (_a) {
|
|
36561
|
-
|
|
36562
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36760
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
36563
36761
|
var _this = this;
|
|
36564
|
-
|
|
36762
|
+
var database = _b.database, accessMode = _b.accessMode, auth = _b.auth;
|
|
36763
|
+
return __generator(this, function (_c) {
|
|
36565
36764
|
return [2 /*return*/, this._verifyAuthentication({
|
|
36566
36765
|
auth: auth,
|
|
36567
36766
|
getAddress: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -36593,12 +36792,12 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36593
36792
|
});
|
|
36594
36793
|
};
|
|
36595
36794
|
RoutingConnectionProvider.prototype.verifyConnectivityAndGetServerInfo = function (_a) {
|
|
36596
|
-
|
|
36597
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36795
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
36598
36796
|
var context, routingTable, servers, error, servers_1, servers_1_1, address, serverInfo, e_1, e_2_1;
|
|
36599
|
-
var e_2,
|
|
36600
|
-
|
|
36601
|
-
|
|
36797
|
+
var e_2, _c;
|
|
36798
|
+
var database = _b.database, accessMode = _b.accessMode;
|
|
36799
|
+
return __generator(this, function (_d) {
|
|
36800
|
+
switch (_d.label) {
|
|
36602
36801
|
case 0:
|
|
36603
36802
|
context = { database: database || DEFAULT_DB_NAME };
|
|
36604
36803
|
return [4 /*yield*/, this._freshRoutingTable({
|
|
@@ -36609,26 +36808,26 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36609
36808
|
}
|
|
36610
36809
|
})];
|
|
36611
36810
|
case 1:
|
|
36612
|
-
routingTable =
|
|
36811
|
+
routingTable = _d.sent();
|
|
36613
36812
|
servers = accessMode === WRITE ? routingTable.writers : routingTable.readers;
|
|
36614
36813
|
error = (0, neo4j_driver_core_1.newError)("No servers available for database '".concat(context.database, "' with access mode '").concat(accessMode, "'"), SERVICE_UNAVAILABLE);
|
|
36615
|
-
|
|
36814
|
+
_d.label = 2;
|
|
36616
36815
|
case 2:
|
|
36617
|
-
|
|
36816
|
+
_d.trys.push([2, 9, 10, 11]);
|
|
36618
36817
|
servers_1 = __values(servers), servers_1_1 = servers_1.next();
|
|
36619
|
-
|
|
36818
|
+
_d.label = 3;
|
|
36620
36819
|
case 3:
|
|
36621
36820
|
if (!!servers_1_1.done) return [3 /*break*/, 8];
|
|
36622
36821
|
address = servers_1_1.value;
|
|
36623
|
-
|
|
36822
|
+
_d.label = 4;
|
|
36624
36823
|
case 4:
|
|
36625
|
-
|
|
36824
|
+
_d.trys.push([4, 6, , 7]);
|
|
36626
36825
|
return [4 /*yield*/, this._verifyConnectivityAndGetServerVersion({ address: address })];
|
|
36627
36826
|
case 5:
|
|
36628
|
-
serverInfo =
|
|
36827
|
+
serverInfo = _d.sent();
|
|
36629
36828
|
return [2 /*return*/, serverInfo];
|
|
36630
36829
|
case 6:
|
|
36631
|
-
e_1 =
|
|
36830
|
+
e_1 = _d.sent();
|
|
36632
36831
|
error = e_1;
|
|
36633
36832
|
return [3 /*break*/, 7];
|
|
36634
36833
|
case 7:
|
|
@@ -36636,12 +36835,12 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36636
36835
|
return [3 /*break*/, 3];
|
|
36637
36836
|
case 8: return [3 /*break*/, 11];
|
|
36638
36837
|
case 9:
|
|
36639
|
-
e_2_1 =
|
|
36838
|
+
e_2_1 = _d.sent();
|
|
36640
36839
|
e_2 = { error: e_2_1 };
|
|
36641
36840
|
return [3 /*break*/, 11];
|
|
36642
36841
|
case 10:
|
|
36643
36842
|
try {
|
|
36644
|
-
if (servers_1_1 && !servers_1_1.done && (
|
|
36843
|
+
if (servers_1_1 && !servers_1_1.done && (_c = servers_1.return)) _c.call(servers_1);
|
|
36645
36844
|
}
|
|
36646
36845
|
finally { if (e_2) throw e_2.error; }
|
|
36647
36846
|
return [7 /*endfinally*/];
|
|
@@ -37089,7 +37288,8 @@ function _isFailFastError(error) {
|
|
|
37089
37288
|
].includes(error.code);
|
|
37090
37289
|
}
|
|
37091
37290
|
function _isFailFastSecurityError(error) {
|
|
37092
|
-
|
|
37291
|
+
var _a;
|
|
37292
|
+
return ((_a = error.code) === null || _a === void 0 ? void 0 : _a.startsWith('Neo.ClientError.Security.')) &&
|
|
37093
37293
|
![
|
|
37094
37294
|
AUTHORIZATION_EXPIRED_CODE
|
|
37095
37295
|
].includes(error.code);
|
|
@@ -37160,13 +37360,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
37160
37360
|
}) : function(o, v) {
|
|
37161
37361
|
o["default"] = v;
|
|
37162
37362
|
});
|
|
37163
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
37164
|
-
|
|
37165
|
-
|
|
37166
|
-
|
|
37167
|
-
|
|
37168
|
-
|
|
37169
|
-
};
|
|
37363
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
37364
|
+
var ownKeys = function(o) {
|
|
37365
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
37366
|
+
var ar = [];
|
|
37367
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
37368
|
+
return ar;
|
|
37369
|
+
};
|
|
37370
|
+
return ownKeys(o);
|
|
37371
|
+
};
|
|
37372
|
+
return function (mod) {
|
|
37373
|
+
if (mod && mod.__esModule) return mod;
|
|
37374
|
+
var result = {};
|
|
37375
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37376
|
+
__setModuleDefault(result, mod);
|
|
37377
|
+
return result;
|
|
37378
|
+
};
|
|
37379
|
+
})();
|
|
37170
37380
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
37171
37381
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37172
37382
|
};
|
|
@@ -37191,8 +37401,8 @@ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisAr
|
|
|
37191
37401
|
});
|
|
37192
37402
|
};
|
|
37193
37403
|
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
37194
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37195
|
-
return g =
|
|
37404
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
37405
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37196
37406
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37197
37407
|
function step(op) {
|
|
37198
37408
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -37221,8 +37431,10 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
37221
37431
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37222
37432
|
};
|
|
37223
37433
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37224
|
-
exports.UnboundRelationship = exports.Relationship = exports.Node = exports.Record = exports.ServerInfo = exports.GqlStatusObject = exports.Notification = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.ResultSummary = exports.RxResult = exports.RxManagedTransaction = exports.RxTransaction = exports.RxSession = exports.EagerResult = exports.Result = exports.ManagedTransaction = exports.Transaction = exports.Session = exports.Driver = exports.temporal = exports.spatial = exports.graph = exports.error = exports.routing = exports.session = exports.types = exports.logging = exports.auth = exports.
|
|
37225
|
-
exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledClassification = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationClassification = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point =
|
|
37434
|
+
exports.PathSegment = exports.Path = exports.UnboundRelationship = exports.Relationship = exports.Node = exports.Record = exports.ServerInfo = exports.GqlStatusObject = exports.Notification = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.ResultSummary = exports.RxResult = exports.RxManagedTransaction = exports.RxTransaction = exports.RxSession = exports.EagerResult = exports.Result = exports.ManagedTransaction = exports.Transaction = exports.Session = exports.Driver = exports.temporal = exports.spatial = exports.graph = exports.error = exports.routing = exports.session = exports.types = exports.logging = exports.auth = exports.isRetriableError = exports.Neo4jError = exports.integer = exports.isUnboundRelationship = exports.isRelationship = exports.isPathSegment = exports.isPath = exports.isNode = exports.isDateTime = exports.isLocalDateTime = exports.isDate = exports.isTime = exports.isLocalTime = exports.isDuration = exports.isPoint = exports.isInt = exports.int = exports.authTokenManagers = void 0;
|
|
37435
|
+
exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledClassification = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationClassification = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = void 0;
|
|
37436
|
+
exports.driver = driver;
|
|
37437
|
+
exports.hasReachableServer = hasReachableServer;
|
|
37226
37438
|
/**
|
|
37227
37439
|
* Copyright (c) "Neo4j"
|
|
37228
37440
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -37245,7 +37457,7 @@ var version_1 = __importDefault(version$1);
|
|
|
37245
37457
|
var neo4j_driver_core_1 = lib$1;
|
|
37246
37458
|
Object.defineProperty(exports, "authTokenManagers", { enumerable: true, get: function () { return neo4j_driver_core_1.authTokenManagers; } });
|
|
37247
37459
|
Object.defineProperty(exports, "Neo4jError", { enumerable: true, get: function () { return neo4j_driver_core_1.Neo4jError; } });
|
|
37248
|
-
Object.defineProperty(exports, "
|
|
37460
|
+
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return neo4j_driver_core_1.isRetriableError; } });
|
|
37249
37461
|
Object.defineProperty(exports, "error", { enumerable: true, get: function () { return neo4j_driver_core_1.error; } });
|
|
37250
37462
|
Object.defineProperty(exports, "Integer", { enumerable: true, get: function () { return neo4j_driver_core_1.Integer; } });
|
|
37251
37463
|
Object.defineProperty(exports, "int", { enumerable: true, get: function () { return neo4j_driver_core_1.int; } });
|
|
@@ -37426,7 +37638,6 @@ function driver(url, authToken, config) {
|
|
|
37426
37638
|
}
|
|
37427
37639
|
}
|
|
37428
37640
|
}
|
|
37429
|
-
exports.driver = driver;
|
|
37430
37641
|
/**
|
|
37431
37642
|
* Verifies if the driver can reach a server at the given url.
|
|
37432
37643
|
*
|
|
@@ -37460,7 +37671,6 @@ function hasReachableServer(url, config) {
|
|
|
37460
37671
|
});
|
|
37461
37672
|
});
|
|
37462
37673
|
}
|
|
37463
|
-
exports.hasReachableServer = hasReachableServer;
|
|
37464
37674
|
/**
|
|
37465
37675
|
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
37466
37676
|
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|
|
@@ -37570,7 +37780,7 @@ var forExport = {
|
|
|
37570
37780
|
isUnboundRelationship: neo4j_driver_core_1.isUnboundRelationship,
|
|
37571
37781
|
integer: integer,
|
|
37572
37782
|
Neo4jError: neo4j_driver_core_1.Neo4jError,
|
|
37573
|
-
|
|
37783
|
+
isRetriableError: neo4j_driver_core_1.isRetriableError,
|
|
37574
37784
|
auth: neo4j_driver_core_1.auth,
|
|
37575
37785
|
logging: logging,
|
|
37576
37786
|
types: types,
|