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.11 to 0.0.12

9

lib/use-rev.js

@@ -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",

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