nedb-promises
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -7,2 +7,6 @@ # Changelog | ||
## 6.0.2 | ||
### Fixed | ||
- TypeScript declaration `update` result when `upsert` and `multi` is set to `true`. | ||
## 6.0.1 | ||
@@ -9,0 +13,0 @@ ### Updated |
@@ -460,2 +460,15 @@ import { EventEmitter } from 'events'; | ||
/** | ||
* Update documents that match a query. | ||
* Insert a new document corresponding to the `update` rules | ||
* if no matching document was found. | ||
* | ||
* It's basically the same as the original: | ||
* https://github.com/louischatriot/nedb#updating-documents | ||
*/ | ||
update<TSchema>( | ||
query: Query, | ||
update: Update, | ||
options: UpdateOptions & { returnUpdatedDocs: true; upsert: true; multi: true }, | ||
): Promise<(TDocument & TSchema)[] | (TDocument & TSchema)>; | ||
/** | ||
* Update a document that matches a query. | ||
@@ -462,0 +475,0 @@ * |
{ | ||
"name": "nedb-promises", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "A dead-simple promise wrapper for nedb.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
65786
1252