@bootpay/client-js 5.2.0-beta.10 → 5.2.0-beta.11

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.
@@ -3,7 +3,7 @@ export declare class BootpayManager {
3
3
  $present(value: any): boolean;
4
4
  $type(value: any, type: string): boolean;
5
5
  $uuid(): string;
6
- $encrypt(data: any): any;
7
- $decrypt(payload: string): any;
6
+ $encrypt(data: any): string;
7
+ $decrypt(payload: string): string;
8
8
  getUserAgent(): string;
9
9
  }
@@ -7,7 +7,7 @@ export declare class ExStoreManager extends BootpayStoreManager {
7
7
  constructor();
8
8
  setExData(el: string, data: RequestExModel): void;
9
9
  encryptParameters(): string;
10
- encryptKey(): any;
10
+ encryptKey(): string;
11
11
  currentBootpayStoreParameters(): string;
12
12
  }
13
13
  export declare const ExStore: ExStoreManager;
@@ -1,7 +1,7 @@
1
1
  export declare class BootpayStoreManager {
2
2
  data: any;
3
3
  constructor();
4
- encryptKey(): any;
5
- encrypt(data: object | string): any;
4
+ encryptKey(): string;
5
+ encrypt(data: object | string): string;
6
6
  decrypt(data: string): any | string;
7
7
  }
@@ -12,7 +12,7 @@ export declare class WidgetStoreManager extends BootpayStoreManager {
12
12
  setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
13
13
  updateOnProcessing(data: WidgetStoreData): void;
14
14
  encryptParameters(): string;
15
- encryptKey(): any;
15
+ encryptKey(): string;
16
16
  /**
17
17
  * 결제 요청시 가져올 extra 값
18
18
  * Comment by GOSOMI
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@bootpay/client-js",
3
- "version": "5.2.0-beta.10",
4
- "main": "dist/index.es.js",
3
+ "version": "5.2.0-beta.11",
4
+ "main": "dist/index.mjs",
5
+ "type": "module",
5
6
  "exports": {
6
7
  ".": {
7
- "import": "./dist/index.es.js",
8
- "require": "./dist/index.cjs.js",
9
- "types": "./dist/index.d.ts"
10
- },
11
- "./package.json": "./package.json"
8
+ "import": "./dist/index.js",
9
+ "types": "./dist/src/index.d.ts"
10
+ }
12
11
  },
13
12
  "styles": "dist/index.css",
14
13
  "scripts": {
package/tsconfig.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "esnext",
4
- "module": "esnext",
5
4
  "sourceMap": false,
6
5
  "lib": [
7
6
  "esnext",
8
7
  "dom"
9
8
  ],
10
- "moduleResolution": "nodenext",
9
+ "module": "commonjs",
10
+ "moduleResolution": "node",
11
11
  "allowSyntheticDefaultImports": true,
12
12
  "resolveJsonModule": true,
13
13
  "esModuleInterop": true,
@@ -24,13 +24,16 @@
24
24
  "../node_modules/*",
25
25
  "./*"
26
26
  ]
27
- }
27
+ },
28
+ "types": [
29
+ "./src/types/*.d.ts"
30
+ ]
28
31
  },
29
32
  "include": [
30
33
  "src/**/*.ts",
31
- "src/**/*.d.ts",
32
34
  "src/**/*.js",
33
- "src/**/*.json"
35
+ "src/**/*.json",
36
+ "src/**/*.vue"
34
37
  ],
35
38
  "exclude": [
36
39
  "**/*.spec.ts",
package/vite.config.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { defineConfig } from 'vite'
2
2
  import dts from 'vite-plugin-dts'
3
3
  import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
4
-
5
- const path = require('path')
4
+ import path from 'path'
6
5
 
7
6
  export default defineConfig({
8
7
  build: {