Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chokidar

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chokidar - npm Package Compare versions

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 @@ };

1

lib/constants.js

@@ -44,2 +44,3 @@ 'use strict';

exports.SLASH = '/';
exports.SLASH_SLASH = '//';
exports.BRACE_START = '{';

@@ -46,0 +47,0 @@ exports.BANG = '!';

1

lib/fsevents-handler.js

@@ -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)",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc