@astronautlabs/datastore
Advanced tools
@@ -0,1 +1,2 @@ | ||
| import { Observable } from 'rxjs'; | ||
| export interface Storable { | ||
@@ -22,2 +23,4 @@ id?: string; | ||
| listAll<T extends Storable>(collectionPath: string, limit?: number, startAfter?: string): Promise<T[]>; | ||
| watchAll<T extends Storable>(collectionPath: string): Observable<T[]>; | ||
| watch<T extends Storable>(collectionPath: string): Observable<T>; | ||
| update<T extends Storable>(docPath: string, data: Partial<T>): Promise<void>; | ||
@@ -24,0 +27,0 @@ delete(docPath: string): Promise<void>; |
+1
-1
| { | ||
| "name": "@astronautlabs/datastore", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Isomorphic, abstracted, Firestore-compatible NoSQL data storage library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+4
-0
@@ -0,1 +1,3 @@ | ||
| import { Observable } from 'rxjs'; | ||
| export interface Storable { | ||
@@ -25,2 +27,4 @@ id? : string; | ||
| listAll<T extends Storable>(collectionPath : string, limit? : number, startAfter? : string): Promise<T[]>; | ||
| watchAll<T extends Storable>(collectionPath : string) : Observable<T[]>; | ||
| watch<T extends Storable>(collectionPath : string) : Observable<T>; | ||
| update<T extends Storable>(docPath : string, data : Partial<T>): Promise<void>; | ||
@@ -27,0 +31,0 @@ delete(docPath : string): Promise<void>; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7004
5.61%102
6.25%0
-100%