@typedb/driver-http 3.8.1 → 3.8.2-rc0
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/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../../../../../../../../../execroot/
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/params.ts
|
|
2
2
|
function isBasicParams(params) {
|
|
3
3
|
return `addresses` in params;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@ function remoteOrigin(params) {
|
|
|
10
10
|
else return `${params.translatedAddresses[0].external}`;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// ../../../../../../../../../execroot/
|
|
13
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/response.ts
|
|
14
14
|
function isApiError(err) {
|
|
15
15
|
return err != null && typeof err.code === "string" && typeof err.message === "string";
|
|
16
16
|
}
|
|
@@ -24,12 +24,12 @@ function isQueryResponseLegacy(res) {
|
|
|
24
24
|
return res.query != null && "blocks" in res.query;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// ../../../../../../../../../execroot/
|
|
27
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/analyzed-conjunction.ts
|
|
28
28
|
function getVariableName(structure, variable) {
|
|
29
29
|
return _optionalChain([structure, 'access', _ => _.variables, 'access', _2 => _2[variable.id], 'optionalAccess', _3 => _3.name]);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
// ../../../../../../../../../execroot/
|
|
32
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/index.ts
|
|
33
33
|
var HTTP_UNAUTHORIZED = 401;
|
|
34
34
|
var TypeDBHttpDriver = class {
|
|
35
35
|
constructor(params) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../../../../../../../../execroot/
|
|
1
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/params.ts
|
|
2
2
|
function isBasicParams(params) {
|
|
3
3
|
return `addresses` in params;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@ function remoteOrigin(params) {
|
|
|
10
10
|
else return `${params.translatedAddresses[0].external}`;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// ../../../../../../../../../execroot/
|
|
13
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/response.ts
|
|
14
14
|
function isApiError(err) {
|
|
15
15
|
return err != null && typeof err.code === "string" && typeof err.message === "string";
|
|
16
16
|
}
|
|
@@ -24,12 +24,12 @@ function isQueryResponseLegacy(res) {
|
|
|
24
24
|
return res.query != null && "blocks" in res.query;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// ../../../../../../../../../execroot/
|
|
27
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/analyzed-conjunction.ts
|
|
28
28
|
function getVariableName(structure, variable) {
|
|
29
29
|
return structure.variables[variable.id]?.name;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
// ../../../../../../../../../execroot/
|
|
32
|
+
// ../../../../../../../../../execroot/_main/bazel-out/k8-opt/bin/http-ts/src/index.ts
|
|
33
33
|
var HTTP_UNAUTHORIZED = 401;
|
|
34
34
|
var TypeDBHttpDriver = class {
|
|
35
35
|
constructor(params) {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@typedb/driver-http", "version": "3.8.
|
|
1
|
+
{"name": "@typedb/driver-http", "version": "3.8.2-rc0", "description": "TypeDB HTTP Driver", "author": "TypeDB Community <community@typedb.com>", "license": "Apache-2.0", "homepage": "https://typedb.com", "repository": {"type": "git", "url": "https://github.com/typedb/typedb-driver"}, "bugs": {"url": "https://github.com/typedb/typedb-driver/issues"}, "keywords": ["database", "typedb"], "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", "type": "module", "exports": {".": {"types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs"}}, "scripts": {"build:dev": "tsc", "build": "tsup", "test": "cucumber-js", "docs": "typedoc"}, "packageManager": "pnpm@8.15.9", "packageConfig": {"access": "public"}, "devDependencies": {"@cucumber/cucumber": "9.0.0", "@types/node": "24.0.12", "tsup": "8.5.0", "typedoc": "^0.28.7", "typescript": "5.8.3"}}
|