Socket
Socket
Sign inDemoInstall

@svgr/core

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svgr/core - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

16

CHANGELOG.md

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

# [3.1.0](https://github.com/smooth-code/svgr/compare/v3.0.0...v3.1.0) (2018-10-05)
### Bug Fixes
* style & custom SVG properties ([#203](https://github.com/smooth-code/svgr/issues/203)) ([f8b2212](https://github.com/smooth-code/svgr/commit/f8b2212)), closes [#199](https://github.com/smooth-code/svgr/issues/199) [#201](https://github.com/smooth-code/svgr/issues/201)
### Features
* allow Mask & Image on React Native ([#202](https://github.com/smooth-code/svgr/issues/202)) ([0256bc0](https://github.com/smooth-code/svgr/commit/0256bc0))
<a name="3.0.0"></a>

@@ -8,0 +24,0 @@ # [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)

10

lib/h2x/titleProp.js

@@ -15,3 +15,3 @@ "use strict";

if (value.name !== 'title') return accumulation;
if (value.children.some(e => e.text === '{title}')) return accumulation;
if (value.children.some(e => e.text === 'title')) return accumulation;
return true;

@@ -28,3 +28,3 @@ }, false);

if (element.name !== 'title') return true;
if (element.children.some(e => e.text === '{title}')) return true;
if (element.children.some(e => e.text === 'title')) return true;
return false;

@@ -36,6 +36,6 @@ });

const element = new _h2xPluginJsx.JSXElement();
const text = new _h2xPluginJsx.JSXText();
text.text = '{title}';
const interpolation = new _h2xPluginJsx.JSXInterpolation();
interpolation.value = 'title';
element.name = 'title';
element.children.push(text);
element.children.push(interpolation);
path.node.children.unshift(element);

@@ -42,0 +42,0 @@ }

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

defs: 'Defs',
stop: 'Stop'
stop: 'Stop',
mask: 'Mask',
image: 'Image'
};

@@ -31,0 +33,0 @@ const componentToElement = Object.keys(elementToComponent).reduce((map, key) => _extends({}, map, {

{
"name": "@svgr/core",
"description": "Transform SVG into React Components.",
"version": "3.0.0",
"version": "3.1.0",
"main": "lib/index.js",

@@ -27,4 +27,4 @@ "repository": "git@github.com:smooth-code/svgr.git",

"cosmiconfig": "^5.0.6",
"h2x-core": "^1.1.0",
"h2x-plugin-jsx": "^1.1.0",
"h2x-core": "^1.1.1",
"h2x-plugin-jsx": "^1.2.0",
"merge-deep": "^3.0.2",

@@ -34,3 +34,3 @@ "prettier": "^1.14.3",

},
"gitHead": "a4e63f058e8e0e19b1802cef0015d97723721a3d"
"gitHead": "62c78151dcd9c0b73196f6d3f859e96c5a25c9a4"
}
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