@svgr/core
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -35,5 +35,8 @@ 'use strict'; | ||
return "SvgComponent"; | ||
const pascalCaseFileName = camelCase__default["default"](path.parse(filePath).name.replace(VALID_CHAR_REGEX, ""), { | ||
pascalCase: true | ||
}); | ||
const pascalCaseFileName = camelCase__default["default"]( | ||
path.parse(filePath).name.replace(VALID_CHAR_REGEX, ""), | ||
{ | ||
pascalCase: true | ||
} | ||
); | ||
return `Svg${pascalCaseFileName}`; | ||
@@ -169,3 +172,5 @@ }; | ||
console.log(error); | ||
throw new Error(`Module "${moduleName}" missing. Maybe \`npm install ${moduleName}\` could help!`); | ||
throw new Error( | ||
`Module "${moduleName}" missing. Maybe \`npm install ${moduleName}\` could help!` | ||
); | ||
} | ||
@@ -172,0 +177,0 @@ }; |
{ | ||
"name": "@svgr/core", | ||
"description": "Transform SVG into React Components.", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"main": "./dist/index.js", | ||
@@ -41,5 +41,5 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@babel/core": "^7.18.5", | ||
"@svgr/babel-preset": "^6.5.0", | ||
"@svgr/plugin-jsx": "^6.5.0", | ||
"@babel/core": "^7.19.6", | ||
"@svgr/babel-preset": "^6.5.1", | ||
"@svgr/plugin-jsx": "^6.5.1", | ||
"camelcase": "^6.2.0", | ||
@@ -49,5 +49,5 @@ "cosmiconfig": "^7.0.1" | ||
"devDependencies": { | ||
"@types/svgo": "^2.6.3" | ||
"@types/svgo": "^2.6.4" | ||
}, | ||
"gitHead": "b385279d27e51d34e4684dda326aa4216a485572" | ||
"gitHead": "d5efedd372999692f84d30072e502b5a6b8fe734" | ||
} |
Sorry, the diff of this file is not supported yet
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
258
25088
Updated@babel/core@^7.19.6
Updated@svgr/babel-preset@^6.5.1
Updated@svgr/plugin-jsx@^6.5.1