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

svg-use-it

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-use-it - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

readme.md

2

package.json
{
"name": "svg-use-it",
"version": "1.0.0",
"version": "1.0.1",
"description": "SVG use polyfill for IE10",

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

@@ -23,5 +23,3 @@ // anchor element as parser for URls as stated here: https://gist.github.com/jlong/2428561

var item = items[filePath];
if (!item) {
if (!items[filePath]) {
items[filePath] = {

@@ -33,2 +31,4 @@ nodes: [],

var item = items[filePath];
item.nodes.push({

@@ -159,3 +159,3 @@ element: element,

*/
function supportsExternalFragments(testNode) {
function supportsExternalFragments (testNode) {
return testNode.getBoundingClientRect().width > 0;

@@ -168,3 +168,3 @@ }

*/
module.exports = function (rootSelector, blacklist) {
function svgUseIt (rootSelector, blacklist) {
// element name to query for

@@ -189,1 +189,3 @@ var query = 'use';

}
module.exports = svgUseIt;
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