@taybart/corvid 0.1.24 → 0.1.25

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.js CHANGED
@@ -720,6 +720,7 @@ function local_storage_update(key, update1, broadcast = false) {
720
720
  }
721
721
  }
722
722
  function set(key, value, broadcast = false) {
723
+ const v = value;
723
724
  if ('object' == typeof value) value = JSON.stringify(value);
724
725
  const prev = get(key);
725
726
  localStorage.setItem(key, value);
@@ -727,7 +728,7 @@ function set(key, value, broadcast = false) {
727
728
  const event = new CustomEvent('@corvid/ls-update', {
728
729
  detail: {
729
730
  key,
730
- value
731
+ value: v
731
732
  }
732
733
  });
733
734
  document.dispatchEvent(event);
package/dist/ls.js CHANGED
@@ -275,6 +275,7 @@ function local_storage_update(key, update1, broadcast = false) {
275
275
  }
276
276
  }
277
277
  function set(key, value, broadcast = false) {
278
+ const v = value;
278
279
  if ('object' == typeof value) value = JSON.stringify(value);
279
280
  const prev = get(key);
280
281
  localStorage.setItem(key, value);
@@ -282,7 +283,7 @@ function set(key, value, broadcast = false) {
282
283
  const event = new CustomEvent('@corvid/ls-update', {
283
284
  detail: {
284
285
  key,
285
- value
286
+ value: v
286
287
  }
287
288
  });
288
289
  document.dispatchEvent(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taybart/corvid",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {