tnp-core 21.0.165 → 21.0.166

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.
Files changed (54) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/package.json +1 -1
  3. package/browser-prod/package.json +1 -1
  4. package/lib/build-info._auto-generated_.d.ts +1 -1
  5. package/lib/build-info._auto-generated_.js +1 -1
  6. package/lib/package.json +1 -1
  7. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  8. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  9. package/lib-esm/lib/config.d.ts +2 -2
  10. package/lib-esm/lib/core-imports.d.ts +4 -1
  11. package/lib-esm/lib/framework-name.d.ts +3 -3
  12. package/lib-esm/lib/jsonc-parse.test.d.ts +1 -0
  13. package/lib-esm/lib/taon-state-machine.test.d.ts +1 -0
  14. package/lib-esm/lib/utils-binary.d.ts +9 -1
  15. package/lib-esm/lib/utils-env.test.d.ts +1 -0
  16. package/lib-esm/lib/utils-imports.test.d.ts +0 -0
  17. package/lib-esm/lib/utils-json.test.d.ts +1 -0
  18. package/lib-esm/lib/utils-jwt.test.d.ts +1 -0
  19. package/lib-esm/lib/utils-md-docs.test.d.ts +1 -0
  20. package/lib-esm/lib/utils-progress.test.d.ts +1 -0
  21. package/lib-esm/lib/utils-projects.test.d.ts +0 -0
  22. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  23. package/lib-prod/build-info._auto-generated_.js +1 -1
  24. package/lib-prod/package.json +1 -1
  25. package/package.json +1 -1
  26. package/websql/package.json +1 -1
  27. package/websql-prod/package.json +1 -1
  28. package/lib/lowdb/adapters/browser/LocalStorage.d.ts +0 -4
  29. package/lib/lowdb/adapters/browser/LocalStorage.js +0 -13
  30. package/lib/lowdb/adapters/browser/LocalStorage.js.map +0 -1
  31. package/lib/lowdb/adapters/browser/SessionStorage.d.ts +0 -4
  32. package/lib/lowdb/adapters/browser/SessionStorage.js +0 -13
  33. package/lib/lowdb/adapters/browser/SessionStorage.js.map +0 -1
  34. package/lib/lowdb/adapters/browser/WebStorage.d.ts +0 -8
  35. package/lib/lowdb/adapters/browser/WebStorage.js +0 -24
  36. package/lib/lowdb/adapters/browser/WebStorage.js.map +0 -1
  37. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.d.ts +0 -4
  38. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js +0 -9
  39. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js.map +0 -1
  40. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.d.ts +0 -4
  41. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js +0 -9
  42. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js.map +0 -1
  43. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.d.ts +0 -8
  44. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js +0 -20
  45. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js.map +0 -1
  46. package/lib-prod/lowdb/adapters/browser/LocalStorage.d.ts +0 -4
  47. package/lib-prod/lowdb/adapters/browser/LocalStorage.js +0 -9
  48. package/lib-prod/lowdb/adapters/browser/LocalStorage.js.map +0 -1
  49. package/lib-prod/lowdb/adapters/browser/SessionStorage.d.ts +0 -4
  50. package/lib-prod/lowdb/adapters/browser/SessionStorage.js +0 -9
  51. package/lib-prod/lowdb/adapters/browser/SessionStorage.js.map +0 -1
  52. package/lib-prod/lowdb/adapters/browser/WebStorage.d.ts +0 -8
  53. package/lib-prod/lowdb/adapters/browser/WebStorage.js +0 -20
  54. package/lib-prod/lowdb/adapters/browser/WebStorage.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "commitHash": "247b3ce8b0269348b668f1d32c9af585b51e4449",
3
- "commitName": "feat: is leaf object util",
4
- "commitDate": "08-10-2026 15:43:27"
2
+ "commitHash": "887537394d9d744405cb09e4f1b06e927d076f1c",
3
+ "commitName": "release: v21.0.165",
4
+ "commitDate": "09-10-2026 16:27:18"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core/browser",
3
- "version": "21.0.165",
3
+ "version": "21.0.166",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core/browser-prod",
3
- "version": "21.0.165",
3
+ "version": "21.0.166",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.165";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.166";
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
25
25
  /**
26
26
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
27
27
  */
