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

grunt-appolo-assets-url-replace

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-appolo-assets-url-replace - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "grunt-appolo-assets-url-replace",
"description": "Grunt task to replace assets urls with absolute path",
"version": "0.0.5",
"version": "0.0.6",
"author": {

@@ -6,0 +6,0 @@ "name": "Roman Svichar",

@@ -40,4 +40,5 @@

if (imagePath.indexOf("http://") == -1 &&
imagePath.indexOf("https://") == -1 &&
if (!imagePath.startsWith("http://") &&
!imagePath.startsWith("https://") &&
!imagePath.startsWith("//") &&
imagePath.indexOf(";base64") == -1 &&

@@ -64,4 +65,5 @@ options.ext.indexOf(path.extname(imagePath)) > -1 ) {

if (imagePath.indexOf("http://") == -1 &&
imagePath.indexOf("https://") == -1 &&
if (!imagePath.startsWith("http://") &&
!imagePath.startsWith("https://") &&
!imagePath.startsWith("//") &&
imagePath.indexOf(";base64") == -1 &&

@@ -77,5 +79,5 @@ options.ext.indexOf(path.extname(imagePath)) > -1 ) {

if (imagePath.indexOf("http://") == -1 &&
imagePath.indexOf("https://") == -1 &&
imagePath.indexOf(";base64") == -1 &&
if (!imagePath.startsWith("http://") &&
!imagePath.startsWith("https://") &&
!imagePath.startsWith("//") &&
options.ext.indexOf(path.extname(imagePath)) > -1 ) {

@@ -82,0 +84,0 @@ html = html.replace(match[0], 'href="'+ options.staticUrl + path.normalize('/'+ imagePath)+'"');

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