neo4j-driver 4.4.8 → 4.4.9
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.js +17 -16
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/lib/browser/neo4j-web.js
CHANGED
|
@@ -6752,13 +6752,15 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
6752
6752
|
hour12: false,
|
|
6753
6753
|
era: 'narrow'
|
|
6754
6754
|
});
|
|
6755
|
-
var
|
|
6756
|
-
|
|
6755
|
+
var utc = (0, neo4j_driver_core_1.int)(epochSecond)
|
|
6756
|
+
.multiply(1000)
|
|
6757
|
+
.add((0, neo4j_driver_core_1.int)(nano).div(1000000))
|
|
6758
|
+
.toNumber();
|
|
6757
6759
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
6758
6760
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
6759
6761
|
if (currentValue.type === 'era') {
|
|
6760
6762
|
obj.adjustEra =
|
|
6761
|
-
currentValue.value.
|
|
6763
|
+
currentValue.value.toUpperCase() === 'B'
|
|
6762
6764
|
? function (year) { return year.subtract(1).negate(); } // 1BC equals to year 0 in astronomical year numbering
|
|
6763
6765
|
: function (year) { return year; };
|
|
6764
6766
|
}
|
|
@@ -8512,27 +8514,26 @@ var Pool = /** @class */ (function () {
|
|
|
8512
8514
|
};
|
|
8513
8515
|
Pool.prototype._purgeKey = function (key) {
|
|
8514
8516
|
return __awaiter(this, void 0, void 0, function () {
|
|
8515
|
-
var pool, poolState, resource;
|
|
8517
|
+
var pool, poolState, destructionList, resource;
|
|
8516
8518
|
return __generator(this, function (_a) {
|
|
8517
8519
|
switch (_a.label) {
|
|
8518
8520
|
case 0:
|
|
8519
8521
|
pool = this._pools[key] || [];
|
|
8520
8522
|
poolState = this._poolState[key] || new PoolState();
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8523
|
+
destructionList = [];
|
|
8524
|
+
while (pool.length) {
|
|
8525
|
+
resource = pool.pop();
|
|
8526
|
+
if (this._removeIdleObserver) {
|
|
8527
|
+
this._removeIdleObserver(resource);
|
|
8528
|
+
}
|
|
8529
|
+
destructionList.push(this._destroy(resource));
|
|
8527
8530
|
}
|
|
8528
|
-
return [4 /*yield*/, this._destroy(resource)];
|
|
8529
|
-
case 2:
|
|
8530
|
-
_a.sent();
|
|
8531
|
-
return [3 /*break*/, 1];
|
|
8532
|
-
case 3:
|
|
8533
8531
|
poolState.close();
|
|
8534
8532
|
delete this._pools[key];
|
|
8535
8533
|
delete this._poolState[key];
|
|
8534
|
+
return [4 /*yield*/, Promise.all(destructionList)];
|
|
8535
|
+
case 1:
|
|
8536
|
+
_a.sent();
|
|
8536
8537
|
return [2 /*return*/];
|
|
8537
8538
|
}
|
|
8538
8539
|
});
|
|
@@ -30737,7 +30738,7 @@ exports["default"] = void 0;
|
|
|
30737
30738
|
// This is set up this way to keep the version in the code in
|
|
30738
30739
|
// sync with the npm package version, and to allow the build
|
|
30739
30740
|
// system to control version names at packaging time.
|
|
30740
|
-
var _default = '4.4.
|
|
30741
|
+
var _default = '4.4.9';
|
|
30741
30742
|
exports["default"] = _default;
|
|
30742
30743
|
|
|
30743
30744
|
},{}]},{},[304])(304)
|