@alwatr/local-storage 1.1.2 → 1.1.4

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,16 @@
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
+ ## [1.1.4](https://github.com/Alwatr/nanolib/compare/@alwatr/local-storage@1.1.3...@alwatr/local-storage@1.1.4) (2024-10-11)
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
11
+
12
+ ## [1.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/local-storage@1.1.2...@alwatr/local-storage@1.1.3) (2024-10-11)
13
+
14
+ **Note:** Version bump only for package @alwatr/local-storage
15
+
6
16
  ## [1.1.2](https://github.com/Alwatr/nanolib/compare/@alwatr/local-storage@1.1.1...@alwatr/local-storage@1.1.2) (2024-10-10)
7
17
 
8
18
  ### Dependencies update
package/dist/main.cjs CHANGED
@@ -1,3 +1,113 @@
1
- /* @alwatr/local-storage v1.1.2 */
2
- "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var _=(t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})},m=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!g.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t};var u=t=>m(a({},"__esModule",{value:!0}),t);var p={};_(p,{localJsonStorage:()=>y});module.exports=u(p);var i=require("@alwatr/package-tracer");i.packageTracer.add("@alwatr/local-storage","1.1.2");function k(t){try{return JSON.parse(t)}catch(e){return console.error("parseJson","invalid_json",e),null}}var y={key_(t,e=1){return`${t}.v${e}`},getItem(t,e,n=1){n>1&&this.removeItem(t,n-1);let o=this.key_(t,n),r=localStorage.getItem(o);if(r===null)return e;let s=k(r);return s===null||typeof s!="object"?e:s},setItem(t,e,n=1){let o=this.key_(t,n);localStorage.setItem(o,JSON.stringify(e))},removeItem(t,e=1){let n=this.key_(t,e);window.localStorage.removeItem(n)}};0&&(module.exports={localJsonStorage});
1
+ /* @alwatr/local-storage v1.1.4 */
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/main.ts
22
+ var main_exports = {};
23
+ __export(main_exports, {
24
+ localJsonStorage: () => localJsonStorage
25
+ });
26
+ module.exports = __toCommonJS(main_exports);
27
+ var import_package_tracer = require("@alwatr/package-tracer");
28
+ import_package_tracer.packageTracer.add("@alwatr/local-storage", "1.1.4");
29
+ function parseJson(content) {
30
+ try {
31
+ return JSON.parse(content);
32
+ } catch (err) {
33
+ console.error("parseJson", "invalid_json", err);
34
+ return null;
35
+ }
36
+ }
37
+ var localJsonStorage = {
38
+ /**
39
+ * Generate local storage key.
40
+ *
41
+ * @param name - Name of the item.
42
+ * @param version - Version of the item (default: 1).
43
+ * @returns The generated local storage key.
44
+ * @example
45
+ * ```typescript
46
+ * localJsonStorage.key_('myItem', 1); // myItem.v1
47
+ * ```
48
+ */
49
+ key_(name, version = 1) {
50
+ return `${name}.v${version}`;
51
+ },
52
+ /**
53
+ * Get the local storage item and parse it as JSON.
54
+ * If the item is not found, return the default value.
55
+ * If the version is greater than 1, remove the previous version.
56
+ * If the item is not a valid JSON object, return the default value.
57
+ *
58
+ * @param name - The name of the item.
59
+ * @param defaultValue - The default value of the item.
60
+ * @param version - The data structure version of the item (default: 1).
61
+ * @returns The parsed JSON value or the default value if the item is not found.
62
+ * @example
63
+ * ```typescript
64
+ * const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});
65
+ * ```
66
+ */
67
+ getItem(name, defaultValue, version = 1) {
68
+ if (version > 1) {
69
+ this.removeItem(name, version - 1);
70
+ }
71
+ const key = this.key_(name, version);
72
+ const value = localStorage.getItem(key);
73
+ if (value === null) return defaultValue;
74
+ const json = parseJson(value);
75
+ if (json === null || typeof json !== "object") return defaultValue;
76
+ return json;
77
+ },
78
+ /**
79
+ * Set local storage item as JSON.
80
+ *
81
+ * @param name - Name of the item.
82
+ * @param value - Value of the item.
83
+ * @param version - Version of the item.
84
+ * @example
85
+ * ```typescript
86
+ * localJsonStorage.setItem('myItem', {a: 1, b: 2});
87
+ * ```
88
+ */
89
+ setItem(name, value, version = 1) {
90
+ const key = this.key_(name, version);
91
+ localStorage.setItem(key, JSON.stringify(value));
92
+ },
93
+ /**
94
+ * Removes an item from the local storage.
95
+ *
96
+ * @param name - The name of the item to remove.
97
+ * @param version - The version of the item to remove. Default is 1.
98
+ * @example
99
+ * ```typescript
100
+ * localJsonStorage.removeItem('myItem');
101
+ * ```
102
+ */
103
+ removeItem(name, version = 1) {
104
+ const key = this.key_(name, version);
105
+ window.localStorage.removeItem(key);
106
+ }
107
+ };
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
110
+ localJsonStorage
111
+ });
112
+ /*! For license information please see main.cjs.LEGAL.txt */
3
113
  //# sourceMappingURL=main.cjs.map
