recursive-dir-reader
Advanced tools
Comparing version 1.2.0 to 1.3.0
10
index.js
@@ -12,3 +12,3 @@ 'use strict'; | ||
*/ | ||
function async(dir, callback = undefined) { | ||
exports.async = (dir, callback = undefined) => { | ||
if (callback && typeof callback !== 'function') { | ||
@@ -43,3 +43,3 @@ throw new Error('Expected callback function'); | ||
} | ||
} | ||
}; | ||
@@ -51,3 +51,3 @@ /** | ||
*/ | ||
function sync(dir, callback = undefined) { | ||
exports.sync = (dir, callback = undefined) => { | ||
if (callback && typeof callback !== 'function') { | ||
@@ -83,4 +83,2 @@ throw new Error('Expected callback function'); | ||
} | ||
} | ||
module.exports = {async, sync}; | ||
}; |
{ | ||
"name": "recursive-dir-reader", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "reading directory and subdirectories", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/KiiDii/readdir.git" | ||
"url": "git+https://github.com/KiiDii/recursive-dir-reader.git" | ||
}, | ||
@@ -24,5 +24,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/KiiDii/readdir/issues" | ||
"url": "https://github.com/KiiDii/recursive-dir-reader/issues" | ||
}, | ||
"homepage": "https://github.com/KiiDii/readdir#readme", | ||
"homepage": "https://github.com/KiiDii/recursive-dir-reader#readme", | ||
"dependencies": { | ||
@@ -29,0 +29,0 @@ "async": "^3.1.0" |
Sorry, the diff of this file is not supported yet
21352
60