Comparing version 3.4.1 to 3.4.2
10
index.js
@@ -37,2 +37,3 @@ 'use strict'; | ||
SLASH, | ||
SLASH_SLASH, | ||
BRACE_START, | ||
@@ -100,7 +101,16 @@ BANG, | ||
// If SLASH_SLASH occurs at the beginning of path, it is not replaced | ||
// because "//StoragePC/DrivePool/Movies" is a valid network path | ||
const toUnix = (string) => { | ||
let str = string.replace(BACK_SLASH_RE, SLASH); | ||
let prepend = false; | ||
if (str.startsWith(SLASH_SLASH)) { | ||
prepend = true; | ||
} | ||
while (str.match(DOUBLE_SLASH_RE)) { | ||
str = str.replace(DOUBLE_SLASH_RE, SLASH); | ||
} | ||
if (prepend) { | ||
str = SLASH + str; | ||
} | ||
return str; | ||
@@ -107,0 +117,0 @@ }; |
@@ -44,2 +44,3 @@ 'use strict'; | ||
exports.SLASH = '/'; | ||
exports.SLASH_SLASH = '//'; | ||
exports.BRACE_START = '{'; | ||
@@ -46,0 +47,0 @@ exports.BANG = '!'; |
@@ -245,3 +245,2 @@ 'use strict'; | ||
if (this.fsw.closed) return; | ||
if (this.fsw.closed) return; | ||
if (sameTypes(info, stats)) { | ||
@@ -248,0 +247,0 @@ this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts); |
{ | ||
"name": "chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"homepage": "https://github.com/paulmillr/chokidar", | ||
@@ -6,0 +6,0 @@ "author": "Paul Miller (https://paulmillr.com)", |
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
89867
2084