File without changes
package/dist/main.cjs.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
4
  "sourcesContent": ["import {packageTracer} from '@alwatr/package-tracer';\n\npackageTracer.add(__package_name__, __package_version__);\n\n/**\n * Parse json string without throwing error.\n *\n * @param content - json string\n * @returns json object or null if json is invalid\n * @example\n * ```typescript\n * const json = parseJson('{\"a\":1,\"b\":2}');\n * console.log(json.a); // 1\n * ```\n */\nfunction parseJson<T extends JsonValue>(content: string): T | null {\n try {\n return JSON.parse(content);\n }\n catch (err) {\n console.error('parseJson', 'invalid_json', err);\n return null;\n }\n}\n\n// @TODO: localStorage polyfill (memory fallback)\n\n/**\n * A utility object for working with local storage and JSON data.\n */\nexport const localJsonStorage = {\n /**\n * Generate local storage key.\n *\n * @param name - Name of the item.\n * @param version - Version of the item (default: 1).\n * @returns The generated local storage key.\n * @example\n * ```typescript\n * localJsonStorage.key_('myItem', 1); // myItem.v1\n * ```\n */\n key_(name: string, version = 1): string {\n return `${name}.v${version}`;\n },\n\n /**\n * Get the local storage item and parse it as JSON.\n * If the item is not found, return the default value.\n * If the version is greater than 1, remove the previous version.\n * If the item is not a valid JSON object, return the default value.\n *\n * @param name - The name of the item.\n * @param defaultValue - The default value of the item.\n * @param version - The data structure version of the item (default: 1).\n * @returns The parsed JSON value or the default value if the item is not found.\n * @example\n * ```typescript\n * const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});\n * ```\n */\n getItem<T extends Json>(name: string, defaultValue: T, version = 1): T {\n if (version > 1) {\n this.removeItem(name, version - 1);\n }\n const key = this.key_(name, version);\n const value = localStorage.getItem(key);\n if (value === null) return defaultValue;\n const json = parseJson<T>(value);\n if (json === null || typeof json !== 'object') return defaultValue;\n return json;\n },\n\n /**\n * Set local storage item as JSON.\n *\n * @param name - Name of the item.\n * @param value - Value of the item.\n * @param version - Version of the item.\n * @example\n * ```typescript\n * localJsonStorage.setItem('myItem', {a: 1, b: 2});\n * ```\n */\n setItem<T extends Json>(name: string, value: T, version = 1): void {\n const key = this.key_(name, version);\n localStorage.setItem(key, JSON.stringify(value));\n },\n\n /**\n * Removes an item from the local storage.\n *\n * @param name - The name of the item to remove.\n * @param version - The version of the item to remove. Default is 1.\n * @example\n * ```typescript\n * localJsonStorage.removeItem('myItem');\n * ```\n */\n removeItem(name: string, version = 1): void {\n const key = this.key_(name, version);\n window.localStorage.removeItem(key);\n },\n} as const;\n"],
