Comparing version 0.1.4 to 0.2.0
'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _spec_helper = require('./spec_helper'); | ||
@@ -13,15 +11,17 @@ | ||
var _srcFileAsync = require('../src/file-async'); | ||
var _fileAsync = require('../src/file-async'); | ||
var _srcFileAsync2 = _interopRequireDefault(_srcFileAsync); | ||
var _fileAsync2 = _interopRequireDefault(_fileAsync); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
describe('fsAsync:', function () { | ||
it("should keep support sync methods", function () { | ||
_spec_helper2['default'].expect(_srcFileAsync2['default'].existsSync(__filename)).to.ok; | ||
_spec_helper2.default.expect(_fileAsync2.default.existsSync(__filename)).to.ok; | ||
}); | ||
it("should keep support callback methods", function (done) { | ||
_srcFileAsync2['default'].readFileCallback(__filename, function (err, file_content) { | ||
_spec_helper2['default'].expect(file_content.toString()).not.been.undefined; | ||
_fileAsync2.default.readFileCallback(__filename, function (err, file_content) { | ||
_spec_helper2.default.expect(file_content.toString()).not.been.undefined; | ||
done(); | ||
@@ -32,4 +32,4 @@ }); | ||
it('should read a file', function () { | ||
return _srcFileAsync2['default'].readFile(__filename).then(function (file_content) { | ||
return _spec_helper2['default'].expect(file_content.toString()).not.been.undefined; | ||
return _fileAsync2.default.readFile(__filename).then(function (file_content) { | ||
return _spec_helper2.default.expect(file_content.toString()).not.been.undefined; | ||
}); | ||
@@ -39,4 +39,4 @@ }); | ||
it('should get fsStat from file', function () { | ||
return _srcFileAsync2['default'].stat(__filename).then(function (fsStat) { | ||
return _spec_helper2['default'].expect(fsStat.isFile()).to.eql(true); | ||
return _fileAsync2.default.stat(__filename).then(function (fsStat) { | ||
return _spec_helper2.default.expect(fsStat.isFile()).to.eql(true); | ||
}); | ||
@@ -49,20 +49,20 @@ }); | ||
// readFile this file content | ||
return _srcFileAsync2['default'].readFile(__filename).then(function (file_content) { | ||
return _fileAsync2.default.readFile(__filename).then(function (file_content) { | ||
// write file | ||
return _srcFileAsync2['default'].writeFile(TMP_FILE_PATH, file_content.toString()); | ||
return _fileAsync2.default.writeFile(TMP_FILE_PATH, file_content.toString()); | ||
}).then(function () { | ||
// get stat | ||
return _srcFileAsync2['default'].stat(TMP_FILE_PATH); | ||
return _fileAsync2.default.stat(TMP_FILE_PATH); | ||
}).then(function (file_stat) { | ||
// check if tmp file exists | ||
return _spec_helper2['default'].expect(file_stat.isFile()).to.be.equal(true); | ||
return _spec_helper2.default.expect(file_stat.isFile()).to.be.equal(true); | ||
}).then(function () { | ||
// remove tmp file | ||
return _srcFileAsync2['default'].remove(TMP_FILE_PATH); | ||
return _fileAsync2.default.remove(TMP_FILE_PATH); | ||
}).then(function () { | ||
// exits? | ||
return _srcFileAsync2['default'].exists(TMP_FILE_PATH); | ||
return _fileAsync2.default.exists(TMP_FILE_PATH); | ||
}).then(function (file_exists) { | ||
// check again | ||
return _spec_helper2['default'].expect(file_exists).to.be.equal(false); | ||
return _spec_helper2.default.expect(file_exists).to.be.equal(false); | ||
}); | ||
@@ -75,17 +75,17 @@ }); | ||
// touch | ||
return _srcFileAsync2['default'].createFile(TMP_FILE_PATH).then(function () { | ||
return _fileAsync2.default.createFile(TMP_FILE_PATH).then(function () { | ||
// get stat | ||
return _srcFileAsync2['default'].stat(TMP_FILE_PATH); | ||
return _fileAsync2.default.stat(TMP_FILE_PATH); | ||
}).then(function (file_stat) { | ||
// check | ||
return _spec_helper2['default'].expect(file_stat.isFile()).to.be.equal(true); | ||
return _spec_helper2.default.expect(file_stat.isFile()).to.be.equal(true); | ||
}).then(function () { | ||
// remove tmp file | ||
return _srcFileAsync2['default'].remove(TMP_FILE_PATH); | ||
return _fileAsync2.default.remove(TMP_FILE_PATH); | ||
}).then(function () { | ||
// exits? | ||
return _srcFileAsync2['default'].exists(TMP_FILE_PATH); | ||
return _fileAsync2.default.exists(TMP_FILE_PATH); | ||
}).then(function (file_exists) { | ||
// check again | ||
return _spec_helper2['default'].expect(file_exists).to.be.equal(false); | ||
return _spec_helper2.default.expect(file_exists).to.be.equal(false); | ||
}); | ||
@@ -98,35 +98,35 @@ }); | ||
// read: get this content | ||
return _srcFileAsync2['default'].readFile(__filename).then(function (content) { | ||
return _fileAsync2.default.readFile(__filename).then(function (content) { | ||
file_content = content.toString(); | ||
}).then(function () { | ||
// mkdirs: create folders | ||
return _srcFileAsync2['default'].mkdirs('/tmp/folder1/folder2/'); | ||
return _fileAsync2.default.mkdirs('/tmp/folder1/folder2/'); | ||
}).then(function () { | ||
// stat: check if folders were created | ||
return _bluebird2['default'].all([_srcFileAsync2['default'].stat('/tmp/folder1').then(function (stat_result) { | ||
return _spec_helper2['default'].expect(stat_result.isDirectory()).to.be.equal(true); | ||
}), _srcFileAsync2['default'].stat('/tmp/folder1/folder2').then(function (stat_result) { | ||
return _spec_helper2['default'].expect(stat_result.isDirectory()).to.be.equal(true); | ||
return _bluebird2.default.all([_fileAsync2.default.stat('/tmp/folder1').then(function (stat_result) { | ||
return _spec_helper2.default.expect(stat_result.isDirectory()).to.be.equal(true); | ||
}), _fileAsync2.default.stat('/tmp/folder1/folder2').then(function (stat_result) { | ||
return _spec_helper2.default.expect(stat_result.isDirectory()).to.be.equal(true); | ||
})]); | ||
}).then(function () { | ||
// write: write files | ||
return _bluebird2['default'].all([_srcFileAsync2['default'].writeFile('/tmp/folder1/some-file-1.js', file_content), _srcFileAsync2['default'].writeFile('/tmp/folder1/folder2/some-file-2.js', file_content)]); | ||
return _bluebird2.default.all([_fileAsync2.default.writeFile('/tmp/folder1/some-file-1.js', file_content), _fileAsync2.default.writeFile('/tmp/folder1/folder2/some-file-2.js', file_content)]); | ||
}).then(function () { | ||
// copy: copy file tree | ||
return _srcFileAsync2['default'].copy('/tmp/folder1/', '/tmp/folder1-copy/'); | ||
return _fileAsync2.default.copy('/tmp/folder1/', '/tmp/folder1-copy/'); | ||
}).then(function () { | ||
// stat: check files stats | ||
return _bluebird2['default'].all([_srcFileAsync2['default'].stat('/tmp/folder1-copy/some-file-1.js').then(function (stat_result) { | ||
return _spec_helper2['default'].expect(stat_result.isFile()).to.be.equal(true); | ||
}), _srcFileAsync2['default'].stat('/tmp/folder1-copy/folder2/some-file-2.js').then(function (stat_result) { | ||
return _spec_helper2['default'].expect(stat_result.isFile()).to.be.equal(true); | ||
return _bluebird2.default.all([_fileAsync2.default.stat('/tmp/folder1-copy/some-file-1.js').then(function (stat_result) { | ||
return _spec_helper2.default.expect(stat_result.isFile()).to.be.equal(true); | ||
}), _fileAsync2.default.stat('/tmp/folder1-copy/folder2/some-file-2.js').then(function (stat_result) { | ||
return _spec_helper2.default.expect(stat_result.isFile()).to.be.equal(true); | ||
})]); | ||
}).then(function () { | ||
return _bluebird2['default'].all([_srcFileAsync2['default'].remove('/tmp/folder1'), _srcFileAsync2['default'].remove('/tmp/folder1-copy')]); | ||
return _bluebird2.default.all([_fileAsync2.default.remove('/tmp/folder1'), _fileAsync2.default.remove('/tmp/folder1-copy')]); | ||
}).then(function () { | ||
// stat: check files stats | ||
return _bluebird2['default'].all([_srcFileAsync2['default'].exists('/tmp/folder1').then(function (exists_result) { | ||
return _spec_helper2['default'].expect(exists_result).to.be.equal(false); | ||
}), _srcFileAsync2['default'].exists('/tmp/folder1-copy').then(function (exists_result) { | ||
return _spec_helper2['default'].expect(exists_result).to.be.equal(false); | ||
return _bluebird2.default.all([_fileAsync2.default.exists('/tmp/folder1').then(function (exists_result) { | ||
return _spec_helper2.default.expect(exists_result).to.be.equal(false); | ||
}), _fileAsync2.default.exists('/tmp/folder1-copy').then(function (exists_result) { | ||
return _spec_helper2.default.expect(exists_result).to.be.equal(false); | ||
})]); | ||
@@ -139,29 +139,29 @@ }); | ||
// read: get this content | ||
return _srcFileAsync2['default'].readFile(__filename).then(function (content) { | ||
return _fileAsync2.default.readFile(__filename).then(function (content) { | ||
file_content = content.toString(); | ||
}).then(function () { | ||
// mkdirs: create folders | ||
return _srcFileAsync2['default'].mkdirs('/tmp/folder1/folder2/'); | ||
return _fileAsync2.default.mkdirs('/tmp/folder1/folder2/'); | ||
}).then(function () { | ||
// write: write files | ||
return _srcFileAsync2['default'].writeFile('/tmp/folder1/some-file-1.js', file_content.toString()); | ||
return _fileAsync2.default.writeFile('/tmp/folder1/some-file-1.js', file_content.toString()); | ||
}).then(function () { | ||
// symlink: make symlink | ||
return _srcFileAsync2['default'].symlink('/tmp/folder1/some-file-1.js', '/tmp/folder1/folder2/some-file-symlink-1.js', 'file'); | ||
return _fileAsync2.default.symlink('/tmp/folder1/some-file-1.js', '/tmp/folder1/folder2/some-file-symlink-1.js', 'file'); | ||
}).then(function () { | ||
// stat: check file stat | ||
return _srcFileAsync2['default'].stat('/tmp/folder1/some-file-1.js').then(function (stat_result) { | ||
return _spec_helper2['default'].expect(stat_result.isFile()).to.be.equal(true); | ||
return _fileAsync2.default.stat('/tmp/folder1/some-file-1.js').then(function (stat_result) { | ||
return _spec_helper2.default.expect(stat_result.isFile()).to.be.equal(true); | ||
}); | ||
}).then(function () { | ||
// lstat: check symlink stat | ||
return _srcFileAsync2['default'].lstat('/tmp/folder1/folder2/some-file-symlink-1.js').then(function (lstat_result) { | ||
return _spec_helper2['default'].expect(lstat_result.isSymbolicLink()).to.be.equal(true); | ||
return _fileAsync2.default.lstat('/tmp/folder1/folder2/some-file-symlink-1.js').then(function (lstat_result) { | ||
return _spec_helper2.default.expect(lstat_result.isSymbolicLink()).to.be.equal(true); | ||
}); | ||
}).then(function () { | ||
return _srcFileAsync2['default'].remove('/tmp/folder1'); | ||
return _fileAsync2.default.remove('/tmp/folder1'); | ||
}).then(function () { | ||
// stat: check files stats | ||
return _srcFileAsync2['default'].exists('/tmp/folder1').then(function (exists_result) { | ||
return _spec_helper2['default'].expect(exists_result).to.be.equal(false); | ||
return _fileAsync2.default.exists('/tmp/folder1').then(function (exists_result) { | ||
return _spec_helper2.default.expect(exists_result).to.be.equal(false); | ||
}); | ||
@@ -171,2 +171,2 @@ }); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,e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bHQuaXNGaWxlKCkpLnRvLmJlLmVxdWFsKHRydWUpO1xuICAgICAgfSk7XG4gICAgfSlcbiAgICAudGhlbihmdW5jdGlvbigpIHtcbiAgICAgIC8vIGxzdGF0OiBjaGVjayBzeW1saW5rIHN0YXRcbiAgICAgIHJldHVybiBmc0FzeW5jLmxzdGF0KCcvdG1wL2ZvbGRlcjEvZm9sZGVyMi9zb21lLWZpbGUtc3ltbGluay0xLmpzJykudGhlbihmdW5jdGlvbihsc3RhdF9yZXN1bHQpIHtcbiAgICAgICAgcmV0dXJuIGguZXhwZWN0KGxzdGF0X3Jlc3VsdC5pc1N5bWJvbGljTGluaygpKS50by5iZS5lcXVhbCh0cnVlKTtcbiAgICAgIH0pO1xuICAgIH0pXG4gICAgLnRoZW4oZnVuY3Rpb24oKSB7XG4gICAgICByZXR1cm4gZnNBc3luYy5yZW1vdmUoJy90bXAvZm9sZGVyMScpO1xuICAgIH0pXG4gICAgLnRoZW4oZnVuY3Rpb24oKSB7XG4gICAgICAvLyBzdGF0OiBjaGVjayBmaWxlcyBzdGF0c1xuICAgICAgcmV0dXJuIGZzQXN5bmMuZXhpc3RzKCcvdG1wL2ZvbGRlcjEnKS50aGVuKGZ1bmN0aW9uKGV4aXN0c19yZXN1bHQpIHtcbiAgICAgICAgcmV0dXJuIGguZXhwZWN0KGV4aXN0c19yZXN1bHQpLnRvLmJlLmVxdWFsKGZhbHNlKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9KTtcblxufSk7XG4iXSwic291cmNlUm9vdCI6ImZpbGUtYXN5bmMtMC4yLjAgLSBzcGVjIn0= |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
@@ -9,3 +9,3 @@ }); | ||
var Helpers = { | ||
expect: require('azk-dev/chai').expect, | ||
expect: require('azk-dev/lib/chai').expect, | ||
@@ -19,3 +19,2 @@ fixture_path: function fixture_path() { | ||
}, | ||
fixture_require_path: function fixture_require_path() { | ||
@@ -30,4 +29,4 @@ for (var _len2 = arguments.length, fixture = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
exports['default'] = Helpers; | ||
exports.default = Helpers; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWNfaGVscGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDOztBQUUzQixJQUFJLE9BQU8sR0FBRztBQUNaLFFBQU0sRUFBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsTUFBTTs7QUFFdkMsY0FBWSxFQUFBLHdCQUFhO3NDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDckIsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxNQUFNLEVBQUUsVUFBVSxTQUFLLE9BQU8sRUFDcEMsQ0FBQztHQUNIOztBQUVELHNCQUFvQixFQUFBLGdDQUFhO3VDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDN0IsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFVBQVUsU0FBSyxPQUFPLEVBQzNDLENBQUM7R0FDSDtDQUNGLENBQUM7O3FCQUVhLE9BQU8iLCJmaWxlIjoic3BlY19oZWxwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxudmFyIEhlbHBlcnMgPSB7XG4gIGV4cGVjdCA6IHJlcXVpcmUoJ2F6ay1kZXYvY2hhaScpLmV4cGVjdCxcblxuICBmaXh0dXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sd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29udGVudCI6WyJ2YXIgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxudmFyIEhlbHBlcnMgPSB7XG4gIGV4cGVjdCA6IHJlcXVpcmUoJ2F6ay1kZXYvbGliL2NoYWknKS5leHBlY3QsXG5cbiAgZml4dHVyZV9wYXRoKC4uLmZpeHR1cmUpIHtcbiAgICByZXR1cm4gcGF0aC5yZXNvbHZlKFxuICAgICAgJy4nLCAnc3BlYycsICdmaXh0dXJlcycsIC4uLmZpeHR1cmVcbiAgICApO1xuICB9LFxuXG4gIGZpeHR1cmVfcmVxdWlyZV9wYXRoKC4uLmZpeHR1cmUpIHtcbiAgICByZXR1cm4gcGF0aC5yZXNvbHZlKFxuICAgICAgJy4nLCAnbGliJywgJ3NwZWMnLCAnZml4dHVyZXMnLCAuLi5maXh0dXJlXG4gICAgKTtcbiAgfSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEhlbHBlcnM7XG4iXSwic291cmNlUm9vdCI6ImZpbGUtYXN5bmMtMC4yLjAgLSBzcGVjIn0= |
'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _bluebird = require('bluebird'); | ||
@@ -9,10 +7,14 @@ | ||
var extra = require('fs-extra'); | ||
var _fsExtra = require('fs-extra'); | ||
var _fsExtra2 = _interopRequireDefault(_fsExtra); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var final = { | ||
existsCallback: extra.exists.bind(extra), | ||
existsCallback: _fsExtra2.default.exists.bind(_fsExtra2.default), | ||
exists: function exists(full_path) { | ||
var _this = this; | ||
return new _bluebird2['default'].Promise(function (resolve) { | ||
return new _bluebird2.default.Promise(function (resolve) { | ||
_this.existsCallback(full_path, resolve); | ||
@@ -24,8 +26,8 @@ }); | ||
var async_methods = []; | ||
var async_object = _bluebird2['default'].promisifyAll(extra, { | ||
var async_object = _bluebird2.default.promisifyAll(_fsExtra2.default, { | ||
// Skip .*Sync methods | ||
filter: function filter(name, func, target, passesDefaultFilter) { | ||
if (passesDefaultFilter && target === extra && !final[name]) { | ||
if (passesDefaultFilter && target === _fsExtra2.default && !final[name]) { | ||
if (name.match(/Sync$/)) { | ||
final[name] = extra[name].bind(extra); | ||
final[name] = _fsExtra2.default[name].bind(_fsExtra2.default); | ||
} else { | ||
@@ -42,3 +44,3 @@ async_methods.push(name); | ||
async_methods.forEach(function (method) { | ||
final[method + "Callback"] = extra[method]; | ||
final[method + "Callback"] = _fsExtra2.default[method]; | ||
final[method] = async_object[method + "Async"].bind(async_object); | ||
@@ -48,2 +50,2 @@ }); | ||
module.exports = final; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGUtYXN5bmMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozt3QkFBZSxVQUFVOzs7O0FBQ3pCLElBQUksS0FBSyxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQzs7QUFFaEMsSUFBSSxLQUFLLEdBQUc7QUFDVixnQkFBYyxFQUFFLEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztBQUN4QyxRQUFNLEVBQUUsZ0JBQVUsU0FBUyxFQUFFOzs7QUFDM0IsV0FBTyxJQUFJLHNCQUFHLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBSztBQUNqQyxZQUFLLGNBQWMsQ0FBQyxTQUFTLEVBQUUsT0FBTyxDQUFDLENBQUM7S0FDekMsQ0FBQyxDQUFDO0dBQ0o7Q0FDRixDQUFDOztBQUVGLElBQUksYUFBYSxHQUFHLEVBQUUsQ0FBQztBQUN2QixJQUFJLFlBQVksR0FBSSxzQkFBRyxZQUFZLENBQUMsS0FBSyxFQUFFOztBQUV6QyxRQUFNLEVBQUUsZ0JBQUMsSUFBSSxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsbUJBQW1CLEVBQUs7QUFDbk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c2UoKHJlc29sdmUpID0+IHtcbiAgICAgIHRoaXMuZXhpc3RzQ2FsbGJhY2soZnVsbF9wYXRoLCByZXNvbHZlKTtcbiAgICB9KTtcbiAgfSxcbn07XG5cbnZhciBhc3luY19tZXRob2RzID0gW107XG52YXIgYXN5bmNfb2JqZWN0ICA9IEJCLnByb21pc2lmeUFsbChleHRyYSwge1xuICAvLyBTa2lwIC4qU3luYyBtZXRob2RzXG4gIGZpbHRlcjogKG5hbWUsIGZ1bmMsIHRhcmdldCwgcGFzc2VzRGVmYXVsdEZpbHRlcikgPT4ge1xuICAgIGlmIChwYXNzZXNEZWZhdWx0RmlsdGVyICYmIHRhcmdldCA9PT0gZXh0cmEgJiYgIWZpbmFsW25hbWVdKSB7XG4gICAgICBpZiAobmFtZS5tYXRjaCgvU3luYyQvKSkge1xuICAgICAgICBmaW5hbFtuYW1lXSA9IGV4dHJhW25hbWVdLmJpbmQoZXh0cmEpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgYXN5bmNfbWV0aG9kcy5wdXNoKG5hbWUpO1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9LFxufSk7XG5cbi8vIFJlbmFtZSAuKkFzeW5jIG1ldGhvZHNcbmFzeW5jX21ldGhvZHMuZm9yRWFjaCgobWV0aG9kKSA9PiB7XG4gIGZpbmFsW21ldGhvZCArIFwiQ2FsbGJhY2tcIl0gPSBleHRyYVttZXRob2RdO1xuICBmaW5hbFttZXRob2RdID0gYXN5bmNfb2JqZWN0W21ldGhvZCArIFwiQXN5bmNcIl0uYmluZChhc3luY19vYmplY3QpO1xufSk7XG5cbm1vZHVsZS5leHBvcnRzID0gZmluYWw7XG4iXSwic291cmNlUm9vdCI6Ii9maWxlLWFzeW5jOjAuMS4zL3NyYyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGUtYXN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ZXRob2RzLnB1c2gobmFtZSk7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gZmFsc2U7XG4gIH0sXG59KTtcblxuLy8gUmVuYW1lIC4qQXN5bmMgbWV0aG9kc1xuYXN5bmNfbWV0aG9kcy5mb3JFYWNoKChtZXRob2QpID0+IHtcbiAgZmluYWxbbWV0aG9kICsgXCJDYWxsYmFja1wiXSA9IGV4dHJhW21ldGhvZF07XG4gIGZpbmFsW21ldGhvZF0gPSBhc3luY19vYmplY3RbbWV0aG9kICsgXCJBc3luY1wiXS5iaW5kKGFzeW5jX29iamVjdCk7XG59KTtcblxubW9kdWxlLmV4cG9ydHMgPSBmaW5hbDtcbiJdLCJzb3VyY2VSb290IjoiZmlsZS1hc3luYy0wLjIuMCAtIHNyYyJ9 |
{ | ||
"name": "file-async", | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"description": "fs-extra + bluebird promisify", | ||
"main": "index.js", | ||
"dependencies": { | ||
"bluebird": "^3.0.5", | ||
"fs-extra": "^0.26.2", | ||
"source-map-support": "^0.3.3" | ||
"bluebird": "^3.1.1", | ||
"fs-extra": "^0.26.3", | ||
"source-map-support": "^0.4.0" | ||
}, | ||
"devDependencies": { | ||
"azk-dev": "0.1.0", | ||
"gulp": "^3.9.0" | ||
"azk-dev": "^0.2.0", | ||
"babel-polyfill": "^6.3.14", | ||
"gulp": "^3.8.11" | ||
}, | ||
@@ -15,0 +16,0 @@ "scripts": { |
@@ -5,5 +5,8 @@ # file-async | ||
all functions from [fs](https://nodejs.org/api/fs.html) and [fs-extra](https://github.com/jprichardson/node-fs-extra) _bluebird's promisified_ | ||
[![Build Status](https://travis-ci.org/azukiapp/file-async.svg?branch=master)](https://travis-ci.org/azukiapp/file-async) | ||
No more blocking code. | ||
- All functions from [fs](https://nodejs.org/api/fs.html) and [fs-extra](https://github.com/jprichardson/node-fs-extra) to use with Promises | ||
- No more blocking code. | ||
- _bluebird's promisified_ | ||
- _exists()_ is fixed | ||
@@ -10,0 +13,0 @@ ## Install with [npm](https://www.npmjs.com/package/file-async) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46285
188
3
1
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-support@0.4.18(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedsource-map@0.1.32(transitive)
- Removedsource-map-support@0.3.3(transitive)
Updatedbluebird@^3.1.1
Updatedfs-extra@^0.26.3
Updatedsource-map-support@^0.4.0