Skip to content

Commit

Permalink
upgrade mocha & binary-search-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Hermann committed May 28, 2021
1 parent 7bf54fb commit 0152568
Show file tree
Hide file tree
Showing 5 changed files with 683 additions and 123 deletions.
2 changes: 1 addition & 1 deletion lib/indexes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var BinarySearchTree = require('binary-search-tree').AVLTree
var BinarySearchTree = require('@rmanibus/binary-search-tree').AVLTree
, model = require('./model')
, _ = require('underscore')
, util = require('util')
Expand Down
5 changes: 3 additions & 2 deletions lib/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ function Persistence (options) {
Persistence.ensureDirectoryExists = function (dir, cb) {
var callback = cb || function () {}
;

storage.mkdirp(dir, function (err) { return callback(err); });
storage.mkdirp(dir)
.then(() => callback())
.catch((e) => callback(e));
};


Expand Down
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@
"url": "[email protected]:louischatriot/nedb.git"
},
"dependencies": {
"async": "0.2.10",
"binary-search-tree": "0.2.5",
"localforage": "^1.3.0",
"mkdirp": "~0.5.1",
"underscore": "~1.4.4"
"@rmanibus/binary-search-tree": "^0.3.0",
"async": "^1.5.2",
"localforage": "^1.9.0",
"mkdirp": "^1.0.4",
"underscore": "^1.13.1"
},
"devDependencies": {
"chai": "^3.2.0",
"mocha": "1.4.x",
"request": "2.9.x",
"sinon": "1.3.x",
"chai": "^4.3.4",
"commander": "7.2.0",
"exec-time": "0.0.2",
"commander": "1.1.1"
"mocha": "^8.4.0",
"sinon": "^11.1.1"
},
"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec --timeout 10000"
Expand Down
2 changes: 1 addition & 1 deletion test_lac/loadAndCrash.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fs.writeFile = function(path, data, options, callback_) {
});

function writeFd(fd, isUserFd) {
var buffer = (data instanceof Buffer) ? data : new Buffer('' + data,
var buffer = (data instanceof Buffer) ? data : new Buffer.from('' + data,
options.encoding || 'utf8');
var position = /a/.test(flag) ? null : 0;

Expand Down
Loading

0 comments on commit 0152568

Please sign in to comment.