iv-npm 1.5.50 → 1.5.51
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/package.json +1 -1
- package/packages/shared/dist/utils/index.d.ts +1 -1
- package/packages/shared/dist/utils/index.mjs +5 -1
- package/packages/ui/dist/api/api.config.d.ts +10 -0
- package/packages/ui/dist/index.cjs.js +1 -1
- package/packages/ui/dist/index.cjs.js.map +1 -1
- package/packages/ui/dist/index.esm.js +1 -1
- package/packages/ui/dist/index.esm.js.map +1 -1
- package/packages/ui/dist/index.umd.js +1 -1
- package/packages/ui/dist/index.umd.js.map +1 -1
- package/packages/ui/package.json +68 -64
- package/pnpm-lock.yaml +5768 -5741
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ declare function buildURL(url: string, params: any): string;
|
|
|
48
48
|
|
|
49
49
|
declare function apiConfiger(config: any): any;
|
|
50
50
|
|
|
51
|
-
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL";
|
|
51
|
+
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL" | "CCFLOW_URL";
|
|
52
52
|
declare function hostConfiger(key: HostKey): string;
|
|
53
53
|
|
|
54
54
|
declare type formatType = {
|
|
@@ -157,7 +157,8 @@ function hostConfiger(key) {
|
|
|
157
157
|
ASSET_URL: "https://gateway.nacho.cn",
|
|
158
158
|
ASSETS_URL: "https://assets.nacho.cn",
|
|
159
159
|
GATEWAY_URL: "https://gateway.nacho.cn",
|
|
160
|
-
SFM_URL: "https://sfm.nacho.cn"
|
|
160
|
+
SFM_URL: "https://sfm.nacho.cn",
|
|
161
|
+
CCFLOW_URL: "https://ccflow.nacho.cn/"
|
|
161
162
|
};
|
|
162
163
|
try {
|
|
163
164
|
if (process.env.VITE_APP_BASE_URL)
|
|
@@ -232,6 +233,9 @@ function hostConfiger(key) {
|
|
|
232
233
|
case "SFM_URL":
|
|
233
234
|
preString = "sfm";
|
|
234
235
|
break;
|
|
236
|
+
case "CCFLOW_URL":
|
|
237
|
+
preString = "ccflow";
|
|
238
|
+
break;
|
|
235
239
|
default:
|
|
236
240
|
throw new Error("no matching arguments\uFF01");
|
|
237
241
|
}
|
|
@@ -239,6 +239,16 @@ declare const API_OPTION: {
|
|
|
239
239
|
};
|
|
240
240
|
baseUrl: string;
|
|
241
241
|
};
|
|
242
|
+
sendApproval: {
|
|
243
|
+
url: string;
|
|
244
|
+
option: {
|
|
245
|
+
headers: {
|
|
246
|
+
[props: string]: any;
|
|
247
|
+
};
|
|
248
|
+
method: string;
|
|
249
|
+
};
|
|
250
|
+
baseUrl: string;
|
|
251
|
+
};
|
|
242
252
|
};
|
|
243
253
|
export declare const formatHTTP: (fetch: any) => Promise<any>;
|
|
244
254
|
export declare const formatUrl: (base: string, api: string, params?: object) => string;
|