5
- "mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA4B,kCAE5B,gBAAc,IAAI,wBAAkB,OAAmB,EAavD,SAASC,EAA+BC,EAA2B,CACjE,GAAI,CACF,OAAO,KAAK,MAAMA,CAAO,CAC3B,OACOC,EAAK,CACV,eAAQ,MAAM,YAAa,eAAgBA,CAAG,EACvC,IACT,CACF,CAOO,IAAML,EAAmB,CAY9B,KAAKM,EAAcC,EAAU,EAAW,CACtC,MAAO,GAAGD,CAAI,KAAKC,CAAO,EAC5B,EAiBA,QAAwBD,EAAcE,EAAiBD,EAAU,EAAM,CACjEA,EAAU,GACZ,KAAK,WAAWD,EAAMC,EAAU,CAAC,EAEnC,IAAME,EAAM,KAAK,KAAKH,EAAMC,CAAO,EAC7BG,EAAQ,aAAa,QAAQD,CAAG,EACtC,GAAIC,IAAU,KAAM,OAAOF,EAC3B,IAAMG,EAAOR,EAAaO,CAAK,EAC/B,OAAIC,IAAS,MAAQ,OAAOA,GAAS,SAAiBH,EAC/CG,CACT,EAaA,QAAwBL,EAAcI,EAAUH,EAAU,EAAS,CACjE,IAAME,EAAM,KAAK,KAAKH,EAAMC,CAAO,EACnC,aAAa,QAAQE,EAAK,KAAK,UAAUC,CAAK,CAAC,CACjD,EAYA,WAAWJ,EAAcC,EAAU,EAAS,CAC1C,IAAME,EAAM,KAAK,KAAKH,EAAMC,CAAO,EACnC,OAAO,aAAa,WAAWE,CAAG,CACpC,CACF",
6
- "names": ["main_exports", "__export", "localJsonStorage", "__toCommonJS", "import_package_tracer", "parseJson", "content", "err", "name", "version", "defaultValue", "key", "value", "json"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA4B;AAE5B,oCAAc,IAAI,yBAAkB,OAAmB;AAavD,SAAS,UAA+B,SAA2B;AACjE,MAAI;AACF,WAAO,KAAK,MAAM,OAAO;AAAA,EAC3B,SACO,KAAK;AACV,YAAQ,MAAM,aAAa,gBAAgB,GAAG;AAC9C,WAAO;AAAA,EACT;AACF;AAOO,IAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAY9B,KAAK,MAAc,UAAU,GAAW;AACtC,WAAO,GAAG,IAAI,KAAK,OAAO;AAAA,EAC5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,QAAwB,MAAc,cAAiB,UAAU,GAAM;AACrE,QAAI,UAAU,GAAG;AACf,WAAK,WAAW,MAAM,UAAU,CAAC;AAAA,IACnC;AACA,UAAM,MAAM,KAAK,KAAK,MAAM,OAAO;AACnC,UAAM,QAAQ,aAAa,QAAQ,GAAG;AACtC,QAAI,UAAU,KAAM,QAAO;AAC3B,UAAM,OAAO,UAAa,KAAK;AAC/B,QAAI,SAAS,QAAQ,OAAO,SAAS,SAAU,QAAO;AACtD,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,QAAwB,MAAc,OAAU,UAAU,GAAS;AACjE,UAAM,MAAM,KAAK,KAAK,MAAM,OAAO;AACnC,iBAAa,QAAQ,KAAK,KAAK,UAAU,KAAK,CAAC;AAAA,EACjD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,WAAW,MAAc,UAAU,GAAS;AAC1C,UAAM,MAAM,KAAK,KAAK,MAAM,OAAO;AACnC,WAAO,aAAa,WAAW,GAAG;AAAA,EACpC;AACF;",
6
+ "names": []
7
7
  }
