@paykka/card-checkout-ui 0.21.0 → 0.21.2

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/polyfill.js CHANGED
@@ -1,166 +1,166 @@
1
- ;(function (global) {
2
- 'use strict'
3
-
4
- // globalThis
5
- if (typeof global.globalThis === 'undefined') {
6
- global.globalThis = global
7
- }
8
-
9
- // Object.values
10
- if (typeof Object.values !== 'function') {
11
- Object.values = function (obj) {
12
- if (obj == null) {
13
- throw new TypeError('Cannot convert undefined or null to object')
14
- }
15
-
16
- var target = Object(obj)
17
- var keys = Object.keys(target)
18
- var result = new Array(keys.length)
19
-
20
- for (var i = 0; i < keys.length; i++) {
21
- result[i] = target[keys[i]]
22
- }
23
-
24
- return result
25
- }
26
- }
27
-
28
- // Object.entries
29
- if (typeof Object.entries !== 'function') {
30
- Object.entries = function (obj) {
31
- if (obj == null) {
32
- throw new TypeError('Cannot convert undefined or null to object')
33
- }
34
-
35
- var target = Object(obj)
36
- var keys = Object.keys(target)
37
- var result = new Array(keys.length)
38
-
39
- for (var i = 0; i < keys.length; i++) {
40
- result[i] = [keys[i], target[keys[i]]]
41
- }
42
-
43
- return result
44
- }
45
- }
46
-
47
- // Promise.prototype.finally
48
- if (
49
- typeof global.Promise !== 'undefined' &&
50
- global.Promise.prototype &&
51
- typeof global.Promise.prototype.finally !== 'function'
52
- ) {
53
- global.Promise.prototype.finally = function (onFinally) {
54
- var P = this.constructor
55
-
56
- return this.then(
57
- function (value) {
58
- return P.resolve(
59
- typeof onFinally === 'function' ? onFinally() : onFinally
60
- ).then(function () {
61
- return value
62
- })
63
- },
64
- function (reason) {
65
- return P.resolve(
66
- typeof onFinally === 'function' ? onFinally() : onFinally
67
- ).then(function () {
68
- throw reason
69
- })
70
- }
71
- )
72
- }
73
- }
74
-
75
- // AbortController minimal shim
76
- // 说明:
77
- // 1. 只解决 "AbortController is not defined"
78
- // 2. 不保证旧浏览器原生 fetch 一定真正中断请求
79
- // 3. 但足够避免直接 ReferenceError,并让依赖 signal 的逻辑尽量工作
80
- if (typeof global.AbortController === 'undefined') {
81
- function AbortSignal() {
82
- this.aborted = false
83
- this.reason = void 0
84
- this.onabort = null
85
- this._listeners = []
86
- }
87
-
88
- AbortSignal.prototype.addEventListener = function (type, listener) {
89
- if (type !== 'abort' || typeof listener !== 'function') return
90
- this._listeners.push(listener)
91
- }
92
-
93
- AbortSignal.prototype.removeEventListener = function (type, listener) {
94
- if (type !== 'abort') return
95
-
96
- for (var i = 0; i < this._listeners.length; i++) {
97
- if (this._listeners[i] === listener) {
98
- this._listeners.splice(i, 1)
99
- break
100
- }
101
- }
102
- }
103
-
104
- AbortSignal.prototype.dispatchEvent = function (event) {
105
- var listeners = this._listeners.slice()
106
-
107
- for (var i = 0; i < listeners.length; i++) {
108
- try {
109
- listeners[i].call(this, event)
110
- } catch (e) {}
111
- }
112
-
113
- return true
114
- }
115
-
116
- function AbortController() {
117
- this.signal = new AbortSignal()
118
- }
119
-
120
- AbortController.prototype.abort = function (reason) {
121
- if (this.signal.aborted) return
122
-
123
- this.signal.aborted = true
124
- this.signal.reason = reason
125
-
126
- var event = { type: 'abort' }
127
-
128
- if (typeof this.signal.onabort === 'function') {
129
- try {
130
- this.signal.onabort.call(this.signal, event)
131
- } catch (e) {}
132
- }
133
-
134
- this.signal.dispatchEvent(event)
135
- }
136
-
137
- global.AbortController = AbortController
138
- global.AbortSignal = AbortSignal
139
- }
140
-
141
- // postMessage compatibility helper
142
- // 用法:
143
- // window.__postMessageCompat(targetWindow, data, targetOrigin)
144
- //
145
- // 说明:
146
- // 旧 WebView 不支持 postMessage(message, { targetOrigin })
147
- // 必须改成 postMessage(message, targetOrigin)
148
- if (typeof global.__postMessageCompat !== 'function') {
149
- global.__postMessageCompat = function (targetWindow, data, targetOrigin) {
150
- if (!targetWindow || targetWindow === global) return
151
-
152
- var message = typeof data === 'string' ? data : JSON.stringify(data)
153
- var origin = typeof targetOrigin === 'string' ? targetOrigin : '*'
154
-
155
- targetWindow.postMessage(message, origin)
156
- }
157
- }
158
- })(
159
- typeof window !== 'undefined'
160
- ? window
161
- : typeof globalThis !== 'undefined'
162
- ? globalThis
163
- : typeof self !== 'undefined'
164
- ? self
165
- : this
1
+ ;(function (global) {
2
+ 'use strict'
3
+
4
+ // globalThis
5
+ if (typeof global.globalThis === 'undefined') {
6
+ global.globalThis = global
7
+ }
8
+
9
+ // Object.values
10
+ if (typeof Object.values !== 'function') {
11
+ Object.values = function (obj) {
12
+ if (obj == null) {
13
+ throw new TypeError('Cannot convert undefined or null to object')
14
+ }
15
+
16
+ var target = Object(obj)
17
+ var keys = Object.keys(target)
18
+ var result = new Array(keys.length)
19
+
20
+ for (var i = 0; i < keys.length; i++) {
21
+ result[i] = target[keys[i]]
22
+ }
23
+
24
+ return result
25
+ }
26
+ }
27
+
28
+ // Object.entries
29
+ if (typeof Object.entries !== 'function') {
30
+ Object.entries = function (obj) {
31
+ if (obj == null) {
32
+ throw new TypeError('Cannot convert undefined or null to object')
33
+ }
34
+
35
+ var target = Object(obj)
36
+ var keys = Object.keys(target)
37
+ var result = new Array(keys.length)
38
+
39
+ for (var i = 0; i < keys.length; i++) {
40
+ result[i] = [keys[i], target[keys[i]]]
41
+ }
42
+
43
+ return result
44
+ }
45
+ }
46
+
47
+ // Promise.prototype.finally
48
+ if (
49
+ typeof global.Promise !== 'undefined' &&
50
+ global.Promise.prototype &&
51
+ typeof global.Promise.prototype.finally !== 'function'
52
+ ) {
53
+ global.Promise.prototype.finally = function (onFinally) {
54
+ var P = this.constructor
55
+
56
+ return this.then(
57
+ function (value) {
58
+ return P.resolve(
59
+ typeof onFinally === 'function' ? onFinally() : onFinally
60
+ ).then(function () {
61
+ return value
62
+ })
63
+ },
64
+ function (reason) {
65
+ return P.resolve(
66
+ typeof onFinally === 'function' ? onFinally() : onFinally
67
+ ).then(function () {
68
+ throw reason
69
+ })
70
+ }
71
+ )
72
+ }
73
+ }
74
+
75
+ // AbortController minimal shim
76
+ // 说明:
77
+ // 1. 只解决 "AbortController is not defined"
78
+ // 2. 不保证旧浏览器原生 fetch 一定真正中断请求
79
+ // 3. 但足够避免直接 ReferenceError,并让依赖 signal 的逻辑尽量工作
80
+ if (typeof global.AbortController === 'undefined') {
81
+ function AbortSignal() {
82
+ this.aborted = false
83
+ this.reason = void 0
84
+ this.onabort = null
85
+ this._listeners = []
86
+ }
87
+
88
+ AbortSignal.prototype.addEventListener = function (type, listener) {
89
+ if (type !== 'abort' || typeof listener !== 'function') return
90
+ this._listeners.push(listener)
91
+ }
92
+
93
+ AbortSignal.prototype.removeEventListener = function (type, listener) {
94
+ if (type !== 'abort') return
95
+
96
+ for (var i = 0; i < this._listeners.length; i++) {
97
+ if (this._listeners[i] === listener) {
98
+ this._listeners.splice(i, 1)
99
+ break
100
+ }
101
+ }
102
+ }
103
+
104
+ AbortSignal.prototype.dispatchEvent = function (event) {
105
+ var listeners = this._listeners.slice()
106
+
107
+ for (var i = 0; i < listeners.length; i++) {
108
+ try {
109
+ listeners[i].call(this, event)
110
+ } catch (e) {}
111
+ }
112
+
113
+ return true
114
+ }
115
+
116
+ function AbortController() {
117
+ this.signal = new AbortSignal()
118
+ }
119
+
120
+ AbortController.prototype.abort = function (reason) {
121
+ if (this.signal.aborted) return
122
+
123
+ this.signal.aborted = true
124
+ this.signal.reason = reason
125
+
126
+ var event = { type: 'abort' }
127
+
128
+ if (typeof this.signal.onabort === 'function') {
129
+ try {
130
+ this.signal.onabort.call(this.signal, event)
131
+ } catch (e) {}
132
+ }
133
+
134
+ this.signal.dispatchEvent(event)
135
+ }
136
+
137
+ global.AbortController = AbortController
138
+ global.AbortSignal = AbortSignal
139
+ }
140
+
141
+ // postMessage compatibility helper
142
+ // 用法:
143
+ // window.__postMessageCompat(targetWindow, data, targetOrigin)
144
+ //
145
+ // 说明:
146
+ // 旧 WebView 不支持 postMessage(message, { targetOrigin })
147
+ // 必须改成 postMessage(message, targetOrigin)
148
+ if (typeof global.__postMessageCompat !== 'function') {
149
+ global.__postMessageCompat = function (targetWindow, data, targetOrigin) {
150
+ if (!targetWindow || targetWindow === global) return
151
+
152
+ var message = typeof data === 'string' ? data : JSON.stringify(data)
153
+ var origin = typeof targetOrigin === 'string' ? targetOrigin : '*'
154
+
155
+ targetWindow.postMessage(message, origin)
156
+ }
157
+ }
158
+ })(
159
+ typeof window !== 'undefined'
160
+ ? window
161
+ : typeof globalThis !== 'undefined'
162
+ ? globalThis
163
+ : typeof self !== 'undefined'
164
+ ? self
165
+ : this
166
166
  )
@@ -1,2 +1,4 @@
1
1
  import { type RequestOptions } from '../../http';
2
- export declare const getMerchantSession: (options?: RequestOptions) => Promise<any>;
2
+ export declare const getMerchantSession: (params: {
3
+ merchantId?: string;
4
+ }, options?: RequestOptions) => Promise<any>;
@@ -8,8 +8,8 @@ import type { DokuProps, DokuRef } from './type';
8
8
  export declare const Doku: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<DokuProps & import("../../../types").PayKKaCommonConfig & {
9
9
  session: import("../../../core").Session;
10
10
  core: import("../../../core").PayKKaCheckout;
11
- threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
12
- isDropIn?: boolean | undefined;
11
+ threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 表单是否验证通过 */
12
+ isDropIn?: boolean | undefined; /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
13
13
  }> & {
14
14
  ref?: import("preact").Ref<DokuRef> | undefined;
15
15
  }>;
@@ -9,7 +9,7 @@ import './dragon-pay.scss';
9
9
  export declare const DragonPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<DragonPayProps & import("../../../types").PayKKaCommonConfig & {
10
10
  session: import("../../../core").Session;
11
11
  core: import("../../../core").PayKKaCheckout;
12
- threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 设置表单引用时触发静默校验,避免表单引用初始化未完成时提前触发 */
12
+ threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
13
13
  isDropIn?: boolean | undefined;
14
14
  }> & {
15
15
  ref?: import("preact").Ref<DragonPayRef> | undefined;
@@ -7,7 +7,6 @@ import type { GoPayProps, GoPayRef } from './type';
7
7
  */
8
8
  export declare const GoPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<GoPayProps & import("../../../types").PayKKaCommonConfig & {
9
9
  session: import("../../../core").Session;
10
- /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
11
10
  core: import("../../../core").PayKKaCheckout;
12
11
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
13
12
  isDropIn?: boolean | undefined;
@@ -6,7 +6,7 @@ import type { IDealProps, IDealRef } from './type';
6
6
  * - 支付:跳转至银行页面完成支付
7
7
  */
8
8
  export declare const IDeal: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<IDealProps & import("../../../types").PayKKaCommonConfig & {
9
- session: import("../../../core").Session;
9
+ session: import("../../../core").Session; /** 表单数据 */
10
10
  core: import("../../../core").PayKKaCheckout;
11
11
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
12
12
  isDropIn?: boolean | undefined;
@@ -8,8 +8,8 @@ import type { LinkAjaProps, LinkAjaRef } from './type';
8
8
  export declare const LinkAja: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<LinkAjaProps & import("../../../types").PayKKaCommonConfig & {
9
9
  session: import("../../../core").Session;
10
10
  core: import("../../../core").PayKKaCheckout;
11
- threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 表单是否验证通过 */
12
- isDropIn?: boolean | undefined; /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
11
+ threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
12
+ isDropIn?: boolean | undefined;
13
13
  }> & {
14
14
  ref?: import("preact").Ref<LinkAjaRef> | undefined;
15
15
  }>;
@@ -6,7 +6,6 @@ import type { MyBankProps, MyBankRef } from './type';
6
6
  * - 支付:跳转至 MyBank 页面完成支付
7
7
  */
8
8
  export declare const MyBank: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<MyBankProps & import("../../../types").PayKKaCommonConfig & {
9
- /** 表单数据 */
10
9
  session: import("../../../core").Session;
11
10
  core: import("../../../core").PayKKaCheckout;
12
11
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
@@ -9,7 +9,6 @@ import './online-banking-estonia.scss';
9
9
  export declare const OnlineBankingEstonia: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingEstoniaProps & import("../../../types").PayKKaCommonConfig & {
10
10
  session: import("../../../core").Session;
11
11
  core: import("../../../core").PayKKaCheckout;
12
- /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
13
12
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
14
13
  isDropIn?: boolean | undefined;
15
14
  }> & {
@@ -9,7 +9,6 @@ import './online-banking-finland.scss';
9
9
  export declare const OnlineBankingFinland: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OnlineBankingFinlandProps & import("../../../types").PayKKaCommonConfig & {
10
10
  session: import("../../../core").Session;
11
11
  core: import("../../../core").PayKKaCheckout;
12
- /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
13
12
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
14
13
  isDropIn?: boolean | undefined;
15
14
  }> & {
@@ -9,7 +9,7 @@ export declare const P24: import("preact").FunctionalComponent<import("preact/co
9
9
  session: import("../../../core").Session;
10
10
  core: import("../../../core").PayKKaCheckout;
11
11
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
12
- isDropIn?: boolean | undefined;
12
+ isDropIn?: boolean | undefined; /** 设置表单引用时触发静默校验,避免表单引用初始化未完成时提前触发 */
13
13
  }> & {
14
14
  ref?: import("preact").Ref<P24Ref> | undefined;
15
15
  }>;
@@ -8,7 +8,7 @@ import type { PayUProps, PayURef } from './type';
8
8
  export declare const PayU: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PayUProps & import("../../../types").PayKKaCommonConfig & {
9
9
  session: import("../../../core").Session;
10
10
  core: import("../../../core").PayKKaCheckout;
11
- threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined; /** 表单是否验证通过 */
11
+ threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
12
12
  isDropIn?: boolean | undefined;
13
13
  }> & {
14
14
  ref?: import("preact").Ref<PayURef> | undefined;
@@ -7,7 +7,6 @@ import type { TwintProps, TwintRef } from './type';
7
7
  */
8
8
  export declare const Twint: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<TwintProps & import("../../../types").PayKKaCommonConfig & {
9
9
  session: import("../../../core").Session;
10
- /** 静默校验,校验表单但不展示错误提示,仅更新校验结果 */
11
10
  core: import("../../../core").PayKKaCheckout;
12
11
  threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
13
12
  isDropIn?: boolean | undefined;
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@paykka/card-checkout-ui",
3
- "version": "0.21.0",
4
- "type": "module",
5
- "main": "dist/paykka-card-checkout-ui.umd.js",
6
- "module": "dist/es/index.js",
7
- "typings": "dist/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/es/index.js",
11
- "require": "./dist/paykka-card-checkout-ui.umd.js",
12
- "types": "./dist/types/index.d.ts"
13
- },
14
- "./*": "./dist/*"
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "scripts": {
20
- "dev": "vite --host",
21
- "build": "pnpm type-check && pnpm build:npm && pnpm build:inner && pnpm copy-dist-to-cdn && pnpm build:outer",
22
- "build:npm": "tsx ./build/run.ts",
23
- "build:inner": "tsx ./build/runInner.ts",
24
- "build:outer": "tsx ./build/runOuter.ts",
25
- "build:type": "tsc -p ./tsconfig.build.json",
26
- "copy-dist-to-cdn": "tsx ./build/copyDist2CDN.ts",
27
- "changeset": "changeset",
28
- "changeset:fat-enter": "changeset pre enter beta",
29
- "changeset:dev-enter": "changeset pre enter alpha",
30
- "changeset:sandbox-enter": "changeset pre enter rc",
31
- "changeset:fat": "changeset publish --tag beta",
32
- "changeset:dev": "changeset publish --tag alpha",
33
- "changeset:sandbox": "changeset publish --tag rc",
34
- "changeset:pre-exit": "changeset pre exit",
35
- "changeset:version": "changeset version",
36
- "changeset:release": "changeset publish",
37
- "release:dev": "node scripts/release.cjs dev",
38
- "release:fat": "node scripts/release.cjs fat",
39
- "release:sandbox": "node scripts/release.cjs sandbox",
40
- "release:noprod": "node scripts/release.cjs noprod",
41
- "release:npm": "node scripts/release.cjs npm",
42
- "release:prod": "node scripts/release.cjs prod",
43
- "type-check": "tsc --noEmit -p tsconfig.json --composite false",
44
- "prepack": "node scripts/npm-readme.cjs enable",
45
- "postpack": "node scripts/npm-readme.cjs disable"
46
- },
47
- "publishConfig": {
48
- "registry": "https://packages.aliyun.com/640edee5a84870ae9d591e48/npm/npm-registry/"
49
- },
50
- "dependencies": {
51
- "@ctrl/tinycolor": "^4.0.3",
52
- "@fingerprintjs/fingerprintjs": "^4.2.2",
53
- "@noble/ciphers": "^2.1.1",
54
- "@preact/signals": "^1.3.0",
55
- "@types/applepayjs": "^14.0.9",
56
- "@types/googlepay": "^0.7.7",
57
- "@types/qrcode": "^1.5.5",
58
- "preact": "^10.24.3",
59
- "qrcode": "^1.5.4",
60
- "ts-toolbelt": "^9.6.0",
61
- "unfetch": "^5.0.0",
62
- "vconsole": "^3.15.1",
63
- "vue-tsc": "^2.1.10"
64
- },
65
- "devDependencies": {
66
- "@babel/core": "^7.29.0",
67
- "@babel/preset-env": "^7.29.2",
68
- "@changesets/cli": "^2.27.1",
69
- "@preact/preset-vite": "^2.9.1",
70
- "@types/node": "^20.12.7",
71
- "autoprefixer": "^10.4.18",
72
- "core-js": "^3.49.0",
73
- "execa": "^8.0.1",
74
- "fast-glob": "^3.3.2",
75
- "sass": "^1.71.1",
76
- "terser": "^5.42.0",
77
- "tsx": "^4.7.3",
78
- "typescript": "^5.4.5",
79
- "vite": "^5.2.10"
80
- }
81
- }
1
+ {
2
+ "name": "@paykka/card-checkout-ui",
3
+ "version": "0.21.2",
4
+ "type": "module",
5
+ "main": "dist/paykka-card-checkout-ui.umd.js",
6
+ "module": "dist/es/index.js",
7
+ "typings": "dist/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/es/index.js",
11
+ "require": "./dist/paykka-card-checkout-ui.umd.js",
12
+ "types": "./dist/types/index.d.ts"
13
+ },
14
+ "./*": "./dist/*"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite --host",
21
+ "build": "pnpm type-check && pnpm build:npm && pnpm build:inner && pnpm copy-dist-to-cdn && pnpm build:outer",
22
+ "build:npm": "tsx ./build/run.ts",
23
+ "build:inner": "tsx ./build/runInner.ts",
24
+ "build:outer": "tsx ./build/runOuter.ts",
25
+ "build:type": "tsc -p ./tsconfig.build.json",
26
+ "copy-dist-to-cdn": "tsx ./build/copyDist2CDN.ts",
27
+ "changeset": "changeset",
28
+ "changeset:fat-enter": "changeset pre enter beta",
29
+ "changeset:dev-enter": "changeset pre enter alpha",
30
+ "changeset:sandbox-enter": "changeset pre enter rc",
31
+ "changeset:fat": "changeset publish --tag beta",
32
+ "changeset:dev": "changeset publish --tag alpha",
33
+ "changeset:sandbox": "changeset publish --tag rc",
34
+ "changeset:pre-exit": "changeset pre exit",
35
+ "changeset:version": "changeset version",
36
+ "changeset:release": "changeset publish",
37
+ "release:dev": "node scripts/release.cjs dev",
38
+ "release:fat": "node scripts/release.cjs fat",
39
+ "release:sandbox": "node scripts/release.cjs sandbox",
40
+ "release:noprod": "node scripts/release.cjs noprod",
41
+ "release:npm": "node scripts/release.cjs npm",
42
+ "release:prod": "node scripts/release.cjs prod",
43
+ "type-check": "tsc --noEmit -p tsconfig.json --composite false",
44
+ "prepack": "node scripts/npm-readme.cjs enable",
45
+ "postpack": "node scripts/npm-readme.cjs disable"
46
+ },
47
+ "publishConfig": {
48
+ "registry": "https://packages.aliyun.com/640edee5a84870ae9d591e48/npm/npm-registry/"
49
+ },
50
+ "dependencies": {
51
+ "@ctrl/tinycolor": "^4.0.3",
52
+ "@fingerprintjs/fingerprintjs": "^4.2.2",
53
+ "@noble/ciphers": "^2.1.1",
54
+ "@preact/signals": "^1.3.0",
55
+ "@types/applepayjs": "^14.0.9",
56
+ "@types/googlepay": "^0.7.7",
57
+ "@types/qrcode": "^1.5.5",
58
+ "preact": "^10.24.3",
59
+ "qrcode": "^1.5.4",
60
+ "ts-toolbelt": "^9.6.0",
61
+ "unfetch": "^5.0.0",
62
+ "vconsole": "^3.15.1",
63
+ "vue-tsc": "^2.1.10"
64
+ },
65
+ "devDependencies": {
66
+ "@babel/core": "^7.29.0",
67
+ "@babel/preset-env": "^7.29.2",
68
+ "@changesets/cli": "^2.27.1",
69
+ "@preact/preset-vite": "^2.9.1",
70
+ "@types/node": "^20.12.7",
71
+ "autoprefixer": "^10.4.18",
72
+ "core-js": "^3.49.0",
73
+ "execa": "^8.0.1",
74
+ "fast-glob": "^3.3.2",
75
+ "sass": "^1.71.1",
76
+ "terser": "^5.42.0",
77
+ "tsx": "^4.7.3",
78
+ "typescript": "^5.4.5",
79
+ "vite": "^5.2.10"
80
+ }
81
+ }