@xfe-repo/web-utils 1.3.6 → 1.3.8
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/env.d.mts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/host.js +2 -3
- package/dist/host.mjs +2 -3
- package/dist/tools.d.mts +2 -0
- package/dist/tools.d.ts +2 -0
- package/package.json +1 -1
package/dist/env.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type TestEnv = `test${number | ''}`;
|
|
2
|
-
type ApiEnv = 'dev' | 'stage' | '
|
|
2
|
+
type ApiEnv = 'dev' | 'stage' | 'prod' | TestEnv;
|
|
3
3
|
type Business = 'erp_pc' | 'saas_pc' | 'platform_pc';
|
|
4
4
|
declare const isServer: boolean;
|
|
5
5
|
declare const isClient: boolean;
|
package/dist/env.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type TestEnv = `test${number | ''}`;
|
|
2
|
-
type ApiEnv = 'dev' | 'stage' | '
|
|
2
|
+
type ApiEnv = 'dev' | 'stage' | 'prod' | TestEnv;
|
|
3
3
|
type Business = 'erp_pc' | 'saas_pc' | 'platform_pc';
|
|
4
4
|
declare const isServer: boolean;
|
|
5
5
|
declare const isClient: boolean;
|
package/dist/host.js
CHANGED
|
@@ -44,9 +44,8 @@ function getEnvDomain(hostname) {
|
|
|
44
44
|
}
|
|
45
45
|
var bffApiList = {
|
|
46
46
|
dev: "http://localhost:6003/",
|
|
47
|
-
test: `
|
|
48
|
-
stage: "
|
|
49
|
-
beta: "https://bff.beta.eshetang.com/",
|
|
47
|
+
test: `https://test.bff-s.t.eshetang.com/`,
|
|
48
|
+
stage: "https://stage.bff-s.t.eshetang.com/",
|
|
50
49
|
prod: "https://bff.eshetang.com/"
|
|
51
50
|
};
|
|
52
51
|
var getBffApi = (_apiEnv) => {
|
package/dist/host.mjs
CHANGED
|
@@ -19,9 +19,8 @@ function getEnvDomain(hostname) {
|
|
|
19
19
|
}
|
|
20
20
|
var bffApiList = {
|
|
21
21
|
dev: "http://localhost:6003/",
|
|
22
|
-
test: `
|
|
23
|
-
stage: "
|
|
24
|
-
beta: "https://bff.beta.eshetang.com/",
|
|
22
|
+
test: `https://test.bff-s.t.eshetang.com/`,
|
|
23
|
+
stage: "https://stage.bff-s.t.eshetang.com/",
|
|
25
24
|
prod: "https://bff.eshetang.com/"
|
|
26
25
|
};
|
|
27
26
|
var getBffApi = (_apiEnv) => {
|
package/dist/tools.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import queryStringOrigin, { ParseOptions, ParsedQuery } from 'query-string';
|
|
2
|
+
export { ParseOptions, ParsedQuery } from 'query-string';
|
|
2
3
|
export { debounce, throttle } from 'throttle-debounce';
|
|
3
4
|
|
|
4
5
|
declare const queryString: typeof queryStringOrigin;
|
|
6
|
+
|
|
5
7
|
declare function parseUrlQuery(options?: ParseOptions): queryStringOrigin.ParsedQuery<string>;
|
|
6
8
|
declare function getUrlQuery(key: string): string | (string | null)[] | null | undefined;
|
|
7
9
|
declare function setUrlQuery(queryJson: ParsedQuery<string | boolean | number>): void;
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import queryStringOrigin, { ParseOptions, ParsedQuery } from 'query-string';
|
|
2
|
+
export { ParseOptions, ParsedQuery } from 'query-string';
|
|
2
3
|
export { debounce, throttle } from 'throttle-debounce';
|
|
3
4
|
|
|
4
5
|
declare const queryString: typeof queryStringOrigin;
|
|
6
|
+
|
|
5
7
|
declare function parseUrlQuery(options?: ParseOptions): queryStringOrigin.ParsedQuery<string>;
|
|
6
8
|
declare function getUrlQuery(key: string): string | (string | null)[] | null | undefined;
|
|
7
9
|
declare function setUrlQuery(queryJson: ParsedQuery<string | boolean | number>): void;
|