@svgr/core
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -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 @@ |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18759
173
Updated@svgr/plugin-jsx@^4.3.3