@ngx-pwa/local-storage 18.0.0 → 20.0.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.
Files changed (40) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/ngx-pwa-local-storage.mjs +89 -63
  3. package/fesm2022/ngx-pwa-local-storage.mjs.map +1 -1
  4. package/index.d.ts +656 -3
  5. package/package.json +3 -5
  6. package/schematics/ng-add/index.js +9 -9
  7. package/schematics/ng-add/index.js.map +1 -1
  8. package/schematics/ng-update/index.js +14 -24
  9. package/schematics/ng-update/index.js.map +1 -1
  10. package/schematics/utility/config.js +24 -34
  11. package/schematics/utility/config.js.map +1 -1
  12. package/schematics/utility/module.js +3 -3
  13. package/schematics/utility/module.js.map +1 -1
  14. package/esm2022/lib/databases/exceptions.mjs +0 -28
  15. package/esm2022/lib/databases/indexeddb-database.mjs +0 -308
  16. package/esm2022/lib/databases/local-database.mjs +0 -66
  17. package/esm2022/lib/databases/localstorage-database.mjs +0 -158
  18. package/esm2022/lib/databases/memory-database.mjs +0 -84
  19. package/esm2022/lib/providers.mjs +0 -66
  20. package/esm2022/lib/storage.module.mjs +0 -34
  21. package/esm2022/lib/storages/exceptions.mjs +0 -15
  22. package/esm2022/lib/storages/storage-map.service.mjs +0 -340
  23. package/esm2022/lib/tokens.mjs +0 -59
  24. package/esm2022/lib/validation/json-schema.mjs +0 -5
  25. package/esm2022/lib/validation/json-validator.mjs +0 -244
  26. package/esm2022/ngx-pwa-local-storage.mjs +0 -5
  27. package/esm2022/public-api.mjs +0 -9
  28. package/lib/databases/exceptions.d.ts +0 -20
  29. package/lib/databases/indexeddb-database.d.ts +0 -107
  30. package/lib/databases/local-database.d.ts +0 -18
  31. package/lib/databases/localstorage-database.d.ts +0 -64
  32. package/lib/databases/memory-database.d.ts +0 -50
  33. package/lib/providers.d.ts +0 -56
  34. package/lib/storage.module.d.ts +0 -19
  35. package/lib/storages/exceptions.d.ts +0 -10
  36. package/lib/storages/storage-map.service.d.ts +0 -254
  37. package/lib/tokens.d.ts +0 -75
  38. package/lib/validation/json-schema.d.ts +0 -260
  39. package/lib/validation/json-validator.d.ts +0 -71
  40. package/public-api.d.ts +0 -7
@@ -1,71 +0,0 @@
1
- import type { JSONSchema } from "./json-schema";
2
- import * as i0 from "@angular/core";
3
- export declare class JSONValidator {
4
- /**
5
- * Validate a JSON data against a Jsubset of the JSON Schema standard.
6
- * Types are enforced to validate everything: each schema must
7
- * @param data JSON data to validate
8
- * @param schema Subset of JSON Schema. Must have a `type`.
9
- * @returns If data is valid: `true`, if it is invalid: `false`
10
- * @see {@link https://github.com/cyrilletuzi/angular-async-local-storage/blob/main/docs/VALIDATION.md}
11
- */
12
- validate(data: unknown, schema: JSONSchema): boolean;
13
- /**
14
- * Validate a string
15
- * @param data Data to validate
16
- * @param schema Schema describing the string
17
- * @returns If data is valid: `true`, if it is invalid: `false`
18
- */
19
- private validateString;
20
- /**
21
- * Validate a number or an integer
22
- * @param data Data to validate
23
- * @param schema Schema describing the number or integer
24
- * @returns If data is valid: `true`, if it is invalid: `false`
25
- */
26
- private validateNumber;
27
- /**
28
- * Validate a boolean
29
- * @param data Data to validate
30
- * @param schema Schema describing the boolean
31
- * @returns If data is valid: `true`, if it is invalid: `false`
32
- */
33
- private validateBoolean;
34
- /**
35
- * Validate an array
36
- * @param data Data to validate
37
- * @param schema Schema describing the array
38
- * @returns If data is valid: `true`, if it is invalid: `false`
39
- */
40
- private validateArray;
41
- /**
42
- * Validate a tuple (array with fixed length and multiple types)
43
- * @param data Data to validate
44
- * @param schemas Schemas describing the tuple
45
- * @returns If data is valid: `true`, if it is invalid: `false`
46
- */
47
- private validateTuple;
48
- /**
49
- * Validate an object
50
- * @param data Data to validate
51
- * @param schema JSON schema describing the object
52
- * @returns If data is valid: `true`, if it is invalid: `false`
53
- */
54
- private validateObject;
55
- /**
56
- * Validate a constant
57
- * @param data Data ta validate
58
- * @param schema JSON schema describing the constant
59
- * @returns If data is valid: `true`, if it is invalid: `false`
60
- */
61
- private validateConst;
62
- /**
63
- * Validate an enum
64
- * @param data Data ta validate
65
- * @param schema JSON schema describing the enum
66
- * @returns If data is valid: `true`, if it is invalid: `false`
67
- */
68
- private validateEnum;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<JSONValidator, never>;
70
- static ɵprov: i0.ɵɵInjectableDeclaration<JSONValidator>;
71
- }
package/public-api.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export { SERIALIZATION_ERROR, SerializationError } from "./lib/databases/exceptions";
2
- export { provideIndexedDBDataBaseName, provideIndexedDBDataBaseVersion, provideIndexedDBStoreName, provideLocalStoragePrefix } from "./lib/providers";
3
- export { StorageModule } from "./lib/storage.module";
4
- export { VALIDATION_ERROR, ValidationError } from "./lib/storages/exceptions";
5
- export { StorageMap } from "./lib/storages/storage-map.service";
6
- export type { StorageConfig } from "./lib/tokens";
7
- export type { JSONSchema } from "./lib/validation/json-schema";