Socket
Socket
Sign inDemoInstall

@svgr/babel-plugin-svg-em-dimensions

Package Overview
Dependencies
53
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.5.0 to 6.5.1

14

dist/index.js

@@ -21,3 +21,5 @@ 'use strict';

JSXOpeningElement(path) {
if (!elements.some((element) => path.get("name").isJSXIdentifier({ name: element })))
if (!elements.some(
(element) => path.get("name").isJSXIdentifier({ name: element })
))
return;

@@ -42,3 +44,11 @@ const values = {

});
path.pushContainer("attributes", requiredAttributes.map((attr) => core.types.jsxAttribute(core.types.jsxIdentifier(attr), values[attr])));
path.pushContainer(
"attributes",
requiredAttributes.map(
(attr) => core.types.jsxAttribute(
core.types.jsxIdentifier(attr),
values[attr]
)
)
);
}

@@ -45,0 +55,0 @@ }

4

package.json
{
"name": "@svgr/babel-plugin-svg-em-dimensions",
"description": "Transform SVG to use em-based dimensions",
"version": "6.5.0",
"version": "6.5.1",
"main": "./dist/index.js",

@@ -39,3 +39,3 @@ "types": "./dist/index.d.ts",

},
"gitHead": "b385279d27e51d34e4684dda326aa4216a485572"
"gitHead": "d5efedd372999692f84d30072e502b5a6b8fe734"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc