@svgr/core
Advanced tools
Comparing version 4.3.3 to 5.0.0
@@ -9,6 +9,4 @@ "use strict"; | ||
var _cosmiconfig = _interopRequireDefault(require("cosmiconfig")); | ||
var _cosmiconfig = require("cosmiconfig"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
@@ -26,2 +24,3 @@ | ||
prettierConfig: null, | ||
memo: false, | ||
ref: false, | ||
@@ -38,3 +37,3 @@ replaceAttrValues: null, | ||
exports.DEFAULT_CONFIG = DEFAULT_CONFIG; | ||
const explorer = (0, _cosmiconfig.default)('svgr', { | ||
const explorer = (0, _cosmiconfig.cosmiconfig)('svgr', { | ||
sync: true, | ||
@@ -44,2 +43,7 @@ cache: true, | ||
}); | ||
const explorerSync = (0, _cosmiconfig.cosmiconfigSync)('svgr', { | ||
sync: true, | ||
cache: true, | ||
rcExtensions: true | ||
}); | ||
@@ -58,7 +62,7 @@ async function resolveConfig(searchFrom, configFile) { | ||
if (configFile == null) { | ||
const result = explorer.searchSync(searchFrom); | ||
const result = explorerSync.search(searchFrom); | ||
return result ? result.config : null; | ||
} | ||
const result = explorer.loadSync(configFile); | ||
const result = explorerSync.load(configFile); | ||
return result ? result.config : null; | ||
@@ -73,3 +77,3 @@ }; | ||
resolveConfigFile.sync = filePath => { | ||
const result = explorer.searchSync(filePath); | ||
const result = explorerSync.search(filePath); | ||
return result ? result.filepath : null; | ||
@@ -76,0 +80,0 @@ }; |
{ | ||
"name": "@svgr/core", | ||
"description": "Transform SVG into React Components.", | ||
"version": "4.3.3", | ||
"version": "5.0.0", | ||
"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.3", | ||
"@svgr/plugin-jsx": "^5.0.0", | ||
"camelcase": "^5.3.1", | ||
"cosmiconfig": "^5.2.1" | ||
"cosmiconfig": "^6.0.0" | ||
}, | ||
"gitHead": "14a26644e7bda24c2ff97524f3d8841801a6442f" | ||
"gitHead": "cfc0fc2786024820ea476739eda6cca342cf4230" | ||
} |
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
18776
178
+ Added@svgr/babel-plugin-add-jsx-attribute@5.4.0(transitive)
+ Added@svgr/babel-plugin-remove-jsx-attribute@5.4.0(transitive)
+ Added@svgr/babel-plugin-remove-jsx-empty-expression@5.0.1(transitive)
+ Added@svgr/babel-plugin-replace-jsx-attribute-value@5.0.1(transitive)
+ Added@svgr/babel-plugin-svg-dynamic-title@5.4.0(transitive)
+ Added@svgr/babel-plugin-svg-em-dimensions@5.4.0(transitive)
+ Added@svgr/babel-plugin-transform-react-native-svg@5.4.0(transitive)
+ Added@svgr/babel-plugin-transform-svg-component@5.5.0(transitive)
+ Added@svgr/babel-preset@5.5.0(transitive)
+ Added@svgr/hast-util-to-babel-ast@5.5.0(transitive)
+ Added@svgr/plugin-jsx@5.5.0(transitive)
+ Added@types/parse-json@4.0.2(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedcosmiconfig@6.0.0(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedyaml@1.10.2(transitive)
- Removed@svgr/babel-plugin-add-jsx-attribute@4.2.0(transitive)
- Removed@svgr/babel-plugin-remove-jsx-attribute@4.2.0(transitive)
- Removed@svgr/babel-plugin-remove-jsx-empty-expression@4.2.0(transitive)
- Removed@svgr/babel-plugin-replace-jsx-attribute-value@4.2.0(transitive)
- Removed@svgr/babel-plugin-svg-dynamic-title@4.3.3(transitive)
- Removed@svgr/babel-plugin-svg-em-dimensions@4.2.0(transitive)
- Removed@svgr/babel-plugin-transform-react-native-svg@4.2.0(transitive)
- Removed@svgr/babel-plugin-transform-svg-component@4.2.0(transitive)
- Removed@svgr/babel-preset@4.3.3(transitive)
- Removed@svgr/hast-util-to-babel-ast@4.3.2(transitive)
- Removed@svgr/plugin-jsx@4.3.3(transitive)
- Removedargparse@1.0.10(transitive)
- Removedcaller-callsite@2.0.0(transitive)
- Removedcaller-path@2.0.0(transitive)
- Removedcallsites@2.0.0(transitive)
- Removedcosmiconfig@5.2.1(transitive)
- Removedesprima@4.0.1(transitive)
- Removedimport-fresh@2.0.0(transitive)
- Removedis-directory@0.3.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjson-parse-better-errors@1.0.2(transitive)
- Removedparse-json@4.0.0(transitive)
- Removedresolve-from@3.0.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
Updated@svgr/plugin-jsx@^5.0.0
Updatedcosmiconfig@^6.0.0