neo4j-driver 5.28.2 → 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/lib/browser/neo4j-web.esm.js +558 -381
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +558 -381
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +6 -6
- package/lib/result-rx.js +2 -2
- package/lib/version.js +1 -1
- package/package.json +18 -7
|
@@ -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;
|
|
@@ -436,7 +445,6 @@ error.Neo4jError = Neo4jError;
|
|
|
436
445
|
function newError(message, code, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
437
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);
|
|
438
447
|
}
|
|
439
|
-
error.newError = newError;
|
|
440
448
|
/**
|
|
441
449
|
* Create a new GQL error from a message and optional data
|
|
442
450
|
* @param message the error message
|
|
@@ -451,7 +459,6 @@ error.newError = newError;
|
|
|
451
459
|
function newGQLError(message, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
452
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);
|
|
453
461
|
}
|
|
454
|
-
error.newGQLError = newGQLError;
|
|
455
462
|
/**
|
|
456
463
|
* Verifies if the given error is retriable.
|
|
457
464
|
*
|
|
@@ -1530,13 +1537,23 @@ var __setModuleDefault$c = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
1530
1537
|
}) : function(o, v) {
|
|
1531
1538
|
o["default"] = v;
|
|
1532
1539
|
});
|
|
1533
|
-
var __importStar$c = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
};
|
|
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
|
+
})();
|
|
1540
1557
|
var __values$d = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
1541
1558
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1542
1559
|
if (m) return m.call(o);
|
|
@@ -1549,7 +1566,18 @@ var __values$d = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
|
1549
1566
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1550
1567
|
};
|
|
1551
1568
|
Object.defineProperty(util$4, "__esModule", { value: true });
|
|
1552
|
-
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;
|
|
1553
1581
|
/**
|
|
1554
1582
|
* Copyright (c) "Neo4j"
|
|
1555
1583
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -1592,7 +1620,6 @@ function isEmptyObjectOrNull(obj) {
|
|
|
1592
1620
|
}
|
|
1593
1621
|
return true;
|
|
1594
1622
|
}
|
|
1595
|
-
util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
1596
1623
|
/**
|
|
1597
1624
|
* Verify if it's an object
|
|
1598
1625
|
* @param obj The subject
|
|
@@ -1601,7 +1628,6 @@ util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
|
1601
1628
|
function isObject(obj) {
|
|
1602
1629
|
return typeof obj === 'object' && !Array.isArray(obj) && obj !== null;
|
|
1603
1630
|
}
|
|
1604
|
-
util$4.isObject = isObject;
|
|
1605
1631
|
/**
|
|
1606
1632
|
* Check and normalize given query and parameters.
|
|
1607
1633
|
* @param {string|{text: string, parameters: Object}} query the query to check.
|
|
@@ -1630,7 +1656,6 @@ function validateQueryAndParameters(query, parameters, opt) {
|
|
|
1630
1656
|
}
|
|
1631
1657
|
return { validatedQuery: validatedQuery, params: params };
|
|
1632
1658
|
}
|
|
1633
|
-
util$4.validateQueryAndParameters = validateQueryAndParameters;
|
|
1634
1659
|
/**
|
|
1635
1660
|
* Assert it's a object
|
|
1636
1661
|
* @param {any} obj The subject
|
|
@@ -1644,7 +1669,6 @@ function assertObject(obj, objName) {
|
|
|
1644
1669
|
}
|
|
1645
1670
|
return obj;
|
|
1646
1671
|
}
|
|
1647
|
-
util$4.assertObject = assertObject;
|
|
1648
1672
|
/**
|
|
1649
1673
|
* Assert it's a string
|
|
1650
1674
|
* @param {any} obj The subject
|
|
@@ -1658,7 +1682,6 @@ function assertString$1(obj, objName) {
|
|
|
1658
1682
|
}
|
|
1659
1683
|
return obj;
|
|
1660
1684
|
}
|
|
1661
|
-
util$4.assertString = assertString$1;
|
|
1662
1685
|
/**
|
|
1663
1686
|
* Assert it's a number
|
|
1664
1687
|
* @param {any} obj The subject
|
|
@@ -1672,7 +1695,6 @@ function assertNumber(obj, objName) {
|
|
|
1672
1695
|
}
|
|
1673
1696
|
return obj;
|
|
1674
1697
|
}
|
|
1675
|
-
util$4.assertNumber = assertNumber;
|
|
1676
1698
|
/**
|
|
1677
1699
|
* Assert it's a number or integer
|
|
1678
1700
|
* @param {any} obj The subject
|
|
@@ -1688,7 +1710,6 @@ function assertNumberOrInteger(obj, objName) {
|
|
|
1688
1710
|
}
|
|
1689
1711
|
return obj;
|
|
1690
1712
|
}
|
|
1691
|
-
util$4.assertNumberOrInteger = assertNumberOrInteger;
|
|
1692
1713
|
/**
|
|
1693
1714
|
* Assert it's a valid datae
|
|
1694
1715
|
* @param {any} obj The subject
|
|
@@ -1709,7 +1730,6 @@ function assertValidDate(obj, objName) {
|
|
|
1709
1730
|
}
|
|
1710
1731
|
return obj;
|
|
1711
1732
|
}
|
|
1712
|
-
util$4.assertValidDate = assertValidDate;
|
|
1713
1733
|
/**
|
|
1714
1734
|
* Validates a cypher query string
|
|
1715
1735
|
* @param {any} obj The query
|
|
@@ -1745,7 +1765,6 @@ function assertQueryParameters(obj) {
|
|
|
1745
1765
|
function isString$1(str) {
|
|
1746
1766
|
return Object.prototype.toString.call(str) === '[object String]';
|
|
1747
1767
|
}
|
|
1748
|
-
util$4.isString = isString$1;
|
|
1749
1768
|
/**
|
|
1750
1769
|
* Verifies if object are the equals
|
|
1751
1770
|
* @param {unknown} a
|
|
@@ -1785,7 +1804,6 @@ function equals$1(a, b) {
|
|
|
1785
1804
|
}
|
|
1786
1805
|
return false;
|
|
1787
1806
|
}
|
|
1788
|
-
util$4.equals = equals$1;
|
|
1789
1807
|
/**
|
|
1790
1808
|
* Converts (Integer | bigint) to number.
|
|
1791
1809
|
*
|
|
@@ -1804,7 +1822,6 @@ function toNumber(value) {
|
|
|
1804
1822
|
return value;
|
|
1805
1823
|
}
|
|
1806
1824
|
}
|
|
1807
|
-
util$4.toNumber = toNumber;
|
|
1808
1825
|
|
|
1809
1826
|
(function (exports) {
|
|
1810
1827
|
/**
|
|
@@ -1839,15 +1856,49 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
1839
1856
|
}) : function(o, v) {
|
|
1840
1857
|
o["default"] = v;
|
|
1841
1858
|
});
|
|
1842
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
};
|
|
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
|
+
})();
|
|
1849
1876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1850
|
-
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;
|
|
1851
1902
|
var integer_1 = __importStar(integer);
|
|
1852
1903
|
var error_1 = error;
|
|
1853
1904
|
var util_1 = util$4;
|
|
@@ -1907,11 +1958,9 @@ exports.SECONDS_PER_DAY = 86400;
|
|
|
1907
1958
|
function normalizeSecondsForDuration(seconds, nanoseconds) {
|
|
1908
1959
|
return (0, integer_1.int)(seconds).add(floorDiv(nanoseconds, exports.NANOS_PER_SECOND));
|
|
1909
1960
|
}
|
|
1910
|
-
exports.normalizeSecondsForDuration = normalizeSecondsForDuration;
|
|
1911
1961
|
function normalizeNanosecondsForDuration(nanoseconds) {
|
|
1912
1962
|
return floorMod(nanoseconds, exports.NANOS_PER_SECOND);
|
|
1913
1963
|
}
|
|
1914
|
-
exports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;
|
|
1915
1964
|
/**
|
|
1916
1965
|
* Converts given local time into a single integer representing this same time in nanoseconds of the day.
|
|
1917
1966
|
* @param {Integer|number|string} hour the hour of the local time to convert.
|
|
@@ -1930,7 +1979,6 @@ function localTimeToNanoOfDay(hour, minute, second, nanosecond) {
|
|
|
1930
1979
|
totalNanos = totalNanos.add(second.multiply(exports.NANOS_PER_SECOND));
|
|
1931
1980
|
return totalNanos.add(nanosecond);
|
|
1932
1981
|
}
|
|
1933
|
-
exports.localTimeToNanoOfDay = localTimeToNanoOfDay;
|
|
1934
1982
|
/**
|
|
1935
1983
|
* Converts given local date time into a single integer representing this same time in epoch seconds UTC.
|
|
1936
1984
|
* @param {Integer|number|string} year the year of the local date-time to convert.
|
|
@@ -1947,7 +1995,6 @@ function localDateTimeToEpochSecond(year, month, day, hour, minute, second, nano
|
|
|
1947
1995
|
var localTimeSeconds = localTimeToSecondOfDay(hour, minute, second);
|
|
1948
1996
|
return epochDay.multiply(exports.SECONDS_PER_DAY).add(localTimeSeconds);
|
|
1949
1997
|
}
|
|
1950
|
-
exports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;
|
|
1951
1998
|
/**
|
|
1952
1999
|
* Converts given local date into a single integer representing it's epoch day.
|
|
1953
2000
|
* @param {Integer|number|string} year the year of the local date to convert.
|
|
@@ -1986,7 +2033,6 @@ function dateToEpochDay(year, month, day) {
|
|
|
1986
2033
|
}
|
|
1987
2034
|
return epochDay.subtract(exports.DAYS_0000_TO_1970);
|
|
1988
2035
|
}
|
|
1989
|
-
exports.dateToEpochDay = dateToEpochDay;
|
|
1990
2036
|
/**
|
|
1991
2037
|
* Format given duration to an ISO 8601 string.
|
|
1992
2038
|
* @param {Integer|number|string} months the number of months.
|
|
@@ -2001,7 +2047,6 @@ function durationToIsoString(months, days, seconds, nanoseconds) {
|
|
|
2001
2047
|
var secondsAndNanosecondsString = formatSecondsAndNanosecondsForDuration(seconds, nanoseconds);
|
|
2002
2048
|
return "P".concat(monthsString, "M").concat(daysString, "DT").concat(secondsAndNanosecondsString, "S");
|
|
2003
2049
|
}
|
|
2004
|
-
exports.durationToIsoString = durationToIsoString;
|
|
2005
2050
|
/**
|
|
2006
2051
|
* Formats given time to an ISO 8601 string.
|
|
2007
2052
|
* @param {Integer|number|string} hour the hour value.
|
|
@@ -2017,7 +2062,6 @@ function timeToIsoString(hour, minute, second, nanosecond) {
|
|
|
2017
2062
|
var nanosecondString = formatNanosecond(nanosecond);
|
|
2018
2063
|
return "".concat(hourString, ":").concat(minuteString, ":").concat(secondString).concat(nanosecondString);
|
|
2019
2064
|
}
|
|
2020
|
-
exports.timeToIsoString = timeToIsoString;
|
|
2021
2065
|
/**
|
|
2022
2066
|
* Formats given time zone offset in seconds to string representation like '±HH:MM', '±HH:MM:SS' or 'Z' for UTC.
|
|
2023
2067
|
* @param {Integer|number|string} offsetSeconds the offset in seconds.
|
|
@@ -2041,7 +2085,6 @@ function timeZoneOffsetToIsoString(offsetSeconds) {
|
|
|
2041
2085
|
? "".concat(signPrefix).concat(hours, ":").concat(minutes, ":").concat(seconds)
|
|
2042
2086
|
: "".concat(signPrefix).concat(hours, ":").concat(minutes);
|
|
2043
2087
|
}
|
|
2044
|
-
exports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;
|
|
2045
2088
|
/**
|
|
2046
2089
|
* Formats given date to an ISO 8601 string.
|
|
2047
2090
|
* @param {Integer|number|string} year the date year.
|
|
@@ -2055,7 +2098,6 @@ function dateToIsoString(year, month, day) {
|
|
|
2055
2098
|
var dayString = formatNumber(day, 2);
|
|
2056
2099
|
return "".concat(yearString, "-").concat(monthString, "-").concat(dayString);
|
|
2057
2100
|
}
|
|
2058
|
-
exports.dateToIsoString = dateToIsoString;
|
|
2059
2101
|
/**
|
|
2060
2102
|
* Convert the given iso date string to a JavaScript Date object
|
|
2061
2103
|
*
|
|
@@ -2065,7 +2107,6 @@ exports.dateToIsoString = dateToIsoString;
|
|
|
2065
2107
|
function isoStringToStandardDate(isoString) {
|
|
2066
2108
|
return new Date(isoString);
|
|
2067
2109
|
}
|
|
2068
|
-
exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
2069
2110
|
/**
|
|
2070
2111
|
* Convert the given utc timestamp to a JavaScript Date object
|
|
2071
2112
|
*
|
|
@@ -2075,7 +2116,6 @@ exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
|
2075
2116
|
function toStandardDate(utc) {
|
|
2076
2117
|
return new Date(utc);
|
|
2077
2118
|
}
|
|
2078
|
-
exports.toStandardDate = toStandardDate;
|
|
2079
2119
|
/**
|
|
2080
2120
|
* Shortcut for creating a new StandardDate
|
|
2081
2121
|
* @param date
|
|
@@ -2084,7 +2124,6 @@ exports.toStandardDate = toStandardDate;
|
|
|
2084
2124
|
function newDate(date) {
|
|
2085
2125
|
return new Date(date);
|
|
2086
2126
|
}
|
|
2087
|
-
exports.newDate = newDate;
|
|
2088
2127
|
/**
|
|
2089
2128
|
* Get the total number of nanoseconds from the milliseconds of the given standard JavaScript date and optional nanosecond part.
|
|
2090
2129
|
* @param {global.Date} standardDate the standard JavaScript date.
|
|
@@ -2096,7 +2135,6 @@ function totalNanoseconds(standardDate, nanoseconds) {
|
|
|
2096
2135
|
var nanosFromMillis = standardDate.getMilliseconds() * exports.NANOS_PER_MILLISECOND;
|
|
2097
2136
|
return add(nanoseconds, nanosFromMillis);
|
|
2098
2137
|
}
|
|
2099
|
-
exports.totalNanoseconds = totalNanoseconds;
|
|
2100
2138
|
/**
|
|
2101
2139
|
* Get the time zone offset in seconds from the given standard JavaScript date.
|
|
2102
2140
|
*
|
|
@@ -2110,7 +2148,6 @@ function timeZoneOffsetInSeconds(standardDate) {
|
|
|
2110
2148
|
var daysPortion = _getDayOffset(standardDate);
|
|
2111
2149
|
return hoursPortion * exports.SECONDS_PER_HOUR + minutesPortion * exports.SECONDS_PER_MINUTE + secondsPortion + daysPortion * exports.SECONDS_PER_DAY;
|
|
2112
2150
|
}
|
|
2113
|
-
exports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;
|
|
2114
2151
|
/**
|
|
2115
2152
|
* Get the difference in days from the given JavaScript date in local time and UTC.
|
|
2116
2153
|
*
|
|
@@ -2161,7 +2198,6 @@ function _daysUntilNextMonth(month, year) {
|
|
|
2161
2198
|
function assertValidYear(year) {
|
|
2162
2199
|
return assertValidTemporalValue(year, exports.YEAR_RANGE, 'Year');
|
|
2163
2200
|
}
|
|
2164
|
-
exports.assertValidYear = assertValidYear;
|
|
2165
2201
|
/**
|
|
2166
2202
|
* Assert that the month value is valid.
|
|
2167
2203
|
* @param {Integer|number} month the value to check.
|
|
@@ -2170,7 +2206,6 @@ exports.assertValidYear = assertValidYear;
|
|
|
2170
2206
|
function assertValidMonth(month) {
|
|
2171
2207
|
return assertValidTemporalValue(month, exports.MONTH_OF_YEAR_RANGE, 'Month');
|
|
2172
2208
|
}
|
|
2173
|
-
exports.assertValidMonth = assertValidMonth;
|
|
2174
2209
|
/**
|
|
2175
2210
|
* Assert that the day value is valid.
|
|
2176
2211
|
* @param {Integer|number} day the value to check.
|
|
@@ -2179,7 +2214,6 @@ exports.assertValidMonth = assertValidMonth;
|
|
|
2179
2214
|
function assertValidDay(day) {
|
|
2180
2215
|
return assertValidTemporalValue(day, exports.DAY_OF_MONTH_RANGE, 'Day');
|
|
2181
2216
|
}
|
|
2182
|
-
exports.assertValidDay = assertValidDay;
|
|
2183
2217
|
/**
|
|
2184
2218
|
* Assert that the hour value is valid.
|
|
2185
2219
|
* @param {Integer|number} hour the value to check.
|
|
@@ -2188,7 +2222,6 @@ exports.assertValidDay = assertValidDay;
|
|
|
2188
2222
|
function assertValidHour(hour) {
|
|
2189
2223
|
return assertValidTemporalValue(hour, exports.HOUR_OF_DAY_RANGE, 'Hour');
|
|
2190
2224
|
}
|
|
2191
|
-
exports.assertValidHour = assertValidHour;
|
|
2192
2225
|
/**
|
|
2193
2226
|
* Assert that the minute value is valid.
|
|
2194
2227
|
* @param {Integer|number} minute the value to check.
|
|
@@ -2197,7 +2230,6 @@ exports.assertValidHour = assertValidHour;
|
|
|
2197
2230
|
function assertValidMinute(minute) {
|
|
2198
2231
|
return assertValidTemporalValue(minute, exports.MINUTE_OF_HOUR_RANGE, 'Minute');
|
|
2199
2232
|
}
|
|
2200
|
-
exports.assertValidMinute = assertValidMinute;
|
|
2201
2233
|
/**
|
|
2202
2234
|
* Assert that the second value is valid.
|
|
2203
2235
|
* @param {Integer|number} second the value to check.
|
|
@@ -2206,7 +2238,6 @@ exports.assertValidMinute = assertValidMinute;
|
|
|
2206
2238
|
function assertValidSecond(second) {
|
|
2207
2239
|
return assertValidTemporalValue(second, exports.SECOND_OF_MINUTE_RANGE, 'Second');
|
|
2208
2240
|
}
|
|
2209
|
-
exports.assertValidSecond = assertValidSecond;
|
|
2210
2241
|
/**
|
|
2211
2242
|
* Assert that the nanosecond value is valid.
|
|
2212
2243
|
* @param {Integer|number} nanosecond the value to check.
|
|
@@ -2215,7 +2246,6 @@ exports.assertValidSecond = assertValidSecond;
|
|
|
2215
2246
|
function assertValidNanosecond(nanosecond) {
|
|
2216
2247
|
return assertValidTemporalValue(nanosecond, exports.NANOSECOND_OF_SECOND_RANGE, 'Nanosecond');
|
|
2217
2248
|
}
|
|
2218
|
-
exports.assertValidNanosecond = assertValidNanosecond;
|
|
2219
2249
|
var timeZoneValidityCache = new Map();
|
|
2220
2250
|
var newInvalidZoneIdError = function (zoneId, fieldName) { return (0, error_1.newError)("".concat(fieldName, " is expected to be a valid ZoneId but was: \"").concat(zoneId, "\"")); };
|
|
2221
2251
|
function assertValidZoneId(fieldName, zoneId) {
|
|
@@ -2235,7 +2265,6 @@ function assertValidZoneId(fieldName, zoneId) {
|
|
|
2235
2265
|
throw newInvalidZoneIdError(zoneId, fieldName);
|
|
2236
2266
|
}
|
|
2237
2267
|
}
|
|
2238
|
-
exports.assertValidZoneId = assertValidZoneId;
|
|
2239
2268
|
/**
|
|
2240
2269
|
* Check if the given value is of expected type and is in the expected range.
|
|
2241
2270
|
* @param {Integer|number} value the value to check.
|
|
@@ -2299,7 +2328,6 @@ function floorDiv(x, y) {
|
|
|
2299
2328
|
}
|
|
2300
2329
|
return result;
|
|
2301
2330
|
}
|
|
2302
|
-
exports.floorDiv = floorDiv;
|
|
2303
2331
|
/**
|
|
2304
2332
|
* @param {Integer|number|string} x the divident.
|
|
2305
2333
|
* @param {Integer|number|string} y the divisor.
|
|
@@ -2310,7 +2338,6 @@ function floorMod(x, y) {
|
|
|
2310
2338
|
y = (0, integer_1.int)(y);
|
|
2311
2339
|
return x.subtract(floorDiv(x, y).multiply(y));
|
|
2312
2340
|
}
|
|
2313
|
-
exports.floorMod = floorMod;
|
|
2314
2341
|
/**
|
|
2315
2342
|
* @param {Integer|number|string} seconds the number of seconds to format.
|
|
2316
2343
|
* @param {Integer|number|string} nanoseconds the number of nanoseconds to format.
|
|
@@ -2436,13 +2463,23 @@ var __setModuleDefault$b = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
2436
2463
|
}) : function(o, v) {
|
|
2437
2464
|
o["default"] = v;
|
|
2438
2465
|
});
|
|
2439
|
-
var __importStar$b = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
};
|
|
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
|
+
})();
|
|
2446
2483
|
var __read$x = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
2447
2484
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2448
2485
|
if (!m) return o;
|
|
@@ -2460,7 +2497,13 @@ var __read$x = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
2460
2497
|
return ar;
|
|
2461
2498
|
};
|
|
2462
2499
|
Object.defineProperty(temporalTypes, "__esModule", { value: true });
|
|
2463
|
-
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;
|
|
2464
2507
|
var util$3 = __importStar$b(temporalUtil$1);
|
|
2465
2508
|
var util_1$7 = util$4;
|
|
2466
2509
|
var error_1$c = error;
|
|
@@ -2532,7 +2575,6 @@ Object.defineProperty(Duration.prototype, DURATION_IDENTIFIER_PROPERTY, IDENTIFI
|
|
|
2532
2575
|
function isDuration(obj) {
|
|
2533
2576
|
return hasIdentifierProperty$1(obj, DURATION_IDENTIFIER_PROPERTY);
|
|
2534
2577
|
}
|
|
2535
|
-
temporalTypes.isDuration = isDuration;
|
|
2536
2578
|
/**
|
|
2537
2579
|
* Represents an instant capturing the time of day, but not the date, nor the timezone.
|
|
2538
2580
|
* Created {@link LocalTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2602,7 +2644,6 @@ Object.defineProperty(LocalTime.prototype, LOCAL_TIME_IDENTIFIER_PROPERTY, IDENT
|
|
|
2602
2644
|
function isLocalTime(obj) {
|
|
2603
2645
|
return hasIdentifierProperty$1(obj, LOCAL_TIME_IDENTIFIER_PROPERTY);
|
|
2604
2646
|
}
|
|
2605
|
-
temporalTypes.isLocalTime = isLocalTime;
|
|
2606
2647
|
/**
|
|
2607
2648
|
* Represents an instant capturing the time of day, and the timezone offset in seconds, but not the date.
|
|
2608
2649
|
* Created {@link Time} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2674,7 +2715,6 @@ Object.defineProperty(Time.prototype, TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPE
|
|
|
2674
2715
|
function isTime(obj) {
|
|
2675
2716
|
return hasIdentifierProperty$1(obj, TIME_IDENTIFIER_PROPERTY);
|
|
2676
2717
|
}
|
|
2677
|
-
temporalTypes.isTime = isTime;
|
|
2678
2718
|
/**
|
|
2679
2719
|
* Represents an instant capturing the date, but not the time, nor the timezone.
|
|
2680
2720
|
* Created {@link Date} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2749,7 +2789,6 @@ Object.defineProperty(Date$1.prototype, DATE_IDENTIFIER_PROPERTY, IDENTIFIER_PRO
|
|
|
2749
2789
|
function isDate$1(obj) {
|
|
2750
2790
|
return hasIdentifierProperty$1(obj, DATE_IDENTIFIER_PROPERTY);
|
|
2751
2791
|
}
|
|
2752
|
-
temporalTypes.isDate = isDate$1;
|
|
2753
2792
|
/**
|
|
2754
2793
|
* Represents an instant capturing the date and the time, but not the timezone.
|
|
2755
2794
|
* Created {@link LocalDateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2840,7 +2879,6 @@ Object.defineProperty(LocalDateTime.prototype, LOCAL_DATE_TIME_IDENTIFIER_PROPER
|
|
|
2840
2879
|
function isLocalDateTime(obj) {
|
|
2841
2880
|
return hasIdentifierProperty$1(obj, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY);
|
|
2842
2881
|
}
|
|
2843
|
-
temporalTypes.isLocalDateTime = isLocalDateTime;
|
|
2844
2882
|
/**
|
|
2845
2883
|
* Represents an instant capturing the date, the time and the timezone identifier.
|
|
2846
2884
|
* Created {@ DateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2976,7 +3014,6 @@ Object.defineProperty(DateTime.prototype, DATE_TIME_IDENTIFIER_PROPERTY, IDENTIF
|
|
|
2976
3014
|
function isDateTime(obj) {
|
|
2977
3015
|
return hasIdentifierProperty$1(obj, DATE_TIME_IDENTIFIER_PROPERTY);
|
|
2978
3016
|
}
|
|
2979
|
-
temporalTypes.isDateTime = isDateTime;
|
|
2980
3017
|
function hasIdentifierProperty$1(obj, property) {
|
|
2981
3018
|
return obj != null && obj[property] === true;
|
|
2982
3019
|
}
|
|
@@ -3027,7 +3064,12 @@ function verifyStandardDateAndNanos(standardDate, nanosecond) {
|
|
|
3027
3064
|
var graphTypes = {};
|
|
3028
3065
|
|
|
3029
3066
|
Object.defineProperty(graphTypes, "__esModule", { value: true });
|
|
3030
|
-
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;
|
|
3031
3073
|
var json_1$2 = json$3;
|
|
3032
3074
|
var IDENTIFIER_PROPERTY_ATTRIBUTES = {
|
|
3033
3075
|
value: true,
|
|
@@ -3111,7 +3153,6 @@ Object.defineProperty(Node.prototype, NODE_IDENTIFIER_PROPERTY, IDENTIFIER_PROPE
|
|
|
3111
3153
|
function isNode(obj) {
|
|
3112
3154
|
return hasIdentifierProperty(obj, NODE_IDENTIFIER_PROPERTY);
|
|
3113
3155
|
}
|
|
3114
|
-
graphTypes.isNode = isNode;
|
|
3115
3156
|
/**
|
|
3116
3157
|
* Class for Relationship Type.
|
|
3117
3158
|
*/
|
|
@@ -3203,7 +3244,6 @@ Object.defineProperty(Relationship.prototype, RELATIONSHIP_IDENTIFIER_PROPERTY,
|
|
|
3203
3244
|
function isRelationship(obj) {
|
|
3204
3245
|
return hasIdentifierProperty(obj, RELATIONSHIP_IDENTIFIER_PROPERTY);
|
|
3205
3246
|
}
|
|
3206
|
-
graphTypes.isRelationship = isRelationship;
|
|
3207
3247
|
/**
|
|
3208
3248
|
* Class for UnboundRelationship Type.
|
|
3209
3249
|
* @access private
|
|
@@ -3294,7 +3334,6 @@ Object.defineProperty(UnboundRelationship.prototype, UNBOUND_RELATIONSHIP_IDENTI
|
|
|
3294
3334
|
function isUnboundRelationship(obj) {
|
|
3295
3335
|
return hasIdentifierProperty(obj, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY);
|
|
3296
3336
|
}
|
|
3297
|
-
graphTypes.isUnboundRelationship = isUnboundRelationship;
|
|
3298
3337
|
/**
|
|
3299
3338
|
* Class for PathSegment Type.
|
|
3300
3339
|
*/
|
|
@@ -3335,7 +3374,6 @@ Object.defineProperty(PathSegment.prototype, PATH_SEGMENT_IDENTIFIER_PROPERTY, I
|
|
|
3335
3374
|
function isPathSegment(obj) {
|
|
3336
3375
|
return hasIdentifierProperty(obj, PATH_SEGMENT_IDENTIFIER_PROPERTY);
|
|
3337
3376
|
}
|
|
3338
|
-
graphTypes.isPathSegment = isPathSegment;
|
|
3339
3377
|
/**
|
|
3340
3378
|
* Class for Path Type.
|
|
3341
3379
|
*/
|
|
@@ -3381,7 +3419,6 @@ Object.defineProperty(Path.prototype, PATH_IDENTIFIER_PROPERTY, IDENTIFIER_PROPE
|
|
|
3381
3419
|
function isPath(obj) {
|
|
3382
3420
|
return hasIdentifierProperty(obj, PATH_IDENTIFIER_PROPERTY);
|
|
3383
3421
|
}
|
|
3384
|
-
graphTypes.isPath = isPath;
|
|
3385
3422
|
function _valueOrGetDefault(value, getDefault) {
|
|
3386
3423
|
return value === undefined || value === null ? getDefault() : value;
|
|
3387
3424
|
}
|
|
@@ -3405,8 +3442,8 @@ var record = {};
|
|
|
3405
3442
|
* limitations under the License.
|
|
3406
3443
|
*/
|
|
3407
3444
|
var __generator$n = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
3408
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3409
|
-
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;
|
|
3410
3447
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3411
3448
|
function step(op) {
|
|
3412
3449
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -3714,7 +3751,8 @@ record.default = Record;
|
|
|
3714
3751
|
var spatialTypes = {};
|
|
3715
3752
|
|
|
3716
3753
|
Object.defineProperty(spatialTypes, "__esModule", { value: true });
|
|
3717
|
-
spatialTypes.
|
|
3754
|
+
spatialTypes.Point = void 0;
|
|
3755
|
+
spatialTypes.isPoint = isPoint;
|
|
3718
3756
|
/**
|
|
3719
3757
|
* Copyright (c) "Neo4j"
|
|
3720
3758
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -3797,7 +3835,6 @@ function isPoint(obj) {
|
|
|
3797
3835
|
var anyObj = obj;
|
|
3798
3836
|
return obj != null && anyObj[POINT_IDENTIFIER_PROPERTY] === true;
|
|
3799
3837
|
}
|
|
3800
|
-
spatialTypes.isPoint = isPoint;
|
|
3801
3838
|
|
|
3802
3839
|
var resultSummary = {};
|
|
3803
3840
|
|
|
@@ -3928,13 +3965,23 @@ var __setModuleDefault$a = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
3928
3965
|
}) : function(o, v) {
|
|
3929
3966
|
o["default"] = v;
|
|
3930
3967
|
});
|
|
3931
|
-
var __importStar$a = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
};
|
|
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
|
+
})();
|
|
3938
3985
|
var __read$v = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
3939
3986
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3940
3987
|
if (!m) return o;
|
|
@@ -4392,8 +4439,8 @@ var __awaiter$k = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
4392
4439
|
});
|
|
4393
4440
|
};
|
|
4394
4441
|
var __generator$m = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4395
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4396
|
-
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;
|
|
4397
4444
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4398
4445
|
function step(op) {
|
|
4399
4446
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -4736,13 +4783,23 @@ var __setModuleDefault$9 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
4736
4783
|
}) : function(o, v) {
|
|
4737
4784
|
o["default"] = v;
|
|
4738
4785
|
});
|
|
4739
|
-
var __importStar$9 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
};
|
|
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
|
+
})();
|
|
4746
4803
|
Object.defineProperty(txConfig$1, "__esModule", { value: true });
|
|
4747
4804
|
txConfig$1.TxConfig = void 0;
|
|
4748
4805
|
var util$1 = __importStar$9(util$4);
|
|
@@ -4846,8 +4903,8 @@ var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
4846
4903
|
});
|
|
4847
4904
|
};
|
|
4848
4905
|
var __generator$l = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4849
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4850
|
-
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;
|
|
4851
4908
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4852
4909
|
function step(op) {
|
|
4853
4910
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -5155,7 +5212,11 @@ var __read$t = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
5155
5212
|
return ar;
|
|
5156
5213
|
};
|
|
5157
5214
|
Object.defineProperty(urlUtil$2, "__esModule", { value: true });
|
|
5158
|
-
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;
|
|
5159
5220
|
var util_1$4 = util$4;
|
|
5160
5221
|
var DEFAULT_BOLT_PORT = 7687;
|
|
5161
5222
|
var DEFAULT_HTTP_PORT = 7474;
|
|
@@ -5214,7 +5275,6 @@ function parseDatabaseUrl(url) {
|
|
|
5214
5275
|
(_a = parsedUrl.query) !== null && _a !== void 0 ? _a : extractResourceQueryString(parsedUrl.resourceName), url);
|
|
5215
5276
|
return new Url(scheme, host, port, hostAndPort, query);
|
|
5216
5277
|
}
|
|
5217
|
-
urlUtil$2.parseDatabaseUrl = parseDatabaseUrl;
|
|
5218
5278
|
function extractResourceQueryString(resource) {
|
|
5219
5279
|
if (typeof resource !== 'string') {
|
|
5220
5280
|
return null;
|
|
@@ -5306,12 +5366,10 @@ function formatHost(host) {
|
|
|
5306
5366
|
function formatIPv4Address(address, port) {
|
|
5307
5367
|
return "".concat(address, ":").concat(port);
|
|
5308
5368
|
}
|
|
5309
|
-
urlUtil$2.formatIPv4Address = formatIPv4Address;
|
|
5310
5369
|
function formatIPv6Address(address, port) {
|
|
5311
5370
|
var escapedAddress = escapeIPv6Address(address);
|
|
5312
5371
|
return "".concat(escapedAddress, ":").concat(port);
|
|
5313
5372
|
}
|
|
5314
|
-
urlUtil$2.formatIPv6Address = formatIPv6Address;
|
|
5315
5373
|
function defaultPortForScheme(scheme) {
|
|
5316
5374
|
if (scheme === 'http') {
|
|
5317
5375
|
return DEFAULT_HTTP_PORT;
|
|
@@ -5323,7 +5381,6 @@ function defaultPortForScheme(scheme) {
|
|
|
5323
5381
|
return DEFAULT_BOLT_PORT;
|
|
5324
5382
|
}
|
|
5325
5383
|
}
|
|
5326
|
-
urlUtil$2.defaultPortForScheme = defaultPortForScheme;
|
|
5327
5384
|
function uriJsParse(value) {
|
|
5328
5385
|
// JS version of Python partition function
|
|
5329
5386
|
function partition(s, delimiter) {
|
|
@@ -5425,13 +5482,23 @@ var __setModuleDefault$8 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
5425
5482
|
}) : function(o, v) {
|
|
5426
5483
|
o["default"] = v;
|
|
5427
5484
|
});
|
|
5428
|
-
var __importStar$8 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
};
|
|
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
|
+
})();
|
|
5435
5502
|
Object.defineProperty(serverAddress$1, "__esModule", { value: true });
|
|
5436
5503
|
serverAddress$1.ServerAddress = void 0;
|
|
5437
5504
|
/**
|
|
@@ -5620,7 +5687,7 @@ var boltAgent$1 = {};
|
|
|
5620
5687
|
*/
|
|
5621
5688
|
/* eslint-disable */
|
|
5622
5689
|
Object.defineProperty(boltAgent$1, "__esModule", { value: true });
|
|
5623
|
-
boltAgent$1.fromVersion =
|
|
5690
|
+
boltAgent$1.fromVersion = fromVersion;
|
|
5624
5691
|
/**
|
|
5625
5692
|
* Constructs a BoltAgent structure from a given product version.
|
|
5626
5693
|
*
|
|
@@ -5649,7 +5716,6 @@ function fromVersion(version, getSystemInfo) {
|
|
|
5649
5716
|
languageDetails: languageDetails
|
|
5650
5717
|
};
|
|
5651
5718
|
}
|
|
5652
|
-
boltAgent$1.fromVersion = fromVersion;
|
|
5653
5719
|
|
|
5654
5720
|
(function (exports) {
|
|
5655
5721
|
/**
|
|
@@ -5767,8 +5833,8 @@ var __awaiter$i = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
5767
5833
|
});
|
|
5768
5834
|
};
|
|
5769
5835
|
var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5770
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5771
|
-
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;
|
|
5772
5838
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
5773
5839
|
function step(op) {
|
|
5774
5840
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -6436,13 +6502,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
6436
6502
|
}) : function(o, v) {
|
|
6437
6503
|
o["default"] = v;
|
|
6438
6504
|
});
|
|
6439
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
};
|
|
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
|
+
})();
|
|
6446
6522
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6447
6523
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6448
6524
|
};
|
|
@@ -6489,13 +6565,23 @@ var __setModuleDefault$7 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
6489
6565
|
}) : function(o, v) {
|
|
6490
6566
|
o["default"] = v;
|
|
6491
6567
|
});
|
|
6492
|
-
var __importStar$7 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
};
|
|
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
|
+
})();
|
|
6499
6585
|
Object.defineProperty(internal, "__esModule", { value: true });
|
|
6500
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;
|
|
6501
6587
|
var util = __importStar$7(util$4);
|
|
@@ -6558,13 +6644,23 @@ var __setModuleDefault$6 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
6558
6644
|
}) : function(o, v) {
|
|
6559
6645
|
o["default"] = v;
|
|
6560
6646
|
});
|
|
6561
|
-
var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
};
|
|
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
|
+
})();
|
|
6568
6664
|
var __read$s = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
6569
6665
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
6570
6666
|
if (!m) return o;
|
|
@@ -6591,7 +6687,11 @@ var __spreadArray$m = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
6591
6687
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6592
6688
|
};
|
|
6593
6689
|
Object.defineProperty(notification, "__esModule", { value: true });
|
|
6594
|
-
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;
|
|
6595
6695
|
/**
|
|
6596
6696
|
* Copyright (c) "Neo4j"
|
|
6597
6697
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -6949,7 +7049,6 @@ function polyfillNotification(status) {
|
|
|
6949
7049
|
position: (_c = status.diagnostic_record) === null || _c === void 0 ? void 0 : _c._position
|
|
6950
7050
|
});
|
|
6951
7051
|
}
|
|
6952
|
-
notification.polyfillNotification = polyfillNotification;
|
|
6953
7052
|
/**
|
|
6954
7053
|
* @private
|
|
6955
7054
|
* @param notification
|
|
@@ -6976,7 +7075,6 @@ function polyfillGqlStatusObject(notification) {
|
|
|
6976
7075
|
}
|
|
6977
7076
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6978
7077
|
}
|
|
6979
|
-
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6980
7078
|
/**
|
|
6981
7079
|
* This objects are used for polyfilling the first status on the status list
|
|
6982
7080
|
*
|
|
@@ -7028,7 +7126,6 @@ function buildGqlStatusObjectFromMetadata(metadata) {
|
|
|
7028
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);
|
|
7029
7127
|
return polyfilledObjects.sort(function (a, b) { return calculateWeight(a) - calculateWeight(b); });
|
|
7030
7128
|
}
|
|
7031
|
-
notification.buildGqlStatusObjectFromMetadata = buildGqlStatusObjectFromMetadata;
|
|
7032
7129
|
var gqlStatusWeightByClass = Object.freeze({
|
|
7033
7130
|
'02': 0,
|
|
7034
7131
|
'01': 1,
|
|
@@ -7060,7 +7157,6 @@ function buildNotificationsFromMetadata(metadata) {
|
|
|
7060
7157
|
}
|
|
7061
7158
|
return [];
|
|
7062
7159
|
}
|
|
7063
|
-
notification.buildNotificationsFromMetadata = buildNotificationsFromMetadata;
|
|
7064
7160
|
/**
|
|
7065
7161
|
*
|
|
7066
7162
|
* @private
|
|
@@ -7639,8 +7735,8 @@ var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
7639
7735
|
});
|
|
7640
7736
|
};
|
|
7641
7737
|
var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
7642
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
7643
|
-
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;
|
|
7644
7740
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
7645
7741
|
function step(op) {
|
|
7646
7742
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -8126,9 +8222,9 @@ var Result = /** @class */ (function () {
|
|
|
8126
8222
|
return elementOrError instanceof Error;
|
|
8127
8223
|
}
|
|
8128
8224
|
function dequeue() {
|
|
8129
|
-
var _b;
|
|
8130
8225
|
return __awaiter$h(this, void 0, void 0, function () {
|
|
8131
8226
|
var element;
|
|
8227
|
+
var _b;
|
|
8132
8228
|
return __generator$j(this, function (_c) {
|
|
8133
8229
|
switch (_c.label) {
|
|
8134
8230
|
case 0:
|
|
@@ -8594,8 +8690,8 @@ var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
8594
8690
|
});
|
|
8595
8691
|
};
|
|
8596
8692
|
var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
8597
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8598
|
-
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;
|
|
8599
8695
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
8600
8696
|
function step(op) {
|
|
8601
8697
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9366,7 +9462,7 @@ var authUtil = {};
|
|
|
9366
9462
|
* limitations under the License.
|
|
9367
9463
|
*/
|
|
9368
9464
|
Object.defineProperty(authUtil, "__esModule", { value: true });
|
|
9369
|
-
authUtil.cacheKey =
|
|
9465
|
+
authUtil.cacheKey = cacheKey;
|
|
9370
9466
|
var json_1$1 = json$3;
|
|
9371
9467
|
function cacheKey(auth, impersonatedUser) {
|
|
9372
9468
|
var _a;
|
|
@@ -9390,7 +9486,6 @@ function cacheKey(auth, impersonatedUser) {
|
|
|
9390
9486
|
}
|
|
9391
9487
|
return (0, json_1$1.stringify)(auth, { sortedElements: true });
|
|
9392
9488
|
}
|
|
9393
|
-
authUtil.cacheKey = cacheKey;
|
|
9394
9489
|
|
|
9395
9490
|
/**
|
|
9396
9491
|
* Copyright (c) "Neo4j"
|
|
@@ -9418,8 +9513,8 @@ var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
9418
9513
|
});
|
|
9419
9514
|
};
|
|
9420
9515
|
var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
9421
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
9422
|
-
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;
|
|
9423
9518
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
9424
9519
|
function step(op) {
|
|
9425
9520
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9752,9 +9847,9 @@ var Session = /** @class */ (function () {
|
|
|
9752
9847
|
return this._lastBookmarks.values();
|
|
9753
9848
|
};
|
|
9754
9849
|
Session.prototype._bookmarks = function () {
|
|
9755
|
-
var _a;
|
|
9756
9850
|
return __awaiter$f(this, void 0, void 0, function () {
|
|
9757
9851
|
var bookmarks;
|
|
9852
|
+
var _a;
|
|
9758
9853
|
return __generator$h(this, function (_b) {
|
|
9759
9854
|
switch (_b.label) {
|
|
9760
9855
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
@@ -9891,9 +9986,9 @@ var Session = /** @class */ (function () {
|
|
|
9891
9986
|
}
|
|
9892
9987
|
};
|
|
9893
9988
|
Session.prototype._getConnectionAcquistionBookmarks = function () {
|
|
9894
|
-
var _a;
|
|
9895
9989
|
return __awaiter$f(this, void 0, void 0, function () {
|
|
9896
9990
|
var bookmarks;
|
|
9991
|
+
var _a;
|
|
9897
9992
|
return __generator$h(this, function (_b) {
|
|
9898
9993
|
switch (_b.label) {
|
|
9899
9994
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
@@ -9977,7 +10072,7 @@ var Session = /** @class */ (function () {
|
|
|
9977
10072
|
Session.prototype._calculateWatermaks = function () {
|
|
9978
10073
|
if (this._fetchSize === constants_1$2.FETCH_ALL) {
|
|
9979
10074
|
return {
|
|
9980
|
-
low: Number.MAX_VALUE,
|
|
10075
|
+
low: Number.MAX_VALUE, // we shall always lower than this number to enable auto pull
|
|
9981
10076
|
high: Number.MAX_VALUE // we shall never reach this number to disable auto pull
|
|
9982
10077
|
};
|
|
9983
10078
|
}
|
|
@@ -10051,8 +10146,8 @@ var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10051
10146
|
});
|
|
10052
10147
|
};
|
|
10053
10148
|
var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10054
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10055
|
-
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;
|
|
10056
10151
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10057
10152
|
function step(op) {
|
|
10058
10153
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10114,7 +10209,7 @@ var __spreadArray$k = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
10114
10209
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10115
10210
|
};
|
|
10116
10211
|
Object.defineProperty(bookmarkManager$1, "__esModule", { value: true });
|
|
10117
|
-
bookmarkManager$1.bookmarkManager =
|
|
10212
|
+
bookmarkManager$1.bookmarkManager = bookmarkManager;
|
|
10118
10213
|
/**
|
|
10119
10214
|
* Interface for the piece of software responsible for keeping track of current active bookmarks accross the driver.
|
|
10120
10215
|
* @interface
|
|
@@ -10180,7 +10275,6 @@ function bookmarkManager(config) {
|
|
|
10180
10275
|
var initialBookmarks = new Set(config.initialBookmarks);
|
|
10181
10276
|
return new Neo4jBookmarkManager(initialBookmarks, config.bookmarksSupplier, config.bookmarksConsumer);
|
|
10182
10277
|
}
|
|
10183
|
-
bookmarkManager$1.bookmarkManager = bookmarkManager;
|
|
10184
10278
|
var Neo4jBookmarkManager = /** @class */ (function () {
|
|
10185
10279
|
function Neo4jBookmarkManager(_bookmarks, _bookmarksSupplier, _bookmarksConsumer) {
|
|
10186
10280
|
this._bookmarks = _bookmarks;
|
|
@@ -10232,10 +10326,10 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
10232
10326
|
});
|
|
10233
10327
|
};
|
|
10234
10328
|
Neo4jBookmarkManager.prototype.getBookmarks = function () {
|
|
10235
|
-
var _a;
|
|
10236
10329
|
return __awaiter$e(this, void 0, void 0, function () {
|
|
10237
10330
|
var bookmarks, suppliedBookmarks, suppliedBookmarks_1, suppliedBookmarks_1_1, bm;
|
|
10238
|
-
var e_3,
|
|
10331
|
+
var e_3, _a;
|
|
10332
|
+
var _b;
|
|
10239
10333
|
return __generator$g(this, function (_c) {
|
|
10240
10334
|
switch (_c.label) {
|
|
10241
10335
|
case 0:
|
|
@@ -10243,7 +10337,7 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
10243
10337
|
if (!(typeof this._bookmarksSupplier === 'function')) return [3 /*break*/, 2];
|
|
10244
10338
|
return [4 /*yield*/, this._bookmarksSupplier()];
|
|
10245
10339
|
case 1:
|
|
10246
|
-
suppliedBookmarks = (
|
|
10340
|
+
suppliedBookmarks = (_b = _c.sent()) !== null && _b !== void 0 ? _b : [];
|
|
10247
10341
|
try {
|
|
10248
10342
|
for (suppliedBookmarks_1 = __values$b(suppliedBookmarks), suppliedBookmarks_1_1 = suppliedBookmarks_1.next(); !suppliedBookmarks_1_1.done; suppliedBookmarks_1_1 = suppliedBookmarks_1.next()) {
|
|
10249
10343
|
bm = suppliedBookmarks_1_1.value;
|
|
@@ -10253,7 +10347,7 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
10253
10347
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
10254
10348
|
finally {
|
|
10255
10349
|
try {
|
|
10256
|
-
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);
|
|
10257
10351
|
}
|
|
10258
10352
|
finally { if (e_3) throw e_3.error; }
|
|
10259
10353
|
}
|
|
@@ -10294,8 +10388,8 @@ var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10294
10388
|
});
|
|
10295
10389
|
};
|
|
10296
10390
|
var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10297
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10298
|
-
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;
|
|
10299
10393
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10300
10394
|
function step(op) {
|
|
10301
10395
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10697,8 +10791,8 @@ var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10697
10791
|
});
|
|
10698
10792
|
};
|
|
10699
10793
|
var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10700
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10701
|
-
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;
|
|
10702
10796
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10703
10797
|
function step(op) {
|
|
10704
10798
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10894,8 +10988,8 @@ var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
10894
10988
|
});
|
|
10895
10989
|
};
|
|
10896
10990
|
var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10897
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10898
|
-
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;
|
|
10899
10993
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10900
10994
|
function step(op) {
|
|
10901
10995
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -11407,11 +11501,11 @@ var Driver$1 = /** @class */ (function () {
|
|
|
11407
11501
|
*
|
|
11408
11502
|
* @see {@link resultTransformers} for provided result transformers.
|
|
11409
11503
|
*/
|
|
11410
|
-
Driver.prototype.executeQuery = function (
|
|
11411
|
-
|
|
11412
|
-
if (config === void 0) { config = {}; }
|
|
11413
|
-
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) {
|
|
11414
11506
|
var bookmarkManager, resultTransformer, routingConfig;
|
|
11507
|
+
var _a, _b, _c;
|
|
11508
|
+
if (config === void 0) { config = {}; }
|
|
11415
11509
|
return __generator$d(this, function (_d) {
|
|
11416
11510
|
switch (_d.label) {
|
|
11417
11511
|
case 0:
|
|
@@ -11463,10 +11557,10 @@ var Driver$1 = /** @class */ (function () {
|
|
|
11463
11557
|
* @returns {Promise<boolean>} promise resolved with true if succeed, false if failed with
|
|
11464
11558
|
* authentication issue and rejected with error if non-authentication error happens.
|
|
11465
11559
|
*/
|
|
11466
|
-
Driver.prototype.verifyAuthentication = function (
|
|
11467
|
-
|
|
11468
|
-
return __awaiter$b(this, void 0, void 0, function () {
|
|
11560
|
+
Driver.prototype.verifyAuthentication = function () {
|
|
11561
|
+
return __awaiter$b(this, arguments, void 0, function (_a) {
|
|
11469
11562
|
var connectionProvider;
|
|
11563
|
+
var _b = _a === void 0 ? {} : _a, database = _b.database, auth = _b.auth;
|
|
11470
11564
|
return __generator$d(this, function (_c) {
|
|
11471
11565
|
switch (_c.label) {
|
|
11472
11566
|
case 0:
|
|
@@ -11849,7 +11943,7 @@ var auth = {
|
|
|
11849
11943
|
kerberos: function (base64EncodedTicket) {
|
|
11850
11944
|
return {
|
|
11851
11945
|
scheme: 'kerberos',
|
|
11852
|
-
principal: '',
|
|
11946
|
+
principal: '', // This empty string is required for backwards compatibility.
|
|
11853
11947
|
credentials: base64EncodedTicket
|
|
11854
11948
|
};
|
|
11855
11949
|
},
|
|
@@ -11923,8 +12017,8 @@ var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
11923
12017
|
});
|
|
11924
12018
|
};
|
|
11925
12019
|
var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
11926
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
11927
|
-
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;
|
|
11928
12022
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
11929
12023
|
function step(op) {
|
|
11930
12024
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -11953,7 +12047,8 @@ var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
11953
12047
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11954
12048
|
};
|
|
11955
12049
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11956
|
-
authTokenManager.
|
|
12050
|
+
authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
12051
|
+
authTokenManager.staticAuthTokenManager = staticAuthTokenManager;
|
|
11957
12052
|
var auth_1 = __importDefault$U(auth$1);
|
|
11958
12053
|
var internal_1 = internal;
|
|
11959
12054
|
/**
|
|
@@ -12094,7 +12189,6 @@ function staticAuthTokenManager(_a) {
|
|
|
12094
12189
|
var authToken = _a.authToken;
|
|
12095
12190
|
return new StaticAuthTokenManager(authToken);
|
|
12096
12191
|
}
|
|
12097
|
-
authTokenManager.staticAuthTokenManager = staticAuthTokenManager;
|
|
12098
12192
|
var TokenRefreshObservable = /** @class */ (function () {
|
|
12099
12193
|
function TokenRefreshObservable(_subscribers) {
|
|
12100
12194
|
if (_subscribers === void 0) { _subscribers = []; }
|
|
@@ -12119,8 +12213,8 @@ var ExpirationBasedAuthTokenManager = /** @class */ (function () {
|
|
|
12119
12213
|
this._refreshObservable = _refreshObservable;
|
|
12120
12214
|
}
|
|
12121
12215
|
ExpirationBasedAuthTokenManager.prototype.getToken = function () {
|
|
12122
|
-
var _a;
|
|
12123
12216
|
return __awaiter$a(this, void 0, void 0, function () {
|
|
12217
|
+
var _a;
|
|
12124
12218
|
return __generator$c(this, function (_b) {
|
|
12125
12219
|
switch (_b.label) {
|
|
12126
12220
|
case 0:
|
|
@@ -12568,15 +12662,26 @@ var __setModuleDefault$5 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
12568
12662
|
}) : function(o, v) {
|
|
12569
12663
|
o["default"] = v;
|
|
12570
12664
|
});
|
|
12571
|
-
var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
};
|
|
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
|
+
})();
|
|
12578
12682
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12579
|
-
clientCertificate.
|
|
12683
|
+
clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12684
|
+
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
12580
12685
|
var json = __importStar$5(json$3);
|
|
12581
12686
|
/**
|
|
12582
12687
|
* Represents KeyFile represented as file.
|
|
@@ -12752,7 +12857,6 @@ function resolveCertificateProvider(input) {
|
|
|
12752
12857
|
}
|
|
12753
12858
|
throw new TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(json.stringify(input)));
|
|
12754
12859
|
}
|
|
12755
|
-
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
12756
12860
|
/**
|
|
12757
12861
|
* Verify if object is a client certificate
|
|
12758
12862
|
* @private
|
|
@@ -12905,13 +13009,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
12905
13009
|
}) : function(o, v) {
|
|
12906
13010
|
o["default"] = v;
|
|
12907
13011
|
});
|
|
12908
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
};
|
|
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
|
+
})();
|
|
12915
13029
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
12916
13030
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12917
13031
|
};
|
|
@@ -21094,8 +21208,8 @@ var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
21094
21208
|
});
|
|
21095
21209
|
};
|
|
21096
21210
|
var __generator$8 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
21097
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
21098
|
-
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;
|
|
21099
21213
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
21100
21214
|
function step(op) {
|
|
21101
21215
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -22125,7 +22239,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
22125
22239
|
// This is set up this way to keep the version in the code in
|
|
22126
22240
|
// sync with the npm package version, and to allow the build
|
|
22127
22241
|
// system to control version names at packaging time.
|
|
22128
|
-
version$1.default = '5.28.
|
|
22242
|
+
version$1.default = '5.28.3';
|
|
22129
22243
|
|
|
22130
22244
|
var lib = {};
|
|
22131
22245
|
|
|
@@ -25179,7 +25293,7 @@ var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
25179
25293
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25180
25294
|
};
|
|
25181
25295
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
25182
|
-
channelBuf.alloc =
|
|
25296
|
+
channelBuf.alloc = alloc;
|
|
25183
25297
|
var buffer_1$1 = __importDefault$M(buffer);
|
|
25184
25298
|
var buf_1$1 = __importDefault$M(buf);
|
|
25185
25299
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
@@ -25245,7 +25359,6 @@ channelBuf.default = ChannelBuffer;
|
|
|
25245
25359
|
function alloc(size) {
|
|
25246
25360
|
return new ChannelBuffer(size);
|
|
25247
25361
|
}
|
|
25248
|
-
channelBuf.alloc = alloc;
|
|
25249
25362
|
function newChannelJSBuffer(arg) {
|
|
25250
25363
|
if (arg instanceof buffer_1$1.default.Buffer) {
|
|
25251
25364
|
return arg;
|
|
@@ -25696,8 +25809,8 @@ var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
25696
25809
|
});
|
|
25697
25810
|
};
|
|
25698
25811
|
var __generator$7 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
25699
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
25700
|
-
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;
|
|
25701
25814
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25702
25815
|
function step(op) {
|
|
25703
25816
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -26669,6 +26782,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
26669
26782
|
* limitations under the License.
|
|
26670
26783
|
*/
|
|
26671
26784
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26785
|
+
handshake$1.default = handshake;
|
|
26672
26786
|
var channel_1$4 = channel;
|
|
26673
26787
|
var neo4j_driver_core_1$E = lib$1;
|
|
26674
26788
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
@@ -26808,7 +26922,6 @@ function handshake(channel, log) {
|
|
|
26808
26922
|
}
|
|
26809
26923
|
});
|
|
26810
26924
|
}
|
|
26811
|
-
handshake$1.default = handshake;
|
|
26812
26925
|
/**
|
|
26813
26926
|
* Shake hands using the channel and return the protocol version, or the improved handshake protocol if communicating with a newer server.
|
|
26814
26927
|
*
|
|
@@ -27117,7 +27230,8 @@ var functional = {};
|
|
|
27117
27230
|
* limitations under the License.
|
|
27118
27231
|
*/
|
|
27119
27232
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
27120
|
-
functional.
|
|
27233
|
+
functional.identity = identity;
|
|
27234
|
+
functional.reuseOngoingRequest = reuseOngoingRequest;
|
|
27121
27235
|
var neo4j_driver_core_1$D = lib$1;
|
|
27122
27236
|
/**
|
|
27123
27237
|
* Identity function.
|
|
@@ -27130,7 +27244,6 @@ var neo4j_driver_core_1$D = lib$1;
|
|
|
27130
27244
|
function identity(x) {
|
|
27131
27245
|
return x;
|
|
27132
27246
|
}
|
|
27133
|
-
functional.identity = identity;
|
|
27134
27247
|
/**
|
|
27135
27248
|
* Makes the function able to share ongoing requests
|
|
27136
27249
|
*
|
|
@@ -27157,7 +27270,6 @@ function reuseOngoingRequest(func, thisArg) {
|
|
|
27157
27270
|
});
|
|
27158
27271
|
};
|
|
27159
27272
|
}
|
|
27160
|
-
functional.reuseOngoingRequest = reuseOngoingRequest;
|
|
27161
27273
|
|
|
27162
27274
|
var object = {};
|
|
27163
27275
|
|
|
@@ -27189,7 +27301,7 @@ var __values$1 = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
|
27189
27301
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27190
27302
|
};
|
|
27191
27303
|
Object.defineProperty(object, "__esModule", { value: true });
|
|
27192
|
-
object.equals =
|
|
27304
|
+
object.equals = equals;
|
|
27193
27305
|
function equals(a, b) {
|
|
27194
27306
|
var e_1, _a;
|
|
27195
27307
|
if (a === b) {
|
|
@@ -27223,7 +27335,6 @@ function equals(a, b) {
|
|
|
27223
27335
|
}
|
|
27224
27336
|
return false;
|
|
27225
27337
|
}
|
|
27226
|
-
object.equals = equals;
|
|
27227
27338
|
|
|
27228
27339
|
/**
|
|
27229
27340
|
* Copyright (c) "Neo4j"
|
|
@@ -27257,13 +27368,23 @@ var __setModuleDefault$4 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
27257
27368
|
}) : function(o, v) {
|
|
27258
27369
|
o["default"] = v;
|
|
27259
27370
|
});
|
|
27260
|
-
var __importStar$4 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
27261
|
-
|
|
27262
|
-
|
|
27263
|
-
|
|
27264
|
-
|
|
27265
|
-
|
|
27266
|
-
};
|
|
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
|
+
})();
|
|
27267
27388
|
Object.defineProperty(lang, "__esModule", { value: true });
|
|
27268
27389
|
lang.object = lang.functional = void 0;
|
|
27269
27390
|
lang.functional = __importStar$4(functional);
|
|
@@ -27958,7 +28079,10 @@ var _states = {
|
|
|
27958
28079
|
};
|
|
27959
28080
|
|
|
27960
28081
|
Object.defineProperty(boltProtocolUtil, "__esModule", { value: true });
|
|
27961
|
-
boltProtocolUtil.
|
|
28082
|
+
boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
28083
|
+
boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
28084
|
+
boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
28085
|
+
boltProtocolUtil.assertNotificationFilterIsEmpty = assertNotificationFilterIsEmpty;
|
|
27962
28086
|
/**
|
|
27963
28087
|
* Copyright (c) "Neo4j"
|
|
27964
28088
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -27992,7 +28116,6 @@ function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
|
27992
28116
|
throw error;
|
|
27993
28117
|
}
|
|
27994
28118
|
}
|
|
27995
|
-
boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
27996
28119
|
/**
|
|
27997
28120
|
* Asserts that the passed-in database name is empty.
|
|
27998
28121
|
* @param {string} database
|
|
@@ -28009,7 +28132,6 @@ function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
|
28009
28132
|
throw error;
|
|
28010
28133
|
}
|
|
28011
28134
|
}
|
|
28012
|
-
boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
28013
28135
|
/**
|
|
28014
28136
|
* Asserts that the passed-in impersonated user is empty
|
|
28015
28137
|
* @param {string} impersonatedUser
|
|
@@ -28028,7 +28150,6 @@ function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observ
|
|
|
28028
28150
|
throw error;
|
|
28029
28151
|
}
|
|
28030
28152
|
}
|
|
28031
|
-
boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
28032
28153
|
/**
|
|
28033
28154
|
* Asserts that the passed-in notificationFilter is empty
|
|
28034
28155
|
* @param {NotificationFilter} notificationFilter
|
|
@@ -28047,7 +28168,6 @@ function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, ob
|
|
|
28047
28168
|
throw error;
|
|
28048
28169
|
}
|
|
28049
28170
|
}
|
|
28050
|
-
boltProtocolUtil.assertNotificationFilterIsEmpty = assertNotificationFilterIsEmpty;
|
|
28051
28171
|
|
|
28052
28172
|
var packstream = {};
|
|
28053
28173
|
|
|
@@ -28072,7 +28192,8 @@ var structure$1 = {};
|
|
|
28072
28192
|
* limitations under the License.
|
|
28073
28193
|
*/
|
|
28074
28194
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
28075
|
-
structure$1.
|
|
28195
|
+
structure$1.Structure = void 0;
|
|
28196
|
+
structure$1.verifyStructSize = verifyStructSize;
|
|
28076
28197
|
var neo4j_driver_core_1$A = lib$1;
|
|
28077
28198
|
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$A.error.PROTOCOL_ERROR;
|
|
28078
28199
|
/**
|
|
@@ -28111,7 +28232,6 @@ function verifyStructSize(structName, expectedSize, actualSize) {
|
|
|
28111
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);
|
|
28112
28233
|
}
|
|
28113
28234
|
}
|
|
28114
|
-
structure$1.verifyStructSize = verifyStructSize;
|
|
28115
28235
|
structure$1.default = Structure;
|
|
28116
28236
|
|
|
28117
28237
|
Object.defineProperty(packstreamV1, "__esModule", { value: true });
|
|
@@ -28728,13 +28848,23 @@ var __setModuleDefault$3 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
28728
28848
|
}) : function(o, v) {
|
|
28729
28849
|
o["default"] = v;
|
|
28730
28850
|
});
|
|
28731
|
-
var __importStar$3 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
};
|
|
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
|
+
})();
|
|
28738
28868
|
Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
28739
28869
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28740
28870
|
var v1$1 = __importStar$3(packstreamV1);
|
|
@@ -28797,13 +28927,23 @@ var __setModuleDefault$2 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
28797
28927
|
}) : function(o, v) {
|
|
28798
28928
|
o["default"] = v;
|
|
28799
28929
|
});
|
|
28800
|
-
var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
|
|
28804
|
-
|
|
28805
|
-
|
|
28806
|
-
};
|
|
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
|
+
})();
|
|
28807
28947
|
Object.defineProperty(packstream, "__esModule", { value: true });
|
|
28808
28948
|
packstream.structure = packstream.v2 = packstream.v1 = void 0;
|
|
28809
28949
|
var v1 = __importStar$2(packstreamV1);
|
|
@@ -29599,13 +29739,23 @@ var __setModuleDefault$1 = (commonjsGlobal && commonjsGlobal.__setModuleDefault)
|
|
|
29599
29739
|
}) : function(o, v) {
|
|
29600
29740
|
o["default"] = v;
|
|
29601
29741
|
});
|
|
29602
|
-
var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
29603
|
-
|
|
29604
|
-
|
|
29605
|
-
|
|
29606
|
-
|
|
29607
|
-
|
|
29608
|
-
};
|
|
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
|
+
})();
|
|
29609
29759
|
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29610
29760
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29611
29761
|
};
|
|
@@ -30131,7 +30281,9 @@ var boltProtocolV2_transformer = {};
|
|
|
30131
30281
|
var temporalFactory = {};
|
|
30132
30282
|
|
|
30133
30283
|
Object.defineProperty(temporalFactory, "__esModule", { value: true });
|
|
30134
|
-
temporalFactory.
|
|
30284
|
+
temporalFactory.epochDayToDate = epochDayToDate;
|
|
30285
|
+
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
30286
|
+
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
30135
30287
|
/**
|
|
30136
30288
|
* Copyright (c) "Neo4j"
|
|
30137
30289
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -30203,7 +30355,6 @@ function epochDayToDate(epochDay) {
|
|
|
30203
30355
|
year = year.add(marchMonth.div(10));
|
|
30204
30356
|
return new neo4j_driver_core_1$u.Date(year, month, day);
|
|
30205
30357
|
}
|
|
30206
|
-
temporalFactory.epochDayToDate = epochDayToDate;
|
|
30207
30358
|
/**
|
|
30208
30359
|
* Converts nanoseconds of the day into local time.
|
|
30209
30360
|
* @param {Integer|number|string} nanoOfDay the nanoseconds of the day to convert.
|
|
@@ -30219,7 +30370,6 @@ function nanoOfDayToLocalTime(nanoOfDay) {
|
|
|
30219
30370
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
30220
30371
|
return new neo4j_driver_core_1$u.LocalTime(hour, minute, second, nanosecond);
|
|
30221
30372
|
}
|
|
30222
|
-
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
30223
30373
|
/**
|
|
30224
30374
|
* Converts given epoch second and nanosecond adjustment into a local date time object.
|
|
30225
30375
|
* @param {Integer|number|string} epochSecond the epoch second to use.
|
|
@@ -30234,7 +30384,6 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
30234
30384
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
30235
30385
|
return new neo4j_driver_core_1$u.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
30236
30386
|
}
|
|
30237
|
-
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
30238
30387
|
|
|
30239
30388
|
/**
|
|
30240
30389
|
* Copyright (c) "Neo4j"
|
|
@@ -33620,6 +33769,7 @@ var __importDefault$7 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
33620
33769
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33621
33770
|
};
|
|
33622
33771
|
Object.defineProperty(create$1, "__esModule", { value: true });
|
|
33772
|
+
create$1.default = create;
|
|
33623
33773
|
var neo4j_driver_core_1$9 = lib$1;
|
|
33624
33774
|
var bolt_protocol_v1_1 = __importDefault$7(boltProtocolV1);
|
|
33625
33775
|
var bolt_protocol_v2_1 = __importDefault$7(boltProtocolV2);
|
|
@@ -33680,7 +33830,6 @@ function create(_a) {
|
|
|
33680
33830
|
};
|
|
33681
33831
|
return createProtocol(version, server, chunker, { disableLosslessIntegers: disableLosslessIntegers, useBigInt: useBigInt }, serversideRouting, createResponseHandler, observer.onProtocolError.bind(observer), log);
|
|
33682
33832
|
}
|
|
33683
|
-
create$1.default = create;
|
|
33684
33833
|
function createProtocol(version, server, chunker, packingConfig, serversideRouting, createResponseHandler, onProtocolError, log) {
|
|
33685
33834
|
switch (version) {
|
|
33686
33835
|
case 1:
|
|
@@ -34036,8 +34185,8 @@ var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
34036
34185
|
});
|
|
34037
34186
|
};
|
|
34038
34187
|
var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
34039
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
34040
|
-
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;
|
|
34041
34190
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34042
34191
|
function step(op) {
|
|
34043
34192
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -34066,7 +34215,7 @@ var __importDefault$6 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
34066
34215
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34067
34216
|
};
|
|
34068
34217
|
Object.defineProperty(connectionChannel, "__esModule", { value: true });
|
|
34069
|
-
connectionChannel.createChannelConnection =
|
|
34218
|
+
connectionChannel.createChannelConnection = createChannelConnection;
|
|
34070
34219
|
var channel_1$2 = channel;
|
|
34071
34220
|
var neo4j_driver_core_1$6 = lib$1;
|
|
34072
34221
|
var connection_1$4 = __importDefault$6(connection);
|
|
@@ -34128,7 +34277,6 @@ function createChannelConnection(address, config, errorHandler, log, clientCerti
|
|
|
34128
34277
|
});
|
|
34129
34278
|
});
|
|
34130
34279
|
}
|
|
34131
|
-
connectionChannel.createChannelConnection = createChannelConnection;
|
|
34132
34280
|
var ChannelConnection = /** @class */ (function (_super) {
|
|
34133
34281
|
__extends$4(ChannelConnection, _super);
|
|
34134
34282
|
/**
|
|
@@ -34554,8 +34702,8 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
34554
34702
|
* @returns {Promise<void>} - A promise that will be resolved when the underlying channel is closed.
|
|
34555
34703
|
*/
|
|
34556
34704
|
ChannelConnection.prototype.close = function () {
|
|
34557
|
-
var _a;
|
|
34558
34705
|
return __awaiter$6(this, void 0, void 0, function () {
|
|
34706
|
+
var _a;
|
|
34559
34707
|
return __generator$6(this, function (_b) {
|
|
34560
34708
|
switch (_b.label) {
|
|
34561
34709
|
case 0:
|
|
@@ -34895,13 +35043,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
34895
35043
|
}) : function(o, v) {
|
|
34896
35044
|
o["default"] = v;
|
|
34897
35045
|
});
|
|
34898
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
34899
|
-
|
|
34900
|
-
|
|
34901
|
-
|
|
34902
|
-
|
|
34903
|
-
|
|
34904
|
-
};
|
|
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
|
+
})();
|
|
34905
35063
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
34906
35064
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34907
35065
|
};
|
|
@@ -34947,8 +35105,8 @@ var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
34947
35105
|
});
|
|
34948
35106
|
};
|
|
34949
35107
|
var __generator$5 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
34950
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
34951
|
-
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;
|
|
34952
35110
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34953
35111
|
function step(op) {
|
|
34954
35112
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -34987,25 +35145,25 @@ var AuthenticationProvider = /** @class */ (function () {
|
|
|
34987
35145
|
this._boltAgent = boltAgent;
|
|
34988
35146
|
}
|
|
34989
35147
|
AuthenticationProvider.prototype.authenticate = function (_a) {
|
|
34990
|
-
|
|
34991
|
-
return __awaiter$5(this, void 0, void 0, function () {
|
|
35148
|
+
return __awaiter$5(this, arguments, void 0, function (_b) {
|
|
34992
35149
|
var shouldReAuth, authToken;
|
|
34993
|
-
|
|
34994
|
-
|
|
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) {
|
|
34995
35153
|
case 0:
|
|
34996
35154
|
if (!(auth != null)) return [3 /*break*/, 3];
|
|
34997
35155
|
shouldReAuth = connection.supportsReAuth === true && ((!lang_1$2.object.equals(connection.authToken, auth) && skipReAuth !== true) ||
|
|
34998
35156
|
forceReAuth === true);
|
|
34999
35157
|
if (!(connection.authToken == null || shouldReAuth)) return [3 /*break*/, 2];
|
|
35000
35158
|
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, auth, waitReAuth || false)];
|
|
35001
|
-
case 1: return [2 /*return*/,
|
|
35159
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
35002
35160
|
case 2: return [2 /*return*/, connection];
|
|
35003
35161
|
case 3: return [4 /*yield*/, this._authTokenManager.getToken()];
|
|
35004
35162
|
case 4:
|
|
35005
|
-
authToken =
|
|
35163
|
+
authToken = _c.sent();
|
|
35006
35164
|
if (!!lang_1$2.object.equals(authToken, connection.authToken)) return [3 /*break*/, 6];
|
|
35007
35165
|
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, authToken, false)];
|
|
35008
|
-
case 5: return [2 /*return*/,
|
|
35166
|
+
case 5: return [2 /*return*/, _c.sent()];
|
|
35009
35167
|
case 6: return [2 /*return*/, connection];
|
|
35010
35168
|
}
|
|
35011
35169
|
});
|
|
@@ -35035,8 +35193,8 @@ var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35035
35193
|
});
|
|
35036
35194
|
};
|
|
35037
35195
|
var __generator$4 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35038
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35039
|
-
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;
|
|
35040
35198
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35041
35199
|
function step(op) {
|
|
35042
35200
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35135,8 +35293,8 @@ var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35135
35293
|
});
|
|
35136
35294
|
};
|
|
35137
35295
|
var __generator$3 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35138
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35139
|
-
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;
|
|
35140
35298
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35141
35299
|
function step(op) {
|
|
35142
35300
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35267,8 +35425,8 @@ var __awaiter$2 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35267
35425
|
});
|
|
35268
35426
|
};
|
|
35269
35427
|
var __generator$2 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35270
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35271
|
-
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;
|
|
35272
35430
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35273
35431
|
function step(op) {
|
|
35274
35432
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35419,35 +35577,35 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35419
35577
|
});
|
|
35420
35578
|
});
|
|
35421
35579
|
};
|
|
35422
|
-
PooledConnectionProvider.prototype._validateConnectionOnAcquire = function (_a,
|
|
35423
|
-
|
|
35424
|
-
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) {
|
|
35425
35582
|
var error_1, error_2;
|
|
35426
|
-
|
|
35427
|
-
|
|
35583
|
+
var auth = _b.auth, skipReAuth = _b.skipReAuth;
|
|
35584
|
+
return __generator$2(this, function (_c) {
|
|
35585
|
+
switch (_c.label) {
|
|
35428
35586
|
case 0:
|
|
35429
35587
|
if (!this._validateConnection(conn)) {
|
|
35430
35588
|
return [2 /*return*/, false];
|
|
35431
35589
|
}
|
|
35432
|
-
|
|
35590
|
+
_c.label = 1;
|
|
35433
35591
|
case 1:
|
|
35434
|
-
|
|
35592
|
+
_c.trys.push([1, 3, , 4]);
|
|
35435
35593
|
return [4 /*yield*/, this._livenessCheckProvider.check(conn)];
|
|
35436
35594
|
case 2:
|
|
35437
|
-
|
|
35595
|
+
_c.sent();
|
|
35438
35596
|
return [3 /*break*/, 4];
|
|
35439
35597
|
case 3:
|
|
35440
|
-
error_1 =
|
|
35598
|
+
error_1 = _c.sent();
|
|
35441
35599
|
this._log.debug("The connection ".concat(conn.id, " is not alive because of an error ").concat(error_1.code, " '").concat(error_1.message, "'"));
|
|
35442
35600
|
return [2 /*return*/, false];
|
|
35443
35601
|
case 4:
|
|
35444
|
-
|
|
35602
|
+
_c.trys.push([4, 6, , 7]);
|
|
35445
35603
|
return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: conn, auth: auth, skipReAuth: skipReAuth })];
|
|
35446
35604
|
case 5:
|
|
35447
|
-
|
|
35605
|
+
_c.sent();
|
|
35448
35606
|
return [2 /*return*/, true];
|
|
35449
35607
|
case 6:
|
|
35450
|
-
error_2 =
|
|
35608
|
+
error_2 = _c.sent();
|
|
35451
35609
|
this._log.debug("The connection ".concat(conn.id, " is not valid because of an error ").concat(error_2.code, " '").concat(error_2.message, "'"));
|
|
35452
35610
|
return [2 /*return*/, false];
|
|
35453
35611
|
case 7: return [2 /*return*/];
|
|
@@ -35490,27 +35648,27 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35490
35648
|
* @return {Promise<ServerInfo>} the server info
|
|
35491
35649
|
*/
|
|
35492
35650
|
PooledConnectionProvider.prototype._verifyConnectivityAndGetServerVersion = function (_a) {
|
|
35493
|
-
|
|
35494
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35651
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35495
35652
|
var connection, serverInfo;
|
|
35496
|
-
|
|
35497
|
-
|
|
35653
|
+
var address = _b.address;
|
|
35654
|
+
return __generator$2(this, function (_c) {
|
|
35655
|
+
switch (_c.label) {
|
|
35498
35656
|
case 0: return [4 /*yield*/, this._connectionPool.acquire({}, address)];
|
|
35499
35657
|
case 1:
|
|
35500
|
-
connection =
|
|
35658
|
+
connection = _c.sent();
|
|
35501
35659
|
serverInfo = new neo4j_driver_core_1$3.ServerInfo(connection.server, connection.protocol().version);
|
|
35502
|
-
|
|
35660
|
+
_c.label = 2;
|
|
35503
35661
|
case 2:
|
|
35504
|
-
|
|
35662
|
+
_c.trys.push([2, , 5, 7]);
|
|
35505
35663
|
if (!!connection.protocol().isLastMessageLogon()) return [3 /*break*/, 4];
|
|
35506
35664
|
return [4 /*yield*/, connection.resetAndFlush()];
|
|
35507
35665
|
case 3:
|
|
35508
|
-
|
|
35509
|
-
|
|
35666
|
+
_c.sent();
|
|
35667
|
+
_c.label = 4;
|
|
35510
35668
|
case 4: return [3 /*break*/, 7];
|
|
35511
35669
|
case 5: return [4 /*yield*/, connection.release()];
|
|
35512
35670
|
case 6:
|
|
35513
|
-
|
|
35671
|
+
_c.sent();
|
|
35514
35672
|
return [7 /*endfinally*/];
|
|
35515
35673
|
case 7: return [2 /*return*/, serverInfo];
|
|
35516
35674
|
}
|
|
@@ -35518,22 +35676,22 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35518
35676
|
});
|
|
35519
35677
|
};
|
|
35520
35678
|
PooledConnectionProvider.prototype._verifyAuthentication = function (_a) {
|
|
35521
|
-
|
|
35522
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35679
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35523
35680
|
var connectionsToRelease, address, connection, lastMessageIsNotLogin, stickyConnection, error_3;
|
|
35524
|
-
|
|
35525
|
-
|
|
35681
|
+
var getAddress = _b.getAddress, auth = _b.auth;
|
|
35682
|
+
return __generator$2(this, function (_c) {
|
|
35683
|
+
switch (_c.label) {
|
|
35526
35684
|
case 0:
|
|
35527
35685
|
connectionsToRelease = [];
|
|
35528
|
-
|
|
35686
|
+
_c.label = 1;
|
|
35529
35687
|
case 1:
|
|
35530
|
-
|
|
35688
|
+
_c.trys.push([1, 8, 9, 11]);
|
|
35531
35689
|
return [4 /*yield*/, getAddress()];
|
|
35532
35690
|
case 2:
|
|
35533
|
-
address =
|
|
35691
|
+
address = _c.sent();
|
|
35534
35692
|
return [4 /*yield*/, this._connectionPool.acquire({ auth: auth, skipReAuth: true }, address)];
|
|
35535
35693
|
case 3:
|
|
35536
|
-
connection =
|
|
35694
|
+
connection = _c.sent();
|
|
35537
35695
|
connectionsToRelease.push(connection);
|
|
35538
35696
|
lastMessageIsNotLogin = !connection.protocol().isLastMessageLogon();
|
|
35539
35697
|
if (!connection.supportsReAuth) {
|
|
@@ -35542,26 +35700,26 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35542
35700
|
if (!(lastMessageIsNotLogin && connection.supportsReAuth)) return [3 /*break*/, 5];
|
|
35543
35701
|
return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: connection, auth: auth, waitReAuth: true, forceReAuth: true })];
|
|
35544
35702
|
case 4:
|
|
35545
|
-
|
|
35703
|
+
_c.sent();
|
|
35546
35704
|
return [3 /*break*/, 7];
|
|
35547
35705
|
case 5:
|
|
35548
35706
|
if (!(lastMessageIsNotLogin && !connection.supportsReAuth)) return [3 /*break*/, 7];
|
|
35549
35707
|
return [4 /*yield*/, this._connectionPool.acquire({ auth: auth }, address, { requireNew: true })];
|
|
35550
35708
|
case 6:
|
|
35551
|
-
stickyConnection =
|
|
35709
|
+
stickyConnection = _c.sent();
|
|
35552
35710
|
stickyConnection._sticky = true;
|
|
35553
35711
|
connectionsToRelease.push(stickyConnection);
|
|
35554
|
-
|
|
35712
|
+
_c.label = 7;
|
|
35555
35713
|
case 7: return [2 /*return*/, true];
|
|
35556
35714
|
case 8:
|
|
35557
|
-
error_3 =
|
|
35715
|
+
error_3 = _c.sent();
|
|
35558
35716
|
if (AUTHENTICATION_ERRORS.includes(error_3.code)) {
|
|
35559
35717
|
return [2 /*return*/, false];
|
|
35560
35718
|
}
|
|
35561
35719
|
throw error_3;
|
|
35562
35720
|
case 9: return [4 /*yield*/, Promise.all(connectionsToRelease.map(function (conn) { return conn.release(); }))];
|
|
35563
35721
|
case 10:
|
|
35564
|
-
|
|
35722
|
+
_c.sent();
|
|
35565
35723
|
return [7 /*endfinally*/];
|
|
35566
35724
|
case 11: return [2 /*return*/];
|
|
35567
35725
|
}
|
|
@@ -35569,11 +35727,11 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35569
35727
|
});
|
|
35570
35728
|
};
|
|
35571
35729
|
PooledConnectionProvider.prototype._verifyStickyConnection = function (_a) {
|
|
35572
|
-
|
|
35573
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35730
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35574
35731
|
var connectionWithSameCredentials, shouldCreateStickyConnection;
|
|
35575
|
-
|
|
35576
|
-
|
|
35732
|
+
var auth = _b.auth, connection = _b.connection; _b.address;
|
|
35733
|
+
return __generator$2(this, function (_c) {
|
|
35734
|
+
switch (_c.label) {
|
|
35577
35735
|
case 0:
|
|
35578
35736
|
connectionWithSameCredentials = lang_1$1.object.equals(auth, connection.authToken);
|
|
35579
35737
|
shouldCreateStickyConnection = !connectionWithSameCredentials;
|
|
@@ -35581,7 +35739,7 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
35581
35739
|
if (!(shouldCreateStickyConnection || connection._sticky)) return [3 /*break*/, 2];
|
|
35582
35740
|
return [4 /*yield*/, connection.release()];
|
|
35583
35741
|
case 1:
|
|
35584
|
-
|
|
35742
|
+
_c.sent();
|
|
35585
35743
|
throw (0, neo4j_driver_core_1$3.newError)('Driver is connected to a database that does not support user switch.');
|
|
35586
35744
|
case 2: return [2 /*return*/];
|
|
35587
35745
|
}
|
|
@@ -35679,8 +35837,8 @@ var __awaiter$1 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
35679
35837
|
});
|
|
35680
35838
|
};
|
|
35681
35839
|
var __generator$1 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35682
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35683
|
-
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;
|
|
35684
35842
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35685
35843
|
function step(op) {
|
|
35686
35844
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35726,11 +35884,11 @@ var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
|
35726
35884
|
* See {@link ConnectionProvider} for more information about this method and
|
|
35727
35885
|
* its arguments.
|
|
35728
35886
|
*/
|
|
35729
|
-
DirectConnectionProvider.prototype.acquireConnection = function (
|
|
35730
|
-
|
|
35731
|
-
return __awaiter$1(this, void 0, void 0, function () {
|
|
35887
|
+
DirectConnectionProvider.prototype.acquireConnection = function () {
|
|
35888
|
+
return __awaiter$1(this, arguments, void 0, function (_a) {
|
|
35732
35889
|
var databaseSpecificErrorHandler, connection;
|
|
35733
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;
|
|
35734
35892
|
return __generator$1(this, function (_c) {
|
|
35735
35893
|
switch (_c.label) {
|
|
35736
35894
|
case 0:
|
|
@@ -35831,10 +35989,10 @@ var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
|
35831
35989
|
});
|
|
35832
35990
|
};
|
|
35833
35991
|
DirectConnectionProvider.prototype.verifyAuthentication = function (_a) {
|
|
35834
|
-
|
|
35835
|
-
return __awaiter$1(this, void 0, void 0, function () {
|
|
35992
|
+
return __awaiter$1(this, arguments, void 0, function (_b) {
|
|
35836
35993
|
var _this = this;
|
|
35837
|
-
|
|
35994
|
+
var auth = _b.auth;
|
|
35995
|
+
return __generator$1(this, function (_c) {
|
|
35838
35996
|
return [2 /*return*/, this._verifyAuthentication({
|
|
35839
35997
|
auth: auth,
|
|
35840
35998
|
getAddress: function () { return _this._address; }
|
|
@@ -35890,7 +36048,7 @@ var __spreadArray = (commonjsGlobal && commonjsGlobal.__spreadArray) || function
|
|
|
35890
36048
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35891
36049
|
};
|
|
35892
36050
|
Object.defineProperty(routingTable, "__esModule", { value: true });
|
|
35893
|
-
routingTable.createValidRoutingTable =
|
|
36051
|
+
routingTable.createValidRoutingTable = createValidRoutingTable;
|
|
35894
36052
|
/**
|
|
35895
36053
|
* Copyright (c) "Neo4j"
|
|
35896
36054
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -36016,7 +36174,6 @@ function createValidRoutingTable(database, routerAddress, rawRoutingTable) {
|
|
|
36016
36174
|
ttl: ttl
|
|
36017
36175
|
});
|
|
36018
36176
|
}
|
|
36019
|
-
routingTable.createValidRoutingTable = createValidRoutingTable;
|
|
36020
36177
|
/**
|
|
36021
36178
|
* Parse server from the RawRoutingTable.
|
|
36022
36179
|
*
|
|
@@ -36255,13 +36412,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
36255
36412
|
}) : function(o, v) {
|
|
36256
36413
|
o["default"] = v;
|
|
36257
36414
|
});
|
|
36258
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
};
|
|
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
|
+
})();
|
|
36265
36432
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36266
36433
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36267
36434
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -36272,8 +36439,8 @@ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisAr
|
|
|
36272
36439
|
});
|
|
36273
36440
|
};
|
|
36274
36441
|
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
36275
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36276
|
-
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;
|
|
36277
36444
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
36278
36445
|
function step(op) {
|
|
36279
36446
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -36410,11 +36577,11 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36410
36577
|
* See {@link ConnectionProvider} for more information about this method and
|
|
36411
36578
|
* its arguments.
|
|
36412
36579
|
*/
|
|
36413
|
-
RoutingConnectionProvider.prototype.acquireConnection = function (
|
|
36414
|
-
|
|
36415
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36580
|
+
RoutingConnectionProvider.prototype.acquireConnection = function () {
|
|
36581
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
36416
36582
|
var context, databaseSpecificErrorHandler, conn, currentRoutingTable, routingTable;
|
|
36417
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;
|
|
36418
36585
|
return __generator(this, function (_c) {
|
|
36419
36586
|
switch (_c.label) {
|
|
36420
36587
|
case 0:
|
|
@@ -36590,10 +36757,10 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36590
36757
|
});
|
|
36591
36758
|
};
|
|
36592
36759
|
RoutingConnectionProvider.prototype.verifyAuthentication = function (_a) {
|
|
36593
|
-
|
|
36594
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36760
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
36595
36761
|
var _this = this;
|
|
36596
|
-
|
|
36762
|
+
var database = _b.database, accessMode = _b.accessMode, auth = _b.auth;
|
|
36763
|
+
return __generator(this, function (_c) {
|
|
36597
36764
|
return [2 /*return*/, this._verifyAuthentication({
|
|
36598
36765
|
auth: auth,
|
|
36599
36766
|
getAddress: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -36625,12 +36792,12 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36625
36792
|
});
|
|
36626
36793
|
};
|
|
36627
36794
|
RoutingConnectionProvider.prototype.verifyConnectivityAndGetServerInfo = function (_a) {
|
|
36628
|
-
|
|
36629
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36795
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
36630
36796
|
var context, routingTable, servers, error, servers_1, servers_1_1, address, serverInfo, e_1, e_2_1;
|
|
36631
|
-
var e_2,
|
|
36632
|
-
|
|
36633
|
-
|
|
36797
|
+
var e_2, _c;
|
|
36798
|
+
var database = _b.database, accessMode = _b.accessMode;
|
|
36799
|
+
return __generator(this, function (_d) {
|
|
36800
|
+
switch (_d.label) {
|
|
36634
36801
|
case 0:
|
|
36635
36802
|
context = { database: database || DEFAULT_DB_NAME };
|
|
36636
36803
|
return [4 /*yield*/, this._freshRoutingTable({
|
|
@@ -36641,26 +36808,26 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36641
36808
|
}
|
|
36642
36809
|
})];
|
|
36643
36810
|
case 1:
|
|
36644
|
-
routingTable =
|
|
36811
|
+
routingTable = _d.sent();
|
|
36645
36812
|
servers = accessMode === WRITE ? routingTable.writers : routingTable.readers;
|
|
36646
36813
|
error = (0, neo4j_driver_core_1.newError)("No servers available for database '".concat(context.database, "' with access mode '").concat(accessMode, "'"), SERVICE_UNAVAILABLE);
|
|
36647
|
-
|
|
36814
|
+
_d.label = 2;
|
|
36648
36815
|
case 2:
|
|
36649
|
-
|
|
36816
|
+
_d.trys.push([2, 9, 10, 11]);
|
|
36650
36817
|
servers_1 = __values(servers), servers_1_1 = servers_1.next();
|
|
36651
|
-
|
|
36818
|
+
_d.label = 3;
|
|
36652
36819
|
case 3:
|
|
36653
36820
|
if (!!servers_1_1.done) return [3 /*break*/, 8];
|
|
36654
36821
|
address = servers_1_1.value;
|
|
36655
|
-
|
|
36822
|
+
_d.label = 4;
|
|
36656
36823
|
case 4:
|
|
36657
|
-
|
|
36824
|
+
_d.trys.push([4, 6, , 7]);
|
|
36658
36825
|
return [4 /*yield*/, this._verifyConnectivityAndGetServerVersion({ address: address })];
|
|
36659
36826
|
case 5:
|
|
36660
|
-
serverInfo =
|
|
36827
|
+
serverInfo = _d.sent();
|
|
36661
36828
|
return [2 /*return*/, serverInfo];
|
|
36662
36829
|
case 6:
|
|
36663
|
-
e_1 =
|
|
36830
|
+
e_1 = _d.sent();
|
|
36664
36831
|
error = e_1;
|
|
36665
36832
|
return [3 /*break*/, 7];
|
|
36666
36833
|
case 7:
|
|
@@ -36668,12 +36835,12 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
36668
36835
|
return [3 /*break*/, 3];
|
|
36669
36836
|
case 8: return [3 /*break*/, 11];
|
|
36670
36837
|
case 9:
|
|
36671
|
-
e_2_1 =
|
|
36838
|
+
e_2_1 = _d.sent();
|
|
36672
36839
|
e_2 = { error: e_2_1 };
|
|
36673
36840
|
return [3 /*break*/, 11];
|
|
36674
36841
|
case 10:
|
|
36675
36842
|
try {
|
|
36676
|
-
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);
|
|
36677
36844
|
}
|
|
36678
36845
|
finally { if (e_2) throw e_2.error; }
|
|
36679
36846
|
return [7 /*endfinally*/];
|
|
@@ -37193,13 +37360,23 @@ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) |
|
|
|
37193
37360
|
}) : function(o, v) {
|
|
37194
37361
|
o["default"] = v;
|
|
37195
37362
|
});
|
|
37196
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
37197
|
-
|
|
37198
|
-
|
|
37199
|
-
|
|
37200
|
-
|
|
37201
|
-
|
|
37202
|
-
};
|
|
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
|
+
})();
|
|
37203
37380
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
37204
37381
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37205
37382
|
};
|
|
@@ -37224,8 +37401,8 @@ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisAr
|
|
|
37224
37401
|
});
|
|
37225
37402
|
};
|
|
37226
37403
|
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
37227
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37228
|
-
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;
|
|
37229
37406
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37230
37407
|
function step(op) {
|
|
37231
37408
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -37254,8 +37431,10 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
37254
37431
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37255
37432
|
};
|
|
37256
37433
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37257
|
-
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.
|
|
37258
|
-
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;
|
|
37259
37438
|
/**
|
|
37260
37439
|
* Copyright (c) "Neo4j"
|
|
37261
37440
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -37459,7 +37638,6 @@ function driver(url, authToken, config) {
|
|
|
37459
37638
|
}
|
|
37460
37639
|
}
|
|
37461
37640
|
}
|
|
37462
|
-
exports.driver = driver;
|
|
37463
37641
|
/**
|
|
37464
37642
|
* Verifies if the driver can reach a server at the given url.
|
|
37465
37643
|
*
|
|
@@ -37493,7 +37671,6 @@ function hasReachableServer(url, config) {
|
|
|
37493
37671
|
});
|
|
37494
37672
|
});
|
|
37495
37673
|
}
|
|
37496
|
-
exports.hasReachableServer = hasReachableServer;
|
|
37497
37674
|
/**
|
|
37498
37675
|
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
37499
37676
|
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|