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

grunt-packer

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-packer - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

out/index.html

13

lib/pack-css-task.js

@@ -8,2 +8,6 @@ var path = require('path'),

var matchResult = code.match(/url\((?!("|')?data:)[^#\)]+?\)/ig);
root = path.normalize(root + path.sep);
cssDir = path.normalize(cssDir + path.sep);
if (matchResult) {

@@ -17,4 +21,9 @@ matchResult.forEach(function(match){

url = parts[1];
else
url = '/' + path.relative(root, path.resolve(cssDir, parts[1]));
else {
var newPath = path.resolve(cssDir, parts[1]);
url = path.relative(root, newPath);
if (newPath.substr(0, root.length) == root && url.charAt(0) !== '/') {
url = '/' + url;
}
}
code = code.replace(match, "url('" + url.replace(/\\/g, '/') + "')");

@@ -21,0 +30,0 @@ }

2

package.json
{
"name": "grunt-packer",
"description": "Grunt plugin to automagically concat JS and CSS files found in HTML",
"version": "0.1.12",
"version": "0.1.13",
"author": "Oleg Elifantiev <oleg@elifantiev.ru>",

@@ -6,0 +6,0 @@ "contributors": [],

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