New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-asset-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-asset-rewrite - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

4

index.js

@@ -122,4 +122,4 @@ var Filter = require('broccoli-filter');

if (this.prepend && replaceString.indexOf(this.prepend) !== 0) {
var removeLeadingSlashRegex = new RegExp('^/?(.*)$');
replaceString = this.prepend + removeLeadingSlashRegex.exec(replaceString)[1];
var removeLeadingRelativeOrSlashRegex = new RegExp('^(\\.*/)*(.*)$');
replaceString = this.prepend + removeLeadingRelativeOrSlashRegex.exec(replaceString)[2];
}

@@ -126,0 +126,0 @@

{
"name": "broccoli-asset-rewrite",
"version": "1.0.12",
"version": "1.0.13",
"description": "broccoli plugin to rewrite a source tree from an asset map.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -97,3 +97,4 @@ var fs = require('fs');

'images/sample.png': 'images/fingerprinted-sample.png',
'assets/images/foobar.png': 'assets/images/foobar-fingerprint.png'
'assets/images/foobar.png': 'assets/images/foobar-fingerprint.png',
'img/saturation.png': 'assets/img/saturation-fingerprint.png'
},

@@ -100,0 +101,0 @@ prepend: 'https://cloudfront.net/'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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