@ngx-pwa/local-storage 16.1.2 → 16.3.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.
@@ -1,5 +1,6 @@
1
- import { JSONSchema, JSONSchemaArray, JSONSchemaBoolean, JSONSchemaInteger, JSONSchemaNumber, JSONSchemaObject, JSONSchemaString } from "./json-schema";
1
+ import { JSONSchema, JSONSchemaArray, JSONSchemaBoolean, JSONSchemaInteger, JSONSchemaNumber, JSONSchemaObject, JSONSchemaString, JSONSchemaTuple } from "./json-schema";
2
2
  import * as i0 from "@angular/core";
3
+ /** @deprecated Will be removed in v17 */
3
4
  export declare class JSONValidator {
4
5
  /**
5
6
  * Validate a JSON data against a Jsubset of the JSON Schema standard.
@@ -37,14 +38,14 @@ export declare class JSONValidator {
37
38
  * @param schema Schema describing the array
38
39
  * @returns If data is valid: `true`, if it is invalid: `false`
39
40
  */
40
- protected validateArray(data: unknown, schema: JSONSchemaArray): boolean;
41
+ protected validateArray(data: unknown, schema: JSONSchemaArray | JSONSchemaTuple): boolean;
41
42
  /**
42
43
  * Validate a tuple (array with fixed length and multiple types)
43
44
  * @param data Data to validate
44
45
  * @param schemas Schemas describing the tuple
45
46
  * @returns If data is valid: `true`, if it is invalid: `false`
46
47
  */
47
- protected validateTuple(data: unknown[], schemas: JSONSchema[]): boolean;
48
+ protected validateTuple(data: unknown[], schemas: JSONSchema[] | undefined): boolean;
48
49
  /**
49
50
  * Validate an object
50
51
  * @param data Data to validate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-pwa/local-storage",
3
- "version": "16.1.2",
3
+ "version": "16.3.0",
4
4
  "funding": {
5
5
  "type": "github",
6
6
  "url": "https://github.com/sponsors/cyrilletuzi"