@brushes/request 0.3.6 → 0.3.7
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/config/index.d.ts +1 -1
- package/dist/core/basic.d.ts +2 -2
- package/dist/core/getFly.d.ts +1 -1
- package/dist/core/index.d.ts +6 -6
- package/dist/index.d.ts +4 -4
- package/dist/shared/errorImpl.d.ts +4 -4
- package/dist/shared/message.d.ts +1 -1
- package/dist/shared/wxLogin.d.ts +3 -3
- package/dist/tools/format.d.ts +2 -2
- package/dist/tools/index.d.ts +4 -4
- package/dist/tools/localStorage.d.ts +10 -10
- package/dist/tools/process.d.ts +5 -5
- package/dist/tools/taroBase.d.ts +3 -3
- package/dist/utils/env.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +3 -3
- package/rollup.config.mjs +0 -16
package/dist/config/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const host = "https://brushes.oss-cn-shanghai.aliyuncs.com";
|
|
1
|
+
export declare const host = "https://brushes.oss-cn-shanghai.aliyuncs.com";
|
package/dist/core/basic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const fly: any;
|
|
2
|
-
export default fly;
|
|
1
|
+
declare const fly: any;
|
|
2
|
+
export default fly;
|
package/dist/core/getFly.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getFly: () => any;
|
|
1
|
+
export declare const getFly: () => any;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const postWithJson: (url: string, params?: {}) => any;
|
|
2
|
-
export declare const get: (url: string, params?: {}) => any;
|
|
3
|
-
export declare const postFormData: (url: string, params?: {}) => any;
|
|
4
|
-
export declare const post: (url: string, params?: {}) => any;
|
|
5
|
-
export declare const fly: any;
|
|
6
|
-
export declare function wxEngine(): void;
|
|
1
|
+
export declare const postWithJson: (url: string, params?: {}) => any;
|
|
2
|
+
export declare const get: (url: string, params?: {}) => any;
|
|
3
|
+
export declare const postFormData: (url: string, params?: {}) => any;
|
|
4
|
+
export declare const post: (url: string, params?: {}) => any;
|
|
5
|
+
export declare const fly: any;
|
|
6
|
+
export declare function wxEngine(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './core';
|
|
2
|
-
export * from './shared/wxLogin';
|
|
3
|
-
export * from './utils';
|
|
4
|
-
export * from './tools';
|
|
1
|
+
export * from './core';
|
|
2
|
+
export * from './shared/wxLogin';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './tools';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const errorImpl: (data: {
|
|
2
|
-
msg: string;
|
|
3
|
-
errorCode: string;
|
|
4
|
-
}, options: any, fly: any) => Promise<unknown> | undefined;
|
|
1
|
+
export declare const errorImpl: (data: {
|
|
2
|
+
msg: string;
|
|
3
|
+
errorCode: string;
|
|
4
|
+
}, options: any, fly: any) => Promise<unknown> | undefined;
|
package/dist/shared/message.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function message(msg: string): void;
|
|
1
|
+
export declare function message(msg: string): void;
|
package/dist/shared/wxLogin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function wxLogin(options: any, fly: any, Taro: any): Promise<unknown>;
|
|
2
|
-
export declare const errorCallback: () => void;
|
|
3
|
-
export declare const resetStatus: () => void;
|
|
1
|
+
export declare function wxLogin(options: any, fly: any, Taro: any): Promise<unknown>;
|
|
2
|
+
export declare const errorCallback: () => void;
|
|
3
|
+
export declare const resetStatus: () => void;
|
package/dist/tools/format.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const formDataTrans: (params: any) => FormData;
|
|
2
|
-
export declare const getParams: (params?: {}) => import("lodash").Dictionary<any>;
|
|
1
|
+
export declare const formDataTrans: (params: any) => FormData;
|
|
2
|
+
export declare const getParams: (params?: {}) => import("lodash").Dictionary<any>;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './taroBase';
|
|
2
|
-
export * from './localStorage';
|
|
3
|
-
export * from './format';
|
|
4
|
-
export * from './process';
|
|
1
|
+
export * from './taroBase';
|
|
2
|
+
export * from './localStorage';
|
|
3
|
+
export * from './format';
|
|
4
|
+
export * from './process';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取
|
|
3
|
-
*/
|
|
4
|
-
export declare const getStorageWeb: (key: string) => any;
|
|
5
|
-
export declare const getStorage: (key: string) => any;
|
|
6
|
-
export declare const setStorageWeb: (key: string, obj: string | {
|
|
7
|
-
[v: string]: unknown;
|
|
8
|
-
}) => void;
|
|
9
|
-
export declare const setStorage: (key: string, obj: any) => void;
|
|
10
|
-
export declare const removeStorage: (key: string) => void;
|
|
1
|
+
/**
|
|
2
|
+
* 获取
|
|
3
|
+
*/
|
|
4
|
+
export declare const getStorageWeb: (key: string) => any;
|
|
5
|
+
export declare const getStorage: (key: string) => any;
|
|
6
|
+
export declare const setStorageWeb: (key: string, obj: string | {
|
|
7
|
+
[v: string]: unknown;
|
|
8
|
+
}) => void;
|
|
9
|
+
export declare const setStorage: (key: string, obj: any) => void;
|
|
10
|
+
export declare const removeStorage: (key: string) => void;
|
package/dist/tools/process.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function getKey(): string;
|
|
2
|
-
export declare function getTokenValueKey(): string;
|
|
3
|
-
export declare function getBaseUrl(): string;
|
|
4
|
-
export declare function getH5Platform(): string;
|
|
5
|
-
export declare function isMobileTerminal(): boolean | "";
|
|
1
|
+
export declare function getKey(): string;
|
|
2
|
+
export declare function getTokenValueKey(): string;
|
|
3
|
+
export declare function getBaseUrl(): string;
|
|
4
|
+
export declare function getH5Platform(): string;
|
|
5
|
+
export declare function isMobileTerminal(): boolean | "";
|
package/dist/tools/taroBase.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getEnv(): boolean;
|
|
2
|
-
export declare function getTaro(): any;
|
|
3
|
-
export declare function setTaro(libary: Object): void;
|
|
1
|
+
export declare function getEnv(): boolean;
|
|
2
|
+
export declare function getTaro(): any;
|
|
3
|
+
export declare function setTaro(libary: Object): void;
|
package/dist/utils/env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getTaroEnv(Taro: any): string;
|
|
1
|
+
export declare function getTaroEnv(Taro: any): string;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './env';
|
|
1
|
+
export * from './env';
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brushes/request",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"license": "MIT",
|
|
7
6
|
"scripts": {
|
|
8
7
|
"build": "rm -rf dist && prettier --write src/ && rollup -c",
|
|
@@ -14,7 +13,8 @@
|
|
|
14
13
|
"@types/node": "^18.14.5",
|
|
15
14
|
"@types/qs": "^6.9.9",
|
|
16
15
|
"lodash-es": "^4.17.12",
|
|
17
|
-
"rollup-plugin-typescript2": "^0.34.1"
|
|
16
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
17
|
+
"typescript": "^4.4.4"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"flyio": "^0.6.14",
|
package/rollup.config.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import ts from 'rollup-plugin-typescript2';
|
|
2
|
-
import terser from '@rollup/plugin-terser';
|
|
3
|
-
export default {
|
|
4
|
-
input: 'src/index.ts',
|
|
5
|
-
output: [
|
|
6
|
-
{
|
|
7
|
-
name: 'request-index',
|
|
8
|
-
file: 'dist/index.js',
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
external: ['lodash-es', 'qs', '@brushes/utils', 'flyio/src/adapter/wx', 'flyio/dist/npm/engine-wrapper', 'flyio/dist/npm/fly'],
|
|
12
|
-
plugins: [
|
|
13
|
-
ts({}),
|
|
14
|
-
terser()
|
|
15
|
-
]
|
|
16
|
-
};
|