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

elastic-svg

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-svg - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

10

index.js

@@ -1,2 +0,2 @@

// v0.1.1
// v0.1.2

@@ -15,12 +15,10 @@ export default function elasticSVG(selector, opts) {

} else {
var parent = document.querySelectorAll(selector || "body");
var parent = document.querySelector(selector || "body");
}
if (!parent || !parent.length) {
console.log("Couldn't find a parent for elasticSVG making the selector '" + selector + "'");
if (!parent) {
console.log("Couldn't find a parent for elasticSVG using the selector '" + selector + "'");
return;
}
parent = parent[0];
let initialWidth = parent.clientWidth;

@@ -27,0 +25,0 @@

2

package.json
{
"name": "elastic-svg",
"version": "0.1.1",
"version": "0.1.2",
"description": "Responsive SVGs with no dependencies",

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

# Elastic SVG elements
=======
v0.1.1
v0.1.2

@@ -6,0 +6,0 @@ Scalable Vector Graphics are one of the Web's most triumphant technologies, but they're not as responsive as they might be. This is a very lightweight, dependency-free library that generates `svg` elements that fit to their container and scale <em>or don't scale</em> as desired.

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