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.4 to 1.8.5

39

nedb/index.d.ts

@@ -34,6 +34,3 @@ // Type definitions for NeDB 1.8

* We use an async API for consistency with the rest of the code
* @param {String} options.fieldName
* @param {Boolean} options.unique
* @param {Boolean} options.sparse
* @param {Function} cb Optional callback, signature: err
* @param cb Optional callback, signature: err
*/

@@ -44,4 +41,3 @@ ensureIndex(options: Nedb.EnsureIndexOptions, cb?: (err: Error) => void): void;

* Remove an index
* @param {String} fieldName
* @param {Function} cb Optional callback, signature: err
* @param cb Optional callback, signature: err
*/

@@ -81,3 +77,3 @@ removeIndex(fieldName: string, cb?: (err: Error) => void): void;

* Insert a new document
* @param {Function} cb Optional callback, signature: err, insertedDoc
* @param cb Optional callback, signature: err, insertedDoc
*/

@@ -88,3 +84,3 @@ insert<T>(newDoc: T, cb?: (err: Error, document: T) => void): void;

* Count all documents matching the query
* @param {any} query MongoDB-style query
* @param query MongoDB-style query
*/

@@ -97,4 +93,4 @@ count(query: any, callback: (err: Error, n: number) => void): void;

* If no callback is passed, we return the cursor so that user can limit, skip and finally exec
* @param {any} query MongoDB-style query
* @param {any} projection MongoDB-style projection
* @param query MongoDB-style query
* @param projection MongoDB-style projection
*/

@@ -113,4 +109,4 @@ find<T>(query: any, projection: T, callback: (err: Error, documents: T[]) => void): void;

* Find one document matching the query
* @param {any} query MongoDB-style query
* @param {any} projection MongoDB-style projection
* @param query MongoDB-style query
* @param projection MongoDB-style projection
*/

@@ -121,3 +117,3 @@ findOne<T>(query: any, projection: T, callback: (err: Error, document: T) => void): void;

* Find one document matching the query
* @param {any} query MongoDB-style query
* @param query MongoDB-style query
*/

@@ -129,8 +125,6 @@ findOne<T>(query: any, callback: (err: Error, document: T) => void): void;

* For now, very naive implementation (recalculating the whole database)
* @param {any} query
* @param {any} updateQuery
* @param {Object} options Optional options
* @param options Optional options
* options.multi If true, can update multiple documents (defaults to false)
* options.upsert If true, document is inserted if the query doesn't match anything
* @param {Function} cb Optional callback, signature: err,
* @param cb Optional callback, signature: err,
* numReplaced,

@@ -146,8 +140,6 @@ * upsert (set to true if the update was in fact an upsert)

* For now, very naive implementation (recalculating the whole database)
* @param {any} query
* @param {any} updateQuery
* @param {Object} options Optional options
* @param options Optional options
* options.multi If true, can update multiple documents (defaults to false)
* options.upsert If true, document is inserted if the query doesn't match anything
* @param {Function} cb Optional callback, signature: err,
* @param cb Optional callback, signature: err,
* numAffected,

@@ -164,6 +156,5 @@ * affectedDocuments (when returnUpdatedDocs is set to true), obj or array

* For now very naive implementation (similar to update)
* @param {Object} query
* @param {Object} options Optional options
* @param options Optional options
* options.multi If true, can update multiple documents (defaults to false)
* @param {Function} cb Optional callback, signature: err, numRemoved
* @param cb Optional callback, signature: err, numRemoved
*

@@ -170,0 +161,0 @@ * @api private Use Datastore.remove which has the same signature

{
"name": "@types/nedb",
"version": "1.8.4",
"version": "1.8.5",
"description": "TypeScript definitions for NeDB",

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

"dependencies": {},
"typesPublisherContentHash": "47f706d920e70170d652d54692cadb492d0f166b65e8e942ef701637db6d50b9",
"typesPublisherContentHash": "6d360e769c41dae3b9f1144d40c6311028b6fbd707b33edff8780ce59f93b635",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Fri, 06 Oct 2017 23:19:37 GMT
* Last updated: Wed, 25 Oct 2017 01:11:51 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