@helenejs/data
Advanced tools
Comparing version 1.3.0-alpha.10 to 1.3.0-alpha.11
@@ -16,2 +16,3 @@ import { Index } from './indexes'; | ||
export type UpdateTransformerHookFunction = <T = any>(newDoc: T, oldDoc: T) => Promise<T>; | ||
export type Document = Record<string, any>; | ||
export type CollectionOptions = { | ||
@@ -110,3 +111,3 @@ name?: string; | ||
getCandidates(query: any, dontExpireStaleDocs?: boolean): Promise<any>; | ||
insert(newDoc: any): Promise<any>; | ||
insert(newDoc: Document | Document[]): Promise<any>; | ||
/** | ||
@@ -113,0 +114,0 @@ * Create a new _id that's not already in use |
export interface IStorage { | ||
read(name: any): Promise<string>; | ||
write(name: any, data: any): Promise<void>; | ||
append(name: any, data: any): Promise<void>; | ||
read(name: string): Promise<string>; | ||
write(name: string, data: string): Promise<void>; | ||
append(name: string, data: string): Promise<void>; | ||
} |
{ | ||
"name": "@helenejs/data", | ||
"version": "1.3.0-alpha.10", | ||
"version": "1.3.0-alpha.11", | ||
"description": "Real-time Web Apps for Node.js and Bun", | ||
@@ -52,3 +52,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "0eef1edcf8e181b18e9742d15a5eff6d82920ac4" | ||
"gitHead": "65a50e77bd4f4c4bfe75f63d65b3bbff79c930e5" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235293
3946