@moonbase.sh/vue 0.2.54 → 0.2.56
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/dist/index.cjs +4 -3
- package/dist/index.js +4 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -188,6 +188,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
188
188
|
items: [],
|
|
189
189
|
couponsApplied: []
|
|
190
190
|
});
|
|
191
|
+
if (this.hasUtm) {
|
|
192
|
+
const _ = this.pushOrderContent();
|
|
193
|
+
}
|
|
191
194
|
}
|
|
192
195
|
const cachedStorefrontJson = localStorage.getItem(_StorefrontContextImpl.storefrontKey);
|
|
193
196
|
if (cachedStorefrontJson) {
|
|
@@ -319,10 +322,8 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
319
322
|
items: [],
|
|
320
323
|
couponsApplied: []
|
|
321
324
|
};
|
|
322
|
-
if (typeof window !== "undefined")
|
|
325
|
+
if (typeof window !== "undefined")
|
|
323
326
|
localStorage.removeItem(_StorefrontContextImpl.sessionKey);
|
|
324
|
-
localStorage.removeItem(_StorefrontContextImpl.utmKey);
|
|
325
|
-
}
|
|
326
327
|
}
|
|
327
328
|
async surrenderOrder() {
|
|
328
329
|
try {
|
package/dist/index.js
CHANGED
|
@@ -153,6 +153,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
153
153
|
items: [],
|
|
154
154
|
couponsApplied: []
|
|
155
155
|
});
|
|
156
|
+
if (this.hasUtm) {
|
|
157
|
+
const _ = this.pushOrderContent();
|
|
158
|
+
}
|
|
156
159
|
}
|
|
157
160
|
const cachedStorefrontJson = localStorage.getItem(_StorefrontContextImpl.storefrontKey);
|
|
158
161
|
if (cachedStorefrontJson) {
|
|
@@ -284,10 +287,8 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
284
287
|
items: [],
|
|
285
288
|
couponsApplied: []
|
|
286
289
|
};
|
|
287
|
-
if (typeof window !== "undefined")
|
|
290
|
+
if (typeof window !== "undefined")
|
|
288
291
|
localStorage.removeItem(_StorefrontContextImpl.sessionKey);
|
|
289
|
-
localStorage.removeItem(_StorefrontContextImpl.utmKey);
|
|
290
|
-
}
|
|
291
292
|
}
|
|
292
293
|
async surrenderOrder() {
|
|
293
294
|
try {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.56",
|
|
5
5
|
"description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@vue/devtools-api": "^6.6.3",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
21
|
"zod": "^3.23.8",
|
|
22
|
-
"@moonbase.sh/storefront-api": "0.2.
|
|
22
|
+
"@moonbase.sh/storefront-api": "0.2.56"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/uuid": "^9.0.8",
|