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 4.3.2 to 4.3.3

12

CHANGELOG.md

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

## [4.3.3](https://github.com/smooth-code/svgr/tree/master/packages/core/compare/v4.3.2...v4.3.3) (2019-09-24)
### Bug Fixes
* **babel-plugin-svg-dynamic-title:** dont render empty title ([#341](https://github.com/smooth-code/svgr/tree/master/packages/core/issues/341)) ([88b24c5](https://github.com/smooth-code/svgr/tree/master/packages/core/commit/88b24c5)), closes [#333](https://github.com/smooth-code/svgr/tree/master/packages/core/issues/333)
* invalid characters in component name ([#332](https://github.com/smooth-code/svgr/tree/master/packages/core/issues/332)) ([4b4bd2c](https://github.com/smooth-code/svgr/tree/master/packages/core/commit/4b4bd2c)), closes [#331](https://github.com/smooth-code/svgr/tree/master/packages/core/issues/331)
## [4.3.2](https://github.com/smooth-code/svgr/tree/master/packages/core/compare/v4.3.1...v4.3.2) (2019-07-15)

@@ -8,0 +20,0 @@

4

lib/state.js

@@ -14,5 +14,7 @@ "use strict";

const validCharacters = /[^a-zA-Z0-9_-]/g;
function getComponentName(state) {
if (!state.filePath) return 'SvgComponent';
const pascalCaseFileName = (0, _camelcase.default)(_path.default.parse(state.filePath).name, {
const pascalCaseFileName = (0, _camelcase.default)(_path.default.parse(state.filePath).name.replace(validCharacters, ''), {
pascalCase: true

@@ -19,0 +21,0 @@ });

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

@@ -28,7 +28,7 @@ "repository": "https://github.com/smooth-code/svgr/tree/master/packages/core",

"dependencies": {
"@svgr/plugin-jsx": "^4.3.2",
"@svgr/plugin-jsx": "^4.3.3",
"camelcase": "^5.3.1",
"cosmiconfig": "^5.2.1"
},
"gitHead": "85446119414d768be3ab660ed4a20930a59f8eb5"
"gitHead": "14a26644e7bda24c2ff97524f3d8841801a6442f"
}
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