Socket
Socket
Sign inDemoInstall

broccoli-persistent-filter

Package Overview
Dependencies
Maintainers
3
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-persistent-filter - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

23

index.js

@@ -79,5 +79,2 @@ 'use strict';

this._debug('[operation:%s] %s', operation, relativePath);
if (operation === 'change') {
operation = 'create';
}

@@ -88,9 +85,7 @@ switch (operation) {

case 'unlink': return fs.unlinkSync(outputPath);
case 'change':
fs.unlinkSync(outputPath);
return this._handleFile(relativePath, srcDir, destDir, entry, outputPath);
case 'create':
if (this.canProcessFile(relativePath)) {
return this.processAndCacheFile(srcDir, destDir, entry);
} else {
var srcPath = srcDir + '/' + relativePath;
return symlinkOrCopySync(srcPath, outputPath);
}
return this._handleFile(relativePath, srcDir, destDir, entry, outputPath);
}

@@ -100,2 +95,11 @@ }, this);

Filter.prototype._handleFile = function(relativePath, srcDir, destDir, entry, outputPath) {
if (this.canProcessFile(relativePath)) {
return this.processAndCacheFile(srcDir, destDir, entry);
} else {
var srcPath = srcDir + '/' + relativePath;
return symlinkOrCopySync(srcPath, outputPath);
}
};
/*

@@ -162,3 +166,2 @@ The cache key to be used for this plugins set of dependencies. By default

var relativePath = entry.relativePath;
var outputRelativeFile = filter.getDestFilePath(relativePath);

@@ -165,0 +168,0 @@ return Promise.resolve().

{
"name": "broccoli-persistent-filter",
"version": "1.1.1",
"version": "1.1.2",
"description": "broccoli filter but with a persistent cache",

@@ -42,2 +42,3 @@ "author": "Stefan Penner <stefan.penner@gmail.com>",

"promise-map-series": "^0.2.1",
"rimraf": "^2.4.3",
"rsvp": "^3.0.18",

@@ -44,0 +45,0 @@ "symlink-or-copy": "^1.0.1",

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