@yuno-payments/sdk-web 5.0.2 → 6.0.0
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SDK Web (v1.
|
|
1
|
+
# SDK Web (v1.8)
|
|
2
2
|
|
|
3
3
|
This package provides a wrapper to easily load and use the Yuno SDK in your web applications.
|
|
4
4
|
|
|
@@ -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.
|
|
23
|
+
> Note: The SDK version loaded by this package is **v1.8**. When SRI is enabled, the version used is **v1.8.0**.
|
|
24
24
|
|
|
25
25
|
## Advanced Usage
|
|
26
26
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -43,8 +43,8 @@ const EnvToEnvironmentSuffix = {
|
|
|
43
43
|
* - sri: When true, returns the static bundle URL (only for sandbox and prod).
|
|
44
44
|
* @returns The full URL to the SDK script.
|
|
45
45
|
*/
|
|
46
|
-
const LATEST_VERSION = "v1.
|
|
47
|
-
const LATEST_VERSION_SRI = "v1.
|
|
46
|
+
const LATEST_VERSION = "v1.8";
|
|
47
|
+
const LATEST_VERSION_SRI = "v1.8.0";
|
|
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-5b+sSGWoiQ3jCq+7Xfyf6BIEffI3uoUxf+UhaqQZFYI3H8ikIAcw4Z7IEaUuv/bB',
|
|
62
|
+
sandbox: 'sha384-EodAjPRC7Nm+Nmss3bbgeHs22hDYuGpSPNUcH5JzAqbGNl6wFGMgXzKbxEMYqEIE',
|
|
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)) {
|