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 2.0.0-alpha.1 to 2.0.0-alpha.2

examples/assets/twitter.svg

5

package.json
{
"name": "svg-sprite-loader",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "SVG sprite loader for Webpack",

@@ -8,4 +8,5 @@ "homepage": "https://github.com/kisenka/webpack-svg-sprite-loader#readme",

"files": [
"examples/**",
"lib/**",
"runtime/**",
"runtime/*.js",
"plugin.js",

@@ -12,0 +13,0 @@ "README.md",

8

runtime/browser-sprite.build.js

@@ -541,9 +541,5 @@ (function (global, factory) {

if (document.body) {
document.addEventListener('DOMContentLoaded', function() {
sprite.mount(document.body, true);
} else {
document.addEventListener('DOMContentLoaded', function () {
sprite.mount(document.body, true);
}, false);
}
}, false);

@@ -550,0 +546,0 @@ return sprite;

import BrowserSprite from 'svg-baker-runtime/src/browser-sprite';
const sprite = new BrowserSprite();
var sprite = new BrowserSprite();
if (document.body) {
document.addEventListener('DOMContentLoaded', function() {
sprite.mount(document.body, true);
} else {
document.addEventListener('DOMContentLoaded', () => {
sprite.mount(document.body, true);
}, false);
}
}, false);
export default sprite;
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