@forge/kvs 0.1.1-next.0 → 0.1.1-next.1
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/out/index.js +3 -4
- package/package.json +1 -1
package/out/index.js
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.kvs = exports.Filter = exports.FilterConditions = exports.WhereConditions = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const api_1 = require("@forge/api");
|
|
6
5
|
const kvs_1 = require("./kvs");
|
|
7
6
|
const storage_api_1 = require("./storage-api");
|
|
8
7
|
function getFetchClient() {
|
|
9
|
-
const
|
|
10
|
-
if (kvs?.url && kvs?.host) {
|
|
11
|
-
const { proxy, kvs, tracing } =
|
|
8
|
+
const runtime = global.__forge_runtime__;
|
|
9
|
+
if (runtime?.kvs?.url && runtime?.kvs?.host) {
|
|
10
|
+
const { proxy, kvs, tracing } = runtime;
|
|
12
11
|
return async function (path, options) {
|
|
13
12
|
return await global.__forge_fetch__({ type: 'kvs' }, path, {
|
|
14
13
|
...options,
|