New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-inline-react-svg

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-inline-react-svg - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

3

lib/index.js

@@ -42,4 +42,3 @@ Object.defineProperty(exports, "__esModule", {

var iconPath = state.file.opts.filename;
var absoluteIconPath = (0, _path.join)(__dirname, '..', iconPath);
var svgPath = (0, _path.join)((0, _path.dirname)(absoluteIconPath), path.node.source.value);
var svgPath = (0, _path.join)((0, _path.dirname)(iconPath), path.node.source.value);
var svgSource = (0, _fs.readFileSync)(svgPath, 'utf8');

@@ -46,0 +45,0 @@ var optimizedSvgSource = (0, _optimize2['default'])(svgSource);

{
"name": "babel-plugin-inline-react-svg",
"version": "0.1.1",
"version": "0.1.2",
"description": "A babel plugin that optimizes and inlines SVGs for your react components.",

@@ -5,0 +5,0 @@ "main": "lib/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