Socket
Socket
Sign inDemoInstall

@ngx-pwa/local-storage

Package Overview
Dependencies
5
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 16.1.2 to 16.2.0

2

lib/databases/memory-database.d.ts

@@ -8,3 +8,3 @@ import { Observable } from "rxjs";

*/
protected memoryStorage: Map<string, unknown>;
protected readonly memoryStorage: Map<string, unknown>;
/**

@@ -11,0 +11,0 @@ * Number of items in memory

@@ -10,3 +10,3 @@ import { Observable } from "rxjs";

export declare class LocalStorage {
protected storageMap: StorageMap;
protected readonly storageMap: StorageMap;
/**

@@ -13,0 +13,0 @@ * Number of items in storage wrapped in an `Observable`

@@ -8,4 +8,4 @@ import { Observable, OperatorFunction, ReplaySubject } from "rxjs";

protected database: LocalDatabase;
protected jsonValidator: JSONValidator;
protected notifiers: Map<string, ReplaySubject<unknown>>;
protected readonly jsonValidator: JSONValidator;
protected readonly notifiers: Map<string, ReplaySubject<unknown>>;
/**

@@ -12,0 +12,0 @@ * Constructor params are provided by Angular (but can also be passed manually in tests)

@@ -131,5 +131,5 @@ /**

/**
* Schema for the values of an array, or array of schemas for a tuple.
* Schema for the values of the array.
*/
items: JSONSchema | readonly JSONSchema[];
items: JSONSchema;
/**

@@ -182,2 +182,29 @@ * Check if an array length is lower or equal to this value.

/**
* JSON schema to describe a tuple.
*/
export interface JSONSchemaTuple {
/**
* Type for an array of values.
*/
type: "array";
/**
* Schema for the values of the tuple.
*/
items?: readonly JSONSchema[];
/**
* Check if an array length is lower or equal to this value.
* Must be a non negative integer.
*/
maxItems?: number;
/**
* Check if an array length is greater or equal to this value.
* Must be a non negative integer.
*/
minItems?: number;
/**
* Check if an array only have unique values.
*/
uniqueItems?: boolean;
}
/**
* JSON schema to describe an object.

@@ -235,2 +262,2 @@ */

*/
export type JSONSchema = JSONSchemaString | JSONSchemaNumber | JSONSchemaInteger | JSONSchemaBoolean | JSONSchemaArray | JSONSchemaObject;
export type JSONSchema = JSONSchemaString | JSONSchemaNumber | JSONSchemaInteger | JSONSchemaBoolean | JSONSchemaArray | JSONSchemaTuple | JSONSchemaObject;

@@ -1,2 +0,2 @@

import { JSONSchema, JSONSchemaArray, JSONSchemaBoolean, JSONSchemaInteger, JSONSchemaNumber, JSONSchemaObject, JSONSchemaString } from "./json-schema";
import { JSONSchema, JSONSchemaArray, JSONSchemaBoolean, JSONSchemaInteger, JSONSchemaNumber, JSONSchemaObject, JSONSchemaString, JSONSchemaTuple } from "./json-schema";
import * as i0 from "@angular/core";

@@ -40,3 +40,3 @@ export declare class JSONValidator {

*/
protected validateArray(data: unknown, schema: JSONSchemaArray): boolean;
protected validateArray(data: unknown, schema: JSONSchemaArray | JSONSchemaTuple): boolean;
/**

@@ -48,3 +48,3 @@ * Validate a tuple (array with fixed length and multiple types)

*/
protected validateTuple(data: unknown[], schemas: JSONSchema[]): boolean;
protected validateTuple(data: unknown[], schemas: JSONSchema[] | undefined): boolean;
/**

@@ -51,0 +51,0 @@ * Validate an object

{
"name": "@ngx-pwa/local-storage",
"version": "16.1.2",
"version": "16.2.0",
"funding": {

@@ -5,0 +5,0 @@ "type": "github",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc