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

watchpack

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchpack - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

README.md

2

lib/DirectoryWatcher.js

@@ -47,3 +47,3 @@ /*

var old = this.files[path];
this.files[path] = [now, mtime];
this.files[path] = [initial ? Math.min(now, mtime) : now, mtime];
if(!old) {

@@ -50,0 +50,0 @@ if(mtime) {

@@ -46,2 +46,4 @@ /*

this.paused = true;
if(this.aggregateTimeout)
clearTimeout(this.aggregateTimeout);
this.fileWatchers.forEach(function(w) {

@@ -59,2 +61,4 @@ w.close();

this.paused = true;
if(this.aggregateTimeout)
clearTimeout(this.aggregateTimeout);
};

@@ -61,0 +65,0 @@

{
"name": "watchpack",
"version": "0.1.2",
"version": "0.1.3",
"description": "",

@@ -29,5 +29,5 @@ "main": "./lib/watchpack.js",

"async": "^0.9.0",
"chokidar": "^0.10.3",
"chokidar": "^0.11.0",
"graceful-fs": "^3.0.2"
}
}

@@ -5,2 +5,4 @@ var fs = require("fs");

var watcherManager = require("../../lib/watcherManager");
function TestHelper(testdir) {

@@ -19,2 +21,3 @@ this.testdir = testdir;

TestHelper.prototype._before = function before(done) {
Object.keys(watcherManager.directoryWatchers).should.be.eql([]);
this.tick(function() {

@@ -30,2 +33,3 @@ rimraf.sync(this.testdir);

rimraf.sync(this.testdir);
Object.keys(watcherManager.directoryWatchers).should.be.eql([]);
done();

@@ -32,0 +36,0 @@ }.bind(this));

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