@pisell/common 0.0.17-3 → 0.0.17
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/es/script/utils/index.js +1 -1
- package/lib/script/utils/index.js +1 -1
- package/package.json +1 -1
- package/es/config/index.d.ts +0 -30
- package/lib/config/index.d.ts +0 -30
package/es/script/utils/index.js
CHANGED
package/package.json
CHANGED
package/es/config/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare type PisellConfigType = {
|
|
2
|
-
ENV: {
|
|
3
|
-
host: string;
|
|
4
|
-
socket: string;
|
|
5
|
-
helpHost: string;
|
|
6
|
-
boxlocal_h5: string;
|
|
7
|
-
accounts: string;
|
|
8
|
-
domain: string;
|
|
9
|
-
googleMap: string;
|
|
10
|
-
appCenter: string;
|
|
11
|
-
static: string;
|
|
12
|
-
};
|
|
13
|
-
/** 当前主项目类型 */
|
|
14
|
-
platform: 'shop' | string;
|
|
15
|
-
/** 包内请求 由主项目注入 */
|
|
16
|
-
request: {
|
|
17
|
-
get: RequestMethod;
|
|
18
|
-
post: RequestMethod;
|
|
19
|
-
put: RequestMethod;
|
|
20
|
-
remove: RequestMethod;
|
|
21
|
-
request: RequestMethod;
|
|
22
|
-
};
|
|
23
|
-
/** 消息通知url */
|
|
24
|
-
webhookUrl?: string;
|
|
25
|
-
};
|
|
26
|
-
export interface RequestMethod {
|
|
27
|
-
<T = any>(url: string, data?: Record<string, any>, config?: any): Promise<T>;
|
|
28
|
-
}
|
|
29
|
-
export declare const initConfig: (options: PisellConfigType) => void;
|
|
30
|
-
export declare const getConfig: () => PisellConfigType;
|
package/lib/config/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare type PisellConfigType = {
|
|
2
|
-
ENV: {
|
|
3
|
-
host: string;
|
|
4
|
-
socket: string;
|
|
5
|
-
helpHost: string;
|
|
6
|
-
boxlocal_h5: string;
|
|
7
|
-
accounts: string;
|
|
8
|
-
domain: string;
|
|
9
|
-
googleMap: string;
|
|
10
|
-
appCenter: string;
|
|
11
|
-
static: string;
|
|
12
|
-
};
|
|
13
|
-
/** 当前主项目类型 */
|
|
14
|
-
platform: 'shop' | string;
|
|
15
|
-
/** 包内请求 由主项目注入 */
|
|
16
|
-
request: {
|
|
17
|
-
get: RequestMethod;
|
|
18
|
-
post: RequestMethod;
|
|
19
|
-
put: RequestMethod;
|
|
20
|
-
remove: RequestMethod;
|
|
21
|
-
request: RequestMethod;
|
|
22
|
-
};
|
|
23
|
-
/** 消息通知url */
|
|
24
|
-
webhookUrl?: string;
|
|
25
|
-
};
|
|
26
|
-
export interface RequestMethod {
|
|
27
|
-
<T = any>(url: string, data?: Record<string, any>, config?: any): Promise<T>;
|
|
28
|
-
}
|
|
29
|
-
export declare const initConfig: (options: PisellConfigType) => void;
|
|
30
|
-
export declare const getConfig: () => PisellConfigType;
|