Comparing version 0.0.12 to 0.0.13
@@ -145,2 +145,6 @@ 'use strict'; | ||
handle = function (err) { | ||
if (err) { | ||
this._logger.errorln(err.message); | ||
} | ||
if ($callback) { | ||
@@ -532,3 +536,2 @@ if (err) { | ||
if (!$verbose) { | ||
this._logger.errorln(msg); | ||
return new Error(msg); | ||
@@ -535,0 +538,0 @@ } |
{ | ||
"name": "automaton", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Task automation tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -111,16 +111,17 @@ var fstream = require('fstream'); | ||
matches.forEach(function (match) { | ||
var isDir = utils.string.endsWith(match, '/'); | ||
match = path.normalize(match); | ||
if (utils.string.endsWith(match, '/')) { | ||
lastMatch = match.slice(0, -1); | ||
dirs.push(lastMatch); | ||
if (isDir) { | ||
lastMatch = match.replace(/[\/\\]+$/, ''); | ||
dirs.push(path.normalize(lastMatch)); | ||
} else { | ||
files.push(match); | ||
lastMatch = match; | ||
files.push(lastMatch); | ||
} | ||
}); | ||
// If we only got one match and it was the same as the original pattern, | ||
// then it was a direct match | ||
var directMatch = matches.length === 1 && lastMatch.replace(/[\/\\]+$/, '') === path.normalize(pattern).replace(/[\/\\]+$/, ''); | ||
var directMatch = matches.length === 1 && lastMatch === path.normalize(pattern).replace(/[\/\\]+$/, ''); | ||
if (!directMatch) { | ||
@@ -203,2 +204,4 @@ cleanup(files, dirs); | ||
pattern = path.normalize(pattern); | ||
for (x = 0; x < length; ++x) { | ||
@@ -205,0 +208,0 @@ if (file[x] !== pattern[x]) { |
@@ -201,2 +201,3 @@ /*jshint regexp:false*/ | ||
// Find the base path pos | ||
pattern = path.normalize(pattern); | ||
currPath = paths[0]; | ||
@@ -203,0 +204,0 @@ length = currPath.length; |
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
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
86796
2059
1