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.2.9 to 1.0.0

6

lib/DirectoryWatcher.js

@@ -34,3 +34,3 @@ /*

if(typeof this.startTime !== "number") return !initial;
var startTime = this.startTime && Math.floor(this.startTime / FS_ACCURENCY) * FS_ACCURENCY;
var startTime = this.startTime;
return startTime <= mtime;

@@ -81,2 +81,6 @@ };

var old = this.files[filePath];
// we add the fs accurency to reach the maximum possible mtime
mtime = mtime + FS_ACCURENCY;
this.files[filePath] = [initial ? Math.min(now, mtime) : now, mtime];

@@ -83,0 +87,0 @@ if(!old) {

2

package.json
{
"name": "watchpack",
"version": "0.2.9",
"version": "1.0.0",
"description": "",

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

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