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.8 to 1.0.9

8

index.js

@@ -73,3 +73,9 @@ 'use strict';

this._cache.deleteExcept(paths).forEach(function(key) {
fs.unlinkSync(this.cachePath + '/' + key);
try {
fs.unlinkSync(this.cachePath + '/' + key);
} catch (e) {
if(e.code !== 'ENOENT') {
throw e;
}
}
}, this);

@@ -76,0 +82,0 @@

@@ -29,4 +29,6 @@ var AsyncDiskCache = require('async-disk-cache');

if (entry.isCached) {
ctx._debug('persistent cache hit: %s', relativePath);
return entry.value;
} else {
ctx._debug('persistent cache prime: %s', relativePath);
var string = Promise.resolve(ctx.processString(contents, relativePath));

@@ -33,0 +35,0 @@

2

package.json
{
"name": "broccoli-persistent-filter",
"version": "1.0.8",
"version": "1.0.9",
"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