@rebilly/instruments 11.2.1 → 12.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/CHANGELOG.md +7 -3
- package/dist/index.js +7 -2
- package/dist/index.min.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
## [
|
|
1
|
+
## [12.0.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v11.3.0...instruments/core-v12.0.0) (2024-11-25)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
5
|
|
|
6
|
-
* **framepay-npm:**
|
|
6
|
+
* **framepay-npm:** initial release (#8815)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **framepay-npm:** initial release ([#8815](https://github.com/Rebilly/rebilly/issues/8815)) ([4029127](https://github.com/Rebilly/rebilly/commit/402912752363d7da51424b38185ac239bae7afe6))
|
package/dist/index.js
CHANGED
|
@@ -1920,7 +1920,7 @@ async function loadFramepay({
|
|
|
1920
1920
|
scriptLink,
|
|
1921
1921
|
styleLink
|
|
1922
1922
|
} = {}) {
|
|
1923
|
-
return new Promise((resolve) => {
|
|
1923
|
+
return new Promise((resolve, reject) => {
|
|
1924
1924
|
if (window.Framepay) {
|
|
1925
1925
|
resolve(window.Framepay);
|
|
1926
1926
|
} else {
|
|
@@ -1931,6 +1931,11 @@ async function loadFramepay({
|
|
|
1931
1931
|
const framepayScript = document.createElement("script");
|
|
1932
1932
|
framepayScript.setAttribute("src", scriptLink ?? DEFAULT_SCRIPT_LINK);
|
|
1933
1933
|
framepayScript.onload = () => resolve(window.Framepay);
|
|
1934
|
+
framepayScript.onerror = () => reject(
|
|
1935
|
+
new Error(
|
|
1936
|
+
"@rebilly/framepay npm package: Failed to load FramePay script"
|
|
1937
|
+
)
|
|
1938
|
+
);
|
|
1934
1939
|
document.head.append(framepayScript);
|
|
1935
1940
|
}
|
|
1936
1941
|
});
|
|
@@ -6283,7 +6288,7 @@ function C$1({ options: e2 }) {
|
|
|
6283
6288
|
}
|
|
6284
6289
|
function o2() {
|
|
6285
6290
|
const i = {
|
|
6286
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6291
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@4029127`
|
|
6287
6292
|
};
|
|
6288
6293
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
6289
6294
|
}
|