nedb-async
Advanced tools
Comparing version 0.1.1 to 0.1.2
14
index.ts
import { promisefy, justPromise } from './util' | ||
import Nedb = require('nedb') | ||
import Nestdb = require('nestdb') | ||
export class AsyncNedb<G> extends Nedb<G> { | ||
constructor(pathOrOptions?: string | Nedb.DataStoreOptions | undefined) { | ||
export class AsyncNedb<G> extends Nestdb<G> { | ||
constructor(pathOrOptions?: string | Nestdb.DataStoreOptions | undefined) { | ||
super(pathOrOptions) | ||
@@ -20,9 +20,9 @@ } | ||
} | ||
asyncUpdate(query: any, updateQuery: any, options?: Nedb.UpdateOptions) { | ||
asyncUpdate(query: any, updateQuery: any, options?: Nestdb.UpdateOptions) { | ||
return justPromise.call(this, 'update', arguments) | ||
} | ||
asyncRemove(query: any, options?: Nedb.RemoveOptions) { | ||
asyncRemove(query: any, options?: Nestdb.RemoveOptions) { | ||
return justPromise.call(this, 'remove', arguments) | ||
} | ||
asyncEnsureIndex(options: Nedb.EnsureIndexOptions) { | ||
asyncEnsureIndex(options: Nestdb.EnsureIndexOptions) { | ||
return justPromise.call(this, 'ensureIndex', arguments) | ||
@@ -41,2 +41,2 @@ } | ||
} | ||
export default AsyncNedb | ||
export default AsyncNedb |
{ | ||
"name": "nedb-async", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Promise wrapper for Nedb that makes it possible to use all Nedb all cursor modifiers.", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"dependencies": { | ||
"nedb": "git+https://github.com/HalleyAssist/nedb.git" | ||
"nestdb": "2.0.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -8,4 +8,5 @@ { | ||
"rootDir": ".", | ||
"strict": true, | ||
} | ||
} | ||
"strict": true | ||
}, | ||
"include": ["index.ts", "util.ts", "nestdb.d.ts"] | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
18553
8
356
0
1
+ Addednestdb@2.0.0
+ Addedasync@1.5.2(transitive)
+ Addedbinary-search-tree@0.2.6(transitive)
+ Addedimmediate@3.0.6(transitive)
+ Addedlie@3.1.1(transitive)
+ Addedlocalforage@1.10.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednestdb@2.0.0(transitive)
+ Addedunderscore@1.4.4(transitive)