@moonbase.sh/vue 0.3.31 → 0.3.36
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 +2 -3
- package/dist/index.js +3 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -173,13 +173,12 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
173
173
|
});
|
|
174
174
|
if (this.hasUtm) {
|
|
175
175
|
(configuration.persistUtm ? localStorage : sessionStorage).setItem(_StorefrontContextImpl.utmKey, JSON.stringify(this.utm.value));
|
|
176
|
-
console.log("Caching given UTM parameters:", (0, import_vue.toRaw)(this.utm.value));
|
|
177
176
|
} else {
|
|
178
177
|
const cachedUtm = (configuration.persistUtm ? localStorage : sessionStorage).getItem(_StorefrontContextImpl.utmKey);
|
|
179
178
|
if (cachedUtm) {
|
|
180
179
|
try {
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
const parsedUtm = JSON.parse(cachedUtm);
|
|
181
|
+
this.utm.value = parsedUtm;
|
|
183
182
|
} catch (err) {
|
|
184
183
|
console.warn(`Could not parse cached UTM from ${_StorefrontContextImpl.utmKey}`, err);
|
|
185
184
|
}
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TokenStore
|
|
13
13
|
} from "@moonbase.sh/storefront-api";
|
|
14
14
|
import { v4 as uuidv4 } from "uuid";
|
|
15
|
-
import { ref,
|
|
15
|
+
import { ref, watch } from "vue";
|
|
16
16
|
|
|
17
17
|
// src/symbols.ts
|
|
18
18
|
var storefrontKey = Symbol("storefront");
|
|
@@ -143,13 +143,12 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
143
143
|
});
|
|
144
144
|
if (this.hasUtm) {
|
|
145
145
|
(configuration.persistUtm ? localStorage : sessionStorage).setItem(_StorefrontContextImpl.utmKey, JSON.stringify(this.utm.value));
|
|
146
|
-
console.log("Caching given UTM parameters:", toRaw(this.utm.value));
|
|
147
146
|
} else {
|
|
148
147
|
const cachedUtm = (configuration.persistUtm ? localStorage : sessionStorage).getItem(_StorefrontContextImpl.utmKey);
|
|
149
148
|
if (cachedUtm) {
|
|
150
149
|
try {
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
const parsedUtm = JSON.parse(cachedUtm);
|
|
151
|
+
this.utm.value = parsedUtm;
|
|
153
152
|
} catch (err) {
|
|
154
153
|
console.warn(`Could not parse cached UTM from ${_StorefrontContextImpl.utmKey}`, err);
|
|
155
154
|
}
|
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.36",
|
|
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.36"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/uuid": "^9.0.8",
|