Socket
Socket
Sign inDemoInstall

nedb-async

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.9 to 0.1.0

12

index.ts

@@ -1,5 +0,5 @@

import * as Nedb from "nedb";
import { promisefy, justPromise } from "./util";
import { promisefy, justPromise } from './util'
import Nedb = require('nedb')
export default class AsyncNedb extends Nedb {
export default class AsyncNedb<G> extends Nedb<G> {
constructor(pathOrOptions?: string | Nedb.DataStoreOptions | undefined) {

@@ -26,3 +26,3 @@ super(pathOrOptions)

}
asyncEnsureIndex(options: Nedb.EnsureIndexOptions, ) {
asyncEnsureIndex(options: Nedb.EnsureIndexOptions) {
return justPromise.call(this, 'ensureIndex', arguments)

@@ -35,7 +35,7 @@ }

return new Promise((resolve, reject) => {
this.loadDatabase((err) => {
this.loadDatabase(err => {
err ? reject(err) : resolve(true)
})
});
})
}
}
{
"name": "nedb-async",
"version": "0.0.9",
"version": "0.1.0",
"description": "Promise wrapper for Nedb that makes it possible to use all Nedb all cursor modifiers.",

@@ -27,5 +27,7 @@ "repository": {

"dependencies": {
"@types/nedb": "^1.8.7",
"nedb": "^1.8.0"
"nedb": "git+https://github.com/HalleyAssist/nedb.git"
},
"devDependencies": {
"@types/nedb": "^1.8.8"
}
}
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