@eventvisor/module-localstorage 0.8.0 → 0.10.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.10.0](https://github.com/eventvisor/eventvisor/compare/v0.9.0...v0.10.0) (2025-11-01)
7
+
8
+ **Note:** Version bump only for package @eventvisor/module-localstorage
9
+
10
+
11
+
12
+
13
+
14
+ # [0.9.0](https://github.com/eventvisor/eventvisor/compare/v0.8.0...v0.9.0) (2025-11-01)
15
+
16
+
17
+ ### Features
18
+
19
+ * New Relic Browser module ([#26](https://github.com/eventvisor/eventvisor/issues/26)) ([d6ad9ed](https://github.com/eventvisor/eventvisor/commit/d6ad9edd4fd895f48070fffad4ac3f8967671229))
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.8.0](https://github.com/eventvisor/eventvisor/compare/v0.7.0...v0.8.0) (2025-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @eventvisor/module-localstorage
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@eventvisor/sdk";
1
+ import type { Module } from "@eventvisor/sdk";
2
2
  export type LocalStorageModuleOptions = {
3
3
  name?: string;
4
4
  prefix?: string;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAsC,6BAAID,IAE1CD,EAAmC,6BAAIC,GACxC,CATD,CASGK,KAAM,I,uBCNLC,EAAsB,CAAC,E,miDCI3B,oCAAyCC,GAAzC,gBAAyC,IAAAA,IAAAA,EAAA,IAC/B,MAAmDA,EAAO,OAA1DC,OAAM,IAAG,iBAAc,EAAE,EAA0BD,EAAO,KAElE,MAAO,CACLE,UAHmC,IAAG,iBAAc,EAOpDC,OAAQ,2CAAO,G,IAAEC,EAAG,M,0BAClB,MAAO,CAAP,EAAOC,OAAOC,aAAaC,QAAQH,G,MAGrCI,gBAAiB,2CAAO,G,UAAEJ,EAAG,M,0BAK3B,GAJMK,EAAU,UAAGR,GAAM,OAAGG,KAEtBM,EAAQL,OAAOC,aAAaC,QAAQE,IAGxC,MAAO,CAAP,EAAO,MAGT,IAGE,IAFME,EAAcC,KAAKC,MAAMH,UAEgB,IAArBC,EAAYG,KACpC,MAAO,CAAP,EAAOH,EAAYG,KAGvB,CAAE,MAAOC,GACP,MAAO,CAAP,EAAO,KACT,CAEA,MAAO,CAAP,EAAO,K,MAGTC,eAAgB,2CAAO,G,QAAEZ,EAAG,MAAEM,EAAK,Q,iCAC3BD,EAAU,UAAGR,GAAM,OAAGG,GAEtBa,EAAmBL,KAAKM,UAAU,CACtCJ,KAAMJ,IAGRL,OAAOC,aAAaa,QAAQV,EAASQ,G,SAGvCG,kBAAmB,2CAAO,G,MAAEhB,EAAG,M,iCACvBK,EAAU,UAAGR,GAAM,OAAGG,GAE5BC,OAAOC,aAAae,WAAWZ,G,SAGrC,C,GDtDoB,KAAK,EAAGV,G","sources":["webpack://EventvisorLocalStorageModule/webpack/universalModuleDefinition","webpack://EventvisorLocalStorageModule/webpack/startup","webpack://EventvisorLocalStorageModule/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventvisorLocalStorageModule\"] = factory();\n\telse\n\t\troot[\"EventvisorLocalStorageModule\"] = factory();\n})(this, () => {\nreturn ","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = {};\n__webpack_modules__[166](0, __webpack_exports__);\n","import { Module } from \"@eventvisor/sdk\";\n\nexport type LocalStorageModuleOptions = {\n name?: string;\n prefix?: string;\n};\n\nexport function createLocalStorageModule(options: LocalStorageModuleOptions = {}): Module {\n const { prefix = \"_eventvisor_\", name = \"localstorage\" } = options;\n\n return {\n name,\n\n // this is different than storage use cases,\n // and prefix is not meant to be used here\n lookup: async ({ key }) => {\n return window.localStorage.getItem(key);\n },\n\n readFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n const value = window.localStorage.getItem(fullKey);\n\n if (!value) {\n return null;\n }\n\n try {\n const parsedValue = JSON.parse(value);\n\n if (parsedValue && typeof parsedValue.data !== \"undefined\") {\n return parsedValue.data;\n }\n // eslint-disable-next-line\n } catch (e) {\n return null;\n }\n\n return null;\n },\n\n writeToStorage: async ({ key, value }) => {\n const fullKey = `${prefix}${key}`;\n\n const stringifiedValue = JSON.stringify({\n data: value,\n });\n\n window.localStorage.setItem(fullKey, stringifiedValue);\n },\n\n removeFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n window.localStorage.removeItem(fullKey);\n },\n };\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_exports__","options","prefix","name","lookup","key","window","localStorage","getItem","readFromStorage","fullKey","value","parsedValue","JSON","parse","data","e","writeToStorage","stringifiedValue","stringify","setItem","removeFromStorage","removeItem"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAsC,6BAAID,IAE1CD,EAAmC,6BAAIC,GACxC,CATD,CASGK,KAAM,I,uBCNLC,EAAsB,CAAC,E,miDCI3B,oCAAyCC,GAAzC,gBAAyC,IAAAA,IAAAA,EAAA,IAC/B,MAAmDA,EAAO,OAA1DC,OAAM,IAAG,iBAAc,EAAE,EAA0BD,EAAO,KAElE,MAAO,CACLE,UAHmC,IAAG,iBAAc,EAOpDC,OAAQ,2CAAO,G,IAAEC,EAAG,M,0BAClB,MAAO,CAAP,EAAOC,OAAOC,aAAaC,QAAQH,G,MAGrCI,gBAAiB,2CAAO,G,UAAEJ,EAAG,M,0BAK3B,GAJMK,EAAU,UAAGR,GAAM,OAAGG,KAEtBM,EAAQL,OAAOC,aAAaC,QAAQE,IAGxC,MAAO,CAAP,EAAO,MAGT,IAGE,IAFME,EAAcC,KAAKC,MAAMH,UAEgB,IAArBC,EAAYG,KACpC,MAAO,CAAP,EAAOH,EAAYG,KAGvB,CAAE,MAAOC,GACP,MAAO,CAAP,EAAO,KACT,CAEA,MAAO,CAAP,EAAO,K,MAGTC,eAAgB,2CAAO,G,QAAEZ,EAAG,MAAEM,EAAK,Q,iCAC3BD,EAAU,UAAGR,GAAM,OAAGG,GAEtBa,EAAmBL,KAAKM,UAAU,CACtCJ,KAAMJ,IAGRL,OAAOC,aAAaa,QAAQV,EAASQ,G,SAGvCG,kBAAmB,2CAAO,G,MAAEhB,EAAG,M,iCACvBK,EAAU,UAAGR,GAAM,OAAGG,GAE5BC,OAAOC,aAAae,WAAWZ,G,SAGrC,C,GDtDoB,KAAK,EAAGV,G","sources":["webpack://EventvisorLocalStorageModule/webpack/universalModuleDefinition","webpack://EventvisorLocalStorageModule/webpack/startup","webpack://EventvisorLocalStorageModule/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventvisorLocalStorageModule\"] = factory();\n\telse\n\t\troot[\"EventvisorLocalStorageModule\"] = factory();\n})(this, () => {\nreturn ","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = {};\n__webpack_modules__[166](0, __webpack_exports__);\n","import type { Module } from \"@eventvisor/sdk\";\n\nexport type LocalStorageModuleOptions = {\n name?: string;\n prefix?: string;\n};\n\nexport function createLocalStorageModule(options: LocalStorageModuleOptions = {}): Module {\n const { prefix = \"_eventvisor_\", name = \"localstorage\" } = options;\n\n return {\n name,\n\n // this is different than storage use cases,\n // and prefix is not meant to be used here\n lookup: async ({ key }) => {\n return window.localStorage.getItem(key);\n },\n\n readFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n const value = window.localStorage.getItem(fullKey);\n\n if (!value) {\n return null;\n }\n\n try {\n const parsedValue = JSON.parse(value);\n\n if (parsedValue && typeof parsedValue.data !== \"undefined\") {\n return parsedValue.data;\n }\n // eslint-disable-next-line\n } catch (e) {\n return null;\n }\n\n return null;\n },\n\n writeToStorage: async ({ key, value }) => {\n const fullKey = `${prefix}${key}`;\n\n const stringifiedValue = JSON.stringify({\n data: value,\n });\n\n window.localStorage.setItem(fullKey, stringifiedValue);\n },\n\n removeFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n window.localStorage.removeItem(fullKey);\n },\n };\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_exports__","options","prefix","name","lookup","key","window","localStorage","getItem","readFromStorage","fullKey","value","parsedValue","JSON","parse","data","e","writeToStorage","stringifiedValue","stringify","setItem","removeFromStorage","removeItem"],"sourceRoot":""}
package/dist/index.mjs.gz CHANGED
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","mappings":"AACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,I,4TCO3E,SAASI,EAAyBC,EAAqC,CAAC,GAC7E,MAAM,OAAEC,EAAS,eAAc,KAAEC,EAAO,gBAAmBF,EAE3D,MAAO,CACLE,OAIAC,OAAQ,GAAmB,EAAD,2BAAX,IAAEf,IACf,OAAOgB,OAAOC,aAAaC,QAAQlB,EACrC,GAEAmB,gBAAiB,GAAmB,EAAD,2BAAX,IAAEnB,IACxB,MAAMoB,EAAU,GAAGP,IAASb,IAEtBqB,EAAQL,OAAOC,aAAaC,QAAQE,GAE1C,IAAKC,EACH,OAAO,KAGT,IACE,MAAMC,EAAcC,KAAKC,MAAMH,GAE/B,GAAIC,QAA2C,IAArBA,EAAYG,KACpC,OAAOH,EAAYG,IAGvB,CAAE,MAAOC,GACP,OAAO,IACT,CAEA,OAAO,IACT,GAEAC,eAAgB,GAA0B,EAAD,2BAAlB,IAAE3B,EAAG,MAAEqB,IAC5B,MAAMD,EAAU,GAAGP,IAASb,IAEtB4B,EAAmBL,KAAKM,UAAU,CACtCJ,KAAMJ,IAGRL,OAAOC,aAAaa,QAAQV,EAASQ,EACvC,GAEAG,kBAAmB,GAAmB,EAAD,2BAAX,IAAE/B,IAC1B,MAAMoB,EAAU,GAAGP,IAASb,IAE5BgB,OAAOC,aAAae,WAAWZ,EACjC,GAEJ,C","sources":["webpack://@eventvisor/module-localstorage/webpack/bootstrap","webpack://@eventvisor/module-localstorage/webpack/runtime/define property getters","webpack://@eventvisor/module-localstorage/webpack/runtime/hasOwnProperty shorthand","webpack://@eventvisor/module-localstorage/./src/index.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import { Module } from \"@eventvisor/sdk\";\n\nexport type LocalStorageModuleOptions = {\n name?: string;\n prefix?: string;\n};\n\nexport function createLocalStorageModule(options: LocalStorageModuleOptions = {}): Module {\n const { prefix = \"_eventvisor_\", name = \"localstorage\" } = options;\n\n return {\n name,\n\n // this is different than storage use cases,\n // and prefix is not meant to be used here\n lookup: async ({ key }) => {\n return window.localStorage.getItem(key);\n },\n\n readFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n const value = window.localStorage.getItem(fullKey);\n\n if (!value) {\n return null;\n }\n\n try {\n const parsedValue = JSON.parse(value);\n\n if (parsedValue && typeof parsedValue.data !== \"undefined\") {\n return parsedValue.data;\n }\n // eslint-disable-next-line\n } catch (e) {\n return null;\n }\n\n return null;\n },\n\n writeToStorage: async ({ key, value }) => {\n const fullKey = `${prefix}${key}`;\n\n const stringifiedValue = JSON.stringify({\n data: value,\n });\n\n window.localStorage.setItem(fullKey, stringifiedValue);\n },\n\n removeFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n window.localStorage.removeItem(fullKey);\n },\n };\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","createLocalStorageModule","options","prefix","name","lookup","window","localStorage","getItem","readFromStorage","fullKey","value","parsedValue","JSON","parse","data","e","writeToStorage","stringifiedValue","stringify","setItem","removeFromStorage","removeItem"],"sourceRoot":""}
1
+ {"version":3,"file":"index.mjs","mappings":"AACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,I,4TCO3E,SAASI,EAAyBC,EAAqC,CAAC,GAC7E,MAAM,OAAEC,EAAS,eAAc,KAAEC,EAAO,gBAAmBF,EAE3D,MAAO,CACLE,OAIAC,OAAQ,GAAmB,EAAD,2BAAX,IAAEf,IACf,OAAOgB,OAAOC,aAAaC,QAAQlB,EACrC,GAEAmB,gBAAiB,GAAmB,EAAD,2BAAX,IAAEnB,IACxB,MAAMoB,EAAU,GAAGP,IAASb,IAEtBqB,EAAQL,OAAOC,aAAaC,QAAQE,GAE1C,IAAKC,EACH,OAAO,KAGT,IACE,MAAMC,EAAcC,KAAKC,MAAMH,GAE/B,GAAIC,QAA2C,IAArBA,EAAYG,KACpC,OAAOH,EAAYG,IAGvB,CAAE,MAAOC,GACP,OAAO,IACT,CAEA,OAAO,IACT,GAEAC,eAAgB,GAA0B,EAAD,2BAAlB,IAAE3B,EAAG,MAAEqB,IAC5B,MAAMD,EAAU,GAAGP,IAASb,IAEtB4B,EAAmBL,KAAKM,UAAU,CACtCJ,KAAMJ,IAGRL,OAAOC,aAAaa,QAAQV,EAASQ,EACvC,GAEAG,kBAAmB,GAAmB,EAAD,2BAAX,IAAE/B,IAC1B,MAAMoB,EAAU,GAAGP,IAASb,IAE5BgB,OAAOC,aAAae,WAAWZ,EACjC,GAEJ,C","sources":["webpack://@eventvisor/module-localstorage/webpack/bootstrap","webpack://@eventvisor/module-localstorage/webpack/runtime/define property getters","webpack://@eventvisor/module-localstorage/webpack/runtime/hasOwnProperty shorthand","webpack://@eventvisor/module-localstorage/./src/index.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import type { Module } from \"@eventvisor/sdk\";\n\nexport type LocalStorageModuleOptions = {\n name?: string;\n prefix?: string;\n};\n\nexport function createLocalStorageModule(options: LocalStorageModuleOptions = {}): Module {\n const { prefix = \"_eventvisor_\", name = \"localstorage\" } = options;\n\n return {\n name,\n\n // this is different than storage use cases,\n // and prefix is not meant to be used here\n lookup: async ({ key }) => {\n return window.localStorage.getItem(key);\n },\n\n readFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n const value = window.localStorage.getItem(fullKey);\n\n if (!value) {\n return null;\n }\n\n try {\n const parsedValue = JSON.parse(value);\n\n if (parsedValue && typeof parsedValue.data !== \"undefined\") {\n return parsedValue.data;\n }\n // eslint-disable-next-line\n } catch (e) {\n return null;\n }\n\n return null;\n },\n\n writeToStorage: async ({ key, value }) => {\n const fullKey = `${prefix}${key}`;\n\n const stringifiedValue = JSON.stringify({\n data: value,\n });\n\n window.localStorage.setItem(fullKey, stringifiedValue);\n },\n\n removeFromStorage: async ({ key }) => {\n const fullKey = `${prefix}${key}`;\n\n window.localStorage.removeItem(fullKey);\n },\n };\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","createLocalStorageModule","options","prefix","name","lookup","window","localStorage","getItem","readFromStorage","fullKey","value","parsedValue","JSON","parse","data","e","writeToStorage","stringifiedValue","stringify","setItem","removeFromStorage","removeItem"],"sourceRoot":""}
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@eventvisor/sdk";
1
+ import type { Module } from "@eventvisor/sdk";
2
2
  export type LocalStorageModuleOptions = {
3
3
  name?: string;
4
4
  prefix?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventvisor/module-localstorage",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Eventvisor LocalStorage module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.mjs",
@@ -38,8 +38,8 @@
38
38
  "url": "https://github.com/eventvisor/eventvisor/issues"
39
39
  },
40
40
  "devDependencies": {
41
- "@eventvisor/sdk": "0.8.0"
41
+ "@eventvisor/sdk": "0.10.0"
42
42
  },
43
43
  "license": "MIT",
44
- "gitHead": "576d9aad61a71d542a0c574b1cd343c1f78ec9ca"
44
+ "gitHead": "7f0d14c5ee3b2727deb93aead60f108d068da406"
45
45
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@eventvisor/sdk";
1
+ import type { Module } from "@eventvisor/sdk";
2
2
 
3
3
  export type LocalStorageModuleOptions = {
4
4
  name?: string;