@moonbase.sh/vue 0.3.31 → 0.3.32
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 +3 -2
- package/dist/index.js +3 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -178,8 +178,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
178
178
|
const cachedUtm = (configuration.persistUtm ? localStorage : sessionStorage).getItem(_StorefrontContextImpl.utmKey);
|
|
179
179
|
if (cachedUtm) {
|
|
180
180
|
try {
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
const parsedUtm = JSON.parse(cachedUtm);
|
|
182
|
+
this.utm.value = parsedUtm;
|
|
183
|
+
console.log("Using cached UTM parameters:", parsedUtm);
|
|
183
184
|
} catch (err) {
|
|
184
185
|
console.warn(`Could not parse cached UTM from ${_StorefrontContextImpl.utmKey}`, err);
|
|
185
186
|
}
|
package/dist/index.js
CHANGED
|
@@ -148,8 +148,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
148
148
|
const cachedUtm = (configuration.persistUtm ? localStorage : sessionStorage).getItem(_StorefrontContextImpl.utmKey);
|
|
149
149
|
if (cachedUtm) {
|
|
150
150
|
try {
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
const parsedUtm = JSON.parse(cachedUtm);
|
|
152
|
+
this.utm.value = parsedUtm;
|
|
153
|
+
console.log("Using cached UTM parameters:", parsedUtm);
|
|
153
154
|
} catch (err) {
|
|
154
155
|
console.warn(`Could not parse cached UTM from ${_StorefrontContextImpl.utmKey}`, err);
|
|
155
156
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.32",
|
|
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.3.
|
|
22
|
+
"@moonbase.sh/storefront-api": "0.3.32"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/uuid": "^9.0.8",
|