@blotoutio/providers-blotout-wallet-sdk 0.62.0 → 0.62.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/index.cjs.js +3 -2
- package/index.js +3 -2
- package/index.mjs +3 -2
- package/package.json +1 -1
- package/stores/shopify/index.cjs.js +2 -1
- package/stores/shopify/index.js +2 -1
- package/stores/shopify/index.mjs +2 -1
package/index.cjs.js
CHANGED
@@ -82,7 +82,8 @@ const parseCookies = (cookie) => {
|
|
82
82
|
return Object.fromEntries(cookie
|
83
83
|
.split(/;\s+/)
|
84
84
|
.map((r) => r.split('=').map((str) => str.trim()))
|
85
|
-
.map(([cookieKey,
|
85
|
+
.map(([cookieKey, ...cookieValues]) => {
|
86
|
+
const cookieValue = cookieValues.join('=');
|
86
87
|
if (!cookieKey) {
|
87
88
|
return [];
|
88
89
|
}
|
@@ -121,7 +122,7 @@ const setCookie = (key, value, options) => {
|
|
121
122
|
if (options === null || options === void 0 ? void 0 : options.secure) {
|
122
123
|
extras.push('secure');
|
123
124
|
}
|
124
|
-
document.cookie = `${key}=${value};${extras.join(';')}`;
|
125
|
+
document.cookie = `${key}=${encodeURIComponent(value)};${extras.join(';')}`;
|
125
126
|
}
|
126
127
|
catch {
|
127
128
|
return;
|
package/index.js
CHANGED
@@ -83,7 +83,8 @@ var ProvidersBlotoutWalletSdk = (function () {
|
|
83
83
|
return Object.fromEntries(cookie
|
84
84
|
.split(/;\s+/)
|
85
85
|
.map((r) => r.split('=').map((str) => str.trim()))
|
86
|
-
.map(([cookieKey,
|
86
|
+
.map(([cookieKey, ...cookieValues]) => {
|
87
|
+
const cookieValue = cookieValues.join('=');
|
87
88
|
if (!cookieKey) {
|
88
89
|
return [];
|
89
90
|
}
|
@@ -122,7 +123,7 @@ var ProvidersBlotoutWalletSdk = (function () {
|
|
122
123
|
if (options === null || options === void 0 ? void 0 : options.secure) {
|
123
124
|
extras.push('secure');
|
124
125
|
}
|
125
|
-
document.cookie = `${key}=${value};${extras.join(';')}`;
|
126
|
+
document.cookie = `${key}=${encodeURIComponent(value)};${extras.join(';')}`;
|
126
127
|
}
|
127
128
|
catch {
|
128
129
|
return;
|
package/index.mjs
CHANGED
@@ -80,7 +80,8 @@ const parseCookies = (cookie) => {
|
|
80
80
|
return Object.fromEntries(cookie
|
81
81
|
.split(/;\s+/)
|
82
82
|
.map((r) => r.split('=').map((str) => str.trim()))
|
83
|
-
.map(([cookieKey,
|
83
|
+
.map(([cookieKey, ...cookieValues]) => {
|
84
|
+
const cookieValue = cookieValues.join('=');
|
84
85
|
if (!cookieKey) {
|
85
86
|
return [];
|
86
87
|
}
|
@@ -119,7 +120,7 @@ const setCookie = (key, value, options) => {
|
|
119
120
|
if (options === null || options === void 0 ? void 0 : options.secure) {
|
120
121
|
extras.push('secure');
|
121
122
|
}
|
122
|
-
document.cookie = `${key}=${value};${extras.join(';')}`;
|
123
|
+
document.cookie = `${key}=${encodeURIComponent(value)};${extras.join(';')}`;
|
123
124
|
}
|
124
125
|
catch {
|
125
126
|
return;
|
package/package.json
CHANGED
@@ -58,7 +58,8 @@ const parseCookies = (cookie) => {
|
|
58
58
|
return Object.fromEntries(cookie
|
59
59
|
.split(/;\s+/)
|
60
60
|
.map((r) => r.split('=').map((str) => str.trim()))
|
61
|
-
.map(([cookieKey,
|
61
|
+
.map(([cookieKey, ...cookieValues]) => {
|
62
|
+
const cookieValue = cookieValues.join('=');
|
62
63
|
if (!cookieKey) {
|
63
64
|
return [];
|
64
65
|
}
|
package/stores/shopify/index.js
CHANGED
@@ -59,7 +59,8 @@
|
|
59
59
|
return Object.fromEntries(cookie
|
60
60
|
.split(/;\s+/)
|
61
61
|
.map((r) => r.split('=').map((str) => str.trim()))
|
62
|
-
.map(([cookieKey,
|
62
|
+
.map(([cookieKey, ...cookieValues]) => {
|
63
|
+
const cookieValue = cookieValues.join('=');
|
63
64
|
if (!cookieKey) {
|
64
65
|
return [];
|
65
66
|
}
|
package/stores/shopify/index.mjs
CHANGED
@@ -56,7 +56,8 @@ const parseCookies = (cookie) => {
|
|
56
56
|
return Object.fromEntries(cookie
|
57
57
|
.split(/;\s+/)
|
58
58
|
.map((r) => r.split('=').map((str) => str.trim()))
|
59
|
-
.map(([cookieKey,
|
59
|
+
.map(([cookieKey, ...cookieValues]) => {
|
60
|
+
const cookieValue = cookieValues.join('=');
|
60
61
|
if (!cookieKey) {
|
61
62
|
return [];
|
62
63
|
}
|