package/dist/main.mjs CHANGED
@@ -1,3 +1,89 @@
1
- /* @alwatr/local-storage v1.1.2 */
2
- import{packageTracer as a}from"@alwatr/package-tracer";a.add("@alwatr/local-storage","1.1.2");function i(e){try{return JSON.parse(e)}catch(t){return console.error("parseJson","invalid_json",t),null}}var l={key_(e,t=1){return`${e}.v${t}`},getItem(e,t,n=1){n>1&&this.removeItem(e,n-1);let r=this.key_(e,n),s=localStorage.getItem(r);if(s===null)return t;let o=i(s);return o===null||typeof o!="object"?t:o},setItem(e,t,n=1){let r=this.key_(e,n);localStorage.setItem(r,JSON.stringify(t))},removeItem(e,t=1){let n=this.key_(e,t);window.localStorage.removeItem(n)}};export{l as localJsonStorage};
1
+ /* @alwatr/local-storage v1.1.4 */
2
+
3
+ // src/main.ts
4
+ import { packageTracer } from "@alwatr/package-tracer";
5
+ packageTracer.add("@alwatr/local-storage", "1.1.4");
6
+ function parseJson(content) {
7
+ try {
8
+ return JSON.parse(content);
9
+ } catch (err) {
10
+ console.error("parseJson", "invalid_json", err);
11
+ return null;
12
+ }
13
+ }
14
+ var localJsonStorage = {
15
+ /**
16
+ * Generate local storage key.
17
+ *
18
+ * @param name - Name of the item.
19
+ * @param version - Version of the item (default: 1).
20
+ * @returns The generated local storage key.
21
+ * @example
22
+ * ```typescript
23
+ * localJsonStorage.key_('myItem', 1); // myItem.v1
24
+ * ```
25
+ */
26
+ key_(name, version = 1) {
27
+ return `${name}.v${version}`;
28
+ },
29
+ /**
30
+ * Get the local storage item and parse it as JSON.
31
+ * If the item is not found, return the default value.
32
+ * If the version is greater than 1, remove the previous version.
33
+ * If the item is not a valid JSON object, return the default value.
34
+ *
35
+ * @param name - The name of the item.
36
+ * @param defaultValue - The default value of the item.
37
+ * @param version - The data structure version of the item (default: 1).
38
+ * @returns The parsed JSON value or the default value if the item is not found.
39
+ * @example
40
+ * ```typescript
41
+ * const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});
42
+ * ```
43
+ */
44
+ getItem(name, defaultValue, version = 1) {
45
+ if (version > 1) {
46
+ this.removeItem(name, version - 1);
47
+ }
48
+ const key = this.key_(name, version);
49
+ const value = localStorage.getItem(key);
50
+ if (value === null) return defaultValue;
51
+ const json = parseJson(value);
52
+ if (json === null || typeof json !== "object") return defaultValue;
53
+ return json;
54
+ },
55
+ /**
56
+ * Set local storage item as JSON.
57
+ *
58
+ * @param name - Name of the item.
59
+ * @param value - Value of the item.
60
+ * @param version - Version of the item.
61
+ * @example
62
+ * ```typescript
63
+ * localJsonStorage.setItem('myItem', {a: 1, b: 2});
64
+ * ```
65
+ */
66
+ setItem(name, value, version = 1) {
67
+ const key = this.key_(name, version);
68
+ localStorage.setItem(key, JSON.stringify(value));
69
+ },
70
+ /**
71
+ * Removes an item from the local storage.
72
+ *
73
+ * @param name - The name of the item to remove.
74
+ * @param version - The version of the item to remove. Default is 1.
75
+ * @example
76
+ * ```typescript
77
+ * localJsonStorage.removeItem('myItem');
78
+ * ```
79
+ */
80
+ removeItem(name, version = 1) {
81
+ const key = this.key_(name, version);
82
+ window.localStorage.removeItem(key);
83
+ }
84
+ };
85
+ export {
86
+ localJsonStorage
87
+ };
88
+ /*! For license information please see main.mjs.LEGAL.txt */
3
89
  //# sourceMappingURL=main.mjs.map
