Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@astronautlabs/datastore

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astronautlabs/datastore - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+3
-0
dist/datastore.d.ts

@@ -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",

@@ -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>;