@xswap-link/sdk 0.2.2 → 0.2.3
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 +6 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
- package/src/config/init.ts +5 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ var xswap_config_default = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// package.json
|
|
61
|
-
var version = "0.2.
|
|
61
|
+
var version = "0.2.3";
|
|
62
62
|
|
|
63
63
|
// src/config/init.ts
|
|
64
64
|
var xswapRoot;
|
|
@@ -67,7 +67,10 @@ var initDocument = () => {
|
|
|
67
67
|
if (typeof document === "undefined") {
|
|
68
68
|
throw new Error("Can't render XPay components from server side.");
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
const cssRequestParams = new URLSearchParams({
|
|
71
|
+
data: JSON.stringify({ version })
|
|
72
|
+
});
|
|
73
|
+
fetch(`${xswap_config_default.apiUrl}/sdk/css?${cssRequestParams}`).then(
|
|
71
74
|
async (css) => {
|
|
72
75
|
const style = document.createElement("style");
|
|
73
76
|
style.textContent = await css.text();
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ var xswap_config_default = {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
// package.json
|
|
26
|
-
var version = "0.2.
|
|
26
|
+
var version = "0.2.3";
|
|
27
27
|
|
|
28
28
|
// src/config/init.ts
|
|
29
29
|
var xswapRoot;
|
|
@@ -32,7 +32,10 @@ var initDocument = () => {
|
|
|
32
32
|
if (typeof document === "undefined") {
|
|
33
33
|
throw new Error("Can't render XPay components from server side.");
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
const cssRequestParams = new URLSearchParams({
|
|
36
|
+
data: JSON.stringify({ version })
|
|
37
|
+
});
|
|
38
|
+
fetch(`${xswap_config_default.apiUrl}/sdk/css?${cssRequestParams}`).then(
|
|
36
39
|
async (css) => {
|
|
37
40
|
const style = document.createElement("style");
|
|
38
41
|
style.textContent = await css.text();
|
package/package.json
CHANGED
package/src/config/init.ts
CHANGED
|
@@ -10,7 +10,11 @@ export const initDocument = () => {
|
|
|
10
10
|
throw new Error("Can't render XPay components from server side.");
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const cssRequestParams = new URLSearchParams({
|
|
14
|
+
data: JSON.stringify({ version }),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
fetch(`${xswapConfig.apiUrl}/sdk/css?${cssRequestParams}`).then(
|
|
14
18
|
async (css) => {
|
|
15
19
|
const style = document.createElement("style");
|
|
16
20
|
style.textContent = await css.text();
|