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

watchify

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchify - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

10

index.js

@@ -10,5 +10,5 @@ var through = require('through');

function watchify (opts) {
function watchify (files, opts) {
if (!opts) opts = {};
var b = typeof opts.bundle === 'function' ? opts : browserify(opts);
var b = typeof files.bundle === 'function' ? files : browserify(files, opts);
var cache = {};

@@ -55,5 +55,5 @@ var pkgcache = {};

function watchFile (file) {
if (fwatchers[file]) return;
if (!fwatchers[file]) fwatchers[file] = [];
if (!fwatcherFiles[file]) fwatcherFiles[file] = [];
if (fwatcherFiles[file].indexOf(file) >= 0) return;

@@ -66,6 +66,8 @@ var w = chokidar.watch(file, {persistent: true});

fwatchers[file].push(w);
fwatcherFiles[file].push(file);
}
function watchDepFile(mfile, file) {
if (!fwatchers[mfile]) return;
if (!fwatchers[mfile]) fwatchers[mfile] = [];
if (!fwatcherFiles[mfile]) fwatcherFiles[mfile] = [];
if (fwatcherFiles[mfile].indexOf(file) >= 0) return;

@@ -72,0 +74,0 @@

2

package.json
{
"name": "watchify",
"version": "0.10.0",
"version": "0.10.1",
"description": "watch mode for browserify builds",

@@ -5,0 +5,0 @@ "main": "index.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