Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,2 @@ | ||
var t=require("mz/fs"),n=require("path"),r={deep:1,_currentDeep:1},e=function(t){return Object.assign(JSON.parse(JSON.stringify(r)),t)},i=function(t){return"all"!==t.deep&&+t.deep<t._currentDeep};exports=module.exports=function(r,u){return new Promise(function(c,o){return u=e(u),function r(e,u,c){return void 0===c&&(c=[]),new Promise(function(o,h){var s;return i(u)?o(Promise.resolve(c)):(s=[],t.lstat(e).then(function(t){return t.isFile()}).then(function(i){try{return i?(e=n.dirname(e),t.readdir(e,"utf8").then(function(t){return t}).then(function(t){try{return s=t,f.call(this)}catch(t){return h(t)}}.bind(this),h)):t.readdir(e,"utf8").then(function(t){return t}).then(function(t){try{return s=t,f.call(this)}catch(t){return h(t)}}.bind(this),h);function f(){var i;function f(){var i,o;return s.length?(i=s.shift(),o=n.join(e,i),t.lstat(o).then(function(t){return t.isDirectory()}).then(function(t){try{return t?(u._currentDeep++,r(o,u,c).then(function(t){try{return n.call(this)}catch(t){return h(t)}}.bind(this),h)):(c.push(o),n.call(this));function n(){return f}}catch(t){return h(t)}}.bind(this),h)):[1]}return(i=function(t){for(;t;){if(t.then)return void t.then(i,h);try{if(t.pop){if(t.length)return t.pop()?a.call(this):t;t=f}else t=t.call(this)}catch(t){return h(t)}}}.bind(this))(f);function a(){return o(c)}}}catch(t){return h(t)}}.bind(this),h))})}(r,u).then(c,o)})},exports.sync=function(r,u){return function r(e,u,c){if(void 0===c&&(c=[]),!i(u)){var o=[];for(t.lstatSync(e).isFile()?(e=n.dirname(e),o=t.readdirSync(e,"utf8")):o=t.readdirSync(e,"utf8");o.length;){var h=o.shift(),s=n.join(e,h);t.lstatSync(s).isDirectory()?(u._currentDeep++,r(s,u,c)):c.push(s)}return c}}(r,u=e(u))}; | ||
var t=require("mz/fs"),r=require("path"),n={deep:1,_currentDeep:1},e=function(t){return Object.assign(JSON.parse(JSON.stringify(n)),t)},i=function(t){return"all"!==t.deep&&+t.deep<t._currentDeep};exports=module.exports=function(n,u){return new Promise(function(c,s){return u=e(u),function n(e,u,c){return void 0===c&&(c=[]),new Promise(function(s,o){var h;return i(u)?s(Promise.resolve(c)):(h=[],t.lstat(e).then(function(t){return t.isFile()}).then(function(i){try{if(i){var f=r.resolve(e);return c.push(f),a.call(this)}return t.readdir(e,"utf8").then(function(t){return t}).then(function(t){try{return h=t,a.call(this)}catch(t){return o(t)}}.bind(this),o);function a(){var i;function f(){var i,s;return h.length?(i=h.shift(),s=r.join(e,i),t.lstat(s).then(function(t){return t.isDirectory()}).then(function(t){try{return t?(u._currentDeep++,n(s,u,c).then(function(t){try{return r.call(this)}catch(t){return o(t)}}.bind(this),o)):(c.push(s),r.call(this));function r(){return f}}catch(t){return o(t)}}.bind(this),o)):[1]}return(i=function(t){for(;t;){if(t.then)return void t.then(i,o);try{if(t.pop){if(t.length)return t.pop()?a.call(this):t;t=f}else t=t.call(this)}catch(t){return o(t)}}}.bind(this))(f);function a(){return s(c)}}}catch(t){return o(t)}}.bind(this),o))})}(n,u).then(c,s)})},exports.sync=function(n,u){return function n(e,u,c){if(void 0===c&&(c=[]),!i(u)){var s=[];if(t.lstatSync(e).isFile()){var o=r.resolve(e);c.push(o)}else s=t.readdirSync(e,"utf8");for(;s.length;){var h=s.shift(),f=r.join(e,h);t.lstatSync(f).isDirectory()?(u._currentDeep++,n(f,u,c)):c.push(f)}return c}}(n,u=e(u))}; | ||
//# sourceMappingURL=files-list.js.map |
{ | ||
"name": "files-list", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "get path dir/child all file path", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"pub": "npm run test && npm run npmUp && npm run git", | ||
"npmUp": "npm version major && npm publish", | ||
"npmUp": "npm version minor && npm publish", | ||
"git": "git push && git push --tags" | ||
@@ -25,0 +25,0 @@ }, |
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
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
5580