@zhangcf233/pay 1.0.4 → 1.0.5
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Channel } from "../@types";
|
|
2
|
+
/** 当前支持的渠道类型*/
|
|
3
|
+
export declare const EnableChannel: {
|
|
4
|
+
alipay: (options: import("./pay").BasePayOptions) => Promise<{
|
|
5
|
+
status: boolean;
|
|
6
|
+
message: string;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
};
|
|
9
|
+
/** 过滤当前支持的渠道*/
|
|
10
|
+
export default function (list: Channel[]): Channel[];
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { Config } from "./@types";
|
|
2
2
|
export declare const BaseTheme = "orange";
|
|
3
3
|
export declare const AgentConfig: Config;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const UserConfig: Config;
|
|
5
5
|
/** 完整支付配置*/
|
|
6
6
|
export declare const PayAllConfig: {
|
|
7
7
|
readonly agent: Config;
|
|
8
|
-
readonly
|
|
9
|
-
readonly needId: true;
|
|
10
|
-
readonly balance: {
|
|
11
|
-
readonly disabled: true;
|
|
12
|
-
};
|
|
13
|
-
readonly price: {
|
|
14
|
-
readonly disabled: true;
|
|
15
|
-
};
|
|
16
|
-
readonly channel: {
|
|
17
|
-
readonly api: "/SystemPayment/GetVipList";
|
|
18
|
-
};
|
|
19
|
-
readonly pay: {
|
|
20
|
-
readonly key: "vipId";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
8
|
+
readonly user: Config;
|
|
23
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhangcf233/pay",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "dist/pay.umd.js",
|
|
5
5
|
"module": "dist/pay.es.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build:types": "vue-tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
13
13
|
"build": " vite build && npm run build:types",
|
|
14
|
-
"
|
|
14
|
+
"link": "npm run build && npm link"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"vant": "^2.13.9"
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
"vue-class-component": "^7.2.3",
|
|
26
26
|
"vue-property-decorator": "^9.1.2",
|
|
27
27
|
"vue-template-compiler": "^2.6.14",
|
|
28
|
-
"vue-tsc": "^3.0.5"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
28
|
+
"vue-tsc": "^3.0.5",
|
|
31
29
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
32
30
|
"vue": "^2.7.16"
|
|
33
31
|
},
|