Socket
Socket
Sign inDemoInstall

nedb-async

Package Overview
Dependencies
9
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

nestdb.d.ts

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"]
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc