@yuno-payments/sdk-web 7.11.0 → 7.12.1

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 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.14**.
23
+ > Note: The SDK version loaded by this package is **v1.9**. When SRI is enabled, the version used is **v1.9.17**.
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.14/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.
68
+ > Note: `baseUrl` also applies when `sri` is enabled — the static bundle path (`/sdk-static-bundles-ms/sdk-web/v1.9.17/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
 
@@ -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.14";
50
+ const LATEST_VERSION_SRI = "v1.9.17";
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-HqKT1BxlJy98gay/PElXi3SN1Ek/B3tHqxO3VdJBllvZkmOYB51yjKt1m3mSrYgc',
74
- sandbox: 'sha384-t+czeAnNDKIaVl+npdLSlDwn7pDwdUbRUfGg5fjP03vHp5cGtEBlpTGBV6MRwQiQ',
73
+ prod: 'sha384-tmKsDGYaiVdjNbX6EiOrAPbXSRk+ry0UdD+EI4XZmj02PX07kFiF7FLKNgnd0smO',
74
+ sandbox: 'sha384-CIQT1aEWBUvBRB77YI4DYS76P3EqFXxJlId1yrC3XAYchh0oJcY13+IZ53fHYFTk',
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.11.0",
3
+ "version": "7.12.1",
4
4
  "description": "Wrapper to install sdk-web and types",
5
5
  "main": "dist/bundle.esm.js",
6
6
  "module": "dist/bundle.esm.js",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@yuno-payments/sdk-web-types": "^5.8.0"
39
+ "@yuno-payments/sdk-web-types": "^5.8.2"
40
40
  },
41
41
  "overrides": {
42
42
  "vite": ">=6.4.2 <7.0.0"