28
- exports.CURRENT_PACKAGE_VERSION = '21.0.165';
28
+ exports.CURRENT_PACKAGE_VERSION = '21.0.166';
29
29
  // THIS FILE IS GENERATED - DO NOT MODIFY
30
30
  //# sourceMappingURL=build-info._auto-generated_.js.map
package/lib/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "tnp-core/lib",
3
- "version": "21.0.165"
3
+ "version": "21.0.166"
4
4
  }
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.165";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.166";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.165';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.166';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -10,7 +10,7 @@ export declare const config: {
10
10
  placeholders: {
11
11
  forProjectsInEnvironmentFile: string;
12
12
  };
13
- frameworkName: "taon" | "tnp";
13
+ frameworkName: "tnp" | "taon";
14
14
  startPort: number;
15
15
  frameworks: CoreModels.UIFramework[];
16
16
  /**
@@ -168,4 +168,4 @@ export declare const config: {
168
168
  reservedArgumentsNamesUglify: string[];
169
169
  localLibs: string[];
170
170
  helpAlias: string[];
171
- };
171
+ };
@@ -65,4 +65,7 @@ export declare function signal<T>(initialValue: T): BackendSignal<T>;
65
65
  type Constructor<T> = new (...args: any[]) => T;
66
66
  export declare function inject<T>(token: Constructor<T>): T;
67
67
  export declare function Injectable(_options?: any): ClassDecorator;
68
- export { dateformat, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, psList, spawn, fg, chokidar, mkdirp, ncp, rimraf, ps, micromatch, };
68
+ export { signal } from '@angular/core';
69
+ export { inject } from '@angular/core';
70
+ export { Injectable } from '@angular/core';
71
+ export { dateformat, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, psList, spawn, fg, chokidar, mkdirp, ncp, rimraf, ps, micromatch, };
@@ -1,3 +1,3 @@
1
- declare let frameworkNameBe: "taon" | "tnp";
2
- declare const frameworkName: "taon" | "tnp";
3
- export { frameworkName, frameworkNameBe };
1
+ declare let frameworkNameBe: "tnp" | "taon";
2
+ declare const frameworkName: "tnp" | "taon";
3
+ export { frameworkName, frameworkNameBe };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -17,6 +17,14 @@ export type DbBinaryFormatForBackend = Buffer;
17
17
  */
18
18
  export type DbBinaryFormat = DbBinaryFormatForBrowser | DbBinaryFormatForBackend;
19
19
  export declare namespace UtilsBinary {
20
+ /**
21
+ * This is for BROWSER ONLY
22
+ *
23
+ * @param buffer
24
+ * @param contentType
25
+ * @returns
26
+ */
27
+ function arrayBufferToBlob(buffer: ArrayBuffer, contentType: CoreModels.ContentType): Promise<Blob>;
20
28
  /**
21
29
  * This is for BROWSER ONLY
22
30
  * @param blob
@@ -57,4 +65,4 @@ export declare namespace UtilsBinary {
57
65
  */
58
66
  function blobToJson(blob: Blob): Promise<string>;
59
67
  function getBlobFrom(url: string): Promise<Blob>;
60
- }
68
+ }
@@ -0,0 +1 @@
1
+ export {};
File without changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
File without changes
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.165";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.166";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.165';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.166';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "tnp-core/lib-prod",
3
- "version": "21.0.165"
3
+ "version": "21.0.166"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core",
3
- "version": "21.0.165",
3
+ "version": "21.0.166",
4
4
  "scripts": {
5
5
  "mkdocs": "python3 -m mkdocs",
6
6
  "taon init": "taon init",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core/websql",
3
- "version": "21.0.165",
3
+ "version": "21.0.166",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core/websql-prod",
3
- "version": "21.0.165",
3
+ "version": "21.0.166",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,4 +0,0 @@
1
- import { WebStorage } from './WebStorage';
2
- export declare class LocalStorage<T> extends WebStorage<T> {
3
- constructor(key: string);
4
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalStorage = void 0;
4
- //#region @backend
5
- const WebStorage_1 = require("./WebStorage");
6
- class LocalStorage extends WebStorage_1.WebStorage {
7
- constructor(key) {
8
- super(key, localStorage);
9
- }
10
- }
11
- exports.LocalStorage = LocalStorage;
12
- //#endregion
13
- //# sourceMappingURL=LocalStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,6CAA0C;AAE1C,MAAa,YAAgB,SAAQ,uBAAa;IAChD,YAAY,GAAW;QACrB,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC;CACF;AAJD,oCAIC;AACD,YAAY"}
@@ -1,4 +0,0 @@
1
- import { WebStorage } from './WebStorage';
2
- export declare class SessionStorage<T> extends WebStorage<T> {
3
- constructor(key: string);
4
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionStorage = void 0;
4
- //#region @backend
5
- const WebStorage_1 = require("./WebStorage");
6
- class SessionStorage extends WebStorage_1.WebStorage {
7
- constructor(key) {
8
- super(key, sessionStorage);
9
- }
10
- }
11
- exports.SessionStorage = SessionStorage;
12
- //#endregion
13
- //# sourceMappingURL=SessionStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,6CAAyC;AAEzC,MAAa,cAAkB,SAAQ,uBAAa;IAClD,YAAY,GAAW;QACrB,KAAK,CAAC,GAAG,EAAE,cAAc,CAAC,CAAA;IAC5B,CAAC;CACF;AAJD,wCAIC;AACD,YAAY"}
@@ -1,8 +0,0 @@
1
- import { SyncAdapter } from '../../core/Low';
2
- export declare class WebStorage<T> implements SyncAdapter<T> {
3
- __key: string;
4
- __storage: Storage;
5
- constructor(key: string, storage: Storage);
6
- read(): T | null;
7
- write(obj: T): void;
8
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebStorage = void 0;
4
- class WebStorage {
5
- __key;
6
- __storage;
7
- constructor(key, storage) {
8
- this.__key = key;
9
- this.__storage = storage;
10
- }
11
- read() {
12
- const value = this.__storage.getItem(this.__key);
13
- if (value === null) {
14
- return null;
15
- }
16
- return JSON.parse(value);
17
- }
18
- write(obj) {
19
- this.__storage.setItem(this.__key, JSON.stringify(obj));
20
- }
21
- }
22
- exports.WebStorage = WebStorage;
23
- //#endregion
24
- //# sourceMappingURL=WebStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IACrB,KAAK,CAAQ;IACb,SAAS,CAAS;IAElB,YAAY,GAAW,EAAE,OAAgB;QACvC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAA;QAChB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAA;IAC1B,CAAC;IAED,IAAI;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAEhD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAM,CAAA;IAC/B,CAAC;IAED,KAAK,CAAC,GAAM;QACV,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;IACzD,CAAC;CACF;AAtBD,gCAsBC;AACD,YAAY"}
@@ -1,4 +0,0 @@
1
- import { WebStorage } from './WebStorage';
2
- export declare class LocalStorage<T> extends WebStorage<T> {
3
- constructor(key: string);
4
- }
@@ -1,9 +0,0 @@
1
- //#region @backend
2
- import { WebStorage } from './WebStorage';
3
- export class LocalStorage extends WebStorage {
4
- constructor(key) {
5
- super(key, localStorage);
6
- }
7
- }
8
- //#endregion
9
- //# sourceMappingURL=LocalStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,kBAAkB;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,OAAO,YAAgB,SAAQ,UAAa;IAChD,YAAY,GAAW;QACrB,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC;CACF;AACD,YAAY"}
@@ -1,4 +0,0 @@
1
- import { WebStorage } from './WebStorage';
2
- export declare class SessionStorage<T> extends WebStorage<T> {
3
- constructor(key: string);
4
- }
@@ -1,9 +0,0 @@
1
- //#region @backend
2
- import { WebStorage } from './WebStorage';
3
- export class SessionStorage extends WebStorage {
4
- constructor(key) {
5
- super(key, sessionStorage);
6
- }
7
- }
8
- //#endregion
9
- //# sourceMappingURL=SessionStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,OAAO,cAAkB,SAAQ,UAAa;IAClD,YAAY,GAAW;QACrB,KAAK,CAAC,GAAG,EAAE,cAAc,CAAC,CAAA;IAC5B,CAAC;CACF;AACD,YAAY"}
@@ -1,8 +0,0 @@
1
- import { SyncAdapter } from '../../core/Low';
2
- export declare class WebStorage<T> implements SyncAdapter<T> {
3
- __key: string;
4
- __storage: Storage;
5
- constructor(key: string, storage: Storage);
6
- read(): T | null;
7
- write(obj: T): void;
8
- }
@@ -1,20 +0,0 @@
1
- export class WebStorage {
2
- __key;
3
- __storage;
4
- constructor(key, storage) {
5
- this.__key = key;
6
- this.__storage = storage;
7
- }
8
- read() {
9
- const value = this.__storage.getItem(this.__key);
10
- if (value === null) {
11
- return null;
12
- }
13
- return JSON.parse(value);
14
- }
15
- write(obj) {
16
- this.__storage.setItem(this.__key, JSON.stringify(obj));
17
- }
18
- }
19
- //#endregion
20
- //# sourceMappingURL=WebStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IACrB,KAAK,CAAQ;IACb,SAAS,CAAS;IAElB,YAAY,GAAW,EAAE,OAAgB;QACvC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAA;QAChB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAA;IAC1B,CAAC;IAED,IAAI;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAEhD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAM,CAAA;IAC/B,CAAC;IAED,KAAK,CAAC,GAAM;QACV,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;IACzD,CAAC;CACF;AACD,YAAY"}
@@ -1,4 +0,0 @@
1
- import { WebStorage } from './WebStorage';
2
- export declare class LocalStorage<T> extends WebStorage<T> {
3
- constructor(key: string);
4
- }
@@ -1,9 +0,0 @@
1
- //#region @backend
2
- import { WebStorage } from './WebStorage';
3
- export class LocalStorage extends WebStorage {
4
- constructor(key) {
5
- super(key, localStorage);
6
- }
7
- }
8
- //#endregion
9
- //# sourceMappingURL=LocalStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,kBAAkB;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,OAAO,YAAgB,SAAQ,UAAa;IAChD,YAAY,GAAW;QACrB,KAAK,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC;CACF;AACD,YAAY"}
@@ -1,4 +0,0 @@
1
- import { WebStorage } from './WebStorage';
2
- export declare class SessionStorage<T> extends WebStorage<T> {
3
- constructor(key: string);
4
- }
@@ -1,9 +0,0 @@
1
- //#region @backend
2
- import { WebStorage } from './WebStorage';
3
- export class SessionStorage extends WebStorage {
4
- constructor(key) {
5
- super(key, sessionStorage);
6
- }
7
- }
8
- //#endregion
9
- //# sourceMappingURL=SessionStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,OAAO,cAAkB,SAAQ,UAAa;IAClD,YAAY,GAAW;QACrB,KAAK,CAAC,GAAG,EAAE,cAAc,CAAC,CAAA;IAC5B,CAAC;CACF;AACD,YAAY"}
@@ -1,8 +0,0 @@
1
- import { SyncAdapter } from '../../core/Low';
2
- export declare class WebStorage<T> implements SyncAdapter<T> {
3
- __key: string;
4
- __storage: Storage;
5
- constructor(key: string, storage: Storage);
6
- read(): T | null;
7
- write(obj: T): void;
8
- }
@@ -1,20 +0,0 @@
1
- export class WebStorage {
2
- __key;
3
- __storage;
4
- constructor(key, storage) {
5
- this.__key = key;
6
- this.__storage = storage;
7
- }
8
- read() {
9
- const value = this.__storage.getItem(this.__key);
10
- if (value === null) {
11
- return null;
12
- }
13
- return JSON.parse(value);
14
- }
15
- write(obj) {
16
- this.__storage.setItem(this.__key, JSON.stringify(obj));
17
- }
18
- }
19
- //#endregion
20
- //# sourceMappingURL=WebStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebStorage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IACrB,KAAK,CAAQ;IACb,SAAS,CAAS;IAElB,YAAY,GAAW,EAAE,OAAgB;QACvC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAA;QAChB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAA;IAC1B,CAAC;IAED,IAAI;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAEhD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAM,CAAA;IAC/B,CAAC;IAED,KAAK,CAAC,GAAM;QACV,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;IACzD,CAAC;CACF;AACD,YAAY"}