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

grunt-filerev-replace

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-filerev-replace - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "grunt-filerev-replace",
"description": "Replace references to grunt-filerev files.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/solidusjs/grunt-filerev-replace",

@@ -6,0 +6,0 @@ "author": {

@@ -13,8 +13,5 @@ /*

var STARTING_DELIMITERS = '\'"\\(';
var ENDING_DELIMITERS = '\'"\\)\\?#';
var STARTING_DELIMITER = '([' + STARTING_DELIMITERS + '])';
var ENDING_DELIMITER = '([' + ENDING_DELIMITERS + '])';
var ASSET_PATH_START = '([^' + ENDING_DELIMITERS + ']*';
var ASSET_PATH_END = '[^' + ENDING_DELIMITERS + ']*)';
var STARTING_DELIMITER = '(\\\\?\'|\\\\?"|\\\\?\\()';
var ALLOWED_PATH_CHARS = '[^\'"\\(\\)\\?#]*?'; // Lazy, in order not to eat the optional starting character of ENDING_DELIMITER
var ENDING_DELIMITER = '(\\\\?\'|\\\\?"|\\\\?\\)|\\?|#)';

@@ -53,3 +50,3 @@ module.exports = function(grunt) {

return new RegExp( STARTING_DELIMITER + // p1
ASSET_PATH_START + escape_for_regexp( path.basename( asset_path ) ) + ASSET_PATH_END + // p2
'(' + ALLOWED_PATH_CHARS + escape_for_regexp( path.basename( asset_path ) ) + ALLOWED_PATH_CHARS + ')' + // p2
ENDING_DELIMITER, // p3

@@ -56,0 +53,0 @@ 'ig' );

@@ -15,2 +15,5 @@ // Absolute path

// Escaped delimiters
var path = "body { background: url(\"/images/ajax-loader.4e26f87c.gif\"); }";
// Case insensitive

@@ -17,0 +20,0 @@ var path = '/images/ajax-loader.4e26f87c.gif';

@@ -15,2 +15,5 @@ // Absolute path

// Escaped delimiters
var path = "body { background: url(\"/images/ajax-loader.gif\"); }";
// Case insensitive

@@ -17,0 +20,0 @@ var path = '/IMAGES/ajax-loader.gif';

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