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.7 to 1.8.8

25

nedb/index.d.ts

@@ -7,2 +7,3 @@ // Type definitions for NeDB 1.8

// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

@@ -16,3 +17,3 @@ /// <reference types="node" />

declare class Nedb extends EventEmitter {
declare class Nedb<G = any> extends EventEmitter {
constructor(pathOrOptions?: string | Nedb.DataStoreOptions);

@@ -54,3 +55,3 @@

*/
addToIndexes<T>(doc: T | T[]): void;
addToIndexes<T extends G>(doc: T | T[]): void;

@@ -60,3 +61,3 @@ /**

*/
removeFromIndexes<T>(doc: T | T[]): void;
removeFromIndexes<T extends G>(doc: T | T[]): void;

@@ -68,4 +69,4 @@ /**

*/
updateIndexes<T>(oldDoc: T, newDoc: T): void;
updateIndexes<T>(updates: Array<{ oldDoc: T; newDoc: T }>): void;
updateIndexes<T extends G>(oldDoc: T, newDoc: T): void;
updateIndexes<T extends G>(updates: Array<{ oldDoc: T; newDoc: T }>): void;

@@ -87,3 +88,3 @@ /**

*/
insert<T>(newDoc: T, cb?: (err: Error, document: T) => void): void;
insert<T extends G>(newDoc: T, cb?: (err: Error, document: T) => void): void;

@@ -103,4 +104,4 @@ /**

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

@@ -112,3 +113,3 @@ /**

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

@@ -120,3 +121,3 @@ /**

*/
findOne<T>(query: any, projection: T, callback: (err: Error, document: T) => void): void;
findOne<T extends G>(query: any, projection: T, callback: (err: Error, document: T) => void): void;

@@ -127,3 +128,3 @@ /**

*/
findOne<T>(query: any, callback: (err: Error, document: T) => void): void;
findOne<T extends G>(query: any, callback: (err: Error, document: T) => void): void;

@@ -157,3 +158,3 @@ /**

*/
update<T>(query: any, updateQuery: any, options?: Nedb.UpdateOptions, cb?: (err: Error, numberOfUpdated: number, affectedDocuments: any, upsert: boolean) => void): void;
update<T extends G>(query: any, updateQuery: any, options?: Nedb.UpdateOptions, cb?: (err: Error, numberOfUpdated: number, affectedDocuments: any, upsert: boolean) => void): void;

@@ -160,0 +161,0 @@ /**

{
"name": "@types/nedb",
"version": "1.8.7",
"version": "1.8.8",
"description": "TypeScript definitions for NeDB",

@@ -27,3 +27,4 @@ "license": "MIT",

"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/nedb"
},

@@ -34,4 +35,4 @@ "scripts": {},

},
"typesPublisherContentHash": "7571fb3365f1b5048f737734325c40d057dd1d5607bfc25ca67963d55674a7ac",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "2df6b3e460fe696409d5fd5a82c0db2c2884be3fd473e92c8c2b091bc79f8da8",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Mon, 31 Dec 2018 18:25:27 GMT
* Last updated: Mon, 08 Jul 2019 22:44:03 GMT
* Dependencies: @types/node

@@ -17,2 +17,2 @@ * Global values: Nedb

# Credits
These definitions were written by Stefan Steinhart <https://github.com/reppners>, Anthony Nichols <https://github.com/anthonynichols>, Alejandro Fernandez Haro <https://github.com/afharo>.
These definitions were written by Stefan Steinhart <https://github.com/reppners>, Anthony Nichols <https://github.com/anthonynichols>, and Alejandro Fernandez Haro <https://github.com/afharo>.
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