Socket
Socket
Sign inDemoInstall

broccoli-persistent-filter

Package Overview
Dependencies
Maintainers
2
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.0.0 to 1.0.1

80

CHANGELOG.md
# master
# 1.2.0
* Replace with @caitp's cauliflower-filter implementation and @stefanpenner's tests
# 1.1.0
* Add `name` and `annotation` options
# 1.0.0
* Bump without change
# 0.2.0
* Derive from new broccoli-plugin base class. Notably, this means that
subclasses always must call `Filter.call(this, inputTree)` in their
constructors, instead of settings `this.inputTree = inputTree`.
# 0.1.14
* Improve performance by symlinking when possible
# 0.1.13
* Improve error message when `processString` isn't overridden in subclass
# 0.1.12
* Throw on undefined `inputTree`
# 0.1.11
* Update dependencies
# 0.1.10
* Do not override this.inputEncoding/this.outputEncoding if not provided
# 0.1.9
* Fix inputEncoding/outputEncoding defaults
# 0.1.8
* Add `inputEncoding` and `outputEncoding` options
# 0.1.7
* Update dependency to deal with symlinks correctly
# 0.1.6
* Copy instead of hardlinking
# 0.1.5
* Use new broccoli-writer base class
# 0.1.4
* Use broccoli-kitchen-sink-helpers instead of larger broccoli dependency
# 0.1.3
* Remove stray `console.log` O_O
# 0.1.2
* Augment error objects for better error reporting
# 0.1.1
* Update `broccoli` dependency
# 0.1.0
* Pass relativePath argument to `processFile`
# 0.0.1
* Initial release
* Forked from broccoli-filter

7

index.js

@@ -135,2 +135,3 @@ 'use strict';

var cacheEntry = this._cache.get(relativePath);
var outputRelativeFile = self.getDestFilePath(relativePath);

@@ -143,3 +144,3 @@ if (cacheEntry) {

return symlinkOrCopyFromCache(cacheEntry, destDir, relativePath);
return symlinkOrCopyFromCache(cacheEntry, destDir, outputRelativeFile);
} else {

@@ -172,4 +173,4 @@ this._debug('cache miss: %s \n - previous: %o \n - next: %o ', relativePath, cacheEntry.hash.key, hashResult.key);

inputFile: relativePath,
outputFile: destDir + '/' + self.getDestFilePath(relativePath),
cacheFile: self.cachePath + '/' + relativePath
outputFile: destDir + '/' + outputRelativeFile,
cacheFile: self.cachePath + '/' + outputRelativeFile
};

@@ -176,0 +177,0 @@

{
"name": "broccoli-persistent-filter",
"version": "1.0.0",
"version": "1.0.1",
"description": "broccoli filter but with a persistent cache",

@@ -5,0 +5,0 @@ "author": "Stefan Penner <stefan.penner@gmail.com>",

@@ -97,4 +97,2 @@ # broccoli-persistent-filter

__Note: This feature is experimental and is only available on Unix based systems.__
Adding persist flag allows a subclass to persist state across restarts. This exists to mitigate the upfront cost of some more expensive transforms on warm boot. __It does not aim to improve incremental build performance, if it does, it should indicate something is wrong with the filter or input filter in question.__

@@ -101,0 +99,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