@uniformdev/context 18.1.2-alpha.7 → 18.2.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/dist/api/api.d.ts +1 -1
- package/dist/api/api.js +2 -2
- package/dist/api/api.mjs +2 -2
- package/dist/cli/cli.js +3 -8
- package/dist/cli/cli.mjs +3 -8
- package/package.json +3 -3
package/dist/api/api.d.ts
CHANGED
@@ -43,7 +43,7 @@ declare class ApiClient<TOptions extends ClientOptions = ClientOptions> {
|
|
43
43
|
/** Whether to expect a JSON response or not */
|
44
44
|
expectNoContent?: boolean;
|
45
45
|
}): Promise<TResponse>;
|
46
|
-
protected createUrl(path: string, queryParams?: Record<string, string | boolean | undefined | null | number | Array<string | boolean | number
|
46
|
+
protected createUrl(path: string, queryParams?: Record<string, string | boolean | undefined | null | number | Array<string | boolean | number>>): URL;
|
47
47
|
private static getRequestId;
|
48
48
|
}
|
49
49
|
|
package/dist/api/api.js
CHANGED
@@ -165,8 +165,8 @@ var ApiClient = class {
|
|
165
165
|
return await apiResponse.json();
|
166
166
|
});
|
167
167
|
}
|
168
|
-
createUrl(path, queryParams
|
169
|
-
const url = new URL(`${
|
168
|
+
createUrl(path, queryParams) {
|
169
|
+
const url = new URL(`${this.options.apiHost}${path}`);
|
170
170
|
Object.entries(queryParams != null ? queryParams : {}).forEach(([key, value]) => {
|
171
171
|
var _a;
|
172
172
|
if (typeof value !== "undefined" && value !== null) {
|
package/dist/api/api.mjs
CHANGED
@@ -115,8 +115,8 @@ var ApiClient = class {
|
|
115
115
|
return await apiResponse.json();
|
116
116
|
});
|
117
117
|
}
|
118
|
-
createUrl(path, queryParams
|
119
|
-
const url = new URL(`${
|
118
|
+
createUrl(path, queryParams) {
|
119
|
+
const url = new URL(`${this.options.apiHost}${path}`);
|
120
120
|
Object.entries(queryParams != null ? queryParams : {}).forEach(([key, value]) => {
|
121
121
|
var _a;
|
122
122
|
if (typeof value !== "undefined" && value !== null) {
|
package/dist/cli/cli.js
CHANGED
@@ -19280,15 +19280,10 @@ function withApiOptions(yargs) {
|
|
19280
19280
|
demandOption: true,
|
19281
19281
|
type: "string"
|
19282
19282
|
}).option("apiHost", {
|
19283
|
-
describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env
|
19283
|
+
describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env or https://uniform.app. Supports dotenv.",
|
19284
19284
|
default: process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app",
|
19285
19285
|
demandOption: true,
|
19286
19286
|
type: "string"
|
19287
|
-
}).option("edgeApiHost", {
|
19288
|
-
describe: "Uniform edge host. Defaults to UNIFORM_CLI_BASE_EDGE_URL env var or https://uniform.global. Supports dotenv.",
|
19289
|
-
default: process.env.UNIFORM_CLI_BASE_EDGE_URL || "https://uniform.global",
|
19290
|
-
demandOption: true,
|
19291
|
-
type: "string"
|
19292
19287
|
}).option("proxy", {
|
19293
19288
|
describe: "HTTPS proxy to use for Uniform API calls. Defaults to HTTPS_PROXY, https_proxy, ALL_PROXY, or all_proxy env vars (in that order). Supports dotenv.",
|
19294
19289
|
default: process.env.HTTPS_PROXY || process.env.https_proxy || process.env.ALL_PROXY || process.env.all_proxy,
|
@@ -19694,8 +19689,8 @@ var ApiClient = class {
|
|
19694
19689
|
return await apiResponse.json();
|
19695
19690
|
});
|
19696
19691
|
}
|
19697
|
-
createUrl(path, queryParams
|
19698
|
-
const url = new URL(`${
|
19692
|
+
createUrl(path, queryParams) {
|
19693
|
+
const url = new URL(`${this.options.apiHost}${path}`);
|
19699
19694
|
Object.entries(queryParams != null ? queryParams : {}).forEach(([key, value]) => {
|
19700
19695
|
var _a2;
|
19701
19696
|
if (typeof value !== "undefined" && value !== null) {
|
package/dist/cli/cli.mjs
CHANGED
@@ -19277,15 +19277,10 @@ function withApiOptions(yargs) {
|
|
19277
19277
|
demandOption: true,
|
19278
19278
|
type: "string"
|
19279
19279
|
}).option("apiHost", {
|
19280
|
-
describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env
|
19280
|
+
describe: "Uniform host. Defaults to UNIFORM_CLI_BASE_URL env or https://uniform.app. Supports dotenv.",
|
19281
19281
|
default: process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app",
|
19282
19282
|
demandOption: true,
|
19283
19283
|
type: "string"
|
19284
|
-
}).option("edgeApiHost", {
|
19285
|
-
describe: "Uniform edge host. Defaults to UNIFORM_CLI_BASE_EDGE_URL env var or https://uniform.global. Supports dotenv.",
|
19286
|
-
default: process.env.UNIFORM_CLI_BASE_EDGE_URL || "https://uniform.global",
|
19287
|
-
demandOption: true,
|
19288
|
-
type: "string"
|
19289
19284
|
}).option("proxy", {
|
19290
19285
|
describe: "HTTPS proxy to use for Uniform API calls. Defaults to HTTPS_PROXY, https_proxy, ALL_PROXY, or all_proxy env vars (in that order). Supports dotenv.",
|
19291
19286
|
default: process.env.HTTPS_PROXY || process.env.https_proxy || process.env.ALL_PROXY || process.env.all_proxy,
|
@@ -19691,8 +19686,8 @@ var ApiClient = class {
|
|
19691
19686
|
return await apiResponse.json();
|
19692
19687
|
});
|
19693
19688
|
}
|
19694
|
-
createUrl(path, queryParams
|
19695
|
-
const url = new URL(`${
|
19689
|
+
createUrl(path, queryParams) {
|
19690
|
+
const url = new URL(`${this.options.apiHost}${path}`);
|
19696
19691
|
Object.entries(queryParams != null ? queryParams : {}).forEach(([key, value]) => {
|
19697
19692
|
var _a2;
|
19698
19693
|
if (typeof value !== "undefined" && value !== null) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context",
|
3
|
-
"version": "18.
|
3
|
+
"version": "18.2.1",
|
4
4
|
"description": "Uniform Context core package",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"devDependencies": {
|
60
60
|
"@types/js-cookie": "3.0.2",
|
61
61
|
"@types/yargs": "17.0.20",
|
62
|
-
"@uniformdev/cli": "18.
|
62
|
+
"@uniformdev/cli": "18.2.1",
|
63
63
|
"benny": "3.7.1",
|
64
64
|
"yargs": "17.6.2"
|
65
65
|
},
|
@@ -76,5 +76,5 @@
|
|
76
76
|
"publishConfig": {
|
77
77
|
"access": "public"
|
78
78
|
},
|
79
|
-
"gitHead": "
|
79
|
+
"gitHead": "c519c1d6b73c928ba0b795702d56fbb63fdd3c90"
|
80
80
|
}
|