Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-rev-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rev-rewrite - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

3

index.js

@@ -84,2 +84,3 @@ 'use strict';

}
file.contents = Buffer.from(newContents);

@@ -111,7 +112,9 @@ stream.push(file);

}
if (!filePath.startsWith('/') && !prefix.endsWith('/')) {
return `${prefix}/${filePath}`;
}
return `${prefix}${filePath}`;
}
};

8

lib/replace.js

@@ -10,9 +10,9 @@ 'use strict';

const FRONT_DELIMITERS = ['"', '\'', '\\s', ',', '(', '/', '='];
const BACK_DELIMITERS = ['"', '\'', '\\s', ',', ')', '\\\\', '?', '#'];
const FRONT_DELIMITERS = ['"', '\'', '\\s', ',', '\\(', '\\/', '=', '^', '%2F'];
const BACK_DELIMITERS = ['"', '\'', '\\s', ',', '\\)', '\\\\', '\\?', '#', '$', '&'];
const regexp = new RegExp(
`([${FRONT_DELIMITERS.join('')}]|^)(${escapeRegExp(
`(${FRONT_DELIMITERS.join('|')})(${escapeRegExp(
unreved
)})([${BACK_DELIMITERS.join('')}]|$)`,
)})(${BACK_DELIMITERS.join('|')})`,
'g'

@@ -19,0 +19,0 @@ );

{
"name": "gulp-rev-rewrite",
"version": "1.1.3",
"version": "1.1.4",
"description": "Rewrite occurences of filenames which have been renamed by gulp-rev",

@@ -41,3 +41,3 @@ "main": "index.js",

"devDependencies": {
"ava": "1.0.0-beta.4",
"ava": "^1.1.0",
"event-stream": "3.3.4",

@@ -48,4 +48,4 @@ "gulp-rev": "^9.0.0",

"vinyl": "^2.1.0",
"xo": "^0.23.0"
"xo": "^0.24.0"
}
}
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