Comparing version 0.1.1 to 0.1.2
# Changelog | ||
## 0.1.2 - 2013-01-20 | ||
- More windows fixes, all tests now pass | ||
## 0.1.1 - 2013-01-19 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "automaton", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Task automation tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -94,3 +94,3 @@ 'use strict'; | ||
} else { | ||
dstType = utils.string.endsWith(dst, '/') ? 'dir' : srcType; | ||
dstType = /[\/\\]$/.test(dst) ? 'dir' : srcType; | ||
} | ||
@@ -110,3 +110,3 @@ | ||
// inside it | ||
if (stat || utils.string.endsWith(dst, '/')) { | ||
if (stat || /[\/\\]$/.test(dst)) { | ||
dst = path.join(dst, path.basename(src)); | ||
@@ -213,3 +213,4 @@ } | ||
var stream = fstream.Reader({ | ||
path: src | ||
path: src, | ||
follow: true | ||
}).pipe( | ||
@@ -262,3 +263,3 @@ fstream.Writer({ | ||
matches.forEach(function (match) { | ||
var isFile = !utils.string.endsWith(match, '/'); | ||
var isFile = !/[\/\\]$/.test(match); | ||
@@ -265,0 +266,0 @@ if (isFile) { |
@@ -93,3 +93,3 @@ 'use strict'; | ||
} else { | ||
dstType = utils.string.endsWith(dst, '/') ? 'dir' : srcType; | ||
dstType = /[\/\\]$/.test(dst) ? 'dir' : srcType; | ||
} | ||
@@ -109,3 +109,3 @@ | ||
// inside it | ||
if (stat || utils.string.endsWith(dst, '/')) { | ||
if (stat || /[\/\\]$/.test(dst)) { | ||
dst = path.join(dst, path.basename(src)); | ||
@@ -212,3 +212,3 @@ } | ||
matches.forEach(function (match) { | ||
var isFile = !utils.string.endsWith(match, '/'); | ||
var isFile = !/[\/\\]$/.test(match); | ||
@@ -215,0 +215,0 @@ if (isFile) { |
@@ -66,3 +66,3 @@ 'use strict'; | ||
var files = matches.filter(function (match) { | ||
return !utils.string.endsWith(match, '/'); | ||
return !/[\/\\]$/.test(match); | ||
}); | ||
@@ -69,0 +69,0 @@ |
@@ -55,3 +55,3 @@ 'use strict'; | ||
var files = matches.filter(function (match) { | ||
return !utils.string.endsWith(match, '/'); | ||
return !/[\/\\]$/.test(match); | ||
}); | ||
@@ -58,0 +58,0 @@ |
@@ -66,3 +66,3 @@ 'use strict'; | ||
var files = matches.filter(function (match) { | ||
return !utils.string.endsWith(match, '/'); | ||
return !/[\/\\]$/.test(match); | ||
}); | ||
@@ -69,0 +69,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
2417
103306