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.0.3 to 1.0.4

16

index.js

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

var defaultProccessor = require('./lib/strategies/default');
var hashForDep = require('hash-for-dep');

@@ -91,2 +92,17 @@ module.exports = Filter;

/*
The cache key to be used for this plugins set of dependencies. By default
a hash is created based on `package.json` and nested dependencies.
Implement this to customize the cache key (for example if you need to
account for non-NPM dependencies).
@public
@method cacheKey
@returns {String}
*/
Filter.prototype.cacheKey = function() {
return hashForDep(this.baseDir());
};
/* @public

@@ -93,0 +109,0 @@ *

3

lib/strategies/persistent.js

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

var AsyncDiskCache = require('async-disk-cache');
var hashForDep = require('hash-for-dep');

@@ -23,3 +22,3 @@ module.exports = {

cacheKey: function(ctx) {
return hashForDep(ctx.baseDir());
return ctx.cacheKey();
},

@@ -26,0 +25,0 @@

{
"name": "broccoli-persistent-filter",
"version": "1.0.3",
"version": "1.0.4",
"description": "broccoli filter but with a persistent cache",

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

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