Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-asset-rev

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-asset-rev - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

lib/asset-rev.js

@@ -18,3 +18,4 @@ var Fingerprint = require('./fingerprint');

assetMap: this.assetMap,
extensions: this.fingerprintExtensions
extensions: this.fingerprintExtensions,
exclude: options.fingerprintExclude || []
});

@@ -21,0 +22,0 @@

@@ -17,2 +17,3 @@ var fs = require('fs');

this.extensions = options.extensions || [];
this.exclude = options.exclude || [];
}

@@ -23,2 +24,12 @@

Fingerprint.prototype.canProcessFile = function (relativePath) {
for (var i = 0; i < this.exclude.length; i++) {
if (relativePath.indexOf(this.exclude[i]) !== -1) {
return false;
}
}
return Filter.prototype.canProcessFile.apply(this, arguments);
};
Fingerprint.prototype.processFile = function (srcDir, destDir, relativePath) {

@@ -25,0 +36,0 @@ var file = fs.readFileSync(srcDir + '/' + relativePath);

{
"name": "broccoli-asset-rev",
"version": "0.0.1",
"version": "0.0.2",
"description": "broccoli asset revisions (fingerprint)",

@@ -5,0 +5,0 @@ "main": "lib/asset-rev.js",

@@ -25,2 +25,3 @@ #broccoli-asset-rev

- `fingerprintExtensions` - Default: `['js', 'css', 'png']` - The file types to add md5 checksums.
- `fingerprintExclude` - Default: `[]` - An array of strings. If a filename contains any item in the exclude array, it will not be fingerprinted.
- `replaceExtensions` - Default: `['html', 'css']` - The file types to replace source code with new checksum file names.
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