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

electricity

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electricity - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

8

lib/index.js

@@ -92,2 +92,3 @@ const crypto = require('crypto');

var stylesheets = [];
var watcher;

@@ -334,5 +335,8 @@ function cacheFile(filePath, stat) {

// Watch directory for changes
// Watch for changes
if (options.watch.enabled) {
const watcher = chokidar.watch(directory, {
const jsDirectories = Array.from(new Set(Object.keys(snockets.depGraph.map).map(d => path.dirname(d))));
const sassDirectories = Array.from(new Set(Object.keys(sassGraph.parseDir(directory).index).map(d => path.dirname(d))));
watcher = chokidar.watch([directory, ...jsDirectories, ...sassDirectories], {
ignoreInitial: true

@@ -339,0 +343,0 @@ });

@@ -37,3 +37,3 @@ {

},
"version": "2.0.0"
"version": "2.1.0"
}
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