diff --git a/lib/index.js b/lib/index.js index b53a232..1869155 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,7 @@ module.exports = resolvePkg; module.exports.sync = sync; -var fs = require('then-fs'); +var fs = require('promisify-fs'); var path = require('path'); var debug = require('debug')('snyk:resolve'); diff --git a/package.json b/package.json index 7de1fb0..e2c8da4 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "dependencies": { "debug": "^4.1.1", - "then-fs": "^2.0.0" + "promisify-fs": "^1.0.39" }, "devDependencies": { "es6-promise": "^4.2.8", diff --git a/test/index.test.js b/test/index.test.js index ecad505..d206f62 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -31,7 +31,7 @@ var fs = { }; var resolve = proxyquire('../lib/index', { - 'then-fs': fs, + 'promisify-fs': fs, }); test('resolve immediately', function (t) { @@ -140,4 +140,4 @@ test('resolve works with scoped packages', function (t) { }); t.equal(resolve.sync('@remy/foo', base), path.dirname(target), 'sync scoped matches'); -}); \ No newline at end of file +});