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

babel-plugin-inline-react-svg

Package Overview
Dependencies
Maintainers
7
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 2.0.0 to 2.0.1

4

lib/index.js

@@ -111,3 +111,5 @@ "use strict";

var rawSource = (0, _fs.readFileSync)(svgPath, 'utf8');
var optimizedSource = state.opts.svgo === false ? rawSource : (0, _optimize["default"])(rawSource, state.opts.svgo);
var optimizedSource = state.opts.svgo === false ? {
data: rawSource
} : (0, _optimize["default"])(rawSource, state.opts.svgo);
var escapeSvgSource = (0, _escapeBraces["default"])(optimizedSource);

@@ -114,0 +116,0 @@ var parsedSvgAst = (0, _parser.parse)(escapeSvgSource.data, {

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

@@ -53,3 +53,3 @@ "main": "lib/index.js",

"resolve": "^1.20.0",
"svgo": "^2.0.0"
"svgo": "^2.0.3"
},

@@ -56,0 +56,0 @@ "engines": {

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