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 6.0.0-alpha.2 to 6.0.0-alpha.3

2

dist/index.d.ts

@@ -5,3 +5,3 @@ import { types, ConfigAPI, NodePath } from '@babel/core';

interface TemplateVariables {
componentName: types.Identifier;
componentName: string;
interfaces: types.TSInterfaceDeclaration[];

@@ -8,0 +8,0 @@ props: (types.ObjectPattern | types.Identifier)[];

@@ -93,3 +93,2 @@ 'use strict';

var _a, _b, _c;
const componentName = core.types.identifier(opts.state.componentName);
const interfaces = [];

@@ -101,3 +100,3 @@ const props = [];

importSource: (_a = opts.importSource) != null ? _a : defaultImportSource,
exportIdentifier: componentName,
exportIdentifier: core.types.identifier(opts.state.componentName),
opts,

@@ -182,3 +181,10 @@ interfaces,

}
return { componentName, props, interfaces, imports, exports, jsx };
return {
componentName: opts.state.componentName,
props,
interfaces,
imports,
exports,
jsx
};
};

@@ -185,0 +191,0 @@

{
"name": "@svgr/babel-plugin-transform-svg-component",
"description": "Transform SVG into component",
"version": "6.0.0-alpha.2",
"version": "6.0.0-alpha.3",
"main": "./dist/index.js",

@@ -33,3 +33,3 @@ "exports": "./dist/index.js",

},
"gitHead": "f729efaad6e2ec22a27972b025737f41cf661045"
"gitHead": "261e1b545cb4af74991af236306ecce502318245"
}

Sorry, the diff of this file is not supported yet

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