@moonbase.sh/vue 0.2.56 → 0.2.57

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 CHANGED
@@ -165,9 +165,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
165
165
  term: urlParams.get("utm_term") || void 0,
166
166
  content: urlParams.get("utm_content") || void 0
167
167
  });
168
- if (this.hasUtm) {
168
+ if (this.hasUtm && configuration.persistUtm) {
169
169
  localStorage.setItem(_StorefrontContextImpl.utmKey, JSON.stringify(this.utm.value));
170
- } else {
170
+ } else if (configuration.persistUtm) {
171
171
  const cachedUtm = localStorage.getItem(_StorefrontContextImpl.utmKey);
172
172
  if (cachedUtm) {
173
173
  try {
package/dist/index.js CHANGED
@@ -130,9 +130,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
130
130
  term: urlParams.get("utm_term") || void 0,
131
131
  content: urlParams.get("utm_content") || void 0
132
132
  });
133
- if (this.hasUtm) {
133
+ if (this.hasUtm && configuration.persistUtm) {
134
134
  localStorage.setItem(_StorefrontContextImpl.utmKey, JSON.stringify(this.utm.value));
135
- } else {
135
+ } else if (configuration.persistUtm) {
136
136
  const cachedUtm = localStorage.getItem(_StorefrontContextImpl.utmKey);
137
137
  if (cachedUtm) {
138
138
  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.56",
4
+ "version": "0.2.57",
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.56"
22
+ "@moonbase.sh/storefront-api": "0.2.57"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/uuid": "^9.0.8",