File without changes
package/dist/main.mjs.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
4
  "sourcesContent": ["import {packageTracer} from '@alwatr/package-tracer';\n\npackageTracer.add(__package_name__, __package_version__);\n\n/**\n * Parse json string without throwing error.\n *\n * @param content - json string\n * @returns json object or null if json is invalid\n * @example\n * ```typescript\n * const json = parseJson('{\"a\":1,\"b\":2}');\n * console.log(json.a); // 1\n * ```\n */\nfunction parseJson<T extends JsonValue>(content: string): T | null {\n try {\n return JSON.parse(content);\n }\n catch (err) {\n console.error('parseJson', 'invalid_json', err);\n return null;\n }\n}\n\n// @TODO: localStorage polyfill (memory fallback)\n\n/**\n * A utility object for working with local storage and JSON data.\n */\nexport const localJsonStorage = {\n /**\n * Generate local storage key.\n *\n * @param name - Name of the item.\n * @param version - Version of the item (default: 1).\n * @returns The generated local storage key.\n * @example\n * ```typescript\n * localJsonStorage.key_('myItem', 1); // myItem.v1\n * ```\n */\n key_(name: string, version = 1): string {\n return `${name}.v${version}`;\n },\n\n /**\n * Get the local storage item and parse it as JSON.\n * If the item is not found, return the default value.\n * If the version is greater than 1, remove the previous version.\n * If the item is not a valid JSON object, return the default value.\n *\n * @param name - The name of the item.\n * @param defaultValue - The default value of the item.\n * @param version - The data structure version of the item (default: 1).\n * @returns The parsed JSON value or the default value if the item is not found.\n * @example\n * ```typescript\n * const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});\n * ```\n */\n getItem<T extends Json>(name: string, defaultValue: T, version = 1): T {\n if (version > 1) {\n this.removeItem(name, version - 1);\n }\n const key = this.key_(name, version);\n const value = localStorage.getItem(key);\n if (value === null) return defaultValue;\n const json = parseJson<T>(value);\n if (json === null || typeof json !== 'object') return defaultValue;\n return json;\n },\n\n /**\n * Set local storage item as JSON.\n *\n * @param name - Name of the item.\n * @param value - Value of the item.\n * @param version - Version of the item.\n * @example\n * ```typescript\n * localJsonStorage.setItem('myItem', {a: 1, b: 2});\n * ```\n */\n setItem<T extends Json>(name: string, value: T, version = 1): void {\n const key = this.key_(name, version);\n localStorage.setItem(key, JSON.stringify(value));\n },\n\n /**\n * Removes an item from the local storage.\n *\n * @param name - The name of the item to remove.\n * @param version - The version of the item to remove. Default is 1.\n * @example\n * ```typescript\n * localJsonStorage.removeItem('myItem');\n * ```\n */\n removeItem(name: string, version = 1): void {\n const key = this.key_(name, version);\n window.localStorage.removeItem(key);\n },\n} as const;\n"],
