Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/nedb

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/nedb - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

23

nedb/index.d.ts

@@ -22,5 +22,4 @@ // Type definitions for NeDB 1.8

*/
getAllData(): Array<any>;
getAllData(): any[];
/**

@@ -97,3 +96,3 @@ * Reset all currently defined indexes

*/
find<T>(query: any, projection: T, callback: (err: Error, documents: Array<T>) => void): void;
find<T>(query: any, projection: T, callback: (err: Error, documents: T[]) => void): void;
find<T>(query: any, projection?: T): Nedb.Cursor<T>;

@@ -106,3 +105,3 @@

*/
find<T>(query: any, callback: (err: Error, documents: Array<T>) => void): void;
find<T>(query: any, callback: (err: Error, documents: T[]) => void): void;

@@ -175,3 +174,3 @@ /**

projection(query: any): Cursor<T>;
exec(callback: (err: Error, documents: Array<T>) => void): void;
exec(callback: (err: Error, documents: T[]) => void): void;
}

@@ -184,8 +183,8 @@

interface DataStoreOptions {
filename?: string // Optional, datastore will be in-memory only if not provided
inMemoryOnly?: boolean // Optional, default to false
nodeWebkitAppName?: boolean // Optional, specify the name of your NW app if you want options.filename to be relative to the directory where
autoload?: boolean // Optional, defaults to false
filename?: string; // Optional, datastore will be in-memory only if not provided
inMemoryOnly?: boolean; // Optional, default to false
nodeWebkitAppName?: boolean; // Optional, specify the name of your NW app if you want options.filename to be relative to the directory where
autoload?: boolean; // Optional, defaults to false
// Optional, if autoload is used this will be called after the load database with the error object as parameter. If you don't pass it the error will be thrown
onload?: (error: Error) => any
onload?: (error: Error) => any;
// (optional): hook you can use to transform data after it was serialized and before it is written to disk.

@@ -215,3 +214,3 @@ // Can be used for example to encrypt data before writing database to disk.

upsert?: boolean;
returnUpdatedDocs?: boolean
returnUpdatedDocs?: boolean;
}

@@ -223,3 +222,3 @@

interface RemoveOptions {
multi?: boolean
multi?: boolean;
}

@@ -226,0 +225,0 @@

{
"name": "@types/nedb",
"version": "1.8.0",
"version": "1.8.1",
"description": "TypeScript definitions for NeDB",

@@ -20,4 +20,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "35e46d27c3d83077e370a0c7ce7202f98b7ffdbf369f3210d066bf2c370e466d",
"typesPublisherContentHash": "86e4156a6566c239fb299458430ac180be6416a2a618fb91bcc4f130a72b0410",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 14 Mar 2017 22:08:10 GMT
* Last updated: Fri, 24 Mar 2017 16:00:11 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: Nedb

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc