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

@svgr/babel-plugin-transform-svg-component

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svgr/babel-plugin-transform-svg-component - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [4.2.0](https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component/compare/v4.1.0...v4.2.0) (2019-04-11)
### Features
* add expo option ([#289](https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component/issues/289)) ([978db3e](https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component/commit/978db3e))
# [4.1.0](https://github.com/smooth-code/svgr/compare/v4.0.4...v4.1.0) (2018-11-24)

@@ -8,0 +19,0 @@

6

lib/util.js

@@ -42,3 +42,7 @@ "use strict";

if (opts.native) {
importDeclarations.push(t.importDeclaration([t.importDefaultSpecifier(t.identifier('Svg'))], t.stringLiteral('react-native-svg')));
if (opts.native.expo) {
importDeclarations.push(t.importDeclaration([], t.stringLiteral('expo')));
} else {
importDeclarations.push(t.importDeclaration([t.importDefaultSpecifier(t.identifier('Svg'))], t.stringLiteral('react-native-svg')));
}
}

@@ -45,0 +49,0 @@

6

package.json
{
"name": "@svgr/babel-plugin-transform-svg-component",
"description": "Transform SVG into component",
"version": "4.1.0",
"version": "4.2.0",
"main": "lib/index.js",
"repository": "git@github.com:smooth-code/svgr.git",
"repository": "https://github.com/smooth-code/svgr/tree/master/packages/babel-plugin-transform-svg-component",
"author": "Greg Bergé <berge.greg@gmail.com>",

@@ -23,3 +23,3 @@ "publishConfig": {

},
"gitHead": "36a43e2d45469d6ff9aae6d4de004487fc649f03"
"gitHead": "35d3f4d446e5402902ee922a3f9984000bb74920"
}
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