broccoli-asset-rev
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -0,1 +1,2 @@ | ||
var path = require('path'); | ||
var Filter = require('broccoli-filter'); | ||
@@ -12,3 +13,3 @@ | ||
this.assetMap = options.assetMap || {}; | ||
this.extensions = options.replaceExtensions || []; | ||
this.replaceExtensions = options.replaceExtensions || []; | ||
this.prepend = options.prepend || ''; | ||
@@ -21,4 +22,8 @@ this.description = options.description; | ||
UseRev.prototype.processString = function (string) { | ||
UseRev.prototype.processString = function (string, relativePath) { | ||
var newString = string; | ||
var extension = path.extname(relativePath).slice(1); // get the extension without leading period | ||
if (this.replaceExtensions.indexOf(extension) === -1) { | ||
return string; | ||
} | ||
@@ -25,0 +30,0 @@ /* |
{ | ||
"name": "broccoli-asset-rev", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "broccoli asset revisions (fingerprint)", | ||
@@ -5,0 +5,0 @@ "main": "lib/asset-rev.js", |
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
10890
122885
196