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.22 to 0.0.23

9

lib/web/sprite.js

@@ -196,2 +196,11 @@ var Sniffr = require('sniffr');

/**
* Fix for browser (IE, maybe other too) which are throwing 'WrongDocumentError'
* if you insert an element which is not part of the document
* @see http://stackoverflow.com/questions/7981100/how-do-i-dynamically-insert-an-svg-image-into-html#7986519
*/
if (document.importNode) {
svg = document.importNode(svg, true);
}
if (this.browser.name !== 'ie' && this.urlPrefix) {

@@ -198,0 +207,0 @@ baseUrlWorkAround(svg, DEFAULT_URI_PREFIX, this.urlPrefix);

2

package.json
{
"name": "svg-sprite-loader",
"version": "0.0.22",
"version": "0.0.23",
"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