5
- "mappings": ";AAAA,OAAQ,iBAAAA,MAAoB,yBAE5BA,EAAc,IAAI,wBAAkB,OAAmB,EAavD,SAASC,EAA+BC,EAA2B,CACjE,GAAI,CACF,OAAO,KAAK,MAAMA,CAAO,CAC3B,OACOC,EAAK,CACV,eAAQ,MAAM,YAAa,eAAgBA,CAAG,EACvC,IACT,CACF,CAOO,IAAMC,EAAmB,CAY9B,KAAKC,EAAcC,EAAU,EAAW,CACtC,MAAO,GAAGD,CAAI,KAAKC,CAAO,EAC5B,EAiBA,QAAwBD,EAAcE,EAAiBD,EAAU,EAAM,CACjEA,EAAU,GACZ,KAAK,WAAWD,EAAMC,EAAU,CAAC,EAEnC,IAAME,EAAM,KAAK,KAAKH,EAAMC,CAAO,EAC7BG,EAAQ,aAAa,QAAQD,CAAG,EACtC,GAAIC,IAAU,KAAM,OAAOF,EAC3B,IAAMG,EAAOT,EAAaQ,CAAK,EAC/B,OAAIC,IAAS,MAAQ,OAAOA,GAAS,SAAiBH,EAC/CG,CACT,EAaA,QAAwBL,EAAcI,EAAUH,EAAU,EAAS,CACjE,IAAME,EAAM,KAAK,KAAKH,EAAMC,CAAO,EACnC,aAAa,QAAQE,EAAK,KAAK,UAAUC,CAAK,CAAC,CACjD,EAYA,WAAWJ,EAAcC,EAAU,EAAS,CAC1C,IAAME,EAAM,KAAK,KAAKH,EAAMC,CAAO,EACnC,OAAO,aAAa,WAAWE,CAAG,CACpC,CACF",
6
- "names": ["packageTracer", "parseJson", "content", "err", "localJsonStorage", "name", "version", "defaultValue", "key", "value", "json"]
5
+ "mappings": ";;;AAAA,SAAQ,qBAAoB;AAE5B,cAAc,IAAI,yBAAkB,OAAmB;AAavD,SAAS,UAA+B,SAA2B;AACjE,MAAI;AACF,WAAO,KAAK,MAAM,OAAO;AAAA,EAC3B,SACO,KAAK;AACV,YAAQ,MAAM,aAAa,gBAAgB,GAAG;AAC9C,WAAO;AAAA,EACT;AACF;AAOO,IAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAY9B,KAAK,MAAc,UAAU,GAAW;AACtC,WAAO,GAAG,IAAI,KAAK,OAAO;AAAA,EAC5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,QAAwB,MAAc,cAAiB,UAAU,GAAM;AACrE,QAAI,UAAU,GAAG;AACf,WAAK,WAAW,MAAM,UAAU,CAAC;AAAA,IACnC;AACA,UAAM,MAAM,KAAK,KAAK,MAAM,OAAO;AACnC,UAAM,QAAQ,aAAa,QAAQ,GAAG;AACtC,QAAI,UAAU,KAAM,QAAO;AAC3B,UAAM,OAAO,UAAa,KAAK;AAC/B,QAAI,SAAS,QAAQ,OAAO,SAAS,SAAU,QAAO;AACtD,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,QAAwB,MAAc,OAAU,UAAU,GAAS;AACjE,UAAM,MAAM,KAAK,KAAK,MAAM,OAAO;AACnC,iBAAa,QAAQ,KAAK,KAAK,UAAU,KAAK,CAAC;AAAA,EACjD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,WAAW,MAAc,UAAU,GAAS;AAC1C,UAAM,MAAM,KAAK,KAAK,MAAM,OAAO;AACnC,WAAO,aAAa,WAAW,GAAG;AAAA,EACpC;AACF;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/local-storage",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "`localJsonStorage` is a utility object in our TypeScript package that provides methods for interacting with the local storage in a structured and versioned manner.",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -36,7 +36,8 @@
36
36
  },
37
37
  "license": "AGPL-3.0-only",
38
38
  "files": [
39
- "**/*.{js,mjs,cjs,map,d.ts,html,md}",
39
+ "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
40
+ "LICENSE",
40
41
  "!demo/**/*"
41
42
  ],
42
43
  "publishConfig": {
@@ -67,14 +68,14 @@
67
68
  "clean": "rm -rfv dist *.tsbuildinfo"
68
69
  },
69
70
  "dependencies": {
70
- "@alwatr/package-tracer": "^1.0.2"
71
+ "@alwatr/package-tracer": "^1.0.4"
71
72
  },
72
73
  "devDependencies": {
73
- "@alwatr/nano-build": "^1.6.0",
74
- "@alwatr/prettier-config": "^1.0.5",
75
- "@alwatr/tsconfig-base": "^1.3.1",
76
- "@alwatr/type-helper": "^2.0.1",
74
+ "@alwatr/nano-build": "^2.0.1",
75
+ "@alwatr/prettier-config": "^1.0.6",
76
+ "@alwatr/tsconfig-base": "^1.3.2",
77
+ "@alwatr/type-helper": "^2.0.2",
77
78
  "typescript": "^5.6.3"
78
79
  },
79
- "gitHead": "6ad24764eae1b88d7d1bb19217578b02b8c22aaf"
80
+ "gitHead": "2a35f99b0347aacdccf3b6f28b30ca902f02a2f1"
80
81
  }