broccoli-persistent-filter
Advanced tools
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 @@ * |
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19323
321