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

svg-sprite-loader

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-sprite-loader - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

19

lib/processings/prefixize.js

@@ -34,4 +34,21 @@ /**

var $elem = $(this);
var isStyleTag = $elem[0].name === 'style';
var attrs = $elem.attr();
if (isStyleTag) {
var content = $elem.text();
var id;
var match;
while ((match = urlPattern.exec(content)) !== null) {
id = match[1];
if (!!mappedIds[id]) {
mappedIds[id].referenced = true;
content = content.replace(match[0], 'url(#' + mappedIds[id].id + ')');
}
}
id && $elem.text(content);
}
Object.keys(attrs).forEach(function (key) {

@@ -60,2 +77,2 @@ var value = attrs[key];

});
};
};

2

package.json
{
"name": "svg-sprite-loader",
"version": "0.0.30",
"version": "0.0.31",
"description": "SVG sprite webpack loader",

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

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