mini-tools
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -135,4 +135,11 @@ "use strict"; | ||
} | ||
}).then(function(opts){ | ||
return MiniTools.readConfig.exts[opts.ext](opts.fileName); | ||
}).then(function(pair){ | ||
return Promises.start(function(){ | ||
return MiniTools.readConfig.exts[pair.ext](pair.fileName) | ||
}).catch(function(err){ | ||
if(err.code==='ENOENT' && opts.whenNotExist==='ignore'){ | ||
return {}; | ||
}; | ||
throw err; | ||
}); | ||
}); | ||
@@ -139,0 +146,0 @@ }else if(typeof fileNameOrObject==="object" && !(fileNameOrObject instanceof Array)){ |
{ | ||
"name": "mini-tools", | ||
"description": "mini tools for express and others", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
"license": "MIT", | ||
"files": ["lib"], | ||
"repository": "codenautas/mini-tools", | ||
@@ -8,0 +9,0 @@ "contributors": [{ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
12787
4
149
1