@yuno-payments/sdk-web 7.12.2 → 7.12.4
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/README.md +2 -2
- package/dist/bundle.esm.js +3 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ const sdkPayments = await loadScript()
|
|
|
20
20
|
sdkPayments.initialize('your-public-api-key')
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
> Note: The SDK version loaded by this package is **v1.9**. When SRI is enabled, the version used is **v1.9.
|
|
23
|
+
> Note: The SDK version loaded by this package is **v1.9**. When SRI is enabled, the version used is **v1.9.22**.
|
|
24
24
|
|
|
25
25
|
## Advanced Usage
|
|
26
26
|
|
|
@@ -65,7 +65,7 @@ const sdkPayments = await loadScript({ baseUrl: 'https://some.domain' })
|
|
|
65
65
|
const sdkPayments = await loadScript({ baseUrl: 'https://some.domain/any/path' })
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
> Note: `baseUrl` also applies when `sri` is enabled — the static bundle path (`/sdk-static-bundles-ms/sdk-web/v1.9.
|
|
68
|
+
> Note: `baseUrl` also applies when `sri` is enabled — the static bundle path (`/sdk-static-bundles-ms/sdk-web/v1.9.22/main.js`) is appended to your base URL. Since the integrity hash is pinned, the file served from your domain must be byte-identical to the official bundle.
|
|
69
69
|
|
|
70
70
|
## Configuration Options
|
|
71
71
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -47,7 +47,7 @@ const EnvToEnvironmentSuffix = {
|
|
|
47
47
|
* @returns The full URL to the SDK script.
|
|
48
48
|
*/
|
|
49
49
|
const LATEST_VERSION = "v1.9";
|
|
50
|
-
const LATEST_VERSION_SRI = "v1.9.
|
|
50
|
+
const LATEST_VERSION_SRI = "v1.9.22";
|
|
51
51
|
const getUrl = (options = {}) => {
|
|
52
52
|
var _a;
|
|
53
53
|
const { env = "prod", sri, baseUrl } = options;
|
|
@@ -70,8 +70,8 @@ const SCRIPT_ID = 'sdk-payments-script';
|
|
|
70
70
|
const READY_EVENT = 'sdk-payments-ready';
|
|
71
71
|
const ERROR_EVENT = 'sdk-payments-error';
|
|
72
72
|
const SRI_HASHES = {
|
|
73
|
-
prod: 'sha384-
|
|
74
|
-
sandbox: 'sha384-
|
|
73
|
+
prod: 'sha384-H0Je0vzFkAra9lX8orDAAKAU4GurLsy8kNH5F2LSJlUqTO1mb3V0E2nwMN7CwEqS',
|
|
74
|
+
sandbox: 'sha384-JXRB4iH6oBqGa0PiNb9ahswx+0ISTfKwzbo0tne4Qb/ZaGPVTWZC+p9fCRW3E+6H',
|
|
75
75
|
};
|
|
76
76
|
const injectScript = (_a) => __awaiter(void 0, [_a], void 0, function* ({ url, sri, env = 'prod' }) {
|
|
77
77
|
if (document.getElementById(SCRIPT_ID)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/sdk-web",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.4",
|
|
4
4
|
"description": "Wrapper to install sdk-web and types",
|
|
5
5
|
"main": "dist/bundle.esm.js",
|
|
6
6
|
"module": "dist/bundle.esm.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"test": "vitest --watch=false",
|
|
16
16
|
"test:dev": "vitest --watch=true",
|
|
17
17
|
"prepublishOnly": "npm run build",
|
|
18
|
+
"release": "npm run build && npm publish --tag v7-latest",
|
|
18
19
|
"coverage": "vitest --coverage"
|
|
19
20
|
},
|
|
20
21
|
"author": "Camilo Segura",
|