@yuno-payments/sdk-web 0.0.1-beta.0 → 0.0.1-beta.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/bundle.esm.js +38 -29
- package/dist/index.d.ts +5 -1
- package/dist/{types/types.d.ts → types.d.ts} +3 -2
- package/package.json +5 -2
- package/dist/bundle.cjs.js +0 -68
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.esm.js.map +0 -1
- package/dist/types/__tests__/load-script.spec.d.ts +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/utils/__tests__/get-url.spec.d.ts +0 -1
- package/dist/types/utils/__tests__/inject-script.spec.d.ts +0 -1
- package/dist/types/utils/__tests__/sleep.spec.d.ts +0 -1
- package/dist/types/utils/sleep.d.ts +0 -1
- /package/dist/{types/load-script.d.ts → load-script.d.ts} +0 -0
- /package/dist/{types/utils → utils}/get-url.d.ts +0 -0
- /package/dist/{types/utils → utils}/inject-script.d.ts +0 -0
package/dist/bundle.esm.js
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
19
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
20
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
21
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
22
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
23
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
24
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
29
|
+
var e = new Error(message);
|
|
30
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
31
|
+
};
|
|
32
|
+
|
|
1
33
|
const EnvToEnvironmentSuffix = {
|
|
2
34
|
dev: '.dev',
|
|
3
35
|
staging: '.staging',
|
|
@@ -10,23 +42,12 @@ const getUrl = (env = 'prod') => {
|
|
|
10
42
|
return environmentSuffix ? BASE_URL.replace('__ENV__', environmentSuffix) : BASE_URL.replace('__ENV__', '');
|
|
11
43
|
};
|
|
12
44
|
|
|
13
|
-
const sleep = (time) => {
|
|
14
|
-
return new Promise((resolve) => {
|
|
15
|
-
setTimeout(resolve, time);
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
|
|
19
45
|
const SCRIPT_ID = 'yuno-script';
|
|
20
|
-
const
|
|
21
|
-
const injectScript = async ({ url }) => {
|
|
46
|
+
const injectScript = (_a) => __awaiter(void 0, [_a], void 0, function* ({ url }) {
|
|
22
47
|
if (document.getElementById(SCRIPT_ID)) {
|
|
23
48
|
if (window.Yuno) {
|
|
24
49
|
return true;
|
|
25
50
|
}
|
|
26
|
-
else {
|
|
27
|
-
await onLoading();
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
51
|
}
|
|
31
52
|
const head = document.getElementsByTagName('head')[0];
|
|
32
53
|
const js = document.createElement('script');
|
|
@@ -43,24 +64,12 @@ const injectScript = async ({ url }) => {
|
|
|
43
64
|
};
|
|
44
65
|
head.appendChild(js);
|
|
45
66
|
});
|
|
46
|
-
};
|
|
47
|
-
const onLoading = async () => {
|
|
48
|
-
let count = 0;
|
|
49
|
-
while (count < TRY) {
|
|
50
|
-
if (window.Yuno) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
count++;
|
|
54
|
-
await sleep(250);
|
|
55
|
-
}
|
|
56
|
-
throw new Error('Yuno SDK not found');
|
|
57
|
-
};
|
|
67
|
+
});
|
|
58
68
|
|
|
59
|
-
const loadScript =
|
|
60
|
-
const url = getUrl(props
|
|
61
|
-
|
|
69
|
+
const loadScript = (props) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
+
const url = getUrl(props === null || props === void 0 ? void 0 : props.env);
|
|
71
|
+
yield injectScript({ url });
|
|
62
72
|
return window.Yuno;
|
|
63
|
-
};
|
|
73
|
+
});
|
|
64
74
|
|
|
65
75
|
export { loadScript };
|
|
66
|
-
//# sourceMappingURL=bundle.esm.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { Yuno } from '@yuno-payments/sdk-web-types';
|
|
2
|
+
export { Yuno, YunoInstance } from '@yuno-payments/sdk-web-types';
|
|
3
|
+
|
|
1
4
|
type LoadScriptProps = {
|
|
2
5
|
env?: 'dev' | 'staging' | 'sandbox' | 'prod';
|
|
3
6
|
};
|
|
4
|
-
|
|
7
|
+
|
|
8
|
+
type LoadScript = (props?: LoadScriptProps) => Promise<Yuno>;
|
|
5
9
|
|
|
6
10
|
declare const loadScript: LoadScript;
|
|
7
11
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Yuno, YunoInstance } from '@yuno-payments/sdk-web-types';
|
|
1
2
|
type LoadScriptProps = {
|
|
2
3
|
env?: 'dev' | 'staging' | 'sandbox' | 'prod';
|
|
3
4
|
};
|
|
4
|
-
export
|
|
5
|
-
export
|
|
5
|
+
export { Yuno, YunoInstance };
|
|
6
|
+
export type LoadScript = (props?: LoadScriptProps) => Promise<Yuno>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/sdk-web",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.2",
|
|
4
4
|
"description": "Wrapper to install sdk-web and types",
|
|
5
5
|
"main": "dist/bundle.cjs.js",
|
|
6
6
|
"module": "dist/bundle.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "commonjs",
|
|
8
9
|
"files": [
|
|
9
10
|
"dist"
|
|
10
11
|
],
|
|
@@ -21,7 +22,6 @@
|
|
|
21
22
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
22
23
|
"@rollup/plugin-terser": "^0.4.4",
|
|
23
24
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
24
|
-
"@yuno-payments/sdk-web-types": "^1.23.0",
|
|
25
25
|
"jsdom": "^26.0.0",
|
|
26
26
|
"rollup": "^4.34.6",
|
|
27
27
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -31,5 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@yuno-payments/sdk-web-types": "^1.22.2-beta.7"
|
|
34
37
|
}
|
|
35
38
|
}
|
package/dist/bundle.cjs.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const EnvToEnvironmentSuffix = {
|
|
4
|
-
dev: '.dev',
|
|
5
|
-
staging: '.staging',
|
|
6
|
-
sandbox: '.sandbox',
|
|
7
|
-
prod: '',
|
|
8
|
-
};
|
|
9
|
-
const BASE_URL = 'https://sdk-web__ENV__.y.uno/v1.1/main.js';
|
|
10
|
-
const getUrl = (env = 'prod') => {
|
|
11
|
-
const environmentSuffix = EnvToEnvironmentSuffix[env];
|
|
12
|
-
return environmentSuffix ? BASE_URL.replace('__ENV__', environmentSuffix) : BASE_URL.replace('__ENV__', '');
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const sleep = (time) => {
|
|
16
|
-
return new Promise((resolve) => {
|
|
17
|
-
setTimeout(resolve, time);
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const SCRIPT_ID = 'yuno-script';
|
|
22
|
-
const TRY = 5;
|
|
23
|
-
const injectScript = async ({ url }) => {
|
|
24
|
-
if (document.getElementById(SCRIPT_ID)) {
|
|
25
|
-
if (window.Yuno) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
await onLoading();
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const head = document.getElementsByTagName('head')[0];
|
|
34
|
-
const js = document.createElement('script');
|
|
35
|
-
js.id = SCRIPT_ID;
|
|
36
|
-
js.src = url;
|
|
37
|
-
js.async = true;
|
|
38
|
-
js.defer = true;
|
|
39
|
-
return new Promise((resolve, reject) => {
|
|
40
|
-
window.addEventListener('yuno-sdk-ready', () => {
|
|
41
|
-
resolve(true);
|
|
42
|
-
});
|
|
43
|
-
js.onerror = (error) => {
|
|
44
|
-
reject(new Error(`Failed to load script: ${url} - ${error}`));
|
|
45
|
-
};
|
|
46
|
-
head.appendChild(js);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
const onLoading = async () => {
|
|
50
|
-
let count = 0;
|
|
51
|
-
while (count < TRY) {
|
|
52
|
-
if (window.Yuno) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
count++;
|
|
56
|
-
await sleep(250);
|
|
57
|
-
}
|
|
58
|
-
throw new Error('Yuno SDK not found');
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const loadScript = async (props) => {
|
|
62
|
-
const url = getUrl(props?.env);
|
|
63
|
-
await injectScript({ url });
|
|
64
|
-
return window.Yuno;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
exports.loadScript = loadScript;
|
|
68
|
-
//# sourceMappingURL=bundle.cjs.js.map
|
package/dist/bundle.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.cjs.js","sources":["../src/utils/get-url.ts","../src/utils/sleep.ts","../src/utils/inject-script.ts","../src/load-script.ts"],"sourcesContent":["const EnvToEnvironmentSuffix: { [key: string]: string } = {\n dev: '.dev',\n staging: '.staging',\n sandbox: '.sandbox',\n prod: '',\n}\n\nconst BASE_URL = 'https://sdk-web__ENV__.y.uno/v1.1/main.js'\n\nexport const getUrl = (env: 'dev' | 'staging' | 'sandbox' | 'prod' = 'prod') => {\n const environmentSuffix = EnvToEnvironmentSuffix[env]\n\n return environmentSuffix ? BASE_URL.replace('__ENV__', environmentSuffix) : BASE_URL.replace('__ENV__', '')\n}","export const sleep = (time: number) => {\n return new Promise((resolve) => {\n setTimeout(resolve, time)\n })\n}\n","import { sleep } from \"./sleep\"\n\ninterface InjectScriptProps {\n url: string\n}\n\nconst SCRIPT_ID = 'yuno-script'\nconst TRY = 5\n\nexport const injectScript = async ({ url }: InjectScriptProps): Promise<boolean> => {\n if (document.getElementById(SCRIPT_ID)) {\n if (window.Yuno) {\n return true\n } else {\n await onLoading()\n return true\n }\n }\n\n const head = document.getElementsByTagName('head')[0]\n const js = document.createElement('script')\n js.id = SCRIPT_ID\n js.src = url\n js.async = true\n js.defer = true\n\n return new Promise((resolve, reject) => {\n window.addEventListener('yuno-sdk-ready', () => {\n resolve(true)\n })\n\n js.onerror = (error) => {\n reject(new Error(`Failed to load script: ${url} - ${error}`));\n }\n\n head.appendChild(js)\n })\n}\n\nconst onLoading = async (): Promise<void> => {\n let count = 0\n\n while (count < TRY) {\n if (window.Yuno) {\n return\n }\n\n count++\n await sleep(250)\n }\n\n throw new Error('Yuno SDK not found')\n}\n","import { LoadScript } from \"./types\";\nimport { getUrl } from \"./utils/get-url\";\nimport { injectScript } from \"./utils/inject-script\";\n\nexport const loadScript: LoadScript = async (props) => {\n const url = getUrl(props?.env)\n await injectScript({ url })\n\n return window.Yuno\n}\n\n"],"names":[],"mappings":";;AAAA,MAAM,sBAAsB,GAA8B;AACtD,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,IAAI,EAAE,EAAE;CACX;AAED,MAAM,QAAQ,GAAG,2CAA2C;AAErD,MAAM,MAAM,GAAG,CAAC,GAA8C,GAAA,MAAM,KAAI;AAC3E,IAAA,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,GAAG,CAAC;IAErD,OAAO,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC;AAC/G,CAAC;;ACbM,MAAM,KAAK,GAAG,CAAC,IAAY,KAAI;AAClC,IAAA,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;AAC3B,QAAA,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC;AAC7B,KAAC,CAAC;AACN,CAAC;;ACED,MAAM,SAAS,GAAG,aAAa;AAC/B,MAAM,GAAG,GAAG,CAAC;AAEN,MAAM,YAAY,GAAG,OAAO,EAAE,GAAG,EAAqB,KAAsB;AACjF,IAAA,IAAI,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;AACtC,QAAA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AAA,MAAM,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IAE3B,OAAO,MAAM,CAAC,IAAI;AACtB;;;;"}
|
package/dist/bundle.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.esm.js","sources":["../src/utils/get-url.ts","../src/utils/sleep.ts","../src/utils/inject-script.ts","../src/load-script.ts"],"sourcesContent":["const EnvToEnvironmentSuffix: { [key: string]: string } = {\n dev: '.dev',\n staging: '.staging',\n sandbox: '.sandbox',\n prod: '',\n}\n\nconst BASE_URL = 'https://sdk-web__ENV__.y.uno/v1.1/main.js'\n\nexport const getUrl = (env: 'dev' | 'staging' | 'sandbox' | 'prod' = 'prod') => {\n const environmentSuffix = EnvToEnvironmentSuffix[env]\n\n return environmentSuffix ? BASE_URL.replace('__ENV__', environmentSuffix) : BASE_URL.replace('__ENV__', '')\n}","export const sleep = (time: number) => {\n return new Promise((resolve) => {\n setTimeout(resolve, time)\n })\n}\n","import { sleep } from \"./sleep\"\n\ninterface InjectScriptProps {\n url: string\n}\n\nconst SCRIPT_ID = 'yuno-script'\nconst TRY = 5\n\nexport const injectScript = async ({ url }: InjectScriptProps): Promise<boolean> => {\n if (document.getElementById(SCRIPT_ID)) {\n if (window.Yuno) {\n return true\n } else {\n await onLoading()\n return true\n }\n }\n\n const head = document.getElementsByTagName('head')[0]\n const js = document.createElement('script')\n js.id = SCRIPT_ID\n js.src = url\n js.async = true\n js.defer = true\n\n return new Promise((resolve, reject) => {\n window.addEventListener('yuno-sdk-ready', () => {\n resolve(true)\n })\n\n js.onerror = (error) => {\n reject(new Error(`Failed to load script: ${url} - ${error}`));\n }\n\n head.appendChild(js)\n })\n}\n\nconst onLoading = async (): Promise<void> => {\n let count = 0\n\n while (count < TRY) {\n if (window.Yuno) {\n return\n }\n\n count++\n await sleep(250)\n }\n\n throw new Error('Yuno SDK not found')\n}\n","import { LoadScript } from \"./types\";\nimport { getUrl } from \"./utils/get-url\";\nimport { injectScript } from \"./utils/inject-script\";\n\nexport const loadScript: LoadScript = async (props) => {\n const url = getUrl(props?.env)\n await injectScript({ url })\n\n return window.Yuno\n}\n\n"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAA8B;AACtD,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,IAAI,EAAE,EAAE;CACX;AAED,MAAM,QAAQ,GAAG,2CAA2C;AAErD,MAAM,MAAM,GAAG,CAAC,GAA8C,GAAA,MAAM,KAAI;AAC3E,IAAA,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,GAAG,CAAC;IAErD,OAAO,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC;AAC/G,CAAC;;ACbM,MAAM,KAAK,GAAG,CAAC,IAAY,KAAI;AAClC,IAAA,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;AAC3B,QAAA,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC;AAC7B,KAAC,CAAC;AACN,CAAC;;ACED,MAAM,SAAS,GAAG,aAAa;AAC/B,MAAM,GAAG,GAAG,CAAC;AAEN,MAAM,YAAY,GAAG,OAAO,EAAE,GAAG,EAAqB,KAAsB;AACjF,IAAA,IAAI,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;AACtC,QAAA,IAAI,MAAM,CAAC,IAAI,EAAE;AACf,YAAA,OAAO,IAAI;;aACN;YACL,MAAM,SAAS,EAAE;AACjB,YAAA,OAAO,IAAI;;;IAIf,MAAM,IAAI,GAAG,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC3C,IAAA,EAAE,CAAC,EAAE,GAAG,SAAS;AACjB,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
|
1
|
-
export declare const sleep: (time: number) => Promise<unknown>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|