@yuno-payments/sdk-web 4.5.1 → 4.5.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/README.md +1 -1
- package/dist/bundle.esm.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ const yuno = await loadScript()
|
|
|
20
20
|
yuno.initialize('your-public-api-key')
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
> Note: The SDK version loaded by this package is **v1.5**. When SRI is enabled, the version used is **v1.5.
|
|
23
|
+
> Note: The SDK version loaded by this package is **v1.5**. When SRI is enabled, the version used is **v1.5.8**.
|
|
24
24
|
|
|
25
25
|
## Advanced Usage
|
|
26
26
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ const EnvToEnvironmentSuffix = {
|
|
|
44
44
|
* @returns The full URL to the SDK script.
|
|
45
45
|
*/
|
|
46
46
|
const LATEST_VERSION = "v1.5";
|
|
47
|
-
const LATEST_VERSION_SRI = "v1.5.
|
|
47
|
+
const LATEST_VERSION_SRI = "v1.5.8";
|
|
48
48
|
const getUrl = (options = {}) => {
|
|
49
49
|
var _a;
|
|
50
50
|
const { env = "prod", sri } = options;
|
|
@@ -58,8 +58,8 @@ const getUrl = (options = {}) => {
|
|
|
58
58
|
|
|
59
59
|
const SCRIPT_ID = 'yuno-script';
|
|
60
60
|
const SRI_HASHES = {
|
|
61
|
-
prod: 'sha384-
|
|
62
|
-
sandbox: 'sha384-
|
|
61
|
+
prod: 'sha384-hEZrwT2ulLoJLJT2kUS2/Fht+swtj5gPMLQ4lvl9zSG+cmR+PIi376FUUheH7t64',
|
|
62
|
+
sandbox: 'sha384-K3vu9dT4XjXLzpcuj3032/AFhdUtl8/EPZwUr6pdIAO0CLMmdOVxA+9ncrEx1dO2',
|
|
63
63
|
};
|
|
64
64
|
const injectScript = (_a) => __awaiter(void 0, [_a], void 0, function* ({ url, sri, env = 'prod' }) {
|
|
65
65
|
if (document.getElementById(SCRIPT_ID)) {
|