@zhangcf233/pay 1.0.9 → 1.0.10

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.
@@ -2,4 +2,4 @@ import { PayAllConfig } from "../config";
2
2
  import { PayCreateType } from "./config";
3
3
  export type VoidCallback = () => void;
4
4
  export type PayCreateArg<T extends PayCreateType> = typeof PayAllConfig[T]['needId'] extends true ? [id: string] : [];
5
- export type PayCreate = <T extends PayCreateType>(type: T, ...args: PayCreateArg<T>) => void;
5
+ export type PayCreate = <T extends PayCreateType>(type: T, ...args: PayCreateArg<T>) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangcf233/pay",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "dist/pay.umd.js",
5
5
  "module": "dist/pay.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -12,7 +12,7 @@
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
- "publish": "npm run build && npm publish --access public"
15
+ "prepublishOnly": "npm run build"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "vant": "^2.13.8",