neo4j-driver 5.18.0 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/neo4j-web.esm.js +886 -249
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +886 -249
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +5 -2
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +13 -2
|
@@ -28,7 +28,7 @@ var error = {};
|
|
|
28
28
|
* See the License for the specific language governing permissions and
|
|
29
29
|
* limitations under the License.
|
|
30
30
|
*/
|
|
31
|
-
var __extends$
|
|
31
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32
32
|
var extendStatics = function (d, b) {
|
|
33
33
|
extendStatics = Object.setPrototypeOf ||
|
|
34
34
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -75,7 +75,7 @@ var NOT_AVAILABLE$1 = 'N/A';
|
|
|
75
75
|
* Class for all errors thrown/returned by the driver.
|
|
76
76
|
*/
|
|
77
77
|
var Neo4jError = /** @class */ (function (_super) {
|
|
78
|
-
__extends$
|
|
78
|
+
__extends$O(Neo4jError, _super);
|
|
79
79
|
/**
|
|
80
80
|
* @constructor
|
|
81
81
|
* @param {string} message - the error message
|
|
@@ -1177,7 +1177,7 @@ var temporalUtil$1 = {};
|
|
|
1177
1177
|
|
|
1178
1178
|
var util$4 = {};
|
|
1179
1179
|
|
|
1180
|
-
var json = {};
|
|
1180
|
+
var json$1 = {};
|
|
1181
1181
|
|
|
1182
1182
|
var objectUtil$2 = {};
|
|
1183
1183
|
|
|
@@ -1281,8 +1281,8 @@ objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
|
|
|
1281
1281
|
* See the License for the specific language governing permissions and
|
|
1282
1282
|
* limitations under the License.
|
|
1283
1283
|
*/
|
|
1284
|
-
Object.defineProperty(json, "__esModule", { value: true });
|
|
1285
|
-
json.stringify = void 0;
|
|
1284
|
+
Object.defineProperty(json$1, "__esModule", { value: true });
|
|
1285
|
+
json$1.stringify = void 0;
|
|
1286
1286
|
var object_util_1 = objectUtil$2;
|
|
1287
1287
|
/**
|
|
1288
1288
|
* Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.
|
|
@@ -1304,7 +1304,7 @@ function stringify(val) {
|
|
|
1304
1304
|
return value;
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
|
-
json.stringify = stringify;
|
|
1307
|
+
json$1.stringify = stringify;
|
|
1308
1308
|
|
|
1309
1309
|
var __values$d = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
1310
1310
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
@@ -1337,7 +1337,7 @@ util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON = util$4.equals = util$4.validateQu
|
|
|
1337
1337
|
*/
|
|
1338
1338
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1339
1339
|
var integer_1$3 = integer;
|
|
1340
|
-
var json_1$1 = json;
|
|
1340
|
+
var json_1$1 = json$1;
|
|
1341
1341
|
var ENCRYPTION_ON$2 = 'ENCRYPTION_ON';
|
|
1342
1342
|
util$4.ENCRYPTION_ON = ENCRYPTION_ON$2;
|
|
1343
1343
|
var ENCRYPTION_OFF$2 = 'ENCRYPTION_OFF';
|
|
@@ -1422,7 +1422,7 @@ util$4.assertObject = assertObject;
|
|
|
1422
1422
|
* @throws {TypeError} when the supplied param is not a string
|
|
1423
1423
|
*/
|
|
1424
1424
|
function assertString$1(obj, objName) {
|
|
1425
|
-
if (!isString(obj)) {
|
|
1425
|
+
if (!isString$1(obj)) {
|
|
1426
1426
|
throw new TypeError((0, json_1$1.stringify)(objName) + ' expected to be string but was: ' + (0, json_1$1.stringify)(obj));
|
|
1427
1427
|
}
|
|
1428
1428
|
return obj;
|
|
@@ -1511,10 +1511,10 @@ function assertQueryParameters(obj) {
|
|
|
1511
1511
|
* @param str The string
|
|
1512
1512
|
* @returns {boolean} True if the supplied object is an string
|
|
1513
1513
|
*/
|
|
1514
|
-
function isString(str) {
|
|
1514
|
+
function isString$1(str) {
|
|
1515
1515
|
return Object.prototype.toString.call(str) === '[object String]';
|
|
1516
1516
|
}
|
|
1517
|
-
util$4.isString = isString;
|
|
1517
|
+
util$4.isString = isString$1;
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Verifies if object are the equals
|
|
1520
1520
|
* @param {unknown} a
|
|
@@ -2137,7 +2137,7 @@ function add(x, y) {
|
|
|
2137
2137
|
* See the License for the specific language governing permissions and
|
|
2138
2138
|
* limitations under the License.
|
|
2139
2139
|
*/
|
|
2140
|
-
var __createBinding$
|
|
2140
|
+
var __createBinding$c = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2141
2141
|
if (k2 === undefined) k2 = k;
|
|
2142
2142
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2143
2143
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -2148,16 +2148,16 @@ var __createBinding$b = (commonjsGlobal && commonjsGlobal.__createBinding) || (O
|
|
|
2148
2148
|
if (k2 === undefined) k2 = k;
|
|
2149
2149
|
o[k2] = m[k];
|
|
2150
2150
|
}));
|
|
2151
|
-
var __setModuleDefault$
|
|
2151
|
+
var __setModuleDefault$c = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2152
2152
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2153
2153
|
}) : function(o, v) {
|
|
2154
2154
|
o["default"] = v;
|
|
2155
2155
|
});
|
|
2156
|
-
var __importStar$
|
|
2156
|
+
var __importStar$c = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
2157
2157
|
if (mod && mod.__esModule) return mod;
|
|
2158
2158
|
var result = {};
|
|
2159
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$
|
|
2160
|
-
__setModuleDefault$
|
|
2159
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$c(result, mod, k);
|
|
2160
|
+
__setModuleDefault$c(result, mod);
|
|
2161
2161
|
return result;
|
|
2162
2162
|
};
|
|
2163
2163
|
var __read$w = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
@@ -2178,10 +2178,10 @@ var __read$w = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
2178
2178
|
};
|
|
2179
2179
|
Object.defineProperty(temporalTypes, "__esModule", { value: true });
|
|
2180
2180
|
temporalTypes.isDateTime = temporalTypes.DateTime = temporalTypes.isLocalDateTime = temporalTypes.LocalDateTime = temporalTypes.isDate = temporalTypes.Date = temporalTypes.isTime = temporalTypes.Time = temporalTypes.isLocalTime = temporalTypes.LocalTime = temporalTypes.isDuration = temporalTypes.Duration = void 0;
|
|
2181
|
-
var util$3 = __importStar$
|
|
2181
|
+
var util$3 = __importStar$c(temporalUtil$1);
|
|
2182
2182
|
var util_1$7 = util$4;
|
|
2183
2183
|
var error_1$a = error;
|
|
2184
|
-
var integer_1$2 = __importStar$
|
|
2184
|
+
var integer_1$2 = __importStar$c(integer);
|
|
2185
2185
|
var IDENTIFIER_PROPERTY_ATTRIBUTES$1 = {
|
|
2186
2186
|
value: true,
|
|
2187
2187
|
enumerable: false,
|
|
@@ -2739,7 +2739,7 @@ var graphTypes = {};
|
|
|
2739
2739
|
|
|
2740
2740
|
Object.defineProperty(graphTypes, "__esModule", { value: true });
|
|
2741
2741
|
graphTypes.isPathSegment = graphTypes.PathSegment = graphTypes.isPath = graphTypes.Path = graphTypes.isUnboundRelationship = graphTypes.UnboundRelationship = graphTypes.isRelationship = graphTypes.Relationship = graphTypes.isNode = graphTypes.Node = void 0;
|
|
2742
|
-
var json_1 = json;
|
|
2742
|
+
var json_1 = json$1;
|
|
2743
2743
|
var IDENTIFIER_PROPERTY_ATTRIBUTES = {
|
|
2744
2744
|
value: true,
|
|
2745
2745
|
enumerable: false,
|
|
@@ -3114,7 +3114,7 @@ var record = {};
|
|
|
3114
3114
|
* See the License for the specific language governing permissions and
|
|
3115
3115
|
* limitations under the License.
|
|
3116
3116
|
*/
|
|
3117
|
-
var __generator$
|
|
3117
|
+
var __generator$n = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
3118
3118
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3119
3119
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3120
3120
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -3282,7 +3282,7 @@ var Record = /** @class */ (function () {
|
|
|
3282
3282
|
*/
|
|
3283
3283
|
Record.prototype.entries = function () {
|
|
3284
3284
|
var i;
|
|
3285
|
-
return __generator$
|
|
3285
|
+
return __generator$n(this, function (_a) {
|
|
3286
3286
|
switch (_a.label) {
|
|
3287
3287
|
case 0:
|
|
3288
3288
|
i = 0;
|
|
@@ -3308,7 +3308,7 @@ var Record = /** @class */ (function () {
|
|
|
3308
3308
|
*/
|
|
3309
3309
|
Record.prototype.values = function () {
|
|
3310
3310
|
var i;
|
|
3311
|
-
return __generator$
|
|
3311
|
+
return __generator$n(this, function (_a) {
|
|
3312
3312
|
switch (_a.label) {
|
|
3313
3313
|
case 0:
|
|
3314
3314
|
i = 0;
|
|
@@ -3334,7 +3334,7 @@ var Record = /** @class */ (function () {
|
|
|
3334
3334
|
*/
|
|
3335
3335
|
Record.prototype[Symbol.iterator] = function () {
|
|
3336
3336
|
var i;
|
|
3337
|
-
return __generator$
|
|
3337
|
+
return __generator$n(this, function (_a) {
|
|
3338
3338
|
switch (_a.label) {
|
|
3339
3339
|
case 0:
|
|
3340
3340
|
i = 0;
|
|
@@ -3527,7 +3527,7 @@ var resultSummary = {};
|
|
|
3527
3527
|
* See the License for the specific language governing permissions and
|
|
3528
3528
|
* limitations under the License.
|
|
3529
3529
|
*/
|
|
3530
|
-
var __createBinding$
|
|
3530
|
+
var __createBinding$b = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3531
3531
|
if (k2 === undefined) k2 = k;
|
|
3532
3532
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3533
3533
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -3538,21 +3538,21 @@ var __createBinding$a = (commonjsGlobal && commonjsGlobal.__createBinding) || (O
|
|
|
3538
3538
|
if (k2 === undefined) k2 = k;
|
|
3539
3539
|
o[k2] = m[k];
|
|
3540
3540
|
}));
|
|
3541
|
-
var __setModuleDefault$
|
|
3541
|
+
var __setModuleDefault$b = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
3542
3542
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3543
3543
|
}) : function(o, v) {
|
|
3544
3544
|
o["default"] = v;
|
|
3545
3545
|
});
|
|
3546
|
-
var __importStar$
|
|
3546
|
+
var __importStar$b = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
3547
3547
|
if (mod && mod.__esModule) return mod;
|
|
3548
3548
|
var result = {};
|
|
3549
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$
|
|
3550
|
-
__setModuleDefault$
|
|
3549
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$b(result, mod, k);
|
|
3550
|
+
__setModuleDefault$b(result, mod);
|
|
3551
3551
|
return result;
|
|
3552
3552
|
};
|
|
3553
3553
|
Object.defineProperty(resultSummary, "__esModule", { value: true });
|
|
3554
3554
|
resultSummary.notificationCategory = resultSummary.notificationSeverityLevel = resultSummary.Stats = resultSummary.QueryStatistics = resultSummary.ProfiledPlan = resultSummary.Plan = resultSummary.Notification = resultSummary.ServerInfo = resultSummary.queryType = void 0;
|
|
3555
|
-
var integer_1$1 = __importStar$
|
|
3555
|
+
var integer_1$1 = __importStar$b(integer);
|
|
3556
3556
|
/**
|
|
3557
3557
|
* A ResultSummary instance contains structured metadata for a {@link Result}.
|
|
3558
3558
|
* @access public
|
|
@@ -4299,7 +4299,7 @@ var bookmarks$1 = {};
|
|
|
4299
4299
|
* See the License for the specific language governing permissions and
|
|
4300
4300
|
* limitations under the License.
|
|
4301
4301
|
*/
|
|
4302
|
-
var __createBinding$
|
|
4302
|
+
var __createBinding$a = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4303
4303
|
if (k2 === undefined) k2 = k;
|
|
4304
4304
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4305
4305
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -4310,16 +4310,16 @@ var __createBinding$9 = (commonjsGlobal && commonjsGlobal.__createBinding) || (O
|
|
|
4310
4310
|
if (k2 === undefined) k2 = k;
|
|
4311
4311
|
o[k2] = m[k];
|
|
4312
4312
|
}));
|
|
4313
|
-
var __setModuleDefault$
|
|
4313
|
+
var __setModuleDefault$a = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
4314
4314
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
4315
4315
|
}) : function(o, v) {
|
|
4316
4316
|
o["default"] = v;
|
|
4317
4317
|
});
|
|
4318
|
-
var __importStar$
|
|
4318
|
+
var __importStar$a = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
4319
4319
|
if (mod && mod.__esModule) return mod;
|
|
4320
4320
|
var result = {};
|
|
4321
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$
|
|
4322
|
-
__setModuleDefault$
|
|
4321
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$a(result, mod, k);
|
|
4322
|
+
__setModuleDefault$a(result, mod);
|
|
4323
4323
|
return result;
|
|
4324
4324
|
};
|
|
4325
4325
|
var __read$u = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
@@ -4349,7 +4349,7 @@ var __spreadArray$n = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
4349
4349
|
};
|
|
4350
4350
|
Object.defineProperty(bookmarks$1, "__esModule", { value: true });
|
|
4351
4351
|
bookmarks$1.Bookmarks = void 0;
|
|
4352
|
-
var util$2 = __importStar$
|
|
4352
|
+
var util$2 = __importStar$a(util$4);
|
|
4353
4353
|
var BOOKMARKS_KEY = 'bookmarks';
|
|
4354
4354
|
var Bookmarks$4 = /** @class */ (function () {
|
|
4355
4355
|
/**
|
|
@@ -4517,7 +4517,7 @@ var connectionHolder$1 = {};
|
|
|
4517
4517
|
|
|
4518
4518
|
var logger$1 = {};
|
|
4519
4519
|
|
|
4520
|
-
var __extends$
|
|
4520
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4521
4521
|
var extendStatics = function (d, b) {
|
|
4522
4522
|
extendStatics = Object.setPrototypeOf ||
|
|
4523
4523
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4665,7 +4665,7 @@ var Logger$2 = /** @class */ (function () {
|
|
|
4665
4665
|
}());
|
|
4666
4666
|
logger$1.Logger = Logger$2;
|
|
4667
4667
|
var NoOpLogger = /** @class */ (function (_super) {
|
|
4668
|
-
__extends$
|
|
4668
|
+
__extends$N(NoOpLogger, _super);
|
|
4669
4669
|
function NoOpLogger() {
|
|
4670
4670
|
return _super.call(this, INFO, function (level, message) { }) || this;
|
|
4671
4671
|
}
|
|
@@ -4746,7 +4746,7 @@ function extractConfiguredLogger(loggingConfig) {
|
|
|
4746
4746
|
* limitations under the License.
|
|
4747
4747
|
*/
|
|
4748
4748
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
4749
|
-
var __extends$
|
|
4749
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4750
4750
|
var extendStatics = function (d, b) {
|
|
4751
4751
|
extendStatics = Object.setPrototypeOf ||
|
|
4752
4752
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4761,7 +4761,7 @@ var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
4761
4761
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4762
4762
|
};
|
|
4763
4763
|
})();
|
|
4764
|
-
var __awaiter$
|
|
4764
|
+
var __awaiter$k = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4765
4765
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4766
4766
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4767
4767
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -4770,7 +4770,7 @@ var __awaiter$i = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
4770
4770
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4771
4771
|
});
|
|
4772
4772
|
};
|
|
4773
|
-
var __generator$
|
|
4773
|
+
var __generator$m = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
4774
4774
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4775
4775
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4776
4776
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -4867,10 +4867,10 @@ var ConnectionHolder = /** @class */ (function () {
|
|
|
4867
4867
|
return true;
|
|
4868
4868
|
};
|
|
4869
4869
|
ConnectionHolder.prototype._createConnectionPromise = function (connectionProvider) {
|
|
4870
|
-
return __awaiter$
|
|
4870
|
+
return __awaiter$k(this, void 0, void 0, function () {
|
|
4871
4871
|
var _a, _b;
|
|
4872
4872
|
var _c;
|
|
4873
|
-
return __generator$
|
|
4873
|
+
return __generator$m(this, function (_d) {
|
|
4874
4874
|
switch (_d.label) {
|
|
4875
4875
|
case 0:
|
|
4876
4876
|
_b = (_a = connectionProvider).acquireConnection;
|
|
@@ -4890,8 +4890,8 @@ var ConnectionHolder = /** @class */ (function () {
|
|
|
4890
4890
|
});
|
|
4891
4891
|
};
|
|
4892
4892
|
ConnectionHolder.prototype._getBookmarks = function () {
|
|
4893
|
-
return __awaiter$
|
|
4894
|
-
return __generator$
|
|
4893
|
+
return __awaiter$k(this, void 0, void 0, function () {
|
|
4894
|
+
return __generator$m(this, function (_a) {
|
|
4895
4895
|
switch (_a.label) {
|
|
4896
4896
|
case 0: return [4 /*yield*/, this._getConnectionAcquistionBookmarks()];
|
|
4897
4897
|
case 1: return [2 /*return*/, _a.sent()];
|
|
@@ -4964,7 +4964,7 @@ connectionHolder$1.ConnectionHolder = ConnectionHolder;
|
|
|
4964
4964
|
* releasing or initilizing
|
|
4965
4965
|
*/
|
|
4966
4966
|
var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
4967
|
-
__extends$
|
|
4967
|
+
__extends$M(ReadOnlyConnectionHolder, _super);
|
|
4968
4968
|
/**
|
|
4969
4969
|
* Constructor
|
|
4970
4970
|
* @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
|
|
@@ -5019,7 +5019,7 @@ var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
|
5019
5019
|
connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
|
|
5020
5020
|
connectionHolder$1.default = ReadOnlyConnectionHolder;
|
|
5021
5021
|
var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
5022
|
-
__extends$
|
|
5022
|
+
__extends$M(EmptyConnectionHolder, _super);
|
|
5023
5023
|
function EmptyConnectionHolder() {
|
|
5024
5024
|
return _super.call(this, {
|
|
5025
5025
|
// Empty logger
|
|
@@ -5037,8 +5037,8 @@ var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
|
5037
5037
|
return true;
|
|
5038
5038
|
};
|
|
5039
5039
|
EmptyConnectionHolder.prototype.getConnection = function () {
|
|
5040
|
-
return __awaiter$
|
|
5041
|
-
return __generator$
|
|
5040
|
+
return __awaiter$k(this, void 0, void 0, function () {
|
|
5041
|
+
return __generator$m(this, function (_a) {
|
|
5042
5042
|
switch (_a.label) {
|
|
5043
5043
|
case 0: return [4 /*yield*/, Promise.reject((0, error_1$7.newError)('This connection holder does not serve connections'))];
|
|
5044
5044
|
case 1: return [2 /*return*/, _a.sent()];
|
|
@@ -5047,8 +5047,8 @@ var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
|
5047
5047
|
});
|
|
5048
5048
|
};
|
|
5049
5049
|
EmptyConnectionHolder.prototype.releaseConnection = function () {
|
|
5050
|
-
return __awaiter$
|
|
5051
|
-
return __generator$
|
|
5050
|
+
return __awaiter$k(this, void 0, void 0, function () {
|
|
5051
|
+
return __generator$m(this, function (_a) {
|
|
5052
5052
|
switch (_a.label) {
|
|
5053
5053
|
case 0: return [4 /*yield*/, Promise.resolve(null)];
|
|
5054
5054
|
case 1: return [2 /*return*/, _a.sent()];
|
|
@@ -5057,8 +5057,8 @@ var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
|
5057
5057
|
});
|
|
5058
5058
|
};
|
|
5059
5059
|
EmptyConnectionHolder.prototype.close = function () {
|
|
5060
|
-
return __awaiter$
|
|
5061
|
-
return __generator$
|
|
5060
|
+
return __awaiter$k(this, void 0, void 0, function () {
|
|
5061
|
+
return __generator$m(this, function (_a) {
|
|
5062
5062
|
switch (_a.label) {
|
|
5063
5063
|
case 0: return [4 /*yield*/, Promise.resolve(null)];
|
|
5064
5064
|
case 1: return [2 /*return*/, _a.sent()];
|
|
@@ -5098,7 +5098,7 @@ var txConfig$1 = {};
|
|
|
5098
5098
|
* See the License for the specific language governing permissions and
|
|
5099
5099
|
* limitations under the License.
|
|
5100
5100
|
*/
|
|
5101
|
-
var __createBinding$
|
|
5101
|
+
var __createBinding$9 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5102
5102
|
if (k2 === undefined) k2 = k;
|
|
5103
5103
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5104
5104
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -5109,21 +5109,21 @@ var __createBinding$8 = (commonjsGlobal && commonjsGlobal.__createBinding) || (O
|
|
|
5109
5109
|
if (k2 === undefined) k2 = k;
|
|
5110
5110
|
o[k2] = m[k];
|
|
5111
5111
|
}));
|
|
5112
|
-
var __setModuleDefault$
|
|
5112
|
+
var __setModuleDefault$9 = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
5113
5113
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5114
5114
|
}) : function(o, v) {
|
|
5115
5115
|
o["default"] = v;
|
|
5116
5116
|
});
|
|
5117
|
-
var __importStar$
|
|
5117
|
+
var __importStar$9 = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
5118
5118
|
if (mod && mod.__esModule) return mod;
|
|
5119
5119
|
var result = {};
|
|
5120
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$
|
|
5121
|
-
__setModuleDefault$
|
|
5120
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$9(result, mod, k);
|
|
5121
|
+
__setModuleDefault$9(result, mod);
|
|
5122
5122
|
return result;
|
|
5123
5123
|
};
|
|
5124
5124
|
Object.defineProperty(txConfig$1, "__esModule", { value: true });
|
|
5125
5125
|
txConfig$1.TxConfig = void 0;
|
|
5126
|
-
var util$1 = __importStar$
|
|
5126
|
+
var util$1 = __importStar$9(util$4);
|
|
5127
5127
|
var error_1$6 = error;
|
|
5128
5128
|
var integer_1 = integer;
|
|
5129
5129
|
/**
|
|
@@ -5203,8 +5203,8 @@ function assertValidConfig(config) {
|
|
|
5203
5203
|
|
|
5204
5204
|
var transactionExecutor$1 = {};
|
|
5205
5205
|
|
|
5206
|
-
var __assign$
|
|
5207
|
-
__assign$
|
|
5206
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5207
|
+
__assign$n = Object.assign || function(t) {
|
|
5208
5208
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5209
5209
|
s = arguments[i];
|
|
5210
5210
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -5212,9 +5212,9 @@ var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
5212
5212
|
}
|
|
5213
5213
|
return t;
|
|
5214
5214
|
};
|
|
5215
|
-
return __assign$
|
|
5215
|
+
return __assign$n.apply(this, arguments);
|
|
5216
5216
|
};
|
|
5217
|
-
var __awaiter$
|
|
5217
|
+
var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5218
5218
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5219
5219
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5220
5220
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -5223,7 +5223,7 @@ var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
5223
5223
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5224
5224
|
});
|
|
5225
5225
|
};
|
|
5226
|
-
var __generator$
|
|
5226
|
+
var __generator$l = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5227
5227
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5228
5228
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5229
5229
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -5372,15 +5372,15 @@ var TransactionExecutor = /** @class */ (function () {
|
|
|
5372
5372
|
});
|
|
5373
5373
|
};
|
|
5374
5374
|
TransactionExecutor.prototype._executeTransactionInsidePromise = function (transactionCreator, transactionWork, resolve, reject, transactionWrapper, executionContext) {
|
|
5375
|
-
return __awaiter$
|
|
5375
|
+
return __awaiter$j(this, void 0, void 0, function () {
|
|
5376
5376
|
var tx, txPromise, _a, error_2, wrap, wrappedTx, resultPromise;
|
|
5377
5377
|
var _this = this;
|
|
5378
|
-
return __generator$
|
|
5378
|
+
return __generator$l(this, function (_b) {
|
|
5379
5379
|
switch (_b.label) {
|
|
5380
5380
|
case 0:
|
|
5381
5381
|
_b.trys.push([0, 4, , 5]);
|
|
5382
5382
|
txPromise = transactionCreator((executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) != null
|
|
5383
|
-
? __assign$
|
|
5383
|
+
? __assign$n({}, executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) : undefined);
|
|
5384
5384
|
if (!this.pipelineBegin) return [3 /*break*/, 1];
|
|
5385
5385
|
_a = txPromise;
|
|
5386
5386
|
return [3 /*break*/, 3];
|
|
@@ -5505,8 +5505,8 @@ var urlUtil$2 = {};
|
|
|
5505
5505
|
* See the License for the specific language governing permissions and
|
|
5506
5506
|
* limitations under the License.
|
|
5507
5507
|
*/
|
|
5508
|
-
var __assign$
|
|
5509
|
-
__assign$
|
|
5508
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5509
|
+
__assign$m = Object.assign || function(t) {
|
|
5510
5510
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5511
5511
|
s = arguments[i];
|
|
5512
5512
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -5514,7 +5514,7 @@ var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
5514
5514
|
}
|
|
5515
5515
|
return t;
|
|
5516
5516
|
};
|
|
5517
|
-
return __assign$
|
|
5517
|
+
return __assign$m.apply(this, arguments);
|
|
5518
5518
|
};
|
|
5519
5519
|
var __read$s = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
5520
5520
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -5776,7 +5776,7 @@ function uriJsParse(value) {
|
|
|
5776
5776
|
// Parse authority and path
|
|
5777
5777
|
if (value.startsWith('//')) {
|
|
5778
5778
|
parts = partition(value.substr(2), '/');
|
|
5779
|
-
parsed = __assign$
|
|
5779
|
+
parsed = __assign$m(__assign$m({}, parsed), parseAuthority(parts[0]));
|
|
5780
5780
|
parsed.path = parts[1] + parts[2];
|
|
5781
5781
|
}
|
|
5782
5782
|
else {
|
|
@@ -5787,7 +5787,7 @@ function uriJsParse(value) {
|
|
|
5787
5787
|
|
|
5788
5788
|
var serverAddress$1 = {};
|
|
5789
5789
|
|
|
5790
|
-
var __createBinding$
|
|
5790
|
+
var __createBinding$8 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5791
5791
|
if (k2 === undefined) k2 = k;
|
|
5792
5792
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5793
5793
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -5798,16 +5798,16 @@ var __createBinding$7 = (commonjsGlobal && commonjsGlobal.__createBinding) || (O
|
|
|
5798
5798
|
if (k2 === undefined) k2 = k;
|
|
5799
5799
|
o[k2] = m[k];
|
|
5800
5800
|
}));
|
|
5801
|
-
var __setModuleDefault$
|
|
5801
|
+
var __setModuleDefault$8 = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
5802
5802
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5803
5803
|
}) : function(o, v) {
|
|
5804
5804
|
o["default"] = v;
|
|
5805
5805
|
});
|
|
5806
|
-
var __importStar$
|
|
5806
|
+
var __importStar$8 = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
5807
5807
|
if (mod && mod.__esModule) return mod;
|
|
5808
5808
|
var result = {};
|
|
5809
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$
|
|
5810
|
-
__setModuleDefault$
|
|
5809
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$8(result, mod, k);
|
|
5810
|
+
__setModuleDefault$8(result, mod);
|
|
5811
5811
|
return result;
|
|
5812
5812
|
};
|
|
5813
5813
|
Object.defineProperty(serverAddress$1, "__esModule", { value: true });
|
|
@@ -5829,7 +5829,7 @@ serverAddress$1.ServerAddress = void 0;
|
|
|
5829
5829
|
* limitations under the License.
|
|
5830
5830
|
*/
|
|
5831
5831
|
var util_1$3 = util$4;
|
|
5832
|
-
var urlUtil$1 = __importStar$
|
|
5832
|
+
var urlUtil$1 = __importStar$8(urlUtil$2);
|
|
5833
5833
|
var ServerAddress$1 = /** @class */ (function () {
|
|
5834
5834
|
function ServerAddress(host, resolved, port, hostPort) {
|
|
5835
5835
|
this._host = (0, util_1$3.assertString)(host, 'host');
|
|
@@ -6080,7 +6080,7 @@ __exportStar(boltAgent$1, exports);
|
|
|
6080
6080
|
* See the License for the specific language governing permissions and
|
|
6081
6081
|
* limitations under the License.
|
|
6082
6082
|
*/
|
|
6083
|
-
var __createBinding$
|
|
6083
|
+
var __createBinding$7 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6084
6084
|
if (k2 === undefined) k2 = k;
|
|
6085
6085
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6086
6086
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -6091,47 +6091,47 @@ var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (O
|
|
|
6091
6091
|
if (k2 === undefined) k2 = k;
|
|
6092
6092
|
o[k2] = m[k];
|
|
6093
6093
|
}));
|
|
6094
|
-
var __setModuleDefault$
|
|
6094
|
+
var __setModuleDefault$7 = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
6095
6095
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
6096
6096
|
}) : function(o, v) {
|
|
6097
6097
|
o["default"] = v;
|
|
6098
6098
|
});
|
|
6099
|
-
var __importStar$
|
|
6099
|
+
var __importStar$7 = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
6100
6100
|
if (mod && mod.__esModule) return mod;
|
|
6101
6101
|
var result = {};
|
|
6102
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$
|
|
6103
|
-
__setModuleDefault$
|
|
6102
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$7(result, mod, k);
|
|
6103
|
+
__setModuleDefault$7(result, mod);
|
|
6104
6104
|
return result;
|
|
6105
6105
|
};
|
|
6106
6106
|
Object.defineProperty(internal, "__esModule", { value: true });
|
|
6107
6107
|
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;
|
|
6108
|
-
var util = __importStar$
|
|
6108
|
+
var util = __importStar$7(util$4);
|
|
6109
6109
|
internal.util = util;
|
|
6110
|
-
var temporalUtil = __importStar$
|
|
6110
|
+
var temporalUtil = __importStar$7(temporalUtil$1);
|
|
6111
6111
|
internal.temporalUtil = temporalUtil;
|
|
6112
|
-
var observer = __importStar$
|
|
6112
|
+
var observer = __importStar$7(observers);
|
|
6113
6113
|
internal.observer = observer;
|
|
6114
|
-
var bookmarks = __importStar$
|
|
6114
|
+
var bookmarks = __importStar$7(bookmarks$1);
|
|
6115
6115
|
internal.bookmarks = bookmarks;
|
|
6116
|
-
var constants = __importStar$
|
|
6116
|
+
var constants = __importStar$7(constants$1);
|
|
6117
6117
|
internal.constants = constants;
|
|
6118
|
-
var connectionHolder = __importStar$
|
|
6118
|
+
var connectionHolder = __importStar$7(connectionHolder$1);
|
|
6119
6119
|
internal.connectionHolder = connectionHolder;
|
|
6120
|
-
var txConfig = __importStar$
|
|
6120
|
+
var txConfig = __importStar$7(txConfig$1);
|
|
6121
6121
|
internal.txConfig = txConfig;
|
|
6122
|
-
var transactionExecutor = __importStar$
|
|
6122
|
+
var transactionExecutor = __importStar$7(transactionExecutor$1);
|
|
6123
6123
|
internal.transactionExecutor = transactionExecutor;
|
|
6124
|
-
var logger = __importStar$
|
|
6124
|
+
var logger = __importStar$7(logger$1);
|
|
6125
6125
|
internal.logger = logger;
|
|
6126
|
-
var urlUtil = __importStar$
|
|
6126
|
+
var urlUtil = __importStar$7(urlUtil$2);
|
|
6127
6127
|
internal.urlUtil = urlUtil;
|
|
6128
|
-
var serverAddress = __importStar$
|
|
6128
|
+
var serverAddress = __importStar$7(serverAddress$1);
|
|
6129
6129
|
internal.serverAddress = serverAddress;
|
|
6130
|
-
var resolver = __importStar$
|
|
6130
|
+
var resolver = __importStar$7(resolver$1);
|
|
6131
6131
|
internal.resolver = resolver;
|
|
6132
|
-
var objectUtil$1 = __importStar$
|
|
6132
|
+
var objectUtil$1 = __importStar$7(objectUtil$2);
|
|
6133
6133
|
internal.objectUtil = objectUtil$1;
|
|
6134
|
-
var boltAgent = __importStar$
|
|
6134
|
+
var boltAgent = __importStar$7(browser$1);
|
|
6135
6135
|
internal.boltAgent = boltAgent;
|
|
6136
6136
|
|
|
6137
6137
|
/**
|
|
@@ -6150,7 +6150,7 @@ internal.boltAgent = boltAgent;
|
|
|
6150
6150
|
* See the License for the specific language governing permissions and
|
|
6151
6151
|
* limitations under the License.
|
|
6152
6152
|
*/
|
|
6153
|
-
var __awaiter$
|
|
6153
|
+
var __awaiter$i = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6154
6154
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6155
6155
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6156
6156
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -6159,7 +6159,7 @@ var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
6159
6159
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6160
6160
|
});
|
|
6161
6161
|
};
|
|
6162
|
-
var __generator$
|
|
6162
|
+
var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
6163
6163
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
6164
6164
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
6165
6165
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -6375,9 +6375,9 @@ var Result = /** @class */ (function () {
|
|
|
6375
6375
|
state.streaming.resume();
|
|
6376
6376
|
}
|
|
6377
6377
|
};
|
|
6378
|
-
var initializeObserver = function () { return __awaiter$
|
|
6378
|
+
var initializeObserver = function () { return __awaiter$i(_this, void 0, void 0, function () {
|
|
6379
6379
|
var _b;
|
|
6380
|
-
return __generator$
|
|
6380
|
+
return __generator$k(this, function (_c) {
|
|
6381
6381
|
switch (_c.label) {
|
|
6382
6382
|
case 0:
|
|
6383
6383
|
if (!(state.queuedObserver === undefined)) return [3 /*break*/, 2];
|
|
@@ -6399,9 +6399,9 @@ var Result = /** @class */ (function () {
|
|
|
6399
6399
|
return true;
|
|
6400
6400
|
};
|
|
6401
6401
|
return {
|
|
6402
|
-
next: function () { return __awaiter$
|
|
6402
|
+
next: function () { return __awaiter$i(_this, void 0, void 0, function () {
|
|
6403
6403
|
var queuedObserver, next;
|
|
6404
|
-
return __generator$
|
|
6404
|
+
return __generator$k(this, function (_b) {
|
|
6405
6405
|
switch (_b.label) {
|
|
6406
6406
|
case 0:
|
|
6407
6407
|
if (state.finished) {
|
|
@@ -6423,10 +6423,10 @@ var Result = /** @class */ (function () {
|
|
|
6423
6423
|
}
|
|
6424
6424
|
});
|
|
6425
6425
|
}); },
|
|
6426
|
-
return: function (value) { return __awaiter$
|
|
6426
|
+
return: function (value) { return __awaiter$i(_this, void 0, void 0, function () {
|
|
6427
6427
|
var queuedObserver, last;
|
|
6428
6428
|
var _b;
|
|
6429
|
-
return __generator$
|
|
6429
|
+
return __generator$k(this, function (_c) {
|
|
6430
6430
|
switch (_c.label) {
|
|
6431
6431
|
case 0:
|
|
6432
6432
|
if (state.finished) {
|
|
@@ -6448,9 +6448,9 @@ var Result = /** @class */ (function () {
|
|
|
6448
6448
|
}
|
|
6449
6449
|
});
|
|
6450
6450
|
}); },
|
|
6451
|
-
peek: function () { return __awaiter$
|
|
6451
|
+
peek: function () { return __awaiter$i(_this, void 0, void 0, function () {
|
|
6452
6452
|
var queuedObserver;
|
|
6453
|
-
return __generator$
|
|
6453
|
+
return __generator$k(this, function (_b) {
|
|
6454
6454
|
switch (_b.label) {
|
|
6455
6455
|
case 0:
|
|
6456
6456
|
if (state.finished) {
|
|
@@ -6644,9 +6644,9 @@ var Result = /** @class */ (function () {
|
|
|
6644
6644
|
}
|
|
6645
6645
|
function dequeue() {
|
|
6646
6646
|
var _b;
|
|
6647
|
-
return __awaiter$
|
|
6647
|
+
return __awaiter$i(this, void 0, void 0, function () {
|
|
6648
6648
|
var element;
|
|
6649
|
-
return __generator$
|
|
6649
|
+
return __generator$k(this, function (_c) {
|
|
6650
6650
|
switch (_c.label) {
|
|
6651
6651
|
case 0:
|
|
6652
6652
|
if (buffer.length > 0) {
|
|
@@ -6693,9 +6693,9 @@ var Result = /** @class */ (function () {
|
|
|
6693
6693
|
}
|
|
6694
6694
|
},
|
|
6695
6695
|
dequeue: dequeue,
|
|
6696
|
-
dequeueUntilDone: function () { return __awaiter$
|
|
6696
|
+
dequeueUntilDone: function () { return __awaiter$i(_this, void 0, void 0, function () {
|
|
6697
6697
|
var element;
|
|
6698
|
-
return __generator$
|
|
6698
|
+
return __generator$k(this, function (_b) {
|
|
6699
6699
|
switch (_b.label) {
|
|
6700
6700
|
case 0:
|
|
6701
6701
|
return [4 /*yield*/, dequeue()];
|
|
@@ -6709,9 +6709,9 @@ var Result = /** @class */ (function () {
|
|
|
6709
6709
|
}
|
|
6710
6710
|
});
|
|
6711
6711
|
}); },
|
|
6712
|
-
head: function () { return __awaiter$
|
|
6712
|
+
head: function () { return __awaiter$i(_this, void 0, void 0, function () {
|
|
6713
6713
|
var element, element, error_3;
|
|
6714
|
-
return __generator$
|
|
6714
|
+
return __generator$k(this, function (_b) {
|
|
6715
6715
|
switch (_b.label) {
|
|
6716
6716
|
case 0:
|
|
6717
6717
|
if (buffer.length > 0) {
|
|
@@ -6854,6 +6854,9 @@ connectionProvider$1.Releasable = void 0;
|
|
|
6854
6854
|
var Releasable = /** @class */ (function () {
|
|
6855
6855
|
function Releasable() {
|
|
6856
6856
|
}
|
|
6857
|
+
/**
|
|
6858
|
+
* @returns {Promise<void>}
|
|
6859
|
+
*/
|
|
6857
6860
|
Releasable.prototype.release = function () {
|
|
6858
6861
|
throw new Error('Not implemented');
|
|
6859
6862
|
};
|
|
@@ -7009,27 +7012,65 @@ Object.defineProperty(connection$2, "__esModule", { value: true });
|
|
|
7009
7012
|
var Connection$1 = /** @class */ (function () {
|
|
7010
7013
|
function Connection() {
|
|
7011
7014
|
}
|
|
7015
|
+
/**
|
|
7016
|
+
*
|
|
7017
|
+
* @param config
|
|
7018
|
+
* @returns {ResultStreamObserver}
|
|
7019
|
+
*/
|
|
7012
7020
|
Connection.prototype.beginTransaction = function (config) {
|
|
7013
7021
|
throw new Error('Not implemented');
|
|
7014
7022
|
};
|
|
7023
|
+
/**
|
|
7024
|
+
*
|
|
7025
|
+
* @param query
|
|
7026
|
+
* @param parameters
|
|
7027
|
+
* @param config
|
|
7028
|
+
* @returns {ResultStreamObserver}
|
|
7029
|
+
*/
|
|
7015
7030
|
Connection.prototype.run = function (query, parameters, config) {
|
|
7016
7031
|
throw new Error('Not implemented');
|
|
7017
7032
|
};
|
|
7033
|
+
/**
|
|
7034
|
+
*
|
|
7035
|
+
* @param config
|
|
7036
|
+
* @returns {ResultStreamObserver}
|
|
7037
|
+
*/
|
|
7018
7038
|
Connection.prototype.commitTransaction = function (config) {
|
|
7019
7039
|
throw new Error('Not implemented');
|
|
7020
7040
|
};
|
|
7041
|
+
/**
|
|
7042
|
+
*
|
|
7043
|
+
* @param config
|
|
7044
|
+
* @returns {ResultStreamObserver}
|
|
7045
|
+
*/
|
|
7021
7046
|
Connection.prototype.rollbackTransaction = function (config) {
|
|
7022
7047
|
throw new Error('Not implemented');
|
|
7023
7048
|
};
|
|
7049
|
+
/**
|
|
7050
|
+
*
|
|
7051
|
+
* @returns {Promise<void>}
|
|
7052
|
+
*/
|
|
7024
7053
|
Connection.prototype.resetAndFlush = function () {
|
|
7025
7054
|
throw new Error('Not implemented');
|
|
7026
7055
|
};
|
|
7056
|
+
/**
|
|
7057
|
+
*
|
|
7058
|
+
* @returns {boolean}
|
|
7059
|
+
*/
|
|
7027
7060
|
Connection.prototype.isOpen = function () {
|
|
7028
7061
|
throw new Error('Not implemented');
|
|
7029
7062
|
};
|
|
7063
|
+
/**
|
|
7064
|
+
*
|
|
7065
|
+
* @returns {number}
|
|
7066
|
+
*/
|
|
7030
7067
|
Connection.prototype.getProtocolVersion = function () {
|
|
7031
7068
|
throw new Error('Not implemented');
|
|
7032
7069
|
};
|
|
7070
|
+
/**
|
|
7071
|
+
*
|
|
7072
|
+
* @returns {boolean}
|
|
7073
|
+
*/
|
|
7033
7074
|
Connection.prototype.hasOngoingObservableRequests = function () {
|
|
7034
7075
|
throw new Error('Not implemented');
|
|
7035
7076
|
};
|
|
@@ -7055,7 +7096,7 @@ var transaction = {};
|
|
|
7055
7096
|
* See the License for the specific language governing permissions and
|
|
7056
7097
|
* limitations under the License.
|
|
7057
7098
|
*/
|
|
7058
|
-
var __awaiter$
|
|
7099
|
+
var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7059
7100
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7060
7101
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7061
7102
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -7064,7 +7105,7 @@ var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
7064
7105
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7065
7106
|
});
|
|
7066
7107
|
};
|
|
7067
|
-
var __generator$
|
|
7108
|
+
var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
7068
7109
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
7069
7110
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
7070
7111
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -7160,10 +7201,10 @@ var Transaction = /** @class */ (function () {
|
|
|
7160
7201
|
var _this = this;
|
|
7161
7202
|
this._connectionHolder
|
|
7162
7203
|
.getConnection()
|
|
7163
|
-
.then(function (connection) { return __awaiter$
|
|
7204
|
+
.then(function (connection) { return __awaiter$h(_this, void 0, void 0, function () {
|
|
7164
7205
|
var _a;
|
|
7165
7206
|
var _this = this;
|
|
7166
|
-
return __generator$
|
|
7207
|
+
return __generator$j(this, function (_b) {
|
|
7167
7208
|
switch (_b.label) {
|
|
7168
7209
|
case 0:
|
|
7169
7210
|
this._onConnection();
|
|
@@ -7301,8 +7342,8 @@ var Transaction = /** @class */ (function () {
|
|
|
7301
7342
|
* @returns {Promise<void>} An empty promise if closed successfully or error if any error happened during
|
|
7302
7343
|
*/
|
|
7303
7344
|
Transaction.prototype.close = function () {
|
|
7304
|
-
return __awaiter$
|
|
7305
|
-
return __generator$
|
|
7345
|
+
return __awaiter$h(this, void 0, void 0, function () {
|
|
7346
|
+
return __generator$j(this, function (_a) {
|
|
7306
7347
|
switch (_a.label) {
|
|
7307
7348
|
case 0:
|
|
7308
7349
|
if (!this.isOpen()) return [3 /*break*/, 2];
|
|
@@ -7645,7 +7686,7 @@ var transactionPromise = {};
|
|
|
7645
7686
|
* See the License for the specific language governing permissions and
|
|
7646
7687
|
* limitations under the License.
|
|
7647
7688
|
*/
|
|
7648
|
-
var __extends$
|
|
7689
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
7649
7690
|
var extendStatics = function (d, b) {
|
|
7650
7691
|
extendStatics = Object.setPrototypeOf ||
|
|
7651
7692
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -7660,8 +7701,8 @@ var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
7660
7701
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7661
7702
|
};
|
|
7662
7703
|
})();
|
|
7663
|
-
var __assign$
|
|
7664
|
-
__assign$
|
|
7704
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
7705
|
+
__assign$l = Object.assign || function(t) {
|
|
7665
7706
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7666
7707
|
s = arguments[i];
|
|
7667
7708
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -7669,7 +7710,7 @@ var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
7669
7710
|
}
|
|
7670
7711
|
return t;
|
|
7671
7712
|
};
|
|
7672
|
-
return __assign$
|
|
7713
|
+
return __assign$l.apply(this, arguments);
|
|
7673
7714
|
};
|
|
7674
7715
|
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7675
7716
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7689,7 +7730,7 @@ var transaction_1 = __importDefault$R(transaction);
|
|
|
7689
7730
|
* @access public
|
|
7690
7731
|
*/
|
|
7691
7732
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
7692
|
-
__extends$
|
|
7733
|
+
__extends$L(TransactionPromise, _super);
|
|
7693
7734
|
/**
|
|
7694
7735
|
* @constructor
|
|
7695
7736
|
* @param {object} args
|
|
@@ -7770,7 +7811,7 @@ var TransactionPromise = /** @class */ (function (_super) {
|
|
|
7770
7811
|
* @access private
|
|
7771
7812
|
*/
|
|
7772
7813
|
TransactionPromise.prototype._toTransaction = function () {
|
|
7773
|
-
return __assign$
|
|
7814
|
+
return __assign$l(__assign$l({}, this), { run: _super.prototype.run.bind(this), commit: _super.prototype.commit.bind(this), rollback: _super.prototype.rollback.bind(this), close: _super.prototype.close.bind(this), isOpen: _super.prototype.isOpen.bind(this), _begin: this._begin.bind(this) });
|
|
7774
7815
|
};
|
|
7775
7816
|
/**
|
|
7776
7817
|
* @access private
|
|
@@ -7824,7 +7865,7 @@ var session = {};
|
|
|
7824
7865
|
* See the License for the specific language governing permissions and
|
|
7825
7866
|
* limitations under the License.
|
|
7826
7867
|
*/
|
|
7827
|
-
var __awaiter$
|
|
7868
|
+
var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7828
7869
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7829
7870
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7830
7871
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -7833,7 +7874,7 @@ var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
7833
7874
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7834
7875
|
});
|
|
7835
7876
|
};
|
|
7836
|
-
var __generator$
|
|
7877
|
+
var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
7837
7878
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
7838
7879
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
7839
7880
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -7986,10 +8027,10 @@ var Session = /** @class */ (function () {
|
|
|
7986
8027
|
var autoCommitTxConfig = (transactionConfig != null)
|
|
7987
8028
|
? new tx_config_1.TxConfig(transactionConfig, this._log)
|
|
7988
8029
|
: tx_config_1.TxConfig.empty();
|
|
7989
|
-
var result = this._run(validatedQuery, params, function (connection) { return __awaiter$
|
|
8030
|
+
var result = this._run(validatedQuery, params, function (connection) { return __awaiter$g(_this, void 0, void 0, function () {
|
|
7990
8031
|
var bookmarks;
|
|
7991
8032
|
var _this = this;
|
|
7992
|
-
return __generator$
|
|
8033
|
+
return __generator$i(this, function (_a) {
|
|
7993
8034
|
switch (_a.label) {
|
|
7994
8035
|
case 0: return [4 /*yield*/, this._bookmarks()];
|
|
7995
8036
|
case 1:
|
|
@@ -8033,8 +8074,8 @@ var Session = /** @class */ (function () {
|
|
|
8033
8074
|
Session.prototype._acquireConnection = function (connectionConsumer) {
|
|
8034
8075
|
var _this = this;
|
|
8035
8076
|
var _a = this._acquireAndConsumeConnection(connectionConsumer), connectionHolder = _a.connectionHolder, resultPromise = _a.resultPromise;
|
|
8036
|
-
return resultPromise.then(function (result) { return __awaiter$
|
|
8037
|
-
return __generator$
|
|
8077
|
+
return resultPromise.then(function (result) { return __awaiter$g(_this, void 0, void 0, function () {
|
|
8078
|
+
return __generator$i(this, function (_a) {
|
|
8038
8079
|
switch (_a.label) {
|
|
8039
8080
|
case 0: return [4 /*yield*/, connectionHolder.releaseConnection()];
|
|
8040
8081
|
case 1:
|
|
@@ -8159,9 +8200,9 @@ var Session = /** @class */ (function () {
|
|
|
8159
8200
|
};
|
|
8160
8201
|
Session.prototype._bookmarks = function () {
|
|
8161
8202
|
var _a;
|
|
8162
|
-
return __awaiter$
|
|
8203
|
+
return __awaiter$g(this, void 0, void 0, function () {
|
|
8163
8204
|
var bookmarks;
|
|
8164
|
-
return __generator$
|
|
8205
|
+
return __generator$i(this, function (_b) {
|
|
8165
8206
|
switch (_b.label) {
|
|
8166
8207
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
8167
8208
|
case 1:
|
|
@@ -8284,9 +8325,9 @@ var Session = /** @class */ (function () {
|
|
|
8284
8325
|
};
|
|
8285
8326
|
Session.prototype._getConnectionAcquistionBookmarks = function () {
|
|
8286
8327
|
var _a;
|
|
8287
|
-
return __awaiter$
|
|
8328
|
+
return __awaiter$g(this, void 0, void 0, function () {
|
|
8288
8329
|
var bookmarks;
|
|
8289
|
-
return __generator$
|
|
8330
|
+
return __generator$i(this, function (_b) {
|
|
8290
8331
|
switch (_b.label) {
|
|
8291
8332
|
case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
|
|
8292
8333
|
case 1:
|
|
@@ -8318,8 +8359,8 @@ var Session = /** @class */ (function () {
|
|
|
8318
8359
|
* @return {Promise}
|
|
8319
8360
|
*/
|
|
8320
8361
|
Session.prototype.close = function () {
|
|
8321
|
-
return __awaiter$
|
|
8322
|
-
return __generator$
|
|
8362
|
+
return __awaiter$g(this, void 0, void 0, function () {
|
|
8363
|
+
return __generator$i(this, function (_a) {
|
|
8323
8364
|
switch (_a.label) {
|
|
8324
8365
|
case 0:
|
|
8325
8366
|
if (!this._open) return [3 /*break*/, 3];
|
|
@@ -8433,7 +8474,7 @@ var bookmarkManager$1 = {};
|
|
|
8433
8474
|
* See the License for the specific language governing permissions and
|
|
8434
8475
|
* limitations under the License.
|
|
8435
8476
|
*/
|
|
8436
|
-
var __awaiter$
|
|
8477
|
+
var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8437
8478
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8438
8479
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8439
8480
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -8442,7 +8483,7 @@ var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
8442
8483
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8443
8484
|
});
|
|
8444
8485
|
};
|
|
8445
|
-
var __generator$
|
|
8486
|
+
var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
8446
8487
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8447
8488
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
8448
8489
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -8531,8 +8572,8 @@ var BookmarkManager = /** @class */ (function () {
|
|
|
8531
8572
|
* @returns {void}
|
|
8532
8573
|
*/
|
|
8533
8574
|
BookmarkManager.prototype.updateBookmarks = function (previousBookmarks, newBookmarks) {
|
|
8534
|
-
return __awaiter$
|
|
8535
|
-
return __generator$
|
|
8575
|
+
return __awaiter$f(this, void 0, void 0, function () {
|
|
8576
|
+
return __generator$h(this, function (_a) {
|
|
8536
8577
|
throw new Error('Not implemented');
|
|
8537
8578
|
});
|
|
8538
8579
|
});
|
|
@@ -8543,8 +8584,8 @@ var BookmarkManager = /** @class */ (function () {
|
|
|
8543
8584
|
* @returns {Iterable<string>} The set of bookmarks
|
|
8544
8585
|
*/
|
|
8545
8586
|
BookmarkManager.prototype.getBookmarks = function () {
|
|
8546
|
-
return __awaiter$
|
|
8547
|
-
return __generator$
|
|
8587
|
+
return __awaiter$f(this, void 0, void 0, function () {
|
|
8588
|
+
return __generator$h(this, function (_a) {
|
|
8548
8589
|
throw new Error('Not implemented');
|
|
8549
8590
|
});
|
|
8550
8591
|
});
|
|
@@ -8580,10 +8621,10 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
8580
8621
|
this._bookmarksConsumer = _bookmarksConsumer;
|
|
8581
8622
|
}
|
|
8582
8623
|
Neo4jBookmarkManager.prototype.updateBookmarks = function (previousBookmarks, newBookmarks) {
|
|
8583
|
-
return __awaiter$
|
|
8624
|
+
return __awaiter$f(this, void 0, void 0, function () {
|
|
8584
8625
|
var bookmarks, previousBookmarks_1, previousBookmarks_1_1, bm, newBookmarks_1, newBookmarks_1_1, bm;
|
|
8585
8626
|
var e_1, _a, e_2, _b;
|
|
8586
|
-
return __generator$
|
|
8627
|
+
return __generator$h(this, function (_c) {
|
|
8587
8628
|
switch (_c.label) {
|
|
8588
8629
|
case 0:
|
|
8589
8630
|
bookmarks = this._bookmarks;
|
|
@@ -8625,10 +8666,10 @@ var Neo4jBookmarkManager = /** @class */ (function () {
|
|
|
8625
8666
|
};
|
|
8626
8667
|
Neo4jBookmarkManager.prototype.getBookmarks = function () {
|
|
8627
8668
|
var _a;
|
|
8628
|
-
return __awaiter$
|
|
8669
|
+
return __awaiter$f(this, void 0, void 0, function () {
|
|
8629
8670
|
var bookmarks, suppliedBookmarks, suppliedBookmarks_1, suppliedBookmarks_1_1, bm;
|
|
8630
8671
|
var e_3, _b;
|
|
8631
|
-
return __generator$
|
|
8672
|
+
return __generator$h(this, function (_c) {
|
|
8632
8673
|
switch (_c.label) {
|
|
8633
8674
|
case 0:
|
|
8634
8675
|
bookmarks = new Set(this._bookmarks);
|
|
@@ -8676,7 +8717,7 @@ var resultTransformers$1 = {};
|
|
|
8676
8717
|
* See the License for the specific language governing permissions and
|
|
8677
8718
|
* limitations under the License.
|
|
8678
8719
|
*/
|
|
8679
|
-
var __awaiter$
|
|
8720
|
+
var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8680
8721
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8681
8722
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8682
8723
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -8685,7 +8726,7 @@ var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
8685
8726
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8686
8727
|
});
|
|
8687
8728
|
};
|
|
8688
|
-
var __generator$
|
|
8729
|
+
var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
8689
8730
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8690
8731
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
8691
8732
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -8719,9 +8760,9 @@ Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
|
8719
8760
|
var result_eager_1 = __importDefault$P(resultEager);
|
|
8720
8761
|
var error_1$1 = error;
|
|
8721
8762
|
function createEagerResultFromResult(result) {
|
|
8722
|
-
return __awaiter$
|
|
8763
|
+
return __awaiter$e(this, void 0, void 0, function () {
|
|
8723
8764
|
var _a, summary, records, keys;
|
|
8724
|
-
return __generator$
|
|
8765
|
+
return __generator$g(this, function (_b) {
|
|
8725
8766
|
switch (_b.label) {
|
|
8726
8767
|
case 0: return [4 /*yield*/, result];
|
|
8727
8768
|
case 1:
|
|
@@ -8835,8 +8876,8 @@ var ResultTransformers = /** @class */ (function () {
|
|
|
8835
8876
|
if (config == null || (config.collect == null && config.map == null)) {
|
|
8836
8877
|
throw (0, error_1$1.newError)('Requires a map or/and a collect functions.');
|
|
8837
8878
|
}
|
|
8838
|
-
return function (result) { return __awaiter$
|
|
8839
|
-
return __generator$
|
|
8879
|
+
return function (result) { return __awaiter$e(_this, void 0, void 0, function () {
|
|
8880
|
+
return __generator$g(this, function (_a) {
|
|
8840
8881
|
switch (_a.label) {
|
|
8841
8882
|
case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {
|
|
8842
8883
|
var state = { records: [], keys: [] };
|
|
@@ -8901,7 +8942,7 @@ var queryExecutor = {};
|
|
|
8901
8942
|
* See the License for the specific language governing permissions and
|
|
8902
8943
|
* limitations under the License.
|
|
8903
8944
|
*/
|
|
8904
|
-
var __awaiter$
|
|
8945
|
+
var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8905
8946
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8906
8947
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8907
8948
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -8910,7 +8951,7 @@ var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
8910
8951
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8911
8952
|
});
|
|
8912
8953
|
};
|
|
8913
|
-
var __generator$
|
|
8954
|
+
var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
8914
8955
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8915
8956
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
8916
8957
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -8944,10 +8985,10 @@ var QueryExecutor = /** @class */ (function () {
|
|
|
8944
8985
|
this._createSession = _createSession;
|
|
8945
8986
|
}
|
|
8946
8987
|
QueryExecutor.prototype.execute = function (config, query, parameters) {
|
|
8947
|
-
return __awaiter$
|
|
8988
|
+
return __awaiter$d(this, void 0, void 0, function () {
|
|
8948
8989
|
var session, executeInTransaction;
|
|
8949
8990
|
var _this = this;
|
|
8950
|
-
return __generator$
|
|
8991
|
+
return __generator$f(this, function (_a) {
|
|
8951
8992
|
switch (_a.label) {
|
|
8952
8993
|
case 0:
|
|
8953
8994
|
session = this._createSession({
|
|
@@ -8964,9 +9005,9 @@ var QueryExecutor = /** @class */ (function () {
|
|
|
8964
9005
|
executeInTransaction = config.routing === 'READ'
|
|
8965
9006
|
? session.executeRead.bind(session)
|
|
8966
9007
|
: session.executeWrite.bind(session);
|
|
8967
|
-
return [4 /*yield*/, executeInTransaction(function (tx) { return __awaiter$
|
|
9008
|
+
return [4 /*yield*/, executeInTransaction(function (tx) { return __awaiter$d(_this, void 0, void 0, function () {
|
|
8968
9009
|
var result;
|
|
8969
|
-
return __generator$
|
|
9010
|
+
return __generator$f(this, function (_a) {
|
|
8970
9011
|
switch (_a.label) {
|
|
8971
9012
|
case 0:
|
|
8972
9013
|
result = tx.run(query, parameters);
|
|
@@ -8989,7 +9030,7 @@ var QueryExecutor = /** @class */ (function () {
|
|
|
8989
9030
|
}());
|
|
8990
9031
|
queryExecutor.default = QueryExecutor;
|
|
8991
9032
|
|
|
8992
|
-
var __awaiter$
|
|
9033
|
+
var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8993
9034
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8994
9035
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8995
9036
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -8998,7 +9039,7 @@ var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
8998
9039
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8999
9040
|
});
|
|
9000
9041
|
};
|
|
9001
|
-
var __generator$
|
|
9042
|
+
var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
9002
9043
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
9003
9044
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
9004
9045
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -9489,9 +9530,9 @@ var Driver$1 = /** @class */ (function () {
|
|
|
9489
9530
|
Driver.prototype.executeQuery = function (query, parameters, config) {
|
|
9490
9531
|
var _a, _b, _c;
|
|
9491
9532
|
if (config === void 0) { config = {}; }
|
|
9492
|
-
return __awaiter$
|
|
9533
|
+
return __awaiter$c(this, void 0, void 0, function () {
|
|
9493
9534
|
var bookmarkManager, resultTransformer, routingConfig;
|
|
9494
|
-
return __generator$
|
|
9535
|
+
return __generator$e(this, function (_d) {
|
|
9495
9536
|
switch (_d.label) {
|
|
9496
9537
|
case 0:
|
|
9497
9538
|
bookmarkManager = config.bookmarkManager === null ? undefined : ((_a = config.bookmarkManager) !== null && _a !== void 0 ? _a : this.executeQueryBookmarkManager);
|
|
@@ -9543,9 +9584,9 @@ var Driver$1 = /** @class */ (function () {
|
|
|
9543
9584
|
*/
|
|
9544
9585
|
Driver.prototype.verifyAuthentication = function (_a) {
|
|
9545
9586
|
var _b = _a === void 0 ? {} : _a, database = _b.database, auth = _b.auth;
|
|
9546
|
-
return __awaiter$
|
|
9587
|
+
return __awaiter$c(this, void 0, void 0, function () {
|
|
9547
9588
|
var connectionProvider;
|
|
9548
|
-
return __generator$
|
|
9589
|
+
return __generator$e(this, function (_c) {
|
|
9549
9590
|
switch (_c.label) {
|
|
9550
9591
|
case 0:
|
|
9551
9592
|
connectionProvider = this._getOrCreateConnectionProvider();
|
|
@@ -9775,6 +9816,7 @@ function validateConfig(config, log) {
|
|
|
9775
9816
|
}
|
|
9776
9817
|
/**
|
|
9777
9818
|
* @private
|
|
9819
|
+
* @returns {void}
|
|
9778
9820
|
*/
|
|
9779
9821
|
function sanitizeConfig(config) {
|
|
9780
9822
|
config.maxConnectionLifetime = sanitizeIntValue(config.maxConnectionLifetime, DEFAULT_MAX_CONNECTION_LIFETIME);
|
|
@@ -9787,6 +9829,7 @@ function sanitizeConfig(config) {
|
|
|
9787
9829
|
}
|
|
9788
9830
|
/**
|
|
9789
9831
|
* @private
|
|
9832
|
+
* @returns {number}
|
|
9790
9833
|
*/
|
|
9791
9834
|
function sanitizeIntValue(rawValue, defaultWhenAbsent) {
|
|
9792
9835
|
var sanitizedValue = parseInt(rawValue, 10);
|
|
@@ -9964,7 +10007,7 @@ var authTokenManager = {};
|
|
|
9964
10007
|
* See the License for the specific language governing permissions and
|
|
9965
10008
|
* limitations under the License.
|
|
9966
10009
|
*/
|
|
9967
|
-
var __awaiter$
|
|
10010
|
+
var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9968
10011
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9969
10012
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9970
10013
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -9973,7 +10016,7 @@ var __awaiter$9 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
9973
10016
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9974
10017
|
});
|
|
9975
10018
|
};
|
|
9976
|
-
var __generator$
|
|
10019
|
+
var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
9977
10020
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
9978
10021
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
9979
10022
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -10113,9 +10156,9 @@ var AuthTokenManagers = /** @class */ (function () {
|
|
|
10113
10156
|
if (typeof tokenProvider !== 'function') {
|
|
10114
10157
|
throw new TypeError("tokenProvider should be function, but got: ".concat(typeof tokenProvider));
|
|
10115
10158
|
}
|
|
10116
|
-
return new ExpirationBasedAuthTokenManager(function () { return __awaiter$
|
|
10159
|
+
return new ExpirationBasedAuthTokenManager(function () { return __awaiter$b(_this, void 0, void 0, function () {
|
|
10117
10160
|
var _a;
|
|
10118
|
-
return __generator$
|
|
10161
|
+
return __generator$d(this, function (_b) {
|
|
10119
10162
|
switch (_b.label) {
|
|
10120
10163
|
case 0:
|
|
10121
10164
|
_a = {};
|
|
@@ -10171,8 +10214,8 @@ var ExpirationBasedAuthTokenManager = /** @class */ (function () {
|
|
|
10171
10214
|
}
|
|
10172
10215
|
ExpirationBasedAuthTokenManager.prototype.getToken = function () {
|
|
10173
10216
|
var _a;
|
|
10174
|
-
return __awaiter$
|
|
10175
|
-
return __generator$
|
|
10217
|
+
return __awaiter$b(this, void 0, void 0, function () {
|
|
10218
|
+
return __generator$d(this, function (_b) {
|
|
10176
10219
|
switch (_b.label) {
|
|
10177
10220
|
case 0:
|
|
10178
10221
|
if (!(this._currentAuthData === undefined ||
|
|
@@ -10221,9 +10264,9 @@ var ExpirationBasedAuthTokenManager = /** @class */ (function () {
|
|
|
10221
10264
|
}
|
|
10222
10265
|
};
|
|
10223
10266
|
ExpirationBasedAuthTokenManager.prototype._refreshAuthToken = function () {
|
|
10224
|
-
return __awaiter$
|
|
10267
|
+
return __awaiter$b(this, void 0, void 0, function () {
|
|
10225
10268
|
var _this = this;
|
|
10226
|
-
return __generator$
|
|
10269
|
+
return __generator$d(this, function (_a) {
|
|
10227
10270
|
switch (_a.label) {
|
|
10228
10271
|
case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {
|
|
10229
10272
|
_this._scheduleRefreshAuthToken({
|
|
@@ -10269,7 +10312,7 @@ var types$1 = {};
|
|
|
10269
10312
|
* See the License for the specific language governing permissions and
|
|
10270
10313
|
* limitations under the License.
|
|
10271
10314
|
*/
|
|
10272
|
-
var __extends$
|
|
10315
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
10273
10316
|
var extendStatics = function (d, b) {
|
|
10274
10317
|
extendStatics = Object.setPrototypeOf ||
|
|
10275
10318
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10536,12 +10579,23 @@ var Config = /** @class */ (function () {
|
|
|
10536
10579
|
* @type {boolean}
|
|
10537
10580
|
*/
|
|
10538
10581
|
this.telemetryDisabled = false;
|
|
10582
|
+
/**
|
|
10583
|
+
* Client Certificate used for mutual TLS.
|
|
10584
|
+
*
|
|
10585
|
+
* A {@link ClientCertificateProvider} can be configure for scenarios
|
|
10586
|
+
* where the {@link ClientCertificate} might change over time.
|
|
10587
|
+
*
|
|
10588
|
+
* @type {ClientCertificate|ClientCertificateProvider|undefined}
|
|
10589
|
+
* @experimental Exposed as preview feature.
|
|
10590
|
+
* @since 5.19
|
|
10591
|
+
*/
|
|
10592
|
+
this.clientCertificate = undefined;
|
|
10539
10593
|
}
|
|
10540
10594
|
return Config;
|
|
10541
10595
|
}());
|
|
10542
10596
|
types$1.Config = Config;
|
|
10543
10597
|
var InternalConfig = /** @class */ (function (_super) {
|
|
10544
|
-
__extends$
|
|
10598
|
+
__extends$K(InternalConfig, _super);
|
|
10545
10599
|
function InternalConfig() {
|
|
10546
10600
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10547
10601
|
}
|
|
@@ -10549,6 +10603,375 @@ var InternalConfig = /** @class */ (function (_super) {
|
|
|
10549
10603
|
}(Config));
|
|
10550
10604
|
types$1.InternalConfig = InternalConfig;
|
|
10551
10605
|
|
|
10606
|
+
var clientCertificate = {};
|
|
10607
|
+
|
|
10608
|
+
/**
|
|
10609
|
+
* Copyright (c) "Neo4j"
|
|
10610
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
10611
|
+
*
|
|
10612
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10613
|
+
* you may not use this file except in compliance with the License.
|
|
10614
|
+
* You may obtain a copy of the License at
|
|
10615
|
+
*
|
|
10616
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10617
|
+
*
|
|
10618
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10619
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10620
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10621
|
+
* See the License for the specific language governing permissions and
|
|
10622
|
+
* limitations under the License.
|
|
10623
|
+
*/
|
|
10624
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
10625
|
+
var extendStatics = function (d, b) {
|
|
10626
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10627
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10628
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10629
|
+
return extendStatics(d, b);
|
|
10630
|
+
};
|
|
10631
|
+
return function (d, b) {
|
|
10632
|
+
if (typeof b !== "function" && b !== null)
|
|
10633
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10634
|
+
extendStatics(d, b);
|
|
10635
|
+
function __() { this.constructor = d; }
|
|
10636
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10637
|
+
};
|
|
10638
|
+
})();
|
|
10639
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
10640
|
+
__assign$k = Object.assign || function(t) {
|
|
10641
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10642
|
+
s = arguments[i];
|
|
10643
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10644
|
+
t[p] = s[p];
|
|
10645
|
+
}
|
|
10646
|
+
return t;
|
|
10647
|
+
};
|
|
10648
|
+
return __assign$k.apply(this, arguments);
|
|
10649
|
+
};
|
|
10650
|
+
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10651
|
+
if (k2 === undefined) k2 = k;
|
|
10652
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10653
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10654
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10655
|
+
}
|
|
10656
|
+
Object.defineProperty(o, k2, desc);
|
|
10657
|
+
}) : (function(o, m, k, k2) {
|
|
10658
|
+
if (k2 === undefined) k2 = k;
|
|
10659
|
+
o[k2] = m[k];
|
|
10660
|
+
}));
|
|
10661
|
+
var __setModuleDefault$6 = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10662
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
10663
|
+
}) : function(o, v) {
|
|
10664
|
+
o["default"] = v;
|
|
10665
|
+
});
|
|
10666
|
+
var __importStar$6 = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
10667
|
+
if (mod && mod.__esModule) return mod;
|
|
10668
|
+
var result = {};
|
|
10669
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$6(result, mod, k);
|
|
10670
|
+
__setModuleDefault$6(result, mod);
|
|
10671
|
+
return result;
|
|
10672
|
+
};
|
|
10673
|
+
Object.defineProperty(clientCertificate, "__esModule", { value: true });
|
|
10674
|
+
clientCertificate.resolveCertificateProvider = clientCertificate.clientCertificateProviders = clientCertificate.RotatingClientCertificateProvider = clientCertificate.ClientCertificateProvider = void 0;
|
|
10675
|
+
var json = __importStar$6(json$1);
|
|
10676
|
+
/**
|
|
10677
|
+
* Represents KeyFile represented as file.
|
|
10678
|
+
*
|
|
10679
|
+
* @typedef {object} KeyFileObject
|
|
10680
|
+
* @property {string} path - The path of the file
|
|
10681
|
+
* @property {string|undefined} password - the password of the key. If none,
|
|
10682
|
+
* the password defined at {@link ClientCertificate} will be used.
|
|
10683
|
+
*/
|
|
10684
|
+
/**
|
|
10685
|
+
* Holds the Client TLS certificate information.
|
|
10686
|
+
*
|
|
10687
|
+
* Browser instances of the driver should configure the certificate
|
|
10688
|
+
* in the system.
|
|
10689
|
+
*
|
|
10690
|
+
* Files defined in the {@link ClientCertificate#certfile}
|
|
10691
|
+
* and {@link ClientCertificate#keyfile} will read and loaded to
|
|
10692
|
+
* memory to fill the fields `cert` and `key` in security context.
|
|
10693
|
+
*
|
|
10694
|
+
* @interface
|
|
10695
|
+
* @see https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions
|
|
10696
|
+
* @experimental Exposed as preview feature.
|
|
10697
|
+
* @since 5.19
|
|
10698
|
+
*/
|
|
10699
|
+
var ClientCertificate = /** @class */ (function () {
|
|
10700
|
+
function ClientCertificate() {
|
|
10701
|
+
/**
|
|
10702
|
+
* The path to client certificate file.
|
|
10703
|
+
*
|
|
10704
|
+
* @type {string|string[]}
|
|
10705
|
+
*/
|
|
10706
|
+
this.certfile = '';
|
|
10707
|
+
/**
|
|
10708
|
+
* The path to the key file.
|
|
10709
|
+
*
|
|
10710
|
+
* @type {string|string[]|KeyFileObject|KeyFileObject[]}
|
|
10711
|
+
*/
|
|
10712
|
+
this.keyfile = '';
|
|
10713
|
+
/**
|
|
10714
|
+
* The key's password.
|
|
10715
|
+
*
|
|
10716
|
+
* @type {string|undefined}
|
|
10717
|
+
*/
|
|
10718
|
+
this.password = undefined;
|
|
10719
|
+
}
|
|
10720
|
+
return ClientCertificate;
|
|
10721
|
+
}());
|
|
10722
|
+
clientCertificate.default = ClientCertificate;
|
|
10723
|
+
/**
|
|
10724
|
+
* Provides a client certificate to the driver for mutual TLS.
|
|
10725
|
+
*
|
|
10726
|
+
* The driver will call {@link ClientCertificateProvider#hasUpdate()} to check if the client wants to update the certificate.
|
|
10727
|
+
* If so, it will call {@link ClientCertificateProvider#getCertificate()} to get the new certificate.
|
|
10728
|
+
*
|
|
10729
|
+
* The certificate is only used as a second factor for authentication authenticating the client.
|
|
10730
|
+
* The DMBS user still needs to authenticate with an authentication token.
|
|
10731
|
+
*
|
|
10732
|
+
* All implementations of this interface must be thread-safe and non-blocking for caller threads.
|
|
10733
|
+
* For instance, IO operations must not be done on the calling thread.
|
|
10734
|
+
*
|
|
10735
|
+
* Note that the work done in the methods of this interface count towards the connectionAcquisition.
|
|
10736
|
+
* Should fetching the certificate be particularly slow, it might be necessary to increase the timeout.
|
|
10737
|
+
*
|
|
10738
|
+
* @interface
|
|
10739
|
+
* @experimental Exposed as preview feature.
|
|
10740
|
+
* @since 5.19
|
|
10741
|
+
*/
|
|
10742
|
+
var ClientCertificateProvider = /** @class */ (function () {
|
|
10743
|
+
function ClientCertificateProvider() {
|
|
10744
|
+
}
|
|
10745
|
+
/**
|
|
10746
|
+
* Indicates whether the client wants the driver to update the certificate.
|
|
10747
|
+
*
|
|
10748
|
+
* @returns {Promise<boolean>|boolean} true if the client wants the driver to update the certificate
|
|
10749
|
+
*/
|
|
10750
|
+
ClientCertificateProvider.prototype.hasUpdate = function () {
|
|
10751
|
+
throw new Error('Not Implemented');
|
|
10752
|
+
};
|
|
10753
|
+
/**
|
|
10754
|
+
* Returns the certificate to use for new connections.
|
|
10755
|
+
*
|
|
10756
|
+
* Will be called by the driver after {@link ClientCertificateProvider#hasUpdate()} returned true
|
|
10757
|
+
* or when the driver establishes the first connection.
|
|
10758
|
+
*
|
|
10759
|
+
* @returns {Promise<ClientCertificate>|ClientCertificate} the certificate to use for new connections
|
|
10760
|
+
*/
|
|
10761
|
+
ClientCertificateProvider.prototype.getClientCertificate = function () {
|
|
10762
|
+
throw new Error('Not Implemented');
|
|
10763
|
+
};
|
|
10764
|
+
return ClientCertificateProvider;
|
|
10765
|
+
}());
|
|
10766
|
+
clientCertificate.ClientCertificateProvider = ClientCertificateProvider;
|
|
10767
|
+
/**
|
|
10768
|
+
* Interface for {@link ClientCertificateProvider} which provides update certificate function.
|
|
10769
|
+
* @interface
|
|
10770
|
+
* @experimental Exposed as preview feature.
|
|
10771
|
+
* @since 5.19
|
|
10772
|
+
*/
|
|
10773
|
+
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
10774
|
+
__extends$J(RotatingClientCertificateProvider, _super);
|
|
10775
|
+
function RotatingClientCertificateProvider() {
|
|
10776
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10777
|
+
}
|
|
10778
|
+
/**
|
|
10779
|
+
* Updates the certificate stored in the provider.
|
|
10780
|
+
*
|
|
10781
|
+
* To be called by user-code when a new client certificate is available.
|
|
10782
|
+
*
|
|
10783
|
+
* @param {ClientCertificate} certificate - the new certificate
|
|
10784
|
+
* @throws {TypeError} If initialCertificate is not a ClientCertificate.
|
|
10785
|
+
*/
|
|
10786
|
+
RotatingClientCertificateProvider.prototype.updateCertificate = function (certificate) {
|
|
10787
|
+
throw new Error('Not implemented');
|
|
10788
|
+
};
|
|
10789
|
+
return RotatingClientCertificateProvider;
|
|
10790
|
+
}(ClientCertificateProvider));
|
|
10791
|
+
clientCertificate.RotatingClientCertificateProvider = RotatingClientCertificateProvider;
|
|
10792
|
+
/**
|
|
10793
|
+
* Defines the object which holds the common {@link ClientCertificateProviders} used in the Driver
|
|
10794
|
+
*
|
|
10795
|
+
* @experimental Exposed as preview feature.
|
|
10796
|
+
* @since 5.19
|
|
10797
|
+
*/
|
|
10798
|
+
var ClientCertificateProviders = /** @class */ (function () {
|
|
10799
|
+
function ClientCertificateProviders() {
|
|
10800
|
+
}
|
|
10801
|
+
/**
|
|
10802
|
+
*
|
|
10803
|
+
* @param {object} param0 - The params
|
|
10804
|
+
* @param {ClientCertificate} param0.initialCertificate - The certificated used by the driver until {@link RotatingClientCertificateProvider#updateCertificate} get called.
|
|
10805
|
+
*
|
|
10806
|
+
* @returns {RotatingClientCertificateProvider} The rotating client certificate provider
|
|
10807
|
+
* @throws {TypeError} If initialCertificate is not a ClientCertificate.
|
|
10808
|
+
*/
|
|
10809
|
+
ClientCertificateProviders.prototype.rotating = function (_a) {
|
|
10810
|
+
var initialCertificate = _a.initialCertificate;
|
|
10811
|
+
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
10812
|
+
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
10813
|
+
}
|
|
10814
|
+
var certificate = __assign$k({}, initialCertificate);
|
|
10815
|
+
return new InternalRotatingClientCertificateProvider(certificate);
|
|
10816
|
+
};
|
|
10817
|
+
return ClientCertificateProviders;
|
|
10818
|
+
}());
|
|
10819
|
+
/**
|
|
10820
|
+
* Holds the common {@link ClientCertificateProviders} used in the Driver.
|
|
10821
|
+
*
|
|
10822
|
+
* @experimental Exposed as preview feature.
|
|
10823
|
+
* @since 5.19
|
|
10824
|
+
*/
|
|
10825
|
+
var clientCertificateProviders = new ClientCertificateProviders();
|
|
10826
|
+
clientCertificate.clientCertificateProviders = clientCertificateProviders;
|
|
10827
|
+
Object.freeze(clientCertificateProviders);
|
|
10828
|
+
/**
|
|
10829
|
+
* Resolves ClientCertificate or ClientCertificateProvider to a ClientCertificateProvider
|
|
10830
|
+
*
|
|
10831
|
+
* Method validates the input.
|
|
10832
|
+
*
|
|
10833
|
+
* @private
|
|
10834
|
+
* @param input
|
|
10835
|
+
* @returns {ClientCertificateProvider?} A client certificate provider if provided a ClientCertificate or a ClientCertificateProvider
|
|
10836
|
+
* @throws {TypeError} If input is not a ClientCertificate, ClientCertificateProvider, undefined or null.
|
|
10837
|
+
*/
|
|
10838
|
+
function resolveCertificateProvider(input) {
|
|
10839
|
+
if (input == null) {
|
|
10840
|
+
return undefined;
|
|
10841
|
+
}
|
|
10842
|
+
if (typeof input === 'object' && 'hasUpdate' in input && 'getClientCertificate' in input &&
|
|
10843
|
+
typeof input.getClientCertificate === 'function' && typeof input.hasUpdate === 'function') {
|
|
10844
|
+
return input;
|
|
10845
|
+
}
|
|
10846
|
+
if (isClientClientCertificate(input)) {
|
|
10847
|
+
var certificate_1 = __assign$k({}, input);
|
|
10848
|
+
return {
|
|
10849
|
+
getClientCertificate: function () { return certificate_1; },
|
|
10850
|
+
hasUpdate: function () { return false; }
|
|
10851
|
+
};
|
|
10852
|
+
}
|
|
10853
|
+
throw new TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(json.stringify(input)));
|
|
10854
|
+
}
|
|
10855
|
+
clientCertificate.resolveCertificateProvider = resolveCertificateProvider;
|
|
10856
|
+
/**
|
|
10857
|
+
* Verify if object is a client certificate
|
|
10858
|
+
* @private
|
|
10859
|
+
* @param maybeClientCertificate - Maybe the certificate
|
|
10860
|
+
* @returns {boolean} if maybeClientCertificate is a client certificate object
|
|
10861
|
+
*/
|
|
10862
|
+
function isClientClientCertificate(maybeClientCertificate) {
|
|
10863
|
+
return maybeClientCertificate != null &&
|
|
10864
|
+
typeof maybeClientCertificate === 'object' &&
|
|
10865
|
+
'certfile' in maybeClientCertificate && isCertFile(maybeClientCertificate.certfile) &&
|
|
10866
|
+
'keyfile' in maybeClientCertificate && isKeyFile(maybeClientCertificate.keyfile) &&
|
|
10867
|
+
isStringOrNotPresent('password', maybeClientCertificate);
|
|
10868
|
+
}
|
|
10869
|
+
/**
|
|
10870
|
+
* Check value is a cert file
|
|
10871
|
+
* @private
|
|
10872
|
+
* @param {any} value the value
|
|
10873
|
+
* @returns {boolean} is a cert file
|
|
10874
|
+
*/
|
|
10875
|
+
function isCertFile(value) {
|
|
10876
|
+
return isString(value) || isArrayOf(value, isString);
|
|
10877
|
+
}
|
|
10878
|
+
/**
|
|
10879
|
+
* Check if the value is a keyfile.
|
|
10880
|
+
*
|
|
10881
|
+
* @private
|
|
10882
|
+
* @param {any} maybeKeyFile might be a keyfile value
|
|
10883
|
+
* @returns {boolean} the value is a KeyFile
|
|
10884
|
+
*/
|
|
10885
|
+
function isKeyFile(maybeKeyFile) {
|
|
10886
|
+
function check(obj) {
|
|
10887
|
+
return typeof obj === 'string' ||
|
|
10888
|
+
(obj != null &&
|
|
10889
|
+
typeof obj === 'object' &&
|
|
10890
|
+
'path' in obj && typeof obj.path === 'string' &&
|
|
10891
|
+
isStringOrNotPresent('password', obj));
|
|
10892
|
+
}
|
|
10893
|
+
return check(maybeKeyFile) || isArrayOf(maybeKeyFile, check);
|
|
10894
|
+
}
|
|
10895
|
+
/**
|
|
10896
|
+
* Verify if value is string
|
|
10897
|
+
*
|
|
10898
|
+
* @private
|
|
10899
|
+
* @param {any} value the value
|
|
10900
|
+
* @returns {boolean} is string
|
|
10901
|
+
*/
|
|
10902
|
+
function isString(value) {
|
|
10903
|
+
return typeof value === 'string';
|
|
10904
|
+
}
|
|
10905
|
+
/**
|
|
10906
|
+
* Verifies if value is a array of type
|
|
10907
|
+
*
|
|
10908
|
+
* @private
|
|
10909
|
+
* @param {any} value the value
|
|
10910
|
+
* @param {function} isType the type checker
|
|
10911
|
+
* @returns {boolean} value is array of type
|
|
10912
|
+
*/
|
|
10913
|
+
function isArrayOf(value, isType, allowEmpty) {
|
|
10914
|
+
if (allowEmpty === void 0) { allowEmpty = false; }
|
|
10915
|
+
return Array.isArray(value) &&
|
|
10916
|
+
(allowEmpty || value.length > 0) &&
|
|
10917
|
+
value.filter(isType).length === value.length;
|
|
10918
|
+
}
|
|
10919
|
+
/**
|
|
10920
|
+
* Verify if valueName is present in the object and is a string, or not present at all.
|
|
10921
|
+
*
|
|
10922
|
+
* @private
|
|
10923
|
+
* @param {string} valueName The value in the object
|
|
10924
|
+
* @param {object} obj The object
|
|
10925
|
+
* @returns {boolean} if the value is present in object as string or not present
|
|
10926
|
+
*/
|
|
10927
|
+
function isStringOrNotPresent(valueName, obj) {
|
|
10928
|
+
return !(valueName in obj) || obj[valueName] == null || typeof obj[valueName] === 'string';
|
|
10929
|
+
}
|
|
10930
|
+
/**
|
|
10931
|
+
* Internal implementation
|
|
10932
|
+
*
|
|
10933
|
+
* @private
|
|
10934
|
+
*/
|
|
10935
|
+
var InternalRotatingClientCertificateProvider = /** @class */ (function () {
|
|
10936
|
+
function InternalRotatingClientCertificateProvider(_certificate, _updated) {
|
|
10937
|
+
if (_updated === void 0) { _updated = false; }
|
|
10938
|
+
this._certificate = _certificate;
|
|
10939
|
+
this._updated = _updated;
|
|
10940
|
+
}
|
|
10941
|
+
/**
|
|
10942
|
+
*
|
|
10943
|
+
* @returns {boolean|Promise<boolean>}
|
|
10944
|
+
*/
|
|
10945
|
+
InternalRotatingClientCertificateProvider.prototype.hasUpdate = function () {
|
|
10946
|
+
try {
|
|
10947
|
+
return this._updated;
|
|
10948
|
+
}
|
|
10949
|
+
finally {
|
|
10950
|
+
this._updated = false;
|
|
10951
|
+
}
|
|
10952
|
+
};
|
|
10953
|
+
/**
|
|
10954
|
+
*
|
|
10955
|
+
* @returns {ClientCertificate|Promise<ClientCertificate>}
|
|
10956
|
+
*/
|
|
10957
|
+
InternalRotatingClientCertificateProvider.prototype.getClientCertificate = function () {
|
|
10958
|
+
return this._certificate;
|
|
10959
|
+
};
|
|
10960
|
+
/**
|
|
10961
|
+
*
|
|
10962
|
+
* @param certificate
|
|
10963
|
+
* @returns {void}
|
|
10964
|
+
*/
|
|
10965
|
+
InternalRotatingClientCertificateProvider.prototype.updateCertificate = function (certificate) {
|
|
10966
|
+
if (!isClientClientCertificate(certificate)) {
|
|
10967
|
+
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
10968
|
+
}
|
|
10969
|
+
this._certificate = __assign$k({}, certificate);
|
|
10970
|
+
this._updated = true;
|
|
10971
|
+
};
|
|
10972
|
+
return InternalRotatingClientCertificateProvider;
|
|
10973
|
+
}());
|
|
10974
|
+
|
|
10552
10975
|
(function (exports) {
|
|
10553
10976
|
/**
|
|
10554
10977
|
* Copyright (c) "Neo4j"
|
|
@@ -10594,7 +11017,7 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
10594
11017
|
};
|
|
10595
11018
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10596
11019
|
exports.Transaction = exports.Connection = exports.ConnectionProvider = exports.EagerResult = exports.Result = exports.Stats = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.Notification = exports.ServerInfo = exports.queryType = exports.ResultSummary = exports.Record = exports.isPathSegment = exports.PathSegment = exports.isPath = exports.Path = exports.isUnboundRelationship = exports.UnboundRelationship = exports.isRelationship = exports.Relationship = exports.isNode = exports.Node = exports.Time = exports.LocalTime = exports.LocalDateTime = exports.isTime = exports.isLocalTime = exports.isLocalDateTime = exports.isDuration = exports.isDateTime = exports.isDate = exports.Duration = exports.DateTime = exports.Date = exports.Point = exports.isPoint = exports.internal = exports.toString = exports.toNumber = exports.inSafeRange = exports.isInt = exports.int = exports.Integer = exports.error = exports.isRetriableError = exports.Neo4jError = exports.newError = exports.authTokenManagers = void 0;
|
|
10597
|
-
exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationCategory = exports.resultTransformers = exports.routing = exports.staticAuthTokenManager = exports.bookmarkManager = exports.auth = exports.json = exports.driver = exports.types = exports.Driver = exports.Session = exports.TransactionPromise = exports.ManagedTransaction = void 0;
|
|
11020
|
+
exports.resolveCertificateProvider = exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationCategory = exports.resultTransformers = exports.routing = exports.staticAuthTokenManager = exports.bookmarkManager = exports.auth = exports.json = exports.driver = exports.types = exports.Driver = exports.Session = exports.TransactionPromise = exports.ManagedTransaction = void 0;
|
|
10598
11021
|
var error_1 = error;
|
|
10599
11022
|
Object.defineProperty(exports, "newError", { enumerable: true, get: function () { return error_1.newError; } });
|
|
10600
11023
|
Object.defineProperty(exports, "Neo4jError", { enumerable: true, get: function () { return error_1.Neo4jError; } });
|
|
@@ -10679,10 +11102,13 @@ var driver_2 = driver;
|
|
|
10679
11102
|
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return driver_2.routing; } });
|
|
10680
11103
|
var types = __importStar(types$1);
|
|
10681
11104
|
exports.types = types;
|
|
10682
|
-
var json
|
|
10683
|
-
exports.json = json
|
|
11105
|
+
var json = __importStar(json$1);
|
|
11106
|
+
exports.json = json;
|
|
10684
11107
|
var result_transformers_1 = __importDefault(resultTransformers$1);
|
|
10685
11108
|
exports.resultTransformers = result_transformers_1.default;
|
|
11109
|
+
var client_certificate_1 = clientCertificate;
|
|
11110
|
+
Object.defineProperty(exports, "clientCertificateProviders", { enumerable: true, get: function () { return client_certificate_1.clientCertificateProviders; } });
|
|
11111
|
+
Object.defineProperty(exports, "resolveCertificateProvider", { enumerable: true, get: function () { return client_certificate_1.resolveCertificateProvider; } });
|
|
10686
11112
|
var internal$1 = __importStar(internal); // todo: removed afterwards
|
|
10687
11113
|
exports.internal = internal$1;
|
|
10688
11114
|
/**
|
|
@@ -10753,7 +11179,7 @@ var forExport = {
|
|
|
10753
11179
|
Connection: connection_1.default,
|
|
10754
11180
|
types: types,
|
|
10755
11181
|
driver: driver$1,
|
|
10756
|
-
json: json
|
|
11182
|
+
json: json,
|
|
10757
11183
|
auth: auth_1.default,
|
|
10758
11184
|
bookmarkManager: bookmark_manager_1.bookmarkManager,
|
|
10759
11185
|
routing: driver_2.routing,
|
|
@@ -10761,7 +11187,9 @@ var forExport = {
|
|
|
10761
11187
|
notificationCategory: result_summary_1.notificationCategory,
|
|
10762
11188
|
notificationSeverityLevel: result_summary_1.notificationSeverityLevel,
|
|
10763
11189
|
notificationFilterDisabledCategory: notification_filter_1.notificationFilterDisabledCategory,
|
|
10764
|
-
notificationFilterMinimumSeverityLevel: notification_filter_1.notificationFilterMinimumSeverityLevel
|
|
11190
|
+
notificationFilterMinimumSeverityLevel: notification_filter_1.notificationFilterMinimumSeverityLevel,
|
|
11191
|
+
clientCertificateProviders: client_certificate_1.clientCertificateProviders,
|
|
11192
|
+
resolveCertificateProvider: client_certificate_1.resolveCertificateProvider
|
|
10765
11193
|
};
|
|
10766
11194
|
exports.default = forExport;
|
|
10767
11195
|
}(lib$1));
|
|
@@ -13167,7 +13595,7 @@ isIterable$2.isIterable = isIterable$1;
|
|
|
13167
13595
|
|
|
13168
13596
|
var isReadableStreamLike$1 = {};
|
|
13169
13597
|
|
|
13170
|
-
var __generator$
|
|
13598
|
+
var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
13171
13599
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13172
13600
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13173
13601
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -13212,7 +13640,7 @@ var isFunction_1$g = isFunction$1;
|
|
|
13212
13640
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
13213
13641
|
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
13214
13642
|
var reader, _a, value, done;
|
|
13215
|
-
return __generator$
|
|
13643
|
+
return __generator$c(this, function (_b) {
|
|
13216
13644
|
switch (_b.label) {
|
|
13217
13645
|
case 0:
|
|
13218
13646
|
reader = readableStream.getReader();
|
|
@@ -13247,7 +13675,7 @@ function isReadableStreamLike(obj) {
|
|
|
13247
13675
|
}
|
|
13248
13676
|
isReadableStreamLike$1.isReadableStreamLike = isReadableStreamLike;
|
|
13249
13677
|
|
|
13250
|
-
var __awaiter$
|
|
13678
|
+
var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13251
13679
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13252
13680
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13253
13681
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -13256,7 +13684,7 @@ var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
13256
13684
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13257
13685
|
});
|
|
13258
13686
|
};
|
|
13259
|
-
var __generator$
|
|
13687
|
+
var __generator$b = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
13260
13688
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13261
13689
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13262
13690
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -13409,9 +13837,9 @@ innerFrom$1.fromReadableStreamLike = fromReadableStreamLike;
|
|
|
13409
13837
|
function process(asyncIterable, subscriber) {
|
|
13410
13838
|
var asyncIterable_1, asyncIterable_1_1;
|
|
13411
13839
|
var e_2, _a;
|
|
13412
|
-
return __awaiter$
|
|
13840
|
+
return __awaiter$a(this, void 0, void 0, function () {
|
|
13413
13841
|
var value, e_2_1;
|
|
13414
|
-
return __generator$
|
|
13842
|
+
return __generator$b(this, function (_b) {
|
|
13415
13843
|
switch (_b.label) {
|
|
13416
13844
|
case 0:
|
|
13417
13845
|
_b.trys.push([0, 5, 6, 11]);
|
|
@@ -14590,7 +15018,7 @@ fromEventPattern$1.fromEventPattern = fromEventPattern;
|
|
|
14590
15018
|
|
|
14591
15019
|
var generate$1 = {};
|
|
14592
15020
|
|
|
14593
|
-
var __generator$
|
|
15021
|
+
var __generator$a = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
14594
15022
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
14595
15023
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14596
15024
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -14642,7 +15070,7 @@ function generate(initialStateOrOptions, condition, iterate, resultSelectorOrSch
|
|
|
14642
15070
|
}
|
|
14643
15071
|
function gen() {
|
|
14644
15072
|
var state;
|
|
14645
|
-
return __generator$
|
|
15073
|
+
return __generator$a(this, function (_a) {
|
|
14646
15074
|
switch (_a.label) {
|
|
14647
15075
|
case 0:
|
|
14648
15076
|
state = initialState;
|
|
@@ -18737,7 +19165,7 @@ Object.defineProperty(exports, "zipWith", { enumerable: true, get: function () {
|
|
|
18737
19165
|
|
|
18738
19166
|
var resultRx = {};
|
|
18739
19167
|
|
|
18740
|
-
var __awaiter$
|
|
19168
|
+
var __awaiter$9 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18741
19169
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18742
19170
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18743
19171
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -18746,7 +19174,7 @@ var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
18746
19174
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18747
19175
|
});
|
|
18748
19176
|
};
|
|
18749
|
-
var __generator$
|
|
19177
|
+
var __generator$9 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
18750
19178
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
18751
19179
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
18752
19180
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -18962,9 +19390,9 @@ var RxResult = /** @class */ (function () {
|
|
|
18962
19390
|
return this._records;
|
|
18963
19391
|
}
|
|
18964
19392
|
this._records = createFullyControlledSubject(result[Symbol.asyncIterator](), {
|
|
18965
|
-
complete: function () { return __awaiter$
|
|
19393
|
+
complete: function () { return __awaiter$9(_this, void 0, void 0, function () {
|
|
18966
19394
|
var _a, _b;
|
|
18967
|
-
return __generator$
|
|
19395
|
+
return __generator$9(this, function (_c) {
|
|
18968
19396
|
switch (_c.label) {
|
|
18969
19397
|
case 0:
|
|
18970
19398
|
this._state = States.COMPLETED;
|
|
@@ -18991,9 +19419,9 @@ function createFullyControlledSubject(iterator, completeObserver, streamControl)
|
|
|
18991
19419
|
var _this = this;
|
|
18992
19420
|
if (streamControl === void 0) { streamControl = new StreamControl(); }
|
|
18993
19421
|
var subject = new rxjs_1$3.Subject();
|
|
18994
|
-
var pushNextValue = function (result) { return __awaiter$
|
|
19422
|
+
var pushNextValue = function (result) { return __awaiter$9(_this, void 0, void 0, function () {
|
|
18995
19423
|
var _a, done, value, error_1;
|
|
18996
|
-
return __generator$
|
|
19424
|
+
return __generator$9(this, function (_b) {
|
|
18997
19425
|
switch (_b.label) {
|
|
18998
19426
|
case 0:
|
|
18999
19427
|
_b.trys.push([0, 2, 3, 4]);
|
|
@@ -19026,8 +19454,8 @@ function createFullyControlledSubject(iterator, completeObserver, streamControl)
|
|
|
19026
19454
|
});
|
|
19027
19455
|
}); };
|
|
19028
19456
|
function push(value) {
|
|
19029
|
-
return __awaiter$
|
|
19030
|
-
return __generator$
|
|
19457
|
+
return __awaiter$9(this, void 0, void 0, function () {
|
|
19458
|
+
return __generator$9(this, function (_a) {
|
|
19031
19459
|
switch (_a.label) {
|
|
19032
19460
|
case 0: return [4 /*yield*/, pushNextValue(iterator.next(value))];
|
|
19033
19461
|
case 1:
|
|
@@ -19043,7 +19471,7 @@ function createFullyControlledSubject(iterator, completeObserver, streamControl)
|
|
|
19043
19471
|
}
|
|
19044
19472
|
var StreamControl = /** @class */ (function () {
|
|
19045
19473
|
function StreamControl(push) {
|
|
19046
|
-
if (push === void 0) { push = function () { return __awaiter$
|
|
19474
|
+
if (push === void 0) { push = function () { return __awaiter$9(_this, void 0, void 0, function () { return __generator$9(this, function (_a) {
|
|
19047
19475
|
return [2 /*return*/];
|
|
19048
19476
|
}); }); }; }
|
|
19049
19477
|
var _this = this;
|
|
@@ -19072,9 +19500,9 @@ var StreamControl = /** @class */ (function () {
|
|
|
19072
19500
|
configurable: true
|
|
19073
19501
|
});
|
|
19074
19502
|
StreamControl.prototype.resume = function () {
|
|
19075
|
-
return __awaiter$
|
|
19503
|
+
return __awaiter$9(this, void 0, void 0, function () {
|
|
19076
19504
|
var wasPaused;
|
|
19077
|
-
return __generator$
|
|
19505
|
+
return __generator$9(this, function (_a) {
|
|
19078
19506
|
switch (_a.label) {
|
|
19079
19507
|
case 0:
|
|
19080
19508
|
wasPaused = this._paused;
|
|
@@ -19090,8 +19518,8 @@ var StreamControl = /** @class */ (function () {
|
|
|
19090
19518
|
});
|
|
19091
19519
|
};
|
|
19092
19520
|
StreamControl.prototype.push = function () {
|
|
19093
|
-
return __awaiter$
|
|
19094
|
-
return __generator$
|
|
19521
|
+
return __awaiter$9(this, void 0, void 0, function () {
|
|
19522
|
+
return __generator$9(this, function (_a) {
|
|
19095
19523
|
switch (_a.label) {
|
|
19096
19524
|
case 0:
|
|
19097
19525
|
this.pause();
|
|
@@ -19778,7 +20206,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
19778
20206
|
// This is set up this way to keep the version in the code in
|
|
19779
20207
|
// sync with the npm package version, and to allow the build
|
|
19780
20208
|
// system to control version names at packaging time.
|
|
19781
|
-
version$1.default = '5.
|
|
20209
|
+
version$1.default = '5.20.0';
|
|
19782
20210
|
|
|
19783
20211
|
var lib = {};
|
|
19784
20212
|
|
|
@@ -23298,6 +23726,71 @@ var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
|
23298
23726
|
}(BaseHostNameResolver));
|
|
23299
23727
|
browserHostNameResolver.default = BrowserHostNameResolver;
|
|
23300
23728
|
|
|
23729
|
+
var browserClientCertificatesLoader = {};
|
|
23730
|
+
|
|
23731
|
+
var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
23732
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23733
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23734
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23735
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
23736
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23737
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23738
|
+
});
|
|
23739
|
+
};
|
|
23740
|
+
var __generator$8 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
23741
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23742
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
23743
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
23744
|
+
function step(op) {
|
|
23745
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
23746
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
23747
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
23748
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
23749
|
+
switch (op[0]) {
|
|
23750
|
+
case 0: case 1: t = op; break;
|
|
23751
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23752
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23753
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
23754
|
+
default:
|
|
23755
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
23756
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
23757
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
23758
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
23759
|
+
if (t[2]) _.ops.pop();
|
|
23760
|
+
_.trys.pop(); continue;
|
|
23761
|
+
}
|
|
23762
|
+
op = body.call(thisArg, _);
|
|
23763
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
23764
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
23765
|
+
}
|
|
23766
|
+
};
|
|
23767
|
+
Object.defineProperty(browserClientCertificatesLoader, "__esModule", { value: true });
|
|
23768
|
+
/**
|
|
23769
|
+
* Copyright (c) "Neo4j"
|
|
23770
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
23771
|
+
*
|
|
23772
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
23773
|
+
* you may not use this file except in compliance with the License.
|
|
23774
|
+
* You may obtain a copy of the License at
|
|
23775
|
+
*
|
|
23776
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
23777
|
+
*
|
|
23778
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23779
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
23780
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
23781
|
+
* See the License for the specific language governing permissions and
|
|
23782
|
+
* limitations under the License.
|
|
23783
|
+
*/
|
|
23784
|
+
browserClientCertificatesLoader.default = {
|
|
23785
|
+
load: function (clientCertificate) {
|
|
23786
|
+
return __awaiter$8(this, void 0, void 0, function () {
|
|
23787
|
+
return __generator$8(this, function (_a) {
|
|
23788
|
+
return [2 /*return*/, clientCertificate];
|
|
23789
|
+
});
|
|
23790
|
+
});
|
|
23791
|
+
}
|
|
23792
|
+
};
|
|
23793
|
+
|
|
23301
23794
|
/**
|
|
23302
23795
|
* Copyright (c) "Neo4j"
|
|
23303
23796
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -23318,9 +23811,10 @@ var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
23318
23811
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23319
23812
|
};
|
|
23320
23813
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
23321
|
-
browser.HostNameResolver = browser.Channel = void 0;
|
|
23814
|
+
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
23322
23815
|
var browser_channel_1 = __importDefault$D(browserChannel);
|
|
23323
23816
|
var browser_host_name_resolver_1 = __importDefault$D(browserHostNameResolver);
|
|
23817
|
+
var browser_client_certificates_loader_1 = __importDefault$D(browserClientCertificatesLoader);
|
|
23324
23818
|
/*
|
|
23325
23819
|
|
|
23326
23820
|
This module exports a set of components to be used in browser environment.
|
|
@@ -23333,6 +23827,7 @@ NOTE: exports in this module should have exactly the same names/structure as exp
|
|
|
23333
23827
|
*/
|
|
23334
23828
|
browser.Channel = browser_channel_1.default;
|
|
23335
23829
|
browser.HostNameResolver = browser_host_name_resolver_1.default;
|
|
23830
|
+
browser.ClientCertificatesLoader = browser_client_certificates_loader_1.default;
|
|
23336
23831
|
|
|
23337
23832
|
var chunking = {};
|
|
23338
23833
|
|
|
@@ -23680,8 +24175,9 @@ var ChannelConfig = /** @class */ (function () {
|
|
|
23680
24175
|
* @param {ServerAddress} address the address for the channel to connect to.
|
|
23681
24176
|
* @param {Object} driverConfig the driver config provided by the user when driver is created.
|
|
23682
24177
|
* @param {string} connectionErrorCode the default error code to use on connection errors.
|
|
24178
|
+
* @param {object} clientCertificate the client certificate
|
|
23683
24179
|
*/
|
|
23684
|
-
function ChannelConfig(address, driverConfig, connectionErrorCode) {
|
|
24180
|
+
function ChannelConfig(address, driverConfig, connectionErrorCode, clientCertificate) {
|
|
23685
24181
|
this.address = address;
|
|
23686
24182
|
this.encrypted = extractEncrypted(driverConfig);
|
|
23687
24183
|
this.trust = extractTrust(driverConfig);
|
|
@@ -23689,6 +24185,7 @@ var ChannelConfig = /** @class */ (function () {
|
|
|
23689
24185
|
this.knownHostsPath = extractKnownHostsPath(driverConfig);
|
|
23690
24186
|
this.connectionErrorCode = connectionErrorCode || SERVICE_UNAVAILABLE$4;
|
|
23691
24187
|
this.connectionTimeout = driverConfig.connectionTimeout;
|
|
24188
|
+
this.clientCertificate = clientCertificate;
|
|
23692
24189
|
}
|
|
23693
24190
|
return ChannelConfig;
|
|
23694
24191
|
}());
|
|
@@ -24214,7 +24711,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
24214
24711
|
* limitations under the License.
|
|
24215
24712
|
*/
|
|
24216
24713
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
24217
|
-
var channel_1$
|
|
24714
|
+
var channel_1$4 = channel;
|
|
24218
24715
|
var neo4j_driver_core_1$B = lib$1;
|
|
24219
24716
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
24220
24717
|
function version(major, minor) {
|
|
@@ -24227,7 +24724,7 @@ function createHandshakeMessage(versions) {
|
|
|
24227
24724
|
if (versions.length > 4) {
|
|
24228
24725
|
throw (0, neo4j_driver_core_1$B.newError)('It should not have more than 4 versions of the protocol');
|
|
24229
24726
|
}
|
|
24230
|
-
var handshakeBuffer = (0, channel_1$
|
|
24727
|
+
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
24231
24728
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
24232
24729
|
versions.forEach(function (version) {
|
|
24233
24730
|
if (version instanceof Array) {
|
|
@@ -25571,7 +26068,7 @@ packstreamV1.Unpacker = packstreamV1.Packer = void 0;
|
|
|
25571
26068
|
* See the License for the specific language governing permissions and
|
|
25572
26069
|
* limitations under the License.
|
|
25573
26070
|
*/
|
|
25574
|
-
var channel_1$
|
|
26071
|
+
var channel_1$3 = channel;
|
|
25575
26072
|
var lang_1$3 = lang;
|
|
25576
26073
|
var structure_1 = structure$1;
|
|
25577
26074
|
var neo4j_driver_core_1$w = lib$1;
|
|
@@ -25745,7 +26242,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
25745
26242
|
this._ch.writeFloat64(x);
|
|
25746
26243
|
};
|
|
25747
26244
|
Packer.prototype.packString = function (x) {
|
|
25748
|
-
var bytes = channel_1$
|
|
26245
|
+
var bytes = channel_1$3.utf8.encode(x);
|
|
25749
26246
|
var size = bytes.length;
|
|
25750
26247
|
if (size < 0x10) {
|
|
25751
26248
|
this._ch.writeUInt8(TINY_STRING | size);
|
|
@@ -26001,16 +26498,16 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
26001
26498
|
};
|
|
26002
26499
|
Unpacker.prototype._unpackString = function (marker, markerHigh, markerLow, buffer) {
|
|
26003
26500
|
if (markerHigh === TINY_STRING) {
|
|
26004
|
-
return channel_1$
|
|
26501
|
+
return channel_1$3.utf8.decode(buffer, markerLow);
|
|
26005
26502
|
}
|
|
26006
26503
|
else if (marker === STRING_8) {
|
|
26007
|
-
return channel_1$
|
|
26504
|
+
return channel_1$3.utf8.decode(buffer, buffer.readUInt8());
|
|
26008
26505
|
}
|
|
26009
26506
|
else if (marker === STRING_16) {
|
|
26010
|
-
return channel_1$
|
|
26507
|
+
return channel_1$3.utf8.decode(buffer, buffer.readUInt16());
|
|
26011
26508
|
}
|
|
26012
26509
|
else if (marker === STRING_32) {
|
|
26013
|
-
return channel_1$
|
|
26510
|
+
return channel_1$3.utf8.decode(buffer, buffer.readUInt32());
|
|
26014
26511
|
}
|
|
26015
26512
|
else {
|
|
26016
26513
|
return null;
|
|
@@ -30551,7 +31048,7 @@ var pool = {};
|
|
|
30551
31048
|
* See the License for the specific language governing permissions and
|
|
30552
31049
|
* limitations under the License.
|
|
30553
31050
|
*/
|
|
30554
|
-
var __awaiter$
|
|
31051
|
+
var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30555
31052
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30556
31053
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30557
31054
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -30560,7 +31057,7 @@ var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
30560
31057
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
30561
31058
|
});
|
|
30562
31059
|
};
|
|
30563
|
-
var __generator$
|
|
31060
|
+
var __generator$7 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
30564
31061
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
30565
31062
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
30566
31063
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -30692,9 +31189,9 @@ var Pool = /** @class */ (function () {
|
|
|
30692
31189
|
* @returns {Promise<void>} A promise that is resolved when the resources are purged
|
|
30693
31190
|
*/
|
|
30694
31191
|
Pool.prototype.close = function () {
|
|
30695
|
-
return __awaiter$
|
|
31192
|
+
return __awaiter$7(this, void 0, void 0, function () {
|
|
30696
31193
|
var _this = this;
|
|
30697
|
-
return __generator$
|
|
31194
|
+
return __generator$7(this, function (_a) {
|
|
30698
31195
|
switch (_a.label) {
|
|
30699
31196
|
case 0:
|
|
30700
31197
|
this._closed = true;
|
|
@@ -30753,10 +31250,10 @@ var Pool = /** @class */ (function () {
|
|
|
30753
31250
|
return pool;
|
|
30754
31251
|
};
|
|
30755
31252
|
Pool.prototype._acquire = function (acquisitionContext, address, requireNew) {
|
|
30756
|
-
return __awaiter$
|
|
31253
|
+
return __awaiter$7(this, void 0, void 0, function () {
|
|
30757
31254
|
var key, pool, resource_1, numConnections, resource, numConnections, resource_2;
|
|
30758
31255
|
var _this = this;
|
|
30759
|
-
return __generator$
|
|
31256
|
+
return __generator$7(this, function (_a) {
|
|
30760
31257
|
switch (_a.label) {
|
|
30761
31258
|
case 0:
|
|
30762
31259
|
if (this._closed) {
|
|
@@ -30833,10 +31330,10 @@ var Pool = /** @class */ (function () {
|
|
|
30833
31330
|
});
|
|
30834
31331
|
};
|
|
30835
31332
|
Pool.prototype._release = function (address, resource, pool) {
|
|
30836
|
-
return __awaiter$
|
|
31333
|
+
return __awaiter$7(this, void 0, void 0, function () {
|
|
30837
31334
|
var key;
|
|
30838
31335
|
var _this = this;
|
|
30839
|
-
return __generator$
|
|
31336
|
+
return __generator$7(this, function (_a) {
|
|
30840
31337
|
switch (_a.label) {
|
|
30841
31338
|
case 0:
|
|
30842
31339
|
key = address.asKey();
|
|
@@ -30899,9 +31396,9 @@ var Pool = /** @class */ (function () {
|
|
|
30899
31396
|
});
|
|
30900
31397
|
};
|
|
30901
31398
|
Pool.prototype._purgeKey = function (key) {
|
|
30902
|
-
return __awaiter$
|
|
31399
|
+
return __awaiter$7(this, void 0, void 0, function () {
|
|
30903
31400
|
var pool, destructionList, resource;
|
|
30904
|
-
return __generator$
|
|
31401
|
+
return __generator$7(this, function (_a) {
|
|
30905
31402
|
switch (_a.label) {
|
|
30906
31403
|
case 0:
|
|
30907
31404
|
pool = this._pools[key];
|
|
@@ -31402,7 +31899,7 @@ var __extends$4 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31402
31899
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31403
31900
|
};
|
|
31404
31901
|
})();
|
|
31405
|
-
var __awaiter$
|
|
31902
|
+
var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31406
31903
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31407
31904
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31408
31905
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31411,7 +31908,7 @@ var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
31411
31908
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31412
31909
|
});
|
|
31413
31910
|
};
|
|
31414
|
-
var __generator$
|
|
31911
|
+
var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
31415
31912
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
31416
31913
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
31417
31914
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -31443,7 +31940,7 @@ var __importDefault$6 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
31443
31940
|
};
|
|
31444
31941
|
Object.defineProperty(connectionChannel, "__esModule", { value: true });
|
|
31445
31942
|
connectionChannel.createChannelConnection = void 0;
|
|
31446
|
-
var channel_1$
|
|
31943
|
+
var channel_1$2 = channel;
|
|
31447
31944
|
var neo4j_driver_core_1$6 = lib$1;
|
|
31448
31945
|
var connection_1$4 = __importDefault$6(connection);
|
|
31449
31946
|
var bolt_1 = __importDefault$6(bolt);
|
|
@@ -31456,18 +31953,19 @@ var idGenerator = 0;
|
|
|
31456
31953
|
* @param {Object} config - the driver configuration.
|
|
31457
31954
|
* @param {ConnectionErrorHandler} errorHandler - the error handler for connection errors.
|
|
31458
31955
|
* @param {Logger} log - configured logger.
|
|
31956
|
+
* @param {clientCertificate} clientCertificate - configured client certificate
|
|
31459
31957
|
* @return {Connection} - new connection.
|
|
31460
31958
|
*/
|
|
31461
|
-
function createChannelConnection(address, config, errorHandler, log, serversideRouting, createChannel) {
|
|
31959
|
+
function createChannelConnection(address, config, errorHandler, log, clientCertificate, serversideRouting, createChannel) {
|
|
31462
31960
|
if (serversideRouting === void 0) { serversideRouting = null; }
|
|
31463
|
-
if (createChannel === void 0) { createChannel = function (channelConfig) { return new channel_1$
|
|
31464
|
-
var channelConfig = new channel_1$
|
|
31961
|
+
if (createChannel === void 0) { createChannel = function (channelConfig) { return new channel_1$2.Channel(channelConfig); }; }
|
|
31962
|
+
var channelConfig = new channel_1$2.ChannelConfig(address, config, errorHandler.errorCode(), clientCertificate);
|
|
31465
31963
|
var channel = createChannel(channelConfig);
|
|
31466
31964
|
return bolt_1.default.handshake(channel, log)
|
|
31467
31965
|
.then(function (_a) {
|
|
31468
31966
|
var version = _a.protocolVersion, consumeRemainingBuffer = _a.consumeRemainingBuffer;
|
|
31469
|
-
var chunker = new channel_1$
|
|
31470
|
-
var dechunker = new channel_1$
|
|
31967
|
+
var chunker = new channel_1$2.Chunker(channel);
|
|
31968
|
+
var dechunker = new channel_1$2.Dechunker();
|
|
31471
31969
|
var createProtocol = function (conn) {
|
|
31472
31970
|
return bolt_1.default.create({
|
|
31473
31971
|
version: version,
|
|
@@ -31641,9 +32139,9 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
31641
32139
|
* @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
|
|
31642
32140
|
*/
|
|
31643
32141
|
ChannelConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
|
|
31644
|
-
return __awaiter$
|
|
32142
|
+
return __awaiter$6(this, void 0, void 0, function () {
|
|
31645
32143
|
var _this = this;
|
|
31646
|
-
return __generator$
|
|
32144
|
+
return __generator$6(this, function (_a) {
|
|
31647
32145
|
switch (_a.label) {
|
|
31648
32146
|
case 0:
|
|
31649
32147
|
if (this._protocol.initialized && !this._protocol.supportsReAuth) {
|
|
@@ -31920,8 +32418,8 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
31920
32418
|
* @returns {Promise<void>} - A promise that will be resolved when the underlying channel is closed.
|
|
31921
32419
|
*/
|
|
31922
32420
|
ChannelConnection.prototype.close = function () {
|
|
31923
|
-
return __awaiter$
|
|
31924
|
-
return __generator$
|
|
32421
|
+
return __awaiter$6(this, void 0, void 0, function () {
|
|
32422
|
+
return __generator$6(this, function (_a) {
|
|
31925
32423
|
switch (_a.label) {
|
|
31926
32424
|
case 0:
|
|
31927
32425
|
if (this._log.isDebugEnabled()) {
|
|
@@ -32301,7 +32799,7 @@ var authenticationProvider = {};
|
|
|
32301
32799
|
* See the License for the specific language governing permissions and
|
|
32302
32800
|
* limitations under the License.
|
|
32303
32801
|
*/
|
|
32304
|
-
var __awaiter$
|
|
32802
|
+
var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32305
32803
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32306
32804
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32307
32805
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -32310,7 +32808,7 @@ var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
32310
32808
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32311
32809
|
});
|
|
32312
32810
|
};
|
|
32313
|
-
var __generator$
|
|
32811
|
+
var __generator$5 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
32314
32812
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
32315
32813
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
32316
32814
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -32352,9 +32850,9 @@ var AuthenticationProvider = /** @class */ (function () {
|
|
|
32352
32850
|
}
|
|
32353
32851
|
AuthenticationProvider.prototype.authenticate = function (_a) {
|
|
32354
32852
|
var connection = _a.connection, auth = _a.auth, skipReAuth = _a.skipReAuth, waitReAuth = _a.waitReAuth, forceReAuth = _a.forceReAuth;
|
|
32355
|
-
return __awaiter$
|
|
32853
|
+
return __awaiter$5(this, void 0, void 0, function () {
|
|
32356
32854
|
var shouldReAuth, authToken;
|
|
32357
|
-
return __generator$
|
|
32855
|
+
return __generator$5(this, function (_b) {
|
|
32358
32856
|
switch (_b.label) {
|
|
32359
32857
|
case 0:
|
|
32360
32858
|
if (!(auth != null)) return [3 /*break*/, 3];
|
|
@@ -32389,7 +32887,7 @@ authenticationProvider.default = AuthenticationProvider;
|
|
|
32389
32887
|
|
|
32390
32888
|
var livenessCheckProvider = {};
|
|
32391
32889
|
|
|
32392
|
-
var __awaiter$
|
|
32890
|
+
var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32393
32891
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32394
32892
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32395
32893
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -32398,7 +32896,7 @@ var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
32398
32896
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32399
32897
|
});
|
|
32400
32898
|
};
|
|
32401
|
-
var __generator$
|
|
32899
|
+
var __generator$4 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
32402
32900
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
32403
32901
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
32404
32902
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -32454,9 +32952,9 @@ var LivenessCheckProvider = /** @class */ (function () {
|
|
|
32454
32952
|
* @returns {Promise<true>} If liveness checks succeed, throws otherwise
|
|
32455
32953
|
*/
|
|
32456
32954
|
LivenessCheckProvider.prototype.check = function (connection) {
|
|
32457
|
-
return __awaiter$
|
|
32955
|
+
return __awaiter$4(this, void 0, void 0, function () {
|
|
32458
32956
|
var idleFor;
|
|
32459
|
-
return __generator$
|
|
32957
|
+
return __generator$4(this, function (_a) {
|
|
32460
32958
|
switch (_a.label) {
|
|
32461
32959
|
case 0:
|
|
32462
32960
|
if (this._isCheckDisabled || this._isNewlyCreatedConnection(connection)) {
|
|
@@ -32487,6 +32985,109 @@ var LivenessCheckProvider = /** @class */ (function () {
|
|
|
32487
32985
|
}());
|
|
32488
32986
|
livenessCheckProvider.default = LivenessCheckProvider;
|
|
32489
32987
|
|
|
32988
|
+
var clientCertificateHolder = {};
|
|
32989
|
+
|
|
32990
|
+
var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32991
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32992
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32993
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32994
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
32995
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
32996
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32997
|
+
});
|
|
32998
|
+
};
|
|
32999
|
+
var __generator$3 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
33000
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
33001
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
33002
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
33003
|
+
function step(op) {
|
|
33004
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
33005
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33006
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33007
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33008
|
+
switch (op[0]) {
|
|
33009
|
+
case 0: case 1: t = op; break;
|
|
33010
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33011
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
33012
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
33013
|
+
default:
|
|
33014
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
33015
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
33016
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
33017
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
33018
|
+
if (t[2]) _.ops.pop();
|
|
33019
|
+
_.trys.pop(); continue;
|
|
33020
|
+
}
|
|
33021
|
+
op = body.call(thisArg, _);
|
|
33022
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
33023
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
33024
|
+
}
|
|
33025
|
+
};
|
|
33026
|
+
Object.defineProperty(clientCertificateHolder, "__esModule", { value: true });
|
|
33027
|
+
/**
|
|
33028
|
+
* Copyright (c) "Neo4j"
|
|
33029
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
33030
|
+
*
|
|
33031
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
33032
|
+
* you may not use this file except in compliance with the License.
|
|
33033
|
+
* You may obtain a copy of the License at
|
|
33034
|
+
*
|
|
33035
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
33036
|
+
*
|
|
33037
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
33038
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
33039
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33040
|
+
* See the License for the specific language governing permissions and
|
|
33041
|
+
* limitations under the License.
|
|
33042
|
+
*/
|
|
33043
|
+
var channel_1$1 = channel;
|
|
33044
|
+
var ClientCertificateHolder = /** @class */ (function () {
|
|
33045
|
+
function ClientCertificateHolder(_a) {
|
|
33046
|
+
var clientCertificateProvider = _a.clientCertificateProvider, loader = _a.loader;
|
|
33047
|
+
this._clientCertificateProvider = clientCertificateProvider;
|
|
33048
|
+
this._loader = loader || channel_1$1.ClientCertificatesLoader;
|
|
33049
|
+
this._clientCertificate = null;
|
|
33050
|
+
}
|
|
33051
|
+
ClientCertificateHolder.prototype.getClientCertificate = function () {
|
|
33052
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
33053
|
+
var _a, _b;
|
|
33054
|
+
var _this = this;
|
|
33055
|
+
return __generator$3(this, function (_c) {
|
|
33056
|
+
switch (_c.label) {
|
|
33057
|
+
case 0:
|
|
33058
|
+
_a = this._clientCertificateProvider != null;
|
|
33059
|
+
if (!_a) return [3 /*break*/, 3];
|
|
33060
|
+
_b = this._clientCertificate == null;
|
|
33061
|
+
if (_b) return [3 /*break*/, 2];
|
|
33062
|
+
return [4 /*yield*/, this._clientCertificateProvider.hasUpdate()];
|
|
33063
|
+
case 1:
|
|
33064
|
+
_b = (_c.sent());
|
|
33065
|
+
_c.label = 2;
|
|
33066
|
+
case 2:
|
|
33067
|
+
_a = (_b);
|
|
33068
|
+
_c.label = 3;
|
|
33069
|
+
case 3:
|
|
33070
|
+
if (_a) {
|
|
33071
|
+
this._clientCertificate = Promise.resolve(this._clientCertificateProvider.getClientCertificate())
|
|
33072
|
+
.then(this._loader.load)
|
|
33073
|
+
.then(function (clientCertificate) {
|
|
33074
|
+
_this._clientCertificate = clientCertificate;
|
|
33075
|
+
return _this._clientCertificate;
|
|
33076
|
+
})
|
|
33077
|
+
.catch(function (error) {
|
|
33078
|
+
_this._clientCertificate = null;
|
|
33079
|
+
throw error;
|
|
33080
|
+
});
|
|
33081
|
+
}
|
|
33082
|
+
return [2 /*return*/, this._clientCertificate];
|
|
33083
|
+
}
|
|
33084
|
+
});
|
|
33085
|
+
});
|
|
33086
|
+
};
|
|
33087
|
+
return ClientCertificateHolder;
|
|
33088
|
+
}());
|
|
33089
|
+
clientCertificateHolder.default = ClientCertificateHolder;
|
|
33090
|
+
|
|
32490
33091
|
/**
|
|
32491
33092
|
* Copyright (c) "Neo4j"
|
|
32492
33093
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -32612,6 +33213,7 @@ var neo4j_driver_core_1$3 = lib$1;
|
|
|
32612
33213
|
var authentication_provider_1 = __importDefault$4(authenticationProvider);
|
|
32613
33214
|
var lang_1$1 = lang;
|
|
32614
33215
|
var liveness_check_provider_1 = __importDefault$4(livenessCheckProvider);
|
|
33216
|
+
var client_certificate_holder_1 = __importDefault$4(clientCertificateHolder);
|
|
32615
33217
|
var SERVICE_UNAVAILABLE$2 = neo4j_driver_core_1$3.error.SERVICE_UNAVAILABLE;
|
|
32616
33218
|
var AUTHENTICATION_ERRORS = [
|
|
32617
33219
|
'Neo.ClientError.Security.CredentialsExpired',
|
|
@@ -32634,15 +33236,28 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
32634
33236
|
_this._id = id;
|
|
32635
33237
|
_this._config = config;
|
|
32636
33238
|
_this._log = log;
|
|
33239
|
+
_this._clientCertificateHolder = new client_certificate_holder_1.default({ clientCertificateProvider: _this._config.clientCertificate });
|
|
32637
33240
|
_this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent, boltAgent: boltAgent });
|
|
32638
33241
|
_this._livenessCheckProvider = new liveness_check_provider_1.default({ connectionLivenessCheckTimeout: config.connectionLivenessCheckTimeout });
|
|
32639
33242
|
_this._userAgent = userAgent;
|
|
32640
33243
|
_this._boltAgent = boltAgent;
|
|
32641
33244
|
_this._createChannelConnection =
|
|
32642
33245
|
createChannelConnectionHook ||
|
|
32643
|
-
(function (address) {
|
|
32644
|
-
|
|
32645
|
-
|
|
33246
|
+
(function (address) { return __awaiter$2(_this, void 0, void 0, function () {
|
|
33247
|
+
var _a, _b;
|
|
33248
|
+
return __generator$2(this, function (_c) {
|
|
33249
|
+
switch (_c.label) {
|
|
33250
|
+
case 0:
|
|
33251
|
+
_a = connection_1$2.createChannelConnection;
|
|
33252
|
+
_b = [address,
|
|
33253
|
+
this._config,
|
|
33254
|
+
this._createConnectionErrorHandler(),
|
|
33255
|
+
this._log];
|
|
33256
|
+
return [4 /*yield*/, this._clientCertificateHolder.getClientCertificate()];
|
|
33257
|
+
case 1: return [2 /*return*/, _a.apply(void 0, _b.concat([_c.sent()]))];
|
|
33258
|
+
}
|
|
33259
|
+
});
|
|
33260
|
+
}); });
|
|
32646
33261
|
_this._connectionPool = newPool({
|
|
32647
33262
|
create: _this._createConnection.bind(_this),
|
|
32648
33263
|
destroy: _this._destroyConnection.bind(_this),
|
|
@@ -32659,6 +33274,13 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
|
|
|
32659
33274
|
PooledConnectionProvider.prototype._createConnectionErrorHandler = function () {
|
|
32660
33275
|
return new connection_1$2.ConnectionErrorHandler(SERVICE_UNAVAILABLE$2);
|
|
32661
33276
|
};
|
|
33277
|
+
PooledConnectionProvider.prototype._getClientCertificate = function () {
|
|
33278
|
+
return __awaiter$2(this, void 0, void 0, function () {
|
|
33279
|
+
return __generator$2(this, function (_a) {
|
|
33280
|
+
return [2 /*return*/, this._config.clientCertificate.getClientCertificate()];
|
|
33281
|
+
});
|
|
33282
|
+
});
|
|
33283
|
+
};
|
|
32662
33284
|
/**
|
|
32663
33285
|
* Create a new connection and initialize it.
|
|
32664
33286
|
* @return {Promise<Connection>} promise resolved with a new connection or rejected when failed to connect.
|
|
@@ -33029,7 +33651,7 @@ var DirectConnectionProvider = /** @class */ (function (_super) {
|
|
|
33029
33651
|
var connection, protocolVersion;
|
|
33030
33652
|
return __generator$1(this, function (_a) {
|
|
33031
33653
|
switch (_a.label) {
|
|
33032
|
-
case 0: return [4 /*yield*/,
|
|
33654
|
+
case 0: return [4 /*yield*/, this._createChannelConnection(this._address)];
|
|
33033
33655
|
case 1:
|
|
33034
33656
|
connection = _a.sent();
|
|
33035
33657
|
protocolVersion = connection.protocol()
|
|
@@ -33618,9 +34240,21 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
33618
34240
|
__extends(RoutingConnectionProvider, _super);
|
|
33619
34241
|
function RoutingConnectionProvider(_a) {
|
|
33620
34242
|
var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, routingTablePurgeDelay = _a.routingTablePurgeDelay, newPool = _a.newPool;
|
|
33621
|
-
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) {
|
|
33622
|
-
|
|
33623
|
-
|
|
34243
|
+
var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) { return __awaiter(_this, void 0, void 0, function () {
|
|
34244
|
+
var _a, _b;
|
|
34245
|
+
return __generator(this, function (_c) {
|
|
34246
|
+
switch (_c.label) {
|
|
34247
|
+
case 0:
|
|
34248
|
+
_a = connection_1.createChannelConnection;
|
|
34249
|
+
_b = [address,
|
|
34250
|
+
this._config,
|
|
34251
|
+
this._createConnectionErrorHandler(),
|
|
34252
|
+
this._log];
|
|
34253
|
+
return [4 /*yield*/, this._clientCertificateHolder.getClientCertificate()];
|
|
34254
|
+
case 1: return [2 /*return*/, _a.apply(void 0, _b.concat([_c.sent(), this._routingContext]))];
|
|
34255
|
+
}
|
|
34256
|
+
});
|
|
34257
|
+
}); }) || this;
|
|
33624
34258
|
_this._routingContext = __assign(__assign({}, routingContext), { address: address.toString() });
|
|
33625
34259
|
_this._seedRouter = address;
|
|
33626
34260
|
_this._rediscovery = new rediscovery_1.default(_this._routingContext);
|
|
@@ -33743,7 +34377,7 @@ var RoutingConnectionProvider = /** @class */ (function (_super) {
|
|
|
33743
34377
|
_a.label = 3;
|
|
33744
34378
|
case 3:
|
|
33745
34379
|
_a.trys.push([3, 6, , 7]);
|
|
33746
|
-
return [4 /*yield*/,
|
|
34380
|
+
return [4 /*yield*/, this._createChannelConnection(addresses[i])];
|
|
33747
34381
|
case 4:
|
|
33748
34382
|
connection = _a.sent();
|
|
33749
34383
|
protocolVersion = connection.protocol()
|
|
@@ -34461,7 +35095,7 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
34461
35095
|
};
|
|
34462
35096
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34463
35097
|
exports.Path = exports.UnboundRelationship = exports.Relationship = exports.Node = exports.Record = exports.ServerInfo = 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.isRetryableError = 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.hasReachableServer = exports.driver = exports.authTokenManagers = void 0;
|
|
34464
|
-
exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = exports.PathSegment = void 0;
|
|
35098
|
+
exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = exports.PathSegment = void 0;
|
|
34465
35099
|
/**
|
|
34466
35100
|
* Copyright (c) "Neo4j"
|
|
34467
35101
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -34533,6 +35167,7 @@ Object.defineProperty(exports, "notificationCategory", { enumerable: true, get:
|
|
|
34533
35167
|
Object.defineProperty(exports, "notificationSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationSeverityLevel; } });
|
|
34534
35168
|
Object.defineProperty(exports, "notificationFilterDisabledCategory", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterDisabledCategory; } });
|
|
34535
35169
|
Object.defineProperty(exports, "notificationFilterMinimumSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterMinimumSeverityLevel; } });
|
|
35170
|
+
Object.defineProperty(exports, "clientCertificateProviders", { enumerable: true, get: function () { return neo4j_driver_core_1.clientCertificateProviders; } });
|
|
34536
35171
|
var neo4j_driver_bolt_connection_1 = lib;
|
|
34537
35172
|
var session_rx_1 = __importDefault(sessionRx);
|
|
34538
35173
|
exports.RxSession = session_rx_1.default;
|
|
@@ -34614,6 +35249,7 @@ function driver(url, authToken, config) {
|
|
|
34614
35249
|
}
|
|
34615
35250
|
config.encrypted = ENCRYPTION_ON;
|
|
34616
35251
|
config.trust = trust;
|
|
35252
|
+
config.clientCertificate = (0, neo4j_driver_core_1.resolveCertificateProvider)(config.clientCertificate);
|
|
34617
35253
|
}
|
|
34618
35254
|
var authTokenManager = createAuthManager(authToken);
|
|
34619
35255
|
// Use default user agent or user agent specified by user.
|
|
@@ -34849,7 +35485,8 @@ var forExport = {
|
|
|
34849
35485
|
notificationCategory: neo4j_driver_core_1.notificationCategory,
|
|
34850
35486
|
notificationSeverityLevel: neo4j_driver_core_1.notificationSeverityLevel,
|
|
34851
35487
|
notificationFilterDisabledCategory: neo4j_driver_core_1.notificationFilterDisabledCategory,
|
|
34852
|
-
notificationFilterMinimumSeverityLevel: neo4j_driver_core_1.notificationFilterMinimumSeverityLevel
|
|
35488
|
+
notificationFilterMinimumSeverityLevel: neo4j_driver_core_1.notificationFilterMinimumSeverityLevel,
|
|
35489
|
+
clientCertificateProviders: neo4j_driver_core_1.clientCertificateProviders
|
|
34853
35490
|
};
|
|
34854
35491
|
exports.default = forExport;
|
|
34855
35492
|
}(lib$2));
|