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
package/lib/browser/neo4j-web.js
CHANGED
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
var objectUtil$2 = {};
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(objectUtil$2, "__esModule", { value: true });
|
|
26
|
-
objectUtil$2.
|
|
26
|
+
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
27
|
+
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
28
|
+
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
27
29
|
/**
|
|
28
30
|
* Copyright (c) "Neo4j"
|
|
29
31
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -83,7 +85,6 @@
|
|
|
83
85
|
setPrototypeOf: fail
|
|
84
86
|
});
|
|
85
87
|
}
|
|
86
|
-
objectUtil$2.createBrokenObject = createBrokenObject;
|
|
87
88
|
/**
|
|
88
89
|
* Verifies if it is a Broken Object
|
|
89
90
|
* @param {any} object The object
|
|
@@ -92,7 +93,6 @@
|
|
|
92
93
|
function isBrokenObject(object) {
|
|
93
94
|
return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;
|
|
94
95
|
}
|
|
95
|
-
objectUtil$2.isBrokenObject = isBrokenObject;
|
|
96
96
|
/**
|
|
97
97
|
* Returns if the reason the object is broken.
|
|
98
98
|
*
|
|
@@ -104,7 +104,6 @@
|
|
|
104
104
|
function getBrokenObjectReason(object) {
|
|
105
105
|
return object[__reason__];
|
|
106
106
|
}
|
|
107
|
-
objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
108
107
|
|
|
109
108
|
/**
|
|
110
109
|
* Copyright (c) "Neo4j"
|
|
@@ -123,7 +122,7 @@
|
|
|
123
122
|
* limitations under the License.
|
|
124
123
|
*/
|
|
125
124
|
Object.defineProperty(json$3, "__esModule", { value: true });
|
|
126
|
-
json$3.stringify =
|
|
125
|
+
json$3.stringify = stringify;
|
|
127
126
|
var object_util_1 = objectUtil$2;
|
|
128
127
|
/**
|
|
129
128
|
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
@@ -161,7 +160,6 @@
|
|
|
161
160
|
return value;
|
|
162
161
|
});
|
|
163
162
|
}
|
|
164
|
-
json$3.stringify = stringify;
|
|
165
163
|
|
|
166
164
|
var gqlConstants = {};
|
|
167
165
|
|
|
@@ -223,15 +221,27 @@
|
|
|
223
221
|
}) : function(o, v) {
|
|
224
222
|
o["default"] = v;
|
|
225
223
|
});
|
|
226
|
-
var __importStar$d = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
224
|
+
var __importStar$d = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
225
|
+
var ownKeys = function(o) {
|
|
226
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
227
|
+
var ar = [];
|
|
228
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
229
|
+
return ar;
|
|
230
|
+
};
|
|
231
|
+
return ownKeys(o);
|
|
232
|
+
};
|
|
233
|
+
return function (mod) {
|
|
234
|
+
if (mod && mod.__esModule) return mod;
|
|
235
|
+
var result = {};
|
|
236
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$d(result, mod, k[i]);
|
|
237
|
+
__setModuleDefault$d(result, mod);
|
|
238
|
+
return result;
|
|
239
|
+
};
|
|
240
|
+
})();
|
|
233
241
|
Object.defineProperty(error, "__esModule", { value: true });
|
|
234
|
-
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.GQLError = error.Neo4jError = error.isRetriableError =
|
|
242
|
+
error.PROTOCOL_ERROR = error.SESSION_EXPIRED = error.SERVICE_UNAVAILABLE = error.GQLError = error.Neo4jError = error.isRetriableError = void 0;
|
|
243
|
+
error.newError = newError;
|
|
244
|
+
error.newGQLError = newGQLError;
|
|
235
245
|
// A common place for constructing error objects, to keep them
|
|
236
246
|
// uniform across the driver surface.
|
|
237
247
|
var json$2 = __importStar$d(json$3);
|
|
@@ -287,11 +297,10 @@
|
|
|
287
297
|
* @param {Error} cause - Optional nested error, the cause of the error
|
|
288
298
|
*/
|
|
289
299
|
function GQLError(message, gqlStatus, gqlStatusDescription, diagnosticRecord, cause) {
|
|
290
|
-
var _this = this;
|
|
291
300
|
var _a;
|
|
292
301
|
// eslint-disable-next-line
|
|
293
302
|
// @ts-ignore: not available in ES6 yet
|
|
294
|
-
_this = _super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
303
|
+
var _this = _super.call(this, message, cause != null ? { cause: cause } : undefined) || this;
|
|
295
304
|
_this.constructor = GQLError;
|
|
296
305
|
// eslint-disable-next-line no-proto
|
|
297
306
|
_this.__proto__ = GQLError.prototype;
|
|
@@ -442,7 +451,6 @@
|
|
|
442
451
|
function newError(message, code, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
443
452
|
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);
|
|
444
453
|
}
|
|
445
|
-
error.newError = newError;
|
|
446
454
|
/**
|
|
447
455
|
* Create a new GQL error from a message and optional data
|
|
448
456
|
* @param message the error message
|
|
@@ -457,7 +465,6 @@
|
|
|
457
465
|
function newGQLError(message, cause, gqlStatus, gqlStatusDescription, diagnosticRecord) {
|
|
458
466
|
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);
|
|
459
467
|
}
|
|
460
|
-
error.newGQLError = newGQLError;
|
|
461
468
|
/**
|
|
462
469
|
* Verifies if the given error is retriable.
|
|
463
470
|
*
|
|
@@ -1536,13 +1543,23 @@
|
|
|
1536
1543
|
}) : function(o, v) {
|
|
1537
1544
|
o["default"] = v;
|
|
1538
1545
|
});
|
|
1539
|
-
var __importStar$c = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
+
var __importStar$c = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
1547
|
+
var ownKeys = function(o) {
|
|
1548
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
1549
|
+
var ar = [];
|
|
1550
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
1551
|
+
return ar;
|
|
1552
|
+
};
|
|
1553
|
+
return ownKeys(o);
|
|
1554
|
+
};
|
|
1555
|
+
return function (mod) {
|
|
1556
|
+
if (mod && mod.__esModule) return mod;
|
|
1557
|
+
var result = {};
|
|
1558
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$c(result, mod, k[i]);
|
|
1559
|
+
__setModuleDefault$c(result, mod);
|
|
1560
|
+
return result;
|
|
1561
|
+
};
|
|
1562
|
+
})();
|
|
1546
1563
|
var __values$d = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
1547
1564
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1548
1565
|
if (m) return m.call(o);
|
|
@@ -1555,7 +1572,18 @@
|
|
|
1555
1572
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1556
1573
|
};
|
|
1557
1574
|
Object.defineProperty(util$4, "__esModule", { value: true });
|
|
1558
|
-
util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON =
|
|
1575
|
+
util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON = void 0;
|
|
1576
|
+
util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
1577
|
+
util$4.isObject = isObject;
|
|
1578
|
+
util$4.isString = isString$1;
|
|
1579
|
+
util$4.assertObject = assertObject;
|
|
1580
|
+
util$4.assertString = assertString$1;
|
|
1581
|
+
util$4.assertNumber = assertNumber;
|
|
1582
|
+
util$4.assertNumberOrInteger = assertNumberOrInteger;
|
|
1583
|
+
util$4.assertValidDate = assertValidDate;
|
|
1584
|
+
util$4.toNumber = toNumber;
|
|
1585
|
+
util$4.validateQueryAndParameters = validateQueryAndParameters;
|
|
1586
|
+
util$4.equals = equals$1;
|
|
1559
1587
|
/**
|
|
1560
1588
|
* Copyright (c) "Neo4j"
|
|
1561
1589
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -1598,7 +1626,6 @@
|
|
|
1598
1626
|
}
|
|
1599
1627
|
return true;
|
|
1600
1628
|
}
|
|
1601
|
-
util$4.isEmptyObjectOrNull = isEmptyObjectOrNull;
|
|
1602
1629
|
/**
|
|
1603
1630
|
* Verify if it's an object
|
|
1604
1631
|
* @param obj The subject
|
|
@@ -1607,7 +1634,6 @@
|
|
|
1607
1634
|
function isObject(obj) {
|
|
1608
1635
|
return typeof obj === 'object' && !Array.isArray(obj) && obj !== null;
|
|
1609
1636
|
}
|
|
1610
|
-
util$4.isObject = isObject;
|
|
1611
1637
|
/**
|
|
1612
1638
|
* Check and normalize given query and parameters.
|
|
1613
1639
|
* @param {string|{text: string, parameters: Object}} query the query to check.
|
|
@@ -1636,7 +1662,6 @@
|
|
|
1636
1662
|
}
|
|
1637
1663
|
return { validatedQuery: validatedQuery, params: params };
|
|
1638
1664
|
}
|
|
1639
|
-
util$4.validateQueryAndParameters = validateQueryAndParameters;
|
|
1640
1665
|
/**
|
|
1641
1666
|
* Assert it's a object
|
|
1642
1667
|
* @param {any} obj The subject
|
|
@@ -1650,7 +1675,6 @@
|
|
|
1650
1675
|
}
|
|
1651
1676
|
return obj;
|
|
1652
1677
|
}
|
|
1653
|
-
util$4.assertObject = assertObject;
|
|
1654
1678
|
/**
|
|
1655
1679
|
* Assert it's a string
|
|
1656
1680
|
* @param {any} obj The subject
|
|
@@ -1664,7 +1688,6 @@
|
|
|
1664
1688
|
}
|
|
1665
1689
|
return obj;
|
|
1666
1690
|
}
|
|
1667
|
-
util$4.assertString = assertString$1;
|
|
1668
1691
|
/**
|
|
1669
1692
|
* Assert it's a number
|
|
1670
1693
|
* @param {any} obj The subject
|
|
@@ -1678,7 +1701,6 @@
|
|
|
1678
1701
|
}
|
|
1679
1702
|
return obj;
|
|
1680
1703
|
}
|
|
1681
|
-
util$4.assertNumber = assertNumber;
|
|
1682
1704
|
/**
|
|
1683
1705
|
* Assert it's a number or integer
|
|
1684
1706
|
* @param {any} obj The subject
|
|
@@ -1694,7 +1716,6 @@
|
|
|
1694
1716
|
}
|
|
1695
1717
|
return obj;
|
|
1696
1718
|
}
|
|
1697
|
-
util$4.assertNumberOrInteger = assertNumberOrInteger;
|
|
1698
1719
|
/**
|
|
1699
1720
|
* Assert it's a valid datae
|
|
1700
1721
|
* @param {any} obj The subject
|
|
@@ -1715,7 +1736,6 @@
|
|
|
1715
1736
|
}
|
|
1716
1737
|
return obj;
|
|
1717
1738
|
}
|
|
1718
|
-
util$4.assertValidDate = assertValidDate;
|
|
1719
1739
|
/**
|
|
1720
1740
|
* Validates a cypher query string
|
|
1721
1741
|
* @param {any} obj The query
|
|
@@ -1751,7 +1771,6 @@
|
|
|
1751
1771
|
function isString$1(str) {
|
|
1752
1772
|
return Object.prototype.toString.call(str) === '[object String]';
|
|
1753
1773
|
}
|
|
1754
|
-
util$4.isString = isString$1;
|
|
1755
1774
|
/**
|
|
1756
1775
|
* Verifies if object are the equals
|
|
1757
1776
|
* @param {unknown} a
|
|
@@ -1791,7 +1810,6 @@
|
|
|
1791
1810
|
}
|
|
1792
1811
|
return false;
|
|
1793
1812
|
}
|
|
1794
|
-
util$4.equals = equals$1;
|
|
1795
1813
|
/**
|
|
1796
1814
|
* Converts (Integer | bigint) to number.
|
|
1797
1815
|
*
|
|
@@ -1810,7 +1828,6 @@
|
|
|
1810
1828
|
return value;
|
|
1811
1829
|
}
|
|
1812
1830
|
}
|
|
1813
|
-
util$4.toNumber = toNumber;
|
|
1814
1831
|
|
|
1815
1832
|
(function (exports) {
|
|
1816
1833
|
/**
|
|
@@ -1845,15 +1862,49 @@
|
|
|
1845
1862
|
}) : function(o, v) {
|
|
1846
1863
|
o["default"] = v;
|
|
1847
1864
|
});
|
|
1848
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1865
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
1866
|
+
var ownKeys = function(o) {
|
|
1867
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
1868
|
+
var ar = [];
|
|
1869
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
1870
|
+
return ar;
|
|
1871
|
+
};
|
|
1872
|
+
return ownKeys(o);
|
|
1873
|
+
};
|
|
1874
|
+
return function (mod) {
|
|
1875
|
+
if (mod && mod.__esModule) return mod;
|
|
1876
|
+
var result = {};
|
|
1877
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
1878
|
+
__setModuleDefault(result, mod);
|
|
1879
|
+
return result;
|
|
1880
|
+
};
|
|
1881
|
+
})();
|
|
1855
1882
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1856
|
-
exports.
|
|
1883
|
+
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;
|
|
1884
|
+
exports.normalizeSecondsForDuration = normalizeSecondsForDuration;
|
|
1885
|
+
exports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;
|
|
1886
|
+
exports.localTimeToNanoOfDay = localTimeToNanoOfDay;
|
|
1887
|
+
exports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;
|
|
1888
|
+
exports.dateToEpochDay = dateToEpochDay;
|
|
1889
|
+
exports.durationToIsoString = durationToIsoString;
|
|
1890
|
+
exports.timeToIsoString = timeToIsoString;
|
|
1891
|
+
exports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;
|
|
1892
|
+
exports.dateToIsoString = dateToIsoString;
|
|
1893
|
+
exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
1894
|
+
exports.toStandardDate = toStandardDate;
|
|
1895
|
+
exports.newDate = newDate;
|
|
1896
|
+
exports.totalNanoseconds = totalNanoseconds;
|
|
1897
|
+
exports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;
|
|
1898
|
+
exports.assertValidYear = assertValidYear;
|
|
1899
|
+
exports.assertValidMonth = assertValidMonth;
|
|
1900
|
+
exports.assertValidDay = assertValidDay;
|
|
1901
|
+
exports.assertValidHour = assertValidHour;
|
|
1902
|
+
exports.assertValidMinute = assertValidMinute;
|
|
1903
|
+
exports.assertValidSecond = assertValidSecond;
|
|
1904
|
+
exports.assertValidNanosecond = assertValidNanosecond;
|
|
1905
|
+
exports.assertValidZoneId = assertValidZoneId;
|
|
1906
|
+
exports.floorDiv = floorDiv;
|
|
1907
|
+
exports.floorMod = floorMod;
|
|
1857
1908
|
var integer_1 = __importStar(integer);
|
|
1858
1909
|
var error_1 = error;
|
|
1859
1910
|
var util_1 = util$4;
|
|
@@ -1913,11 +1964,9 @@
|
|
|
1913
1964
|
function normalizeSecondsForDuration(seconds, nanoseconds) {
|
|
1914
1965
|
return (0, integer_1.int)(seconds).add(floorDiv(nanoseconds, exports.NANOS_PER_SECOND));
|
|
1915
1966
|
}
|
|
1916
|
-
exports.normalizeSecondsForDuration = normalizeSecondsForDuration;
|
|
1917
1967
|
function normalizeNanosecondsForDuration(nanoseconds) {
|
|
1918
1968
|
return floorMod(nanoseconds, exports.NANOS_PER_SECOND);
|
|
1919
1969
|
}
|
|
1920
|
-
exports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;
|
|
1921
1970
|
/**
|
|
1922
1971
|
* Converts given local time into a single integer representing this same time in nanoseconds of the day.
|
|
1923
1972
|
* @param {Integer|number|string} hour the hour of the local time to convert.
|
|
@@ -1936,7 +1985,6 @@
|
|
|
1936
1985
|
totalNanos = totalNanos.add(second.multiply(exports.NANOS_PER_SECOND));
|
|
1937
1986
|
return totalNanos.add(nanosecond);
|
|
1938
1987
|
}
|
|
1939
|
-
exports.localTimeToNanoOfDay = localTimeToNanoOfDay;
|
|
1940
1988
|
/**
|
|
1941
1989
|
* Converts given local date time into a single integer representing this same time in epoch seconds UTC.
|
|
1942
1990
|
* @param {Integer|number|string} year the year of the local date-time to convert.
|
|
@@ -1953,7 +2001,6 @@
|
|
|
1953
2001
|
var localTimeSeconds = localTimeToSecondOfDay(hour, minute, second);
|
|
1954
2002
|
return epochDay.multiply(exports.SECONDS_PER_DAY).add(localTimeSeconds);
|
|
1955
2003
|
}
|
|
1956
|
-
exports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;
|
|
1957
2004
|
/**
|
|
1958
2005
|
* Converts given local date into a single integer representing it's epoch day.
|
|
1959
2006
|
* @param {Integer|number|string} year the year of the local date to convert.
|
|
@@ -1992,7 +2039,6 @@
|
|
|
1992
2039
|
}
|
|
1993
2040
|
return epochDay.subtract(exports.DAYS_0000_TO_1970);
|
|
1994
2041
|
}
|
|
1995
|
-
exports.dateToEpochDay = dateToEpochDay;
|
|
1996
2042
|
/**
|
|
1997
2043
|
* Format given duration to an ISO 8601 string.
|
|
1998
2044
|
* @param {Integer|number|string} months the number of months.
|
|
@@ -2007,7 +2053,6 @@
|
|
|
2007
2053
|
var secondsAndNanosecondsString = formatSecondsAndNanosecondsForDuration(seconds, nanoseconds);
|
|
2008
2054
|
return "P".concat(monthsString, "M").concat(daysString, "DT").concat(secondsAndNanosecondsString, "S");
|
|
2009
2055
|
}
|
|
2010
|
-
exports.durationToIsoString = durationToIsoString;
|
|
2011
2056
|
/**
|
|
2012
2057
|
* Formats given time to an ISO 8601 string.
|
|
2013
2058
|
* @param {Integer|number|string} hour the hour value.
|
|
@@ -2023,7 +2068,6 @@
|
|
|
2023
2068
|
var nanosecondString = formatNanosecond(nanosecond);
|
|
2024
2069
|
return "".concat(hourString, ":").concat(minuteString, ":").concat(secondString).concat(nanosecondString);
|
|
2025
2070
|
}
|
|
2026
|
-
exports.timeToIsoString = timeToIsoString;
|
|
2027
2071
|
/**
|
|
2028
2072
|
* Formats given time zone offset in seconds to string representation like '±HH:MM', '±HH:MM:SS' or 'Z' for UTC.
|
|
2029
2073
|
* @param {Integer|number|string} offsetSeconds the offset in seconds.
|
|
@@ -2047,7 +2091,6 @@
|
|
|
2047
2091
|
? "".concat(signPrefix).concat(hours, ":").concat(minutes, ":").concat(seconds)
|
|
2048
2092
|
: "".concat(signPrefix).concat(hours, ":").concat(minutes);
|
|
2049
2093
|
}
|
|
2050
|
-
exports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;
|
|
2051
2094
|
/**
|
|
2052
2095
|
* Formats given date to an ISO 8601 string.
|
|
2053
2096
|
* @param {Integer|number|string} year the date year.
|
|
@@ -2061,7 +2104,6 @@
|
|
|
2061
2104
|
var dayString = formatNumber(day, 2);
|
|
2062
2105
|
return "".concat(yearString, "-").concat(monthString, "-").concat(dayString);
|
|
2063
2106
|
}
|
|
2064
|
-
exports.dateToIsoString = dateToIsoString;
|
|
2065
2107
|
/**
|
|
2066
2108
|
* Convert the given iso date string to a JavaScript Date object
|
|
2067
2109
|
*
|
|
@@ -2071,7 +2113,6 @@
|
|
|
2071
2113
|
function isoStringToStandardDate(isoString) {
|
|
2072
2114
|
return new Date(isoString);
|
|
2073
2115
|
}
|
|
2074
|
-
exports.isoStringToStandardDate = isoStringToStandardDate;
|
|
2075
2116
|
/**
|
|
2076
2117
|
* Convert the given utc timestamp to a JavaScript Date object
|
|
2077
2118
|
*
|
|
@@ -2081,7 +2122,6 @@
|
|
|
2081
2122
|
function toStandardDate(utc) {
|
|
2082
2123
|
return new Date(utc);
|
|
2083
2124
|
}
|
|
2084
|
-
exports.toStandardDate = toStandardDate;
|
|
2085
2125
|
/**
|
|
2086
2126
|
* Shortcut for creating a new StandardDate
|
|
2087
2127
|
* @param date
|
|
@@ -2090,7 +2130,6 @@
|
|
|
2090
2130
|
function newDate(date) {
|
|
2091
2131
|
return new Date(date);
|
|
2092
2132
|
}
|
|
2093
|
-
exports.newDate = newDate;
|
|
2094
2133
|
/**
|
|
2095
2134
|
* Get the total number of nanoseconds from the milliseconds of the given standard JavaScript date and optional nanosecond part.
|
|
2096
2135
|
* @param {global.Date} standardDate the standard JavaScript date.
|
|
@@ -2102,7 +2141,6 @@
|
|
|
2102
2141
|
var nanosFromMillis = standardDate.getMilliseconds() * exports.NANOS_PER_MILLISECOND;
|
|
2103
2142
|
return add(nanoseconds, nanosFromMillis);
|
|
2104
2143
|
}
|
|
2105
|
-
exports.totalNanoseconds = totalNanoseconds;
|
|
2106
2144
|
/**
|
|
2107
2145
|
* Get the time zone offset in seconds from the given standard JavaScript date.
|
|
2108
2146
|
*
|
|
@@ -2116,7 +2154,6 @@
|
|
|
2116
2154
|
var daysPortion = _getDayOffset(standardDate);
|
|
2117
2155
|
return hoursPortion * exports.SECONDS_PER_HOUR + minutesPortion * exports.SECONDS_PER_MINUTE + secondsPortion + daysPortion * exports.SECONDS_PER_DAY;
|
|
2118
2156
|
}
|
|
2119
|
-
exports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;
|
|
2120
2157
|
/**
|
|
2121
2158
|
* Get the difference in days from the given JavaScript date in local time and UTC.
|
|
2122
2159
|
*
|
|
@@ -2167,7 +2204,6 @@
|
|
|
2167
2204
|
function assertValidYear(year) {
|
|
2168
2205
|
return assertValidTemporalValue(year, exports.YEAR_RANGE, 'Year');
|
|
2169
2206
|
}
|
|
2170
|
-
exports.assertValidYear = assertValidYear;
|
|
2171
2207
|
/**
|
|
2172
2208
|
* Assert that the month value is valid.
|
|
2173
2209
|
* @param {Integer|number} month the value to check.
|
|
@@ -2176,7 +2212,6 @@
|
|
|
2176
2212
|
function assertValidMonth(month) {
|
|
2177
2213
|
return assertValidTemporalValue(month, exports.MONTH_OF_YEAR_RANGE, 'Month');
|
|
2178
2214
|
}
|
|
2179
|
-
exports.assertValidMonth = assertValidMonth;
|
|
2180
2215
|
/**
|
|
2181
2216
|
* Assert that the day value is valid.
|
|
2182
2217
|
* @param {Integer|number} day the value to check.
|
|
@@ -2185,7 +2220,6 @@
|
|
|
2185
2220
|
function assertValidDay(day) {
|
|
2186
2221
|
return assertValidTemporalValue(day, exports.DAY_OF_MONTH_RANGE, 'Day');
|
|
2187
2222
|
}
|
|
2188
|
-
exports.assertValidDay = assertValidDay;
|
|
2189
2223
|
/**
|
|
2190
2224
|
* Assert that the hour value is valid.
|
|
2191
2225
|
* @param {Integer|number} hour the value to check.
|
|
@@ -2194,7 +2228,6 @@
|
|
|
2194
2228
|
function assertValidHour(hour) {
|
|
2195
2229
|
return assertValidTemporalValue(hour, exports.HOUR_OF_DAY_RANGE, 'Hour');
|
|
2196
2230
|
}
|
|
2197
|
-
exports.assertValidHour = assertValidHour;
|
|
2198
2231
|
/**
|
|
2199
2232
|
* Assert that the minute value is valid.
|
|
2200
2233
|
* @param {Integer|number} minute the value to check.
|
|
@@ -2203,7 +2236,6 @@
|
|
|
2203
2236
|
function assertValidMinute(minute) {
|
|
2204
2237
|
return assertValidTemporalValue(minute, exports.MINUTE_OF_HOUR_RANGE, 'Minute');
|
|
2205
2238
|
}
|
|
2206
|
-
exports.assertValidMinute = assertValidMinute;
|
|
2207
2239
|
/**
|
|
2208
2240
|
* Assert that the second value is valid.
|
|
2209
2241
|
* @param {Integer|number} second the value to check.
|
|
@@ -2212,7 +2244,6 @@
|
|
|
2212
2244
|
function assertValidSecond(second) {
|
|
2213
2245
|
return assertValidTemporalValue(second, exports.SECOND_OF_MINUTE_RANGE, 'Second');
|
|
2214
2246
|
}
|
|
2215
|
-
exports.assertValidSecond = assertValidSecond;
|
|
2216
2247
|
/**
|
|
2217
2248
|
* Assert that the nanosecond value is valid.
|
|
2218
2249
|
* @param {Integer|number} nanosecond the value to check.
|
|
@@ -2221,7 +2252,6 @@
|
|
|
2221
2252
|
function assertValidNanosecond(nanosecond) {
|
|
2222
2253
|
return assertValidTemporalValue(nanosecond, exports.NANOSECOND_OF_SECOND_RANGE, 'Nanosecond');
|
|
2223
2254
|
}
|
|
2224
|
-
exports.assertValidNanosecond = assertValidNanosecond;
|
|
2225
2255
|
var timeZoneValidityCache = new Map();
|
|
2226
2256
|
var newInvalidZoneIdError = function (zoneId, fieldName) { return (0, error_1.newError)("".concat(fieldName, " is expected to be a valid ZoneId but was: \"").concat(zoneId, "\"")); };
|
|
2227
2257
|
function assertValidZoneId(fieldName, zoneId) {
|
|
@@ -2241,7 +2271,6 @@
|
|
|
2241
2271
|
throw newInvalidZoneIdError(zoneId, fieldName);
|
|
2242
2272
|
}
|
|
2243
2273
|
}
|
|
2244
|
-
exports.assertValidZoneId = assertValidZoneId;
|
|
2245
2274
|
/**
|
|
2246
2275
|
* Check if the given value is of expected type and is in the expected range.
|
|
2247
2276
|
* @param {Integer|number} value the value to check.
|
|
@@ -2305,7 +2334,6 @@
|
|
|
2305
2334
|
}
|
|
2306
2335
|
return result;
|
|
2307
2336
|
}
|
|
2308
|
-
exports.floorDiv = floorDiv;
|
|
2309
2337
|
/**
|
|
2310
2338
|
* @param {Integer|number|string} x the divident.
|
|
2311
2339
|
* @param {Integer|number|string} y the divisor.
|
|
@@ -2316,7 +2344,6 @@
|
|
|
2316
2344
|
y = (0, integer_1.int)(y);
|
|
2317
2345
|
return x.subtract(floorDiv(x, y).multiply(y));
|
|
2318
2346
|
}
|
|
2319
|
-
exports.floorMod = floorMod;
|
|
2320
2347
|
/**
|
|
2321
2348
|
* @param {Integer|number|string} seconds the number of seconds to format.
|
|
2322
2349
|
* @param {Integer|number|string} nanoseconds the number of nanoseconds to format.
|
|
@@ -2442,13 +2469,23 @@
|
|
|
2442
2469
|
}) : function(o, v) {
|
|
2443
2470
|
o["default"] = v;
|
|
2444
2471
|
});
|
|
2445
|
-
var __importStar$b = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2472
|
+
var __importStar$b = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
2473
|
+
var ownKeys = function(o) {
|
|
2474
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
2475
|
+
var ar = [];
|
|
2476
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
2477
|
+
return ar;
|
|
2478
|
+
};
|
|
2479
|
+
return ownKeys(o);
|
|
2480
|
+
};
|
|
2481
|
+
return function (mod) {
|
|
2482
|
+
if (mod && mod.__esModule) return mod;
|
|
2483
|
+
var result = {};
|
|
2484
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$b(result, mod, k[i]);
|
|
2485
|
+
__setModuleDefault$b(result, mod);
|
|
2486
|
+
return result;
|
|
2487
|
+
};
|
|
2488
|
+
})();
|
|
2452
2489
|
var __read$x = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
2453
2490
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2454
2491
|
if (!m) return o;
|
|
@@ -2466,7 +2503,13 @@
|
|
|
2466
2503
|
return ar;
|
|
2467
2504
|
};
|
|
2468
2505
|
Object.defineProperty(temporalTypes, "__esModule", { value: true });
|
|
2469
|
-
temporalTypes.
|
|
2506
|
+
temporalTypes.DateTime = temporalTypes.LocalDateTime = temporalTypes.Date = temporalTypes.Time = temporalTypes.LocalTime = temporalTypes.Duration = void 0;
|
|
2507
|
+
temporalTypes.isDuration = isDuration;
|
|
2508
|
+
temporalTypes.isLocalTime = isLocalTime;
|
|
2509
|
+
temporalTypes.isTime = isTime;
|
|
2510
|
+
temporalTypes.isDate = isDate$1;
|
|
2511
|
+
temporalTypes.isLocalDateTime = isLocalDateTime;
|
|
2512
|
+
temporalTypes.isDateTime = isDateTime;
|
|
2470
2513
|
var util$3 = __importStar$b(temporalUtil$1);
|
|
2471
2514
|
var util_1$7 = util$4;
|
|
2472
2515
|
var error_1$c = error;
|
|
@@ -2538,7 +2581,6 @@
|
|
|
2538
2581
|
function isDuration(obj) {
|
|
2539
2582
|
return hasIdentifierProperty$1(obj, DURATION_IDENTIFIER_PROPERTY);
|
|
2540
2583
|
}
|
|
2541
|
-
temporalTypes.isDuration = isDuration;
|
|
2542
2584
|
/**
|
|
2543
2585
|
* Represents an instant capturing the time of day, but not the date, nor the timezone.
|
|
2544
2586
|
* Created {@link LocalTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2608,7 +2650,6 @@
|
|
|
2608
2650
|
function isLocalTime(obj) {
|
|
2609
2651
|
return hasIdentifierProperty$1(obj, LOCAL_TIME_IDENTIFIER_PROPERTY);
|
|
2610
2652
|
}
|
|
2611
|
-
temporalTypes.isLocalTime = isLocalTime;
|
|
2612
2653
|
/**
|
|
2613
2654
|
* Represents an instant capturing the time of day, and the timezone offset in seconds, but not the date.
|
|
2614
2655
|
* Created {@link Time} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2680,7 +2721,6 @@
|
|
|
2680
2721
|
function isTime(obj) {
|
|
2681
2722
|
return hasIdentifierProperty$1(obj, TIME_IDENTIFIER_PROPERTY);
|
|
2682
2723
|
}
|
|
2683
|
-
temporalTypes.isTime = isTime;
|
|
2684
2724
|
/**
|
|
2685
2725
|
* Represents an instant capturing the date, but not the time, nor the timezone.
|
|
2686
2726
|
* Created {@link Date} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2755,7 +2795,6 @@
|
|
|
2755
2795
|
function isDate$1(obj) {
|
|
2756
2796
|
return hasIdentifierProperty$1(obj, DATE_IDENTIFIER_PROPERTY);
|
|
2757
2797
|
}
|
|
2758
|
-
temporalTypes.isDate = isDate$1;
|
|
2759
2798
|
/**
|
|
2760
2799
|
* Represents an instant capturing the date and the time, but not the timezone.
|
|
2761
2800
|
* Created {@link LocalDateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2846,7 +2885,6 @@
|
|
|
2846
2885
|
function isLocalDateTime(obj) {
|
|
2847
2886
|
return hasIdentifierProperty$1(obj, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY);
|
|
2848
2887
|
}
|
|
2849
|
-
temporalTypes.isLocalDateTime = isLocalDateTime;
|
|
2850
2888
|
/**
|
|
2851
2889
|
* Represents an instant capturing the date, the time and the timezone identifier.
|
|
2852
2890
|
* Created {@ DateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.
|
|
@@ -2982,7 +3020,6 @@
|
|
|
2982
3020
|
function isDateTime(obj) {
|
|
2983
3021
|
return hasIdentifierProperty$1(obj, DATE_TIME_IDENTIFIER_PROPERTY);
|
|
2984
3022
|
}
|
|
2985
|
-
temporalTypes.isDateTime = isDateTime;
|
|
2986
3023
|
function hasIdentifierProperty$1(obj, property) {
|
|
2987
3024
|
return obj != null && obj[property] === true;
|
|
2988
3025
|
}
|
|
@@ -3033,7 +3070,12 @@
|
|
|
3033
3070
|
var graphTypes = {};
|
|
3034
3071
|
|
|
3035
3072
|
Object.defineProperty(graphTypes, "__esModule", { value: true });
|
|
3036
|
-
graphTypes.
|
|
3073
|
+
graphTypes.PathSegment = graphTypes.Path = graphTypes.UnboundRelationship = graphTypes.Relationship = graphTypes.Node = void 0;
|
|
3074
|
+
graphTypes.isNode = isNode;
|
|
3075
|
+
graphTypes.isRelationship = isRelationship;
|
|
3076
|
+
graphTypes.isUnboundRelationship = isUnboundRelationship;
|
|
3077
|
+
graphTypes.isPath = isPath;
|
|
3078
|
+
graphTypes.isPathSegment = isPathSegment;
|
|
3037
3079
|
var json_1$2 = json$3;
|
|
3038
3080
|
var IDENTIFIER_PROPERTY_ATTRIBUTES = {
|
|
3039
3081
|
value: true,
|
|
@@ -3117,7 +3159,6 @@
|
|
|
3117
3159
|
function isNode(obj) {
|
|
3118
3160
|
return hasIdentifierProperty(obj, NODE_IDENTIFIER_PROPERTY);
|
|
3119
3161
|
}
|
|
3120
|
-
graphTypes.isNode = isNode;
|
|
3121
3162
|
/**
|
|
3122
3163
|
* Class for Relationship Type.
|
|
3123
3164
|
*/
|
|
@@ -3209,7 +3250,6 @@
|
|
|
3209
3250
|
function isRelationship(obj) {
|
|
3210
3251
|
return hasIdentifierProperty(obj, RELATIONSHIP_IDENTIFIER_PROPERTY);
|
|
3211
3252
|
}
|
|
3212
|
-
graphTypes.isRelationship = isRelationship;
|
|
3213
3253
|
/**
|
|
3214
3254
|
* Class for UnboundRelationship Type.
|
|
3215
3255
|
* @access private
|
|
@@ -3300,7 +3340,6 @@
|
|
|
3300
3340
|
function isUnboundRelationship(obj) {
|
|
3301
3341
|
return hasIdentifierProperty(obj, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY);
|
|
3302
3342
|
}
|
|
3303
|
-
graphTypes.isUnboundRelationship = isUnboundRelationship;
|
|
3304
3343
|
/**
|
|
3305
3344
|
* Class for PathSegment Type.
|
|
3306
3345
|
*/
|
|
@@ -3341,7 +3380,6 @@
|
|
|
3341
3380
|
function isPathSegment(obj) {
|
|
3342
3381
|
return hasIdentifierProperty(obj, PATH_SEGMENT_IDENTIFIER_PROPERTY);
|
|
3343
3382
|
}
|
|
3344
|
-
graphTypes.isPathSegment = isPathSegment;
|
|
3345
3383
|
/**
|
|
3346
3384
|
* Class for Path Type.
|
|
3347
3385
|
*/
|
|
@@ -3387,7 +3425,6 @@
|
|
|
3387
3425
|
function isPath(obj) {
|
|
3388
3426
|
return hasIdentifierProperty(obj, PATH_IDENTIFIER_PROPERTY);
|
|
3389
3427
|
}
|
|
3390
|
-
graphTypes.isPath = isPath;
|
|
3391
3428
|
function _valueOrGetDefault(value, getDefault) {
|
|
3392
3429
|
return value === undefined || value === null ? getDefault() : value;
|
|
3393
3430
|
}
|
|
@@ -3411,8 +3448,8 @@
|
|
|
3411
3448
|
* limitations under the License.
|
|
3412
3449
|
*/
|
|
3413
3450
|
var __generator$n = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
3414
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3415
|
-
return g =
|
|
3451
|
+
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);
|
|
3452
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3416
3453
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3417
3454
|
function step(op) {
|
|
3418
3455
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -3720,7 +3757,8 @@
|
|
|
3720
3757
|
var spatialTypes = {};
|
|
3721
3758
|
|
|
3722
3759
|
Object.defineProperty(spatialTypes, "__esModule", { value: true });
|
|
3723
|
-
spatialTypes.
|
|
3760
|
+
spatialTypes.Point = void 0;
|
|
3761
|
+
spatialTypes.isPoint = isPoint;
|
|
3724
3762
|
/**
|
|
3725
3763
|
* Copyright (c) "Neo4j"
|
|
3726
3764
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -3803,7 +3841,6 @@
|
|
|
3803
3841
|
var anyObj = obj;
|
|
3804
3842
|
return obj != null && anyObj[POINT_IDENTIFIER_PROPERTY] === true;
|
|
3805
3843
|
}
|
|
3806
|
-
spatialTypes.isPoint = isPoint;
|
|
3807
3844
|
|
|
3808
3845
|
var resultSummary = {};
|
|
3809
3846
|
|
|
@@ -3934,13 +3971,23 @@
|
|
|
3934
3971
|
}) : function(o, v) {
|
|
3935
3972
|
o["default"] = v;
|
|
3936
3973
|
});
|
|
3937
|
-
var __importStar$a = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3974
|
+
var __importStar$a = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
3975
|
+
var ownKeys = function(o) {
|
|
3976
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
3977
|
+
var ar = [];
|
|
3978
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
3979
|
+
return ar;
|
|
3980
|
+
};
|
|
3981
|
+
return ownKeys(o);
|
|
3982
|
+
};
|
|
3983
|
+
return function (mod) {
|
|
3984
|
+
if (mod && mod.__esModule) return mod;
|
|
3985
|
+
var result = {};
|
|
3986
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$a(result, mod, k[i]);
|
|
3987
|
+
__setModuleDefault$a(result, mod);
|
|
3988
|
+
return result;
|
|
3989
|
+
};
|
|
3990
|
+
})();
|
|
3944
3991
|
var __read$v = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
3945
3992
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3946
3993
|
if (!m) return o;
|
|
@@ -4398,8 +4445,8 @@
|
|
|
4398
4445
|
});
|
|
4399
4446
|
};
|
|
4400
4447
|
var __generator$m = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4401
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4402
|
-
return g =
|
|
4448
|
+
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);
|
|
4449
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4403
4450
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4404
4451
|
function step(op) {
|
|
4405
4452
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -4742,13 +4789,23 @@
|
|
|
4742
4789
|
}) : function(o, v) {
|
|
4743
4790
|
o["default"] = v;
|
|
4744
4791
|
});
|
|
4745
|
-
var __importStar$9 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4792
|
+
var __importStar$9 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
4793
|
+
var ownKeys = function(o) {
|
|
4794
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
4795
|
+
var ar = [];
|
|
4796
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
4797
|
+
return ar;
|
|
4798
|
+
};
|
|
4799
|
+
return ownKeys(o);
|
|
4800
|
+
};
|
|
4801
|
+
return function (mod) {
|
|
4802
|
+
if (mod && mod.__esModule) return mod;
|
|
4803
|
+
var result = {};
|
|
4804
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$9(result, mod, k[i]);
|
|
4805
|
+
__setModuleDefault$9(result, mod);
|
|
4806
|
+
return result;
|
|
4807
|
+
};
|
|
4808
|
+
})();
|
|
4752
4809
|
Object.defineProperty(txConfig$1, "__esModule", { value: true });
|
|
4753
4810
|
txConfig$1.TxConfig = void 0;
|
|
4754
4811
|
var util$1 = __importStar$9(util$4);
|
|
@@ -4852,8 +4909,8 @@
|
|
|
4852
4909
|
});
|
|
4853
4910
|
};
|
|
4854
4911
|
var __generator$l = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4855
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4856
|
-
return g =
|
|
4912
|
+
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);
|
|
4913
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4857
4914
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4858
4915
|
function step(op) {
|
|
4859
4916
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -5161,7 +5218,11 @@
|
|
|
5161
5218
|
return ar;
|
|
5162
5219
|
};
|
|
5163
5220
|
Object.defineProperty(urlUtil$2, "__esModule", { value: true });
|
|
5164
|
-
urlUtil$2.Url =
|
|
5221
|
+
urlUtil$2.Url = void 0;
|
|
5222
|
+
urlUtil$2.parseDatabaseUrl = parseDatabaseUrl;
|
|
5223
|
+
urlUtil$2.defaultPortForScheme = defaultPortForScheme;
|
|
5224
|
+
urlUtil$2.formatIPv4Address = formatIPv4Address;
|
|
5225
|
+
urlUtil$2.formatIPv6Address = formatIPv6Address;
|
|
5165
5226
|
var util_1$4 = util$4;
|
|
5166
5227
|
var DEFAULT_BOLT_PORT = 7687;
|
|
5167
5228
|
var DEFAULT_HTTP_PORT = 7474;
|
|
@@ -5220,7 +5281,6 @@
|
|
|
5220
5281
|
(_a = parsedUrl.query) !== null && _a !== void 0 ? _a : extractResourceQueryString(parsedUrl.resourceName), url);
|
|
5221
5282
|
return new Url(scheme, host, port, hostAndPort, query);
|
|
5222
5283
|
}
|
|
5223
|
-
urlUtil$2.parseDatabaseUrl = parseDatabaseUrl;
|
|
5224
5284
|
function extractResourceQueryString(resource) {
|
|
5225
5285
|
if (typeof resource !== 'string') {
|
|
5226
5286
|
return null;
|
|
@@ -5312,12 +5372,10 @@
|
|
|
5312
5372
|
function formatIPv4Address(address, port) {
|
|
5313
5373
|
return "".concat(address, ":").concat(port);
|
|
5314
5374
|
}
|
|
5315
|
-
urlUtil$2.formatIPv4Address = formatIPv4Address;
|
|
5316
5375
|
function formatIPv6Address(address, port) {
|
|
5317
5376
|
var escapedAddress = escapeIPv6Address(address);
|
|
5318
5377
|
return "".concat(escapedAddress, ":").concat(port);
|
|
5319
5378
|
}
|
|
5320
|
-
urlUtil$2.formatIPv6Address = formatIPv6Address;
|
|
5321
5379
|
function defaultPortForScheme(scheme) {
|
|
5322
5380
|
if (scheme === 'http') {
|
|
5323
5381
|
return DEFAULT_HTTP_PORT;
|
|
@@ -5329,7 +5387,6 @@
|
|
|
5329
5387
|
return DEFAULT_BOLT_PORT;
|
|
5330
5388
|
}
|
|
5331
5389
|
}
|
|
5332
|
-
urlUtil$2.defaultPortForScheme = defaultPortForScheme;
|
|
5333
5390
|
function uriJsParse(value) {
|
|
5334
5391
|
// JS version of Python partition function
|
|
5335
5392
|
function partition(s, delimiter) {
|
|
@@ -5431,13 +5488,23 @@
|
|
|
5431
5488
|
}) : function(o, v) {
|
|
5432
5489
|
o["default"] = v;
|
|
5433
5490
|
});
|
|
5434
|
-
var __importStar$8 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5491
|
+
var __importStar$8 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
5492
|
+
var ownKeys = function(o) {
|
|
5493
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
5494
|
+
var ar = [];
|
|
5495
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
5496
|
+
return ar;
|
|
5497
|
+
};
|
|
5498
|
+
return ownKeys(o);
|
|
5499
|
+
};
|
|
5500
|
+
return function (mod) {
|
|
5501
|
+
if (mod && mod.__esModule) return mod;
|
|
5502
|
+
var result = {};
|
|
5503
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$8(result, mod, k[i]);
|
|
5504
|
+
__setModuleDefault$8(result, mod);
|
|
5505
|
+
return result;
|
|
5506
|
+
};
|
|
5507
|
+
})();
|
|
5441
5508
|
Object.defineProperty(serverAddress$1, "__esModule", { value: true });
|
|
5442
5509
|
serverAddress$1.ServerAddress = void 0;
|
|
5443
5510
|
/**
|
|
@@ -5626,7 +5693,7 @@
|
|
|
5626
5693
|
*/
|
|
5627
5694
|
/* eslint-disable */
|
|
5628
5695
|
Object.defineProperty(boltAgent$1, "__esModule", { value: true });
|
|
5629
|
-
boltAgent$1.fromVersion =
|
|
5696
|
+
boltAgent$1.fromVersion = fromVersion;
|
|
5630
5697
|
/**
|
|
5631
5698
|
* Constructs a BoltAgent structure from a given product version.
|
|
5632
5699
|
*
|
|
@@ -5655,7 +5722,6 @@
|
|
|
5655
5722
|
languageDetails: languageDetails
|
|
5656
5723
|
};
|
|
5657
5724
|
}
|
|
5658
|
-
boltAgent$1.fromVersion = fromVersion;
|
|
5659
5725
|
|
|
5660
5726
|
(function (exports) {
|
|
5661
5727
|
/**
|
|
@@ -5773,8 +5839,8 @@
|
|
|
5773
5839
|
});
|
|
5774
5840
|
};
|
|
5775
5841
|
var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5776
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5777
|
-
return g =
|
|
5842
|
+
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);
|
|
5843
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5778
5844
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
5779
5845
|
function step(op) {
|
|
5780
5846
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -6442,13 +6508,23 @@
|
|
|
6442
6508
|
}) : function(o, v) {
|
|
6443
6509
|
o["default"] = v;
|
|
6444
6510
|
});
|
|
6445
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6511
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
6512
|
+
var ownKeys = function(o) {
|
|
6513
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
6514
|
+
var ar = [];
|
|
6515
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
6516
|
+
return ar;
|
|
6517
|
+
};
|
|
6518
|
+
return ownKeys(o);
|
|
6519
|
+
};
|
|
6520
|
+
return function (mod) {
|
|
6521
|
+
if (mod && mod.__esModule) return mod;
|
|
6522
|
+
var result = {};
|
|
6523
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
6524
|
+
__setModuleDefault(result, mod);
|
|
6525
|
+
return result;
|
|
6526
|
+
};
|
|
6527
|
+
})();
|
|
6452
6528
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6453
6529
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6454
6530
|
};
|
|
@@ -6495,13 +6571,23 @@
|
|
|
6495
6571
|
}) : function(o, v) {
|
|
6496
6572
|
o["default"] = v;
|
|
6497
6573
|
});
|
|
6498
|
-
var __importStar$7 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6574
|
+
var __importStar$7 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
6575
|
+
var ownKeys = function(o) {
|
|
6576
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
6577
|
+
var ar = [];
|
|
6578
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
6579
|
+
return ar;
|
|
6580
|
+
};
|
|
6581
|
+
return ownKeys(o);
|
|
6582
|
+
};
|
|
6583
|
+
return function (mod) {
|
|
6584
|
+
if (mod && mod.__esModule) return mod;
|
|
6585
|
+
var result = {};
|
|
6586
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$7(result, mod, k[i]);
|
|
6587
|
+
__setModuleDefault$7(result, mod);
|
|
6588
|
+
return result;
|
|
6589
|
+
};
|
|
6590
|
+
})();
|
|
6505
6591
|
Object.defineProperty(internal, "__esModule", { value: true });
|
|
6506
6592
|
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;
|
|
6507
6593
|
var util = __importStar$7(util$4);
|
|
@@ -6564,13 +6650,23 @@
|
|
|
6564
6650
|
}) : function(o, v) {
|
|
6565
6651
|
o["default"] = v;
|
|
6566
6652
|
});
|
|
6567
|
-
var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6653
|
+
var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
6654
|
+
var ownKeys = function(o) {
|
|
6655
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
6656
|
+
var ar = [];
|
|
6657
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
6658
|
+
return ar;
|
|
6659
|
+
};
|
|
6660
|
+
return ownKeys(o);
|
|
6661
|
+
};
|
|
6662
|
+
return function (mod) {
|
|
6663
|
+
if (mod && mod.__esModule) return mod;
|
|
6664
|
+
var result = {};
|
|
6665
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$6(result, mod, k[i]);
|
|
6666
|
+
__setModuleDefault$6(result, mod);
|
|
6667
|
+
return result;
|
|
6668
|
+
};
|
|
6669
|
+
})();
|
|
6574
6670
|
var __read$s = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
6575
6671
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
6576
6672
|
if (!m) return o;
|
|
@@ -6597,7 +6693,11 @@
|
|
|
6597
6693
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6598
6694
|
};
|
|
6599
6695
|
Object.defineProperty(notification, "__esModule", { value: true });
|
|
6600
|
-
notification.
|
|
6696
|
+
notification.GqlStatusObject = notification.Notification = notification.notificationClassification = notification.notificationCategory = notification.notificationSeverityLevel = void 0;
|
|
6697
|
+
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6698
|
+
notification.polyfillNotification = polyfillNotification;
|
|
6699
|
+
notification.buildGqlStatusObjectFromMetadata = buildGqlStatusObjectFromMetadata;
|
|
6700
|
+
notification.buildNotificationsFromMetadata = buildNotificationsFromMetadata;
|
|
6601
6701
|
/**
|
|
6602
6702
|
* Copyright (c) "Neo4j"
|
|
6603
6703
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -6955,7 +7055,6 @@
|
|
|
6955
7055
|
position: (_c = status.diagnostic_record) === null || _c === void 0 ? void 0 : _c._position
|
|
6956
7056
|
});
|
|
6957
7057
|
}
|
|
6958
|
-
notification.polyfillNotification = polyfillNotification;
|
|
6959
7058
|
/**
|
|
6960
7059
|
* @private
|
|
6961
7060
|
* @param notification
|
|
@@ -6982,7 +7081,6 @@
|
|
|
6982
7081
|
}
|
|
6983
7082
|
return new GqlStatusObject(polyfilledRawObj);
|
|
6984
7083
|
}
|
|
6985
|
-
notification.polyfillGqlStatusObject = polyfillGqlStatusObject;
|
|
6986
7084
|
/**
|
|
6987
7085
|
* This objects are used for polyfilling the first status on the status list
|
|
6988
7086
|
*
|
|
@@ -7034,7 +7132,6 @@
|
|
|
7034
7132
|
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);
|
|
7035
7133
|
return polyfilledObjects.sort(function (a, b) { return calculateWeight(a) - calculateWeight(b); });
|
|
7036
7134
|
}
|
|
7037
|
-
notification.buildGqlStatusObjectFromMetadata = buildGqlStatusObjectFromMetadata;
|
|
7038
7135
|
var gqlStatusWeightByClass = Object.freeze({
|
|
7039
7136
|
'02': 0,
|
|
7040
7137
|
'01': 1,
|
|
@@ -7066,7 +7163,6 @@
|
|
|
7066
7163
|
}
|
|
7067
7164
|
return [];
|
|
7068
7165
|
}
|
|
7069
|
-
notification.buildNotificationsFromMetadata = buildNotificationsFromMetadata;
|
|
7070
7166
|
/**
|
|
7071
7167
|
*
|
|
7072
7168
|
* @private
|
|
@@ -7645,8 +7741,8 @@
|
|
|
7645
7741
|
});
|
|
7646
7742
|
};
|
|
7647
7743
|
var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
7648
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
7649
|
-
return g =
|
|
7744
|
+
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);
|
|
7745
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
7650
7746
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
7651
7747
|
function step(op) {
|
|
7652
7748
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -8132,9 +8228,9 @@
|
|
|
8132
8228
|
return elementOrError instanceof Error;
|
|
8133
8229
|
}
|
|
8134
8230
|
function dequeue() {
|
|
8135
|
-
var _b;
|
|
8136
8231
|
return __awaiter$h(this, void 0, void 0, function () {
|
|
8137
8232
|
var element;
|
|
8233
|
+
var _b;
|
|
8138
8234
|
return __generator$j(this, function (_c) {
|
|
8139
8235
|
switch (_c.label) {
|
|
8140
8236
|
case 0:
|
|
@@ -8600,8 +8696,8 @@
|
|
|
8600
8696
|
});
|
|
8601
8697
|
};
|
|
8602
8698
|
var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
8603
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8604
|
-
return g =
|
|
8699
|
+
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);
|
|
8700
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
8605
8701
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
8606
8702
|
function step(op) {
|
|
8607
8703
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9372,7 +9468,7 @@
|
|
|
9372
9468
|
* limitations under the License.
|
|
9373
9469
|
*/
|
|
9374
9470
|
Object.defineProperty(authUtil, "__esModule", { value: true });
|
|
9375
|
-
authUtil.cacheKey =
|
|
9471
|
+
authUtil.cacheKey = cacheKey;
|
|
9376
9472
|
var json_1$1 = json$3;
|
|
9377
9473
|
function cacheKey(auth, impersonatedUser) {
|
|
9378
9474
|
var _a;
|
|
@@ -9396,7 +9492,6 @@
|
|
|
9396
9492
|
}
|
|
9397
9493
|
return (0, json_1$1.stringify)(auth, { sortedElements: true });
|
|
9398
9494
|
}
|
|
9399
|
-
authUtil.cacheKey = cacheKey;
|
|
9400
9495
|
|
|
9401
9496
|
/**
|
|
9402
9497
|
* Copyright (c) "Neo4j"
|
|
@@ -9424,8 +9519,8 @@
|
|
|
9424
9519
|
});
|
|
9425
9520
|
};
|
|
9426
9521
|
var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
9427
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
9428
|
-
return g =
|
|
9522
|
+
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);
|
|
9523
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
9429
9524
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
9430
9525
|
function step(op) {
|
|
9431
9526
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9758,9 +9853,9 @@
|
|
|
9758
9853
|
return this._lastBookmarks.values();
|
|
9759
9854
|
};
|
|
9760
9855
|
Session.prototype._bookmarks = function () {
|
|
9761
|
-
var _a;
|
|
9762
9856
|
return __awaiter$f(this, void 0, void 0, function () {
|
|
9763
9857
|
var bookmarks;
|
|
9858
|
+
var _a;
|
|
9764
9859
|
return __generator$h(this, function (_b) {
|
|
9765
9860
|
switch (_b.label) {
|
|
9766
9861
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
@@ -9897,9 +9992,9 @@
|
|
|
9897
9992
|
}
|
|
9898
9993
|
};
|
|
9899
9994
|
Session.prototype._getConnectionAcquistionBookmarks = function () {
|
|
9900
|
-
var _a;
|
|
9901
9995
|
return __awaiter$f(this, void 0, void 0, function () {
|
|
9902
9996
|
var bookmarks;
|
|
9997
|
+
var _a;
|
|
9903
9998
|
return __generator$h(this, function (_b) {
|
|
9904
9999
|
switch (_b.label) {
|
|
9905
10000
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
@@ -9983,7 +10078,7 @@
|
|
|
9983
10078
|
Session.prototype._calculateWatermaks = function () {
|
|
9984
10079
|
if (this._fetchSize === constants_1$2.FETCH_ALL) {
|
|
9985
10080
|
return {
|
|
9986
|
-
low: Number.MAX_VALUE,
|
|
10081
|
+
low: Number.MAX_VALUE, // we shall always lower than this number to enable auto pull
|
|
9987
10082
|
high: Number.MAX_VALUE // we shall never reach this number to disable auto pull
|
|
9988
10083
|
};
|
|
9989
10084
|
}
|
|
@@ -10057,8 +10152,8 @@
|
|
|
10057
10152
|
});
|
|
10058
10153
|
};
|
|
10059
10154
|
var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10060
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10061
|
-
return g =
|
|
10155
|
+
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);
|
|
10156
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10062
10157
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10063
10158
|
function step(op) {
|
|
10064
10159
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10120,7 +10215,7 @@
|
|
|
10120
10215
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10121
10216
|
};
|
|
10122
10217
|
Object.defineProperty(bookmarkManager$1, "__esModule", { value: true });
|
|
10123
|
-
bookmarkManager$1.bookmarkManager =
|
|
10218
|
+
bookmarkManager$1.bookmarkManager = bookmarkManager;
|
|
10124
10219
|
/**
|
|
10125
10220
|
* Interface for the piece of software responsible for keeping track of current active bookmarks accross the driver.
|
|
10126
10221
|
* @interface
|
|
@@ -10186,7 +10281,6 @@
|
|
|
10186
10281
|
var initialBookmarks = new Set(config.initialBookmarks);
|
|
10187
10282
|
return new Neo4jBookmarkManager(initialBookmarks, config.bookmarksSupplier, config.bookmarksConsumer);
|
|
10188
10283
|
}
|
|
10189
|
-
bookmarkManager$1.bookmarkManager = bookmarkManager;
|
|
10190
10284
|
var Neo4jBookmarkManager = /** @class */ (function () {
|
|
10191
10285
|
function Neo4jBookmarkManager(_bookmarks, _bookmarksSupplier, _bookmarksConsumer) {
|
|
10192
10286
|
this._bookmarks = _bookmarks;
|
|
@@ -10238,10 +10332,10 @@
|
|
|
10238
10332
|
});
|
|
10239
10333
|
};
|
|
10240
10334
|
Neo4jBookmarkManager.prototype.getBookmarks = function () {
|
|
10241
|
-
var _a;
|
|
10242
10335
|
return __awaiter$e(this, void 0, void 0, function () {
|
|
10243
10336
|
var bookmarks, suppliedBookmarks, suppliedBookmarks_1, suppliedBookmarks_1_1, bm;
|
|
10244
|
-
var e_3,
|
|
10337
|
+
var e_3, _a;
|
|
10338
|
+
var _b;
|
|
10245
10339
|
return __generator$g(this, function (_c) {
|
|
10246
10340
|
switch (_c.label) {
|
|
10247
10341
|
case 0:
|
|
@@ -10249,7 +10343,7 @@
|
|
|
10249
10343
|
if (!(typeof this._bookmarksSupplier === 'function')) return [3 /*break*/, 2];
|
|
10250
10344
|
return [4 /*yield*/, this._bookmarksSupplier()];
|
|
10251
10345
|
case 1:
|
|
10252
|
-
suppliedBookmarks = (
|
|
10346
|
+
suppliedBookmarks = (_b = _c.sent()) !== null && _b !== void 0 ? _b : [];
|
|
10253
10347
|
try {
|
|
10254
10348
|
for (suppliedBookmarks_1 = __values$b(suppliedBookmarks), suppliedBookmarks_1_1 = suppliedBookmarks_1.next(); !suppliedBookmarks_1_1.done; suppliedBookmarks_1_1 = suppliedBookmarks_1.next()) {
|
|
10255
10349
|
bm = suppliedBookmarks_1_1.value;
|
|
@@ -10259,7 +10353,7 @@
|
|
|
10259
10353
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
10260
10354
|
finally {
|
|
10261
10355
|
try {
|
|
10262
|
-
if (suppliedBookmarks_1_1 && !suppliedBookmarks_1_1.done && (
|
|
10356
|
+
if (suppliedBookmarks_1_1 && !suppliedBookmarks_1_1.done && (_a = suppliedBookmarks_1.return)) _a.call(suppliedBookmarks_1);
|
|
10263
10357
|
}
|
|
10264
10358
|
finally { if (e_3) throw e_3.error; }
|
|
10265
10359
|
}
|
|
@@ -10300,8 +10394,8 @@
|
|
|
10300
10394
|
});
|
|
10301
10395
|
};
|
|
10302
10396
|
var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10303
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10304
|
-
return g =
|
|
10397
|
+
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);
|
|
10398
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10305
10399
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10306
10400
|
function step(op) {
|
|
10307
10401
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10703,8 +10797,8 @@
|
|
|
10703
10797
|
});
|
|
10704
10798
|
};
|
|
10705
10799
|
var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10706
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10707
|
-
return g =
|
|
10800
|
+
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);
|
|
10801
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10708
10802
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10709
10803
|
function step(op) {
|
|
10710
10804
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -10900,8 +10994,8 @@
|
|
|
10900
10994
|
});
|
|
10901
10995
|
};
|
|
10902
10996
|
var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
10903
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10904
|
-
return g =
|
|
10997
|
+
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);
|
|
10998
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10905
10999
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10906
11000
|
function step(op) {
|
|
10907
11001
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -11413,11 +11507,11 @@
|
|
|
11413
11507
|
*
|
|
11414
11508
|
* @see {@link resultTransformers} for provided result transformers.
|
|
11415
11509
|
*/
|
|
11416
|
-
Driver.prototype.executeQuery = function (
|
|
11417
|
-
|
|
11418
|
-
if (config === void 0) { config = {}; }
|
|
11419
|
-
return __awaiter$b(this, void 0, void 0, function () {
|
|
11510
|
+
Driver.prototype.executeQuery = function (query_1, parameters_1) {
|
|
11511
|
+
return __awaiter$b(this, arguments, void 0, function (query, parameters, config) {
|
|
11420
11512
|
var bookmarkManager, resultTransformer, routingConfig;
|
|
11513
|
+
var _a, _b, _c;
|
|
11514
|
+
if (config === void 0) { config = {}; }
|
|
11421
11515
|
return __generator$d(this, function (_d) {
|
|
11422
11516
|
switch (_d.label) {
|
|
11423
11517
|
case 0:
|
|
@@ -11469,10 +11563,10 @@
|
|
|
11469
11563
|
* @returns {Promise<boolean>} promise resolved with true if succeed, false if failed with
|
|
11470
11564
|
* authentication issue and rejected with error if non-authentication error happens.
|
|
11471
11565
|
*/
|
|
11472
|
-
Driver.prototype.verifyAuthentication = function (
|
|
11473
|
-
|
|
11474
|
-
return __awaiter$b(this, void 0, void 0, function () {
|
|
11566
|
+
Driver.prototype.verifyAuthentication = function () {
|
|
11567
|
+
return __awaiter$b(this, arguments, void 0, function (_a) {
|
|
11475
11568
|
var connectionProvider;
|
|
11569
|
+
var _b = _a === void 0 ? {} : _a, database = _b.database, auth = _b.auth;
|
|
11476
11570
|
return __generator$d(this, function (_c) {
|
|
11477
11571
|
switch (_c.label) {
|
|
11478
11572
|
case 0:
|
|
@@ -11855,7 +11949,7 @@
|
|
|
11855
11949
|
kerberos: function (base64EncodedTicket) {
|
|
11856
11950
|
return {
|
|
11857
11951
|
scheme: 'kerberos',
|
|
11858
|
-
principal: '',
|
|
11952
|
+
principal: '', // This empty string is required for backwards compatibility.
|
|
11859
11953
|
credentials: base64EncodedTicket
|
|
11860
11954
|
};
|
|
11861
11955
|
},
|
|
@@ -11929,8 +12023,8 @@
|
|
|
11929
12023
|
});
|
|
11930
12024
|
};
|
|
11931
12025
|
var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
11932
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
11933
|
-
return g =
|
|
12026
|
+
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);
|
|
12027
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
11934
12028
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
11935
12029
|
function step(op) {
|
|
11936
12030
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -11959,7 +12053,8 @@
|
|
|
11959
12053
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11960
12054
|
};
|
|
11961
12055
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
11962
|
-
authTokenManager.
|
|
12056
|
+
authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
12057
|
+
authTokenManager.staticAuthTokenManager = staticAuthTokenManager;
|
|
11963
12058
|
var auth_1 = __importDefault$U(auth$1);
|
|
11964
12059
|
var internal_1 = internal;
|
|
11965
12060
|
/**
|
|
@@ -12100,7 +12195,6 @@
|
|
|
12100
12195
|
var authToken = _a.authToken;
|
|
12101
12196
|
return new StaticAuthTokenManager(authToken);
|
|
12102
12197
|
}
|
|
12103
|
-
authTokenManager.staticAuthTokenManager = staticAuthTokenManager;
|
|
12104
12198
|
var TokenRefreshObservable = /** @class */ (function () {
|
|
12105
12199
|
function TokenRefreshObservable(_subscribers) {
|
|
12106
12200
|
if (_subscribers === void 0) { _subscribers = []; }
|
|
@@ -12125,8 +12219,8 @@
|
|
|
12125
12219
|
this._refreshObservable = _refreshObservable;
|
|
12126
12220
|
}
|
|
12127
12221
|
ExpirationBasedAuthTokenManager.prototype.getToken = function () {
|
|
12128
|
-
var _a;
|
|
12129
12222
|
return __awaiter$a(this, void 0, void 0, function () {
|
|
12223
|
+
var _a;
|
|
12130
12224
|
return __generator$c(this, function (_b) {
|
|
12131
12225
|
switch (_b.label) {
|
|
12132
12226
|
case 0:
|
|
@@ -12574,15 +12668,26 @@
|
|
|
12574
12668
|
}) : function(o, v) {
|
|
12575
12669
|
o["default"] = v;
|
|
12576
12670
|
});
|
|
12577
|
-
var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12671
|
+
var __importStar$5 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
12672
|
+
var ownKeys = function(o) {
|
|
12673
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
12674
|
+
var ar = [];
|
|
12675
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
12676
|
+
return ar;
|
|
12677
|
+
};
|
|
12678
|
+
return ownKeys(o);
|
|
12679
|
+
};
|
|
12680
|
+
return function (mod) {
|
|
12681
|
+
if (mod && mod.__esModule) return mod;
|
|
12682
|
+
var result = {};
|
|
12683
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$5(result, mod, k[i]);
|
|
12684
|
+
__setModuleDefault$5(result, mod);
|
|
12685
|
+
return result;
|
|
12686
|
+
};
|
|
12687
|
+
})();
|
|
12584
12688
|
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
12585
|
-
clientCertificate.
|
|
12689
|
+
clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
12690
|
+
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
12586
12691
|
var json = __importStar$5(json$3);
|
|
12587
12692
|
/**
|
|
12588
12693
|
* Represents KeyFile represented as file.
|
|
@@ -12758,7 +12863,6 @@
|
|
|
12758
12863
|
}
|
|
12759
12864
|
throw new TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(json.stringify(input)));
|
|
12760
12865
|
}
|
|
12761
|
-
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
12762
12866
|
/**
|
|
12763
12867
|
* Verify if object is a client certificate
|
|
12764
12868
|
* @private
|
|
@@ -12911,13 +13015,23 @@
|
|
|
12911
13015
|
}) : function(o, v) {
|
|
12912
13016
|
o["default"] = v;
|
|
12913
13017
|
});
|
|
12914
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
13018
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
13019
|
+
var ownKeys = function(o) {
|
|
13020
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
13021
|
+
var ar = [];
|
|
13022
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
13023
|
+
return ar;
|
|
13024
|
+
};
|
|
13025
|
+
return ownKeys(o);
|
|
13026
|
+
};
|
|
13027
|
+
return function (mod) {
|
|
13028
|
+
if (mod && mod.__esModule) return mod;
|
|
13029
|
+
var result = {};
|
|
13030
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
13031
|
+
__setModuleDefault(result, mod);
|
|
13032
|
+
return result;
|
|
13033
|
+
};
|
|
13034
|
+
})();
|
|
12921
13035
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
12922
13036
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12923
13037
|
};
|
|
@@ -21100,8 +21214,8 @@
|
|
|
21100
21214
|
});
|
|
21101
21215
|
};
|
|
21102
21216
|
var __generator$8 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
21103
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
21104
|
-
return g =
|
|
21217
|
+
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);
|
|
21218
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
21105
21219
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
21106
21220
|
function step(op) {
|
|
21107
21221
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -22131,7 +22245,7 @@
|
|
|
22131
22245
|
// This is set up this way to keep the version in the code in
|
|
22132
22246
|
// sync with the npm package version, and to allow the build
|
|
22133
22247
|
// system to control version names at packaging time.
|
|
22134
|
-
version$1.default = '5.28.
|
|
22248
|
+
version$1.default = '5.28.3';
|
|
22135
22249
|
|
|
22136
22250
|
var lib = {};
|
|
22137
22251
|
|
|
@@ -25185,7 +25299,7 @@
|
|
|
25185
25299
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25186
25300
|
};
|
|
25187
25301
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
25188
|
-
channelBuf.alloc =
|
|
25302
|
+
channelBuf.alloc = alloc;
|
|
25189
25303
|
var buffer_1$1 = __importDefault$M(buffer);
|
|
25190
25304
|
var buf_1$1 = __importDefault$M(buf);
|
|
25191
25305
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
@@ -25251,7 +25365,6 @@
|
|
|
25251
25365
|
function alloc(size) {
|
|
25252
25366
|
return new ChannelBuffer(size);
|
|
25253
25367
|
}
|
|
25254
|
-
channelBuf.alloc = alloc;
|
|
25255
25368
|
function newChannelJSBuffer(arg) {
|
|
25256
25369
|
if (arg instanceof buffer_1$1.default.Buffer) {
|
|
25257
25370
|
return arg;
|
|
@@ -25702,8 +25815,8 @@
|
|
|
25702
25815
|
});
|
|
25703
25816
|
};
|
|
25704
25817
|
var __generator$7 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
25705
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
25706
|
-
return g =
|
|
25818
|
+
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);
|
|
25819
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25707
25820
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25708
25821
|
function step(op) {
|
|
25709
25822
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -26675,6 +26788,7 @@
|
|
|
26675
26788
|
* limitations under the License.
|
|
26676
26789
|
*/
|
|
26677
26790
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
26791
|
+
handshake$1.default = handshake;
|
|
26678
26792
|
var channel_1$4 = channel;
|
|
26679
26793
|
var neo4j_driver_core_1$E = lib$1;
|
|
26680
26794
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
@@ -26814,7 +26928,6 @@
|
|
|
26814
26928
|
}
|
|
26815
26929
|
});
|
|
26816
26930
|
}
|
|
26817
|
-
handshake$1.default = handshake;
|
|
26818
26931
|
/**
|
|
26819
26932
|
* Shake hands using the channel and return the protocol version, or the improved handshake protocol if communicating with a newer server.
|
|
26820
26933
|
*
|
|
@@ -27123,7 +27236,8 @@
|
|
|
27123
27236
|
* limitations under the License.
|
|
27124
27237
|
*/
|
|
27125
27238
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
27126
|
-
functional.
|
|
27239
|
+
functional.identity = identity;
|
|
27240
|
+
functional.reuseOngoingRequest = reuseOngoingRequest;
|
|
27127
27241
|
var neo4j_driver_core_1$D = lib$1;
|
|
27128
27242
|
/**
|
|
27129
27243
|
* Identity function.
|
|
@@ -27136,7 +27250,6 @@
|
|
|
27136
27250
|
function identity(x) {
|
|
27137
27251
|
return x;
|
|
27138
27252
|
}
|
|
27139
|
-
functional.identity = identity;
|
|
27140
27253
|
/**
|
|
27141
27254
|
* Makes the function able to share ongoing requests
|
|
27142
27255
|
*
|
|
@@ -27163,7 +27276,6 @@
|
|
|
27163
27276
|
});
|
|
27164
27277
|
};
|
|
27165
27278
|
}
|
|
27166
|
-
functional.reuseOngoingRequest = reuseOngoingRequest;
|
|
27167
27279
|
|
|
27168
27280
|
var object = {};
|
|
27169
27281
|
|
|
@@ -27195,7 +27307,7 @@
|
|
|
27195
27307
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27196
27308
|
};
|
|
27197
27309
|
Object.defineProperty(object, "__esModule", { value: true });
|
|
27198
|
-
object.equals =
|
|
27310
|
+
object.equals = equals;
|
|
27199
27311
|
function equals(a, b) {
|
|
27200
27312
|
var e_1, _a;
|
|
27201
27313
|
if (a === b) {
|
|
@@ -27229,7 +27341,6 @@
|
|
|
27229
27341
|
}
|
|
27230
27342
|
return false;
|
|
27231
27343
|
}
|
|
27232
|
-
object.equals = equals;
|
|
27233
27344
|
|
|
27234
27345
|
/**
|
|
27235
27346
|
* Copyright (c) "Neo4j"
|
|
@@ -27263,13 +27374,23 @@
|
|
|
27263
27374
|
}) : function(o, v) {
|
|
27264
27375
|
o["default"] = v;
|
|
27265
27376
|
});
|
|
27266
|
-
var __importStar$4 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
27267
|
-
|
|
27268
|
-
|
|
27269
|
-
|
|
27270
|
-
|
|
27271
|
-
|
|
27272
|
-
|
|
27377
|
+
var __importStar$4 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
27378
|
+
var ownKeys = function(o) {
|
|
27379
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27380
|
+
var ar = [];
|
|
27381
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27382
|
+
return ar;
|
|
27383
|
+
};
|
|
27384
|
+
return ownKeys(o);
|
|
27385
|
+
};
|
|
27386
|
+
return function (mod) {
|
|
27387
|
+
if (mod && mod.__esModule) return mod;
|
|
27388
|
+
var result = {};
|
|
27389
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$4(result, mod, k[i]);
|
|
27390
|
+
__setModuleDefault$4(result, mod);
|
|
27391
|
+
return result;
|
|
27392
|
+
};
|
|
27393
|
+
})();
|
|
27273
27394
|
Object.defineProperty(lang, "__esModule", { value: true });
|
|
27274
27395
|
lang.object = lang.functional = void 0;
|
|
27275
27396
|
lang.functional = __importStar$4(functional);
|
|
@@ -27964,7 +28085,10 @@
|
|
|
27964
28085
|
};
|
|
27965
28086
|
|
|
27966
28087
|
Object.defineProperty(boltProtocolUtil, "__esModule", { value: true });
|
|
27967
|
-
boltProtocolUtil.
|
|
28088
|
+
boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
28089
|
+
boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
28090
|
+
boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
28091
|
+
boltProtocolUtil.assertNotificationFilterIsEmpty = assertNotificationFilterIsEmpty;
|
|
27968
28092
|
/**
|
|
27969
28093
|
* Copyright (c) "Neo4j"
|
|
27970
28094
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -27998,7 +28122,6 @@
|
|
|
27998
28122
|
throw error;
|
|
27999
28123
|
}
|
|
28000
28124
|
}
|
|
28001
|
-
boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
28002
28125
|
/**
|
|
28003
28126
|
* Asserts that the passed-in database name is empty.
|
|
28004
28127
|
* @param {string} database
|
|
@@ -28015,7 +28138,6 @@
|
|
|
28015
28138
|
throw error;
|
|
28016
28139
|
}
|
|
28017
28140
|
}
|
|
28018
|
-
boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
28019
28141
|
/**
|
|
28020
28142
|
* Asserts that the passed-in impersonated user is empty
|
|
28021
28143
|
* @param {string} impersonatedUser
|
|
@@ -28034,7 +28156,6 @@
|
|
|
28034
28156
|
throw error;
|
|
28035
28157
|
}
|
|
28036
28158
|
}
|
|
28037
|
-
boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
28038
28159
|
/**
|
|
28039
28160
|
* Asserts that the passed-in notificationFilter is empty
|
|
28040
28161
|
* @param {NotificationFilter} notificationFilter
|
|
@@ -28053,7 +28174,6 @@
|
|
|
28053
28174
|
throw error;
|
|
28054
28175
|
}
|
|
28055
28176
|
}
|
|
28056
|
-
boltProtocolUtil.assertNotificationFilterIsEmpty = assertNotificationFilterIsEmpty;
|
|
28057
28177
|
|
|
28058
28178
|
var packstream = {};
|
|
28059
28179
|
|
|
@@ -28078,7 +28198,8 @@
|
|
|
28078
28198
|
* limitations under the License.
|
|
28079
28199
|
*/
|
|
28080
28200
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
28081
|
-
structure$1.
|
|
28201
|
+
structure$1.Structure = void 0;
|
|
28202
|
+
structure$1.verifyStructSize = verifyStructSize;
|
|
28082
28203
|
var neo4j_driver_core_1$A = lib$1;
|
|
28083
28204
|
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$A.error.PROTOCOL_ERROR;
|
|
28084
28205
|
/**
|
|
@@ -28117,7 +28238,6 @@
|
|
|
28117
28238
|
throw (0, neo4j_driver_core_1$A.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
28118
28239
|
}
|
|
28119
28240
|
}
|
|
28120
|
-
structure$1.verifyStructSize = verifyStructSize;
|
|
28121
28241
|
structure$1.default = Structure;
|
|
28122
28242
|
|
|
28123
28243
|
Object.defineProperty(packstreamV1, "__esModule", { value: true });
|
|
@@ -28734,13 +28854,23 @@
|
|
|
28734
28854
|
}) : function(o, v) {
|
|
28735
28855
|
o["default"] = v;
|
|
28736
28856
|
});
|
|
28737
|
-
var __importStar$3 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
28738
|
-
|
|
28739
|
-
|
|
28740
|
-
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28857
|
+
var __importStar$3 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
28858
|
+
var ownKeys = function(o) {
|
|
28859
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28860
|
+
var ar = [];
|
|
28861
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28862
|
+
return ar;
|
|
28863
|
+
};
|
|
28864
|
+
return ownKeys(o);
|
|
28865
|
+
};
|
|
28866
|
+
return function (mod) {
|
|
28867
|
+
if (mod && mod.__esModule) return mod;
|
|
28868
|
+
var result = {};
|
|
28869
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$3(result, mod, k[i]);
|
|
28870
|
+
__setModuleDefault$3(result, mod);
|
|
28871
|
+
return result;
|
|
28872
|
+
};
|
|
28873
|
+
})();
|
|
28744
28874
|
Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
28745
28875
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
28746
28876
|
var v1$1 = __importStar$3(packstreamV1);
|
|
@@ -28803,13 +28933,23 @@
|
|
|
28803
28933
|
}) : function(o, v) {
|
|
28804
28934
|
o["default"] = v;
|
|
28805
28935
|
});
|
|
28806
|
-
var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
28807
|
-
|
|
28808
|
-
|
|
28809
|
-
|
|
28810
|
-
|
|
28811
|
-
|
|
28812
|
-
|
|
28936
|
+
var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
28937
|
+
var ownKeys = function(o) {
|
|
28938
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28939
|
+
var ar = [];
|
|
28940
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28941
|
+
return ar;
|
|
28942
|
+
};
|
|
28943
|
+
return ownKeys(o);
|
|
28944
|
+
};
|
|
28945
|
+
return function (mod) {
|
|
28946
|
+
if (mod && mod.__esModule) return mod;
|
|
28947
|
+
var result = {};
|
|
28948
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$2(result, mod, k[i]);
|
|
28949
|
+
__setModuleDefault$2(result, mod);
|
|
28950
|
+
return result;
|
|
28951
|
+
};
|
|
28952
|
+
})();
|
|
28813
28953
|
Object.defineProperty(packstream, "__esModule", { value: true });
|
|
28814
28954
|
packstream.structure = packstream.v2 = packstream.v1 = void 0;
|
|
28815
28955
|
var v1 = __importStar$2(packstreamV1);
|
|
@@ -29605,13 +29745,23 @@
|
|
|
29605
29745
|
}) : function(o, v) {
|
|
29606
29746
|
o["default"] = v;
|
|
29607
29747
|
});
|
|
29608
|
-
var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
29609
|
-
|
|
29610
|
-
|
|
29611
|
-
|
|
29612
|
-
|
|
29613
|
-
|
|
29614
|
-
|
|
29748
|
+
var __importStar$1 = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
29749
|
+
var ownKeys = function(o) {
|
|
29750
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29751
|
+
var ar = [];
|
|
29752
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29753
|
+
return ar;
|
|
29754
|
+
};
|
|
29755
|
+
return ownKeys(o);
|
|
29756
|
+
};
|
|
29757
|
+
return function (mod) {
|
|
29758
|
+
if (mod && mod.__esModule) return mod;
|
|
29759
|
+
var result = {};
|
|
29760
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$1(result, mod, k[i]);
|
|
29761
|
+
__setModuleDefault$1(result, mod);
|
|
29762
|
+
return result;
|
|
29763
|
+
};
|
|
29764
|
+
})();
|
|
29615
29765
|
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29616
29766
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29617
29767
|
};
|
|
@@ -30137,7 +30287,9 @@
|
|
|
30137
30287
|
var temporalFactory = {};
|
|
30138
30288
|
|
|
30139
30289
|
Object.defineProperty(temporalFactory, "__esModule", { value: true });
|
|
30140
|
-
temporalFactory.
|
|
30290
|
+
temporalFactory.epochDayToDate = epochDayToDate;
|
|
30291
|
+
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
30292
|
+
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
30141
30293
|
/**
|
|
30142
30294
|
* Copyright (c) "Neo4j"
|
|
30143
30295
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -30209,7 +30361,6 @@
|
|
|
30209
30361
|
year = year.add(marchMonth.div(10));
|
|
30210
30362
|
return new neo4j_driver_core_1$u.Date(year, month, day);
|
|
30211
30363
|
}
|
|
30212
|
-
temporalFactory.epochDayToDate = epochDayToDate;
|
|
30213
30364
|
/**
|
|
30214
30365
|
* Converts nanoseconds of the day into local time.
|
|
30215
30366
|
* @param {Integer|number|string} nanoOfDay the nanoseconds of the day to convert.
|
|
@@ -30225,7 +30376,6 @@
|
|
|
30225
30376
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
30226
30377
|
return new neo4j_driver_core_1$u.LocalTime(hour, minute, second, nanosecond);
|
|
30227
30378
|
}
|
|
30228
|
-
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
30229
30379
|
/**
|
|
30230
30380
|
* Converts given epoch second and nanosecond adjustment into a local date time object.
|
|
30231
30381
|
* @param {Integer|number|string} epochSecond the epoch second to use.
|
|
@@ -30240,7 +30390,6 @@
|
|
|
30240
30390
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
30241
30391
|
return new neo4j_driver_core_1$u.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
30242
30392
|
}
|
|
30243
|
-
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
30244
30393
|
|
|
30245
30394
|
/**
|
|
30246
30395
|
* Copyright (c) "Neo4j"
|
|
@@ -33626,6 +33775,7 @@
|
|
|
33626
33775
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33627
33776
|
};
|
|
33628
33777
|
Object.defineProperty(create$1, "__esModule", { value: true });
|
|
33778
|
+
create$1.default = create;
|
|
33629
33779
|
var neo4j_driver_core_1$9 = lib$1;
|
|
33630
33780
|
var bolt_protocol_v1_1 = __importDefault$7(boltProtocolV1);
|
|
33631
33781
|
var bolt_protocol_v2_1 = __importDefault$7(boltProtocolV2);
|
|
@@ -33686,7 +33836,6 @@
|
|
|
33686
33836
|
};
|
|
33687
33837
|
return createProtocol(version, server, chunker, { disableLosslessIntegers: disableLosslessIntegers, useBigInt: useBigInt }, serversideRouting, createResponseHandler, observer.onProtocolError.bind(observer), log);
|
|
33688
33838
|
}
|
|
33689
|
-
create$1.default = create;
|
|
33690
33839
|
function createProtocol(version, server, chunker, packingConfig, serversideRouting, createResponseHandler, onProtocolError, log) {
|
|
33691
33840
|
switch (version) {
|
|
33692
33841
|
case 1:
|
|
@@ -34042,8 +34191,8 @@
|
|
|
34042
34191
|
});
|
|
34043
34192
|
};
|
|
34044
34193
|
var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
34045
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
34046
|
-
return g =
|
|
34194
|
+
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);
|
|
34195
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
34047
34196
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34048
34197
|
function step(op) {
|
|
34049
34198
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -34072,7 +34221,7 @@
|
|
|
34072
34221
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34073
34222
|
};
|
|
34074
34223
|
Object.defineProperty(connectionChannel, "__esModule", { value: true });
|
|
34075
|
-
connectionChannel.createChannelConnection =
|
|
34224
|
+
connectionChannel.createChannelConnection = createChannelConnection;
|
|
34076
34225
|
var channel_1$2 = channel;
|
|
34077
34226
|
var neo4j_driver_core_1$6 = lib$1;
|
|
34078
34227
|
var connection_1$4 = __importDefault$6(connection);
|
|
@@ -34134,7 +34283,6 @@
|
|
|
34134
34283
|
});
|
|
34135
34284
|
});
|
|
34136
34285
|
}
|
|
34137
|
-
connectionChannel.createChannelConnection = createChannelConnection;
|
|
34138
34286
|
var ChannelConnection = /** @class */ (function (_super) {
|
|
34139
34287
|
__extends$4(ChannelConnection, _super);
|
|
34140
34288
|
/**
|
|
@@ -34560,8 +34708,8 @@
|
|
|
34560
34708
|
* @returns {Promise<void>} - A promise that will be resolved when the underlying channel is closed.
|
|
34561
34709
|
*/
|
|
34562
34710
|
ChannelConnection.prototype.close = function () {
|
|
34563
|
-
var _a;
|
|
34564
34711
|
return __awaiter$6(this, void 0, void 0, function () {
|
|
34712
|
+
var _a;
|
|
34565
34713
|
return __generator$6(this, function (_b) {
|
|
34566
34714
|
switch (_b.label) {
|
|
34567
34715
|
case 0:
|
|
@@ -34901,13 +35049,23 @@
|
|
|
34901
35049
|
}) : function(o, v) {
|
|
34902
35050
|
o["default"] = v;
|
|
34903
35051
|
});
|
|
34904
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
34905
|
-
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
|
|
34910
|
-
|
|
35052
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
35053
|
+
var ownKeys = function(o) {
|
|
35054
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
35055
|
+
var ar = [];
|
|
35056
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35057
|
+
return ar;
|
|
35058
|
+
};
|
|
35059
|
+
return ownKeys(o);
|
|
35060
|
+
};
|
|
35061
|
+
return function (mod) {
|
|
35062
|
+
if (mod && mod.__esModule) return mod;
|
|
35063
|
+
var result = {};
|
|
35064
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35065
|
+
__setModuleDefault(result, mod);
|
|
35066
|
+
return result;
|
|
35067
|
+
};
|
|
35068
|
+
})();
|
|
34911
35069
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
34912
35070
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34913
35071
|
};
|
|
@@ -34953,8 +35111,8 @@
|
|
|
34953
35111
|
});
|
|
34954
35112
|
};
|
|
34955
35113
|
var __generator$5 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
34956
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
34957
|
-
return g =
|
|
35114
|
+
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);
|
|
35115
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
34958
35116
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34959
35117
|
function step(op) {
|
|
34960
35118
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -34993,25 +35151,25 @@
|
|
|
34993
35151
|
this._boltAgent = boltAgent;
|
|
34994
35152
|
}
|
|
34995
35153
|
AuthenticationProvider.prototype.authenticate = function (_a) {
|
|
34996
|
-
|
|
34997
|
-
return __awaiter$5(this, void 0, void 0, function () {
|
|
35154
|
+
return __awaiter$5(this, arguments, void 0, function (_b) {
|
|
34998
35155
|
var shouldReAuth, authToken;
|
|
34999
|
-
|
|
35000
|
-
|
|
35156
|
+
var connection = _b.connection, auth = _b.auth, skipReAuth = _b.skipReAuth, waitReAuth = _b.waitReAuth, forceReAuth = _b.forceReAuth;
|
|
35157
|
+
return __generator$5(this, function (_c) {
|
|
35158
|
+
switch (_c.label) {
|
|
35001
35159
|
case 0:
|
|
35002
35160
|
if (!(auth != null)) return [3 /*break*/, 3];
|
|
35003
35161
|
shouldReAuth = connection.supportsReAuth === true && ((!lang_1$2.object.equals(connection.authToken, auth) && skipReAuth !== true) ||
|
|
35004
35162
|
forceReAuth === true);
|
|
35005
35163
|
if (!(connection.authToken == null || shouldReAuth)) return [3 /*break*/, 2];
|
|
35006
35164
|
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, auth, waitReAuth || false)];
|
|
35007
|
-
case 1: return [2 /*return*/,
|
|
35165
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
35008
35166
|
case 2: return [2 /*return*/, connection];
|
|
35009
35167
|
case 3: return [4 /*yield*/, this._authTokenManager.getToken()];
|
|
35010
35168
|
case 4:
|
|
35011
|
-
authToken =
|
|
35169
|
+
authToken = _c.sent();
|
|
35012
35170
|
if (!!lang_1$2.object.equals(authToken, connection.authToken)) return [3 /*break*/, 6];
|
|
35013
35171
|
return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, authToken, false)];
|
|
35014
|
-
case 5: return [2 /*return*/,
|
|
35172
|
+
case 5: return [2 /*return*/, _c.sent()];
|
|
35015
35173
|
case 6: return [2 /*return*/, connection];
|
|
35016
35174
|
}
|
|
35017
35175
|
});
|
|
@@ -35041,8 +35199,8 @@
|
|
|
35041
35199
|
});
|
|
35042
35200
|
};
|
|
35043
35201
|
var __generator$4 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35044
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35045
|
-
return g =
|
|
35202
|
+
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);
|
|
35203
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35046
35204
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35047
35205
|
function step(op) {
|
|
35048
35206
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35141,8 +35299,8 @@
|
|
|
35141
35299
|
});
|
|
35142
35300
|
};
|
|
35143
35301
|
var __generator$3 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35144
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35145
|
-
return g =
|
|
35302
|
+
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);
|
|
35303
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35146
35304
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35147
35305
|
function step(op) {
|
|
35148
35306
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35273,8 +35431,8 @@
|
|
|
35273
35431
|
});
|
|
35274
35432
|
};
|
|
35275
35433
|
var __generator$2 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35276
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35277
|
-
return g =
|
|
35434
|
+
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);
|
|
35435
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35278
35436
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35279
35437
|
function step(op) {
|
|
35280
35438
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35425,35 +35583,35 @@
|
|
|
35425
35583
|
});
|
|
35426
35584
|
});
|
|
35427
35585
|
};
|
|
35428
|
-
PooledConnectionProvider.prototype._validateConnectionOnAcquire = function (_a,
|
|
35429
|
-
|
|
35430
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35586
|
+
PooledConnectionProvider.prototype._validateConnectionOnAcquire = function (_a, conn_1) {
|
|
35587
|
+
return __awaiter$2(this, arguments, void 0, function (_b, conn) {
|
|
35431
35588
|
var error_1, error_2;
|
|
35432
|
-
|
|
35433
|
-
|
|
35589
|
+
var auth = _b.auth, skipReAuth = _b.skipReAuth;
|
|
35590
|
+
return __generator$2(this, function (_c) {
|
|
35591
|
+
switch (_c.label) {
|
|
35434
35592
|
case 0:
|
|
35435
35593
|
if (!this._validateConnection(conn)) {
|
|
35436
35594
|
return [2 /*return*/, false];
|
|
35437
35595
|
}
|
|
35438
|
-
|
|
35596
|
+
_c.label = 1;
|
|
35439
35597
|
case 1:
|
|
35440
|
-
|
|
35598
|
+
_c.trys.push([1, 3, , 4]);
|
|
35441
35599
|
return [4 /*yield*/, this._livenessCheckProvider.check(conn)];
|
|
35442
35600
|
case 2:
|
|
35443
|
-
|
|
35601
|
+
_c.sent();
|
|
35444
35602
|
return [3 /*break*/, 4];
|
|
35445
35603
|
case 3:
|
|
35446
|
-
error_1 =
|
|
35604
|
+
error_1 = _c.sent();
|
|
35447
35605
|
this._log.debug("The connection ".concat(conn.id, " is not alive because of an error ").concat(error_1.code, " '").concat(error_1.message, "'"));
|
|
35448
35606
|
return [2 /*return*/, false];
|
|
35449
35607
|
case 4:
|
|
35450
|
-
|
|
35608
|
+
_c.trys.push([4, 6, , 7]);
|
|
35451
35609
|
return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: conn, auth: auth, skipReAuth: skipReAuth })];
|
|
35452
35610
|
case 5:
|
|
35453
|
-
|
|
35611
|
+
_c.sent();
|
|
35454
35612
|
return [2 /*return*/, true];
|
|
35455
35613
|
case 6:
|
|
35456
|
-
error_2 =
|
|
35614
|
+
error_2 = _c.sent();
|
|
35457
35615
|
this._log.debug("The connection ".concat(conn.id, " is not valid because of an error ").concat(error_2.code, " '").concat(error_2.message, "'"));
|
|
35458
35616
|
return [2 /*return*/, false];
|
|
35459
35617
|
case 7: return [2 /*return*/];
|
|
@@ -35496,27 +35654,27 @@
|
|
|
35496
35654
|
* @return {Promise<ServerInfo>} the server info
|
|
35497
35655
|
*/
|
|
35498
35656
|
PooledConnectionProvider.prototype._verifyConnectivityAndGetServerVersion = function (_a) {
|
|
35499
|
-
|
|
35500
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35657
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35501
35658
|
var connection, serverInfo;
|
|
35502
|
-
|
|
35503
|
-
|
|
35659
|
+
var address = _b.address;
|
|
35660
|
+
return __generator$2(this, function (_c) {
|
|
35661
|
+
switch (_c.label) {
|
|
35504
35662
|
case 0: return [4 /*yield*/, this._connectionPool.acquire({}, address)];
|
|
35505
35663
|
case 1:
|
|
35506
|
-
connection =
|
|
35664
|
+
connection = _c.sent();
|
|
35507
35665
|
serverInfo = new neo4j_driver_core_1$3.ServerInfo(connection.server, connection.protocol().version);
|
|
35508
|
-
|
|
35666
|
+
_c.label = 2;
|
|
35509
35667
|
case 2:
|
|
35510
|
-
|
|
35668
|
+
_c.trys.push([2, , 5, 7]);
|
|
35511
35669
|
if (!!connection.protocol().isLastMessageLogon()) return [3 /*break*/, 4];
|
|
35512
35670
|
return [4 /*yield*/, connection.resetAndFlush()];
|
|
35513
35671
|
case 3:
|
|
35514
|
-
|
|
35515
|
-
|
|
35672
|
+
_c.sent();
|
|
35673
|
+
_c.label = 4;
|
|
35516
35674
|
case 4: return [3 /*break*/, 7];
|
|
35517
35675
|
case 5: return [4 /*yield*/, connection.release()];
|
|
35518
35676
|
case 6:
|
|
35519
|
-
|
|
35677
|
+
_c.sent();
|
|
35520
35678
|
return [7 /*endfinally*/];
|
|
35521
35679
|
case 7: return [2 /*return*/, serverInfo];
|
|
35522
35680
|
}
|
|
@@ -35524,22 +35682,22 @@
|
|
|
35524
35682
|
});
|
|
35525
35683
|
};
|
|
35526
35684
|
PooledConnectionProvider.prototype._verifyAuthentication = function (_a) {
|
|
35527
|
-
|
|
35528
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35685
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35529
35686
|
var connectionsToRelease, address, connection, lastMessageIsNotLogin, stickyConnection, error_3;
|
|
35530
|
-
|
|
35531
|
-
|
|
35687
|
+
var getAddress = _b.getAddress, auth = _b.auth;
|
|
35688
|
+
return __generator$2(this, function (_c) {
|
|
35689
|
+
switch (_c.label) {
|
|
35532
35690
|
case 0:
|
|
35533
35691
|
connectionsToRelease = [];
|
|
35534
|
-
|
|
35692
|
+
_c.label = 1;
|
|
35535
35693
|
case 1:
|
|
35536
|
-
|
|
35694
|
+
_c.trys.push([1, 8, 9, 11]);
|
|
35537
35695
|
return [4 /*yield*/, getAddress()];
|
|
35538
35696
|
case 2:
|
|
35539
|
-
address =
|
|
35697
|
+
address = _c.sent();
|
|
35540
35698
|
return [4 /*yield*/, this._connectionPool.acquire({ auth: auth, skipReAuth: true }, address)];
|
|
35541
35699
|
case 3:
|
|
35542
|
-
connection =
|
|
35700
|
+
connection = _c.sent();
|
|
35543
35701
|
connectionsToRelease.push(connection);
|
|
35544
35702
|
lastMessageIsNotLogin = !connection.protocol().isLastMessageLogon();
|
|
35545
35703
|
if (!connection.supportsReAuth) {
|
|
@@ -35548,26 +35706,26 @@
|
|
|
35548
35706
|
if (!(lastMessageIsNotLogin && connection.supportsReAuth)) return [3 /*break*/, 5];
|
|
35549
35707
|
return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: connection, auth: auth, waitReAuth: true, forceReAuth: true })];
|
|
35550
35708
|
case 4:
|
|
35551
|
-
|
|
35709
|
+
_c.sent();
|
|
35552
35710
|
return [3 /*break*/, 7];
|
|
35553
35711
|
case 5:
|
|
35554
35712
|
if (!(lastMessageIsNotLogin && !connection.supportsReAuth)) return [3 /*break*/, 7];
|
|
35555
35713
|
return [4 /*yield*/, this._connectionPool.acquire({ auth: auth }, address, { requireNew: true })];
|
|
35556
35714
|
case 6:
|
|
35557
|
-
stickyConnection =
|
|
35715
|
+
stickyConnection = _c.sent();
|
|
35558
35716
|
stickyConnection._sticky = true;
|
|
35559
35717
|
connectionsToRelease.push(stickyConnection);
|
|
35560
|
-
|
|
35718
|
+
_c.label = 7;
|
|
35561
35719
|
case 7: return [2 /*return*/, true];
|
|
35562
35720
|
case 8:
|
|
35563
|
-
error_3 =
|
|
35721
|
+
error_3 = _c.sent();
|
|
35564
35722
|
if (AUTHENTICATION_ERRORS.includes(error_3.code)) {
|
|
35565
35723
|
return [2 /*return*/, false];
|
|
35566
35724
|
}
|
|
35567
35725
|
throw error_3;
|
|
35568
35726
|
case 9: return [4 /*yield*/, Promise.all(connectionsToRelease.map(function (conn) { return conn.release(); }))];
|
|
35569
35727
|
case 10:
|
|
35570
|
-
|
|
35728
|
+
_c.sent();
|
|
35571
35729
|
return [7 /*endfinally*/];
|
|
35572
35730
|
case 11: return [2 /*return*/];
|
|
35573
35731
|
}
|
|
@@ -35575,11 +35733,11 @@
|
|
|
35575
35733
|
});
|
|
35576
35734
|
};
|
|
35577
35735
|
PooledConnectionProvider.prototype._verifyStickyConnection = function (_a) {
|
|
35578
|
-
|
|
35579
|
-
return __awaiter$2(this, void 0, void 0, function () {
|
|
35736
|
+
return __awaiter$2(this, arguments, void 0, function (_b) {
|
|
35580
35737
|
var connectionWithSameCredentials, shouldCreateStickyConnection;
|
|
35581
|
-
|
|
35582
|
-
|
|
35738
|
+
var auth = _b.auth, connection = _b.connection; _b.address;
|
|
35739
|
+
return __generator$2(this, function (_c) {
|
|
35740
|
+
switch (_c.label) {
|
|
35583
35741
|
case 0:
|
|
35584
35742
|
connectionWithSameCredentials = lang_1$1.object.equals(auth, connection.authToken);
|
|
35585
35743
|
shouldCreateStickyConnection = !connectionWithSameCredentials;
|
|
@@ -35587,7 +35745,7 @@
|
|
|
35587
35745
|
if (!(shouldCreateStickyConnection || connection._sticky)) return [3 /*break*/, 2];
|
|
35588
35746
|
return [4 /*yield*/, connection.release()];
|
|
35589
35747
|
case 1:
|
|
35590
|
-
|
|
35748
|
+
_c.sent();
|
|
35591
35749
|
throw (0, neo4j_driver_core_1$3.newError)('Driver is connected to a database that does not support user switch.');
|
|
35592
35750
|
case 2: return [2 /*return*/];
|
|
35593
35751
|
}
|
|
@@ -35685,8 +35843,8 @@
|
|
|
35685
35843
|
});
|
|
35686
35844
|
};
|
|
35687
35845
|
var __generator$1 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
35688
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35689
|
-
return g =
|
|
35846
|
+
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);
|
|
35847
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
35690
35848
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35691
35849
|
function step(op) {
|
|
35692
35850
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -35732,11 +35890,11 @@
|
|
|
35732
35890
|
* See {@link ConnectionProvider} for more information about this method and
|
|
35733
35891
|
* its arguments.
|
|
35734
35892
|
*/
|
|
35735
|
-
DirectConnectionProvider.prototype.acquireConnection = function (
|
|
35736
|
-
|
|
35737
|
-
return __awaiter$1(this, void 0, void 0, function () {
|
|
35893
|
+
DirectConnectionProvider.prototype.acquireConnection = function () {
|
|
35894
|
+
return __awaiter$1(this, arguments, void 0, function (_a) {
|
|
35738
35895
|
var databaseSpecificErrorHandler, connection;
|
|
35739
35896
|
var _this = this;
|
|
35897
|
+
var _b = _a === void 0 ? {} : _a; _b.accessMode; var database = _b.database; _b.bookmarks; var auth = _b.auth, forceReAuth = _b.forceReAuth;
|
|
35740
35898
|
return __generator$1(this, function (_c) {
|
|
35741
35899
|
switch (_c.label) {
|
|
35742
35900
|
case 0:
|
|
@@ -35837,10 +35995,10 @@
|
|
|
35837
35995
|
});
|
|
35838
35996
|
};
|
|
35839
35997
|
DirectConnectionProvider.prototype.verifyAuthentication = function (_a) {
|
|
35840
|
-
|
|
35841
|
-
return __awaiter$1(this, void 0, void 0, function () {
|
|
35998
|
+
return __awaiter$1(this, arguments, void 0, function (_b) {
|
|
35842
35999
|
var _this = this;
|
|
35843
|
-
|
|
36000
|
+
var auth = _b.auth;
|
|
36001
|
+
return __generator$1(this, function (_c) {
|
|
35844
36002
|
return [2 /*return*/, this._verifyAuthentication({
|
|
35845
36003
|
auth: auth,
|
|
35846
36004
|
getAddress: function () { return _this._address; }
|
|
@@ -35896,7 +36054,7 @@
|
|
|
35896
36054
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35897
36055
|
};
|
|
35898
36056
|
Object.defineProperty(routingTable, "__esModule", { value: true });
|
|
35899
|
-
routingTable.createValidRoutingTable =
|
|
36057
|
+
routingTable.createValidRoutingTable = createValidRoutingTable;
|
|
35900
36058
|
/**
|
|
35901
36059
|
* Copyright (c) "Neo4j"
|
|
35902
36060
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -36022,7 +36180,6 @@
|
|
|
36022
36180
|
ttl: ttl
|
|
36023
36181
|
});
|
|
36024
36182
|
}
|
|
36025
|
-
routingTable.createValidRoutingTable = createValidRoutingTable;
|
|
36026
36183
|
/**
|
|
36027
36184
|
* Parse server from the RawRoutingTable.
|
|
36028
36185
|
*
|
|
@@ -36261,13 +36418,23 @@
|
|
|
36261
36418
|
}) : function(o, v) {
|
|
36262
36419
|
o["default"] = v;
|
|
36263
36420
|
});
|
|
36264
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
36265
|
-
|
|
36266
|
-
|
|
36267
|
-
|
|
36268
|
-
|
|
36269
|
-
|
|
36270
|
-
|
|
36421
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
36422
|
+
var ownKeys = function(o) {
|
|
36423
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36424
|
+
var ar = [];
|
|
36425
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36426
|
+
return ar;
|
|
36427
|
+
};
|
|
36428
|
+
return ownKeys(o);
|
|
36429
|
+
};
|
|
36430
|
+
return function (mod) {
|
|
36431
|
+
if (mod && mod.__esModule) return mod;
|
|
36432
|
+
var result = {};
|
|
36433
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36434
|
+
__setModuleDefault(result, mod);
|
|
36435
|
+
return result;
|
|
36436
|
+
};
|
|
36437
|
+
})();
|
|
36271
36438
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36272
36439
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36273
36440
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -36278,8 +36445,8 @@
|
|
|
36278
36445
|
});
|
|
36279
36446
|
};
|
|
36280
36447
|
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
36281
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36282
|
-
return g =
|
|
36448
|
+
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);
|
|
36449
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36283
36450
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
36284
36451
|
function step(op) {
|
|
36285
36452
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -36416,11 +36583,11 @@
|
|
|
36416
36583
|
* See {@link ConnectionProvider} for more information about this method and
|
|
36417
36584
|
* its arguments.
|
|
36418
36585
|
*/
|
|
36419
|
-
RoutingConnectionProvider.prototype.acquireConnection = function (
|
|
36420
|
-
|
|
36421
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36586
|
+
RoutingConnectionProvider.prototype.acquireConnection = function () {
|
|
36587
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
36422
36588
|
var context, databaseSpecificErrorHandler, conn, currentRoutingTable, routingTable;
|
|
36423
36589
|
var _this = this;
|
|
36590
|
+
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;
|
|
36424
36591
|
return __generator(this, function (_c) {
|
|
36425
36592
|
switch (_c.label) {
|
|
36426
36593
|
case 0:
|
|
@@ -36596,10 +36763,10 @@
|
|
|
36596
36763
|
});
|
|
36597
36764
|
};
|
|
36598
36765
|
RoutingConnectionProvider.prototype.verifyAuthentication = function (_a) {
|
|
36599
|
-
|
|
36600
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36766
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
36601
36767
|
var _this = this;
|
|
36602
|
-
|
|
36768
|
+
var database = _b.database, accessMode = _b.accessMode, auth = _b.auth;
|
|
36769
|
+
return __generator(this, function (_c) {
|
|
36603
36770
|
return [2 /*return*/, this._verifyAuthentication({
|
|
36604
36771
|
auth: auth,
|
|
36605
36772
|
getAddress: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -36631,12 +36798,12 @@
|
|
|
36631
36798
|
});
|
|
36632
36799
|
};
|
|
36633
36800
|
RoutingConnectionProvider.prototype.verifyConnectivityAndGetServerInfo = function (_a) {
|
|
36634
|
-
|
|
36635
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
36801
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
36636
36802
|
var context, routingTable, servers, error, servers_1, servers_1_1, address, serverInfo, e_1, e_2_1;
|
|
36637
|
-
var e_2,
|
|
36638
|
-
|
|
36639
|
-
|
|
36803
|
+
var e_2, _c;
|
|
36804
|
+
var database = _b.database, accessMode = _b.accessMode;
|
|
36805
|
+
return __generator(this, function (_d) {
|
|
36806
|
+
switch (_d.label) {
|
|
36640
36807
|
case 0:
|
|
36641
36808
|
context = { database: database || DEFAULT_DB_NAME };
|
|
36642
36809
|
return [4 /*yield*/, this._freshRoutingTable({
|
|
@@ -36647,26 +36814,26 @@
|
|
|
36647
36814
|
}
|
|
36648
36815
|
})];
|
|
36649
36816
|
case 1:
|
|
36650
|
-
routingTable =
|
|
36817
|
+
routingTable = _d.sent();
|
|
36651
36818
|
servers = accessMode === WRITE ? routingTable.writers : routingTable.readers;
|
|
36652
36819
|
error = (0, neo4j_driver_core_1.newError)("No servers available for database '".concat(context.database, "' with access mode '").concat(accessMode, "'"), SERVICE_UNAVAILABLE);
|
|
36653
|
-
|
|
36820
|
+
_d.label = 2;
|
|
36654
36821
|
case 2:
|
|
36655
|
-
|
|
36822
|
+
_d.trys.push([2, 9, 10, 11]);
|
|
36656
36823
|
servers_1 = __values(servers), servers_1_1 = servers_1.next();
|
|
36657
|
-
|
|
36824
|
+
_d.label = 3;
|
|
36658
36825
|
case 3:
|
|
36659
36826
|
if (!!servers_1_1.done) return [3 /*break*/, 8];
|
|
36660
36827
|
address = servers_1_1.value;
|
|
36661
|
-
|
|
36828
|
+
_d.label = 4;
|
|
36662
36829
|
case 4:
|
|
36663
|
-
|
|
36830
|
+
_d.trys.push([4, 6, , 7]);
|
|
36664
36831
|
return [4 /*yield*/, this._verifyConnectivityAndGetServerVersion({ address: address })];
|
|
36665
36832
|
case 5:
|
|
36666
|
-
serverInfo =
|
|
36833
|
+
serverInfo = _d.sent();
|
|
36667
36834
|
return [2 /*return*/, serverInfo];
|
|
36668
36835
|
case 6:
|
|
36669
|
-
e_1 =
|
|
36836
|
+
e_1 = _d.sent();
|
|
36670
36837
|
error = e_1;
|
|
36671
36838
|
return [3 /*break*/, 7];
|
|
36672
36839
|
case 7:
|
|
@@ -36674,12 +36841,12 @@
|
|
|
36674
36841
|
return [3 /*break*/, 3];
|
|
36675
36842
|
case 8: return [3 /*break*/, 11];
|
|
36676
36843
|
case 9:
|
|
36677
|
-
e_2_1 =
|
|
36844
|
+
e_2_1 = _d.sent();
|
|
36678
36845
|
e_2 = { error: e_2_1 };
|
|
36679
36846
|
return [3 /*break*/, 11];
|
|
36680
36847
|
case 10:
|
|
36681
36848
|
try {
|
|
36682
|
-
if (servers_1_1 && !servers_1_1.done && (
|
|
36849
|
+
if (servers_1_1 && !servers_1_1.done && (_c = servers_1.return)) _c.call(servers_1);
|
|
36683
36850
|
}
|
|
36684
36851
|
finally { if (e_2) throw e_2.error; }
|
|
36685
36852
|
return [7 /*endfinally*/];
|
|
@@ -37199,13 +37366,23 @@
|
|
|
37199
37366
|
}) : function(o, v) {
|
|
37200
37367
|
o["default"] = v;
|
|
37201
37368
|
});
|
|
37202
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
37203
|
-
|
|
37204
|
-
|
|
37205
|
-
|
|
37206
|
-
|
|
37207
|
-
|
|
37208
|
-
|
|
37369
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || (function () {
|
|
37370
|
+
var ownKeys = function(o) {
|
|
37371
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
37372
|
+
var ar = [];
|
|
37373
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
37374
|
+
return ar;
|
|
37375
|
+
};
|
|
37376
|
+
return ownKeys(o);
|
|
37377
|
+
};
|
|
37378
|
+
return function (mod) {
|
|
37379
|
+
if (mod && mod.__esModule) return mod;
|
|
37380
|
+
var result = {};
|
|
37381
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37382
|
+
__setModuleDefault(result, mod);
|
|
37383
|
+
return result;
|
|
37384
|
+
};
|
|
37385
|
+
})();
|
|
37209
37386
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
37210
37387
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37211
37388
|
};
|
|
@@ -37230,8 +37407,8 @@
|
|
|
37230
37407
|
});
|
|
37231
37408
|
};
|
|
37232
37409
|
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
37233
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37234
|
-
return g =
|
|
37410
|
+
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);
|
|
37411
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37235
37412
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37236
37413
|
function step(op) {
|
|
37237
37414
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -37260,8 +37437,10 @@
|
|
|
37260
37437
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37261
37438
|
};
|
|
37262
37439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37263
|
-
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.
|
|
37264
|
-
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 =
|
|
37440
|
+
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;
|
|
37441
|
+
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;
|
|
37442
|
+
exports.driver = driver;
|
|
37443
|
+
exports.hasReachableServer = hasReachableServer;
|
|
37265
37444
|
/**
|
|
37266
37445
|
* Copyright (c) "Neo4j"
|
|
37267
37446
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -37465,7 +37644,6 @@
|
|
|
37465
37644
|
}
|
|
37466
37645
|
}
|
|
37467
37646
|
}
|
|
37468
|
-
exports.driver = driver;
|
|
37469
37647
|
/**
|
|
37470
37648
|
* Verifies if the driver can reach a server at the given url.
|
|
37471
37649
|
*
|
|
@@ -37499,7 +37677,6 @@
|
|
|
37499
37677
|
});
|
|
37500
37678
|
});
|
|
37501
37679
|
}
|
|
37502
|
-
exports.hasReachableServer = hasReachableServer;
|
|
37503
37680
|
/**
|
|
37504
37681
|
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
37505
37682
|
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|