@medipass/checkout-sdk 3.1.0 → 3.3.0-beta.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/.eslintrc +1 -1
- package/.github/workflows/node.js.yml +30 -0
- package/dist/cjs/constants.d.ts +1 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +3 -3
- package/dist/esm/constants.d.ts +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +3 -3
- package/dist/umd/constants.d.ts +1 -0
- package/dist/umd/index.d.ts +6 -0
- package/dist/umd/index.min.js +3 -11
- package/package.json +5 -4
- package/scripts/release.mjs +285 -0
- package/src/constants.ts +1 -0
- package/src/index.ts +17 -1
package/.eslintrc
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: Node.js CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ "master" ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "master" ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
node-version: [16.x, 18.x, 20.x, 22.x]
|
|
20
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v3
|
|
24
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
25
|
+
uses: actions/setup-node@v3
|
|
26
|
+
with:
|
|
27
|
+
node-version: ${{ matrix.node-version }}
|
|
28
|
+
cache: 'yarn'
|
|
29
|
+
- run: yarn
|
|
30
|
+
- run: yarn build
|
package/dist/cjs/constants.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const EVENTS: {
|
|
|
16
16
|
readonly SUCCESS: "success";
|
|
17
17
|
readonly fAILURE: "failure";
|
|
18
18
|
readonly CANCEL: "cancel";
|
|
19
|
+
readonly EXPIRED: "expired";
|
|
19
20
|
};
|
|
20
21
|
export declare const ERROR_MESSAGES: {
|
|
21
22
|
readonly NO_API_KEY_OR_NO_TOKEN: "apiKey or token is not provided";
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ interface CheckoutSdk {
|
|
|
15
15
|
onCancel: ((args: {
|
|
16
16
|
transactionId: string;
|
|
17
17
|
}) => void) | null;
|
|
18
|
+
onExpired: ((args: {
|
|
19
|
+
transactionId: string;
|
|
20
|
+
}) => void) | null;
|
|
18
21
|
onClose: (() => void) | null;
|
|
19
22
|
init: (args: {
|
|
20
23
|
env: typeof ENVS[keyof typeof ENVS];
|
|
@@ -27,6 +30,9 @@ interface CheckoutSdk {
|
|
|
27
30
|
onCancel: (args: {
|
|
28
31
|
transactionId: string;
|
|
29
32
|
}) => void;
|
|
33
|
+
onExpired: (args: {
|
|
34
|
+
transactionId: string;
|
|
35
|
+
}) => void;
|
|
30
36
|
onClose: () => void;
|
|
31
37
|
}) => void;
|
|
32
38
|
createCheckout: (args: {
|