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.12 to 0.0.13

9

lib/use-rev.js

@@ -1,2 +0,1 @@

var path = require('path');
var Filter = require('broccoli-filter');

@@ -13,3 +12,3 @@

this.assetMap = options.assetMap || {};
this.replaceExtensions = options.replaceExtensions || [];
this.extensions = options.replaceExtensions || [];
this.prepend = options.prepend || '';

@@ -22,8 +21,4 @@ this.description = options.description;

UseRev.prototype.processString = function (string, relativePath) {
UseRev.prototype.processString = function (string) {
var newString = string;
var extension = path.extname(relativePath).slice(1); // get the extension without leading period
if (this.replaceExtensions.indexOf(extension) === -1) {
return string;
}

@@ -30,0 +25,0 @@ /*

{
"name": "broccoli-asset-rev",
"version": "0.0.12",
"version": "0.0.13",
"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