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.3 to 5.0.0

18

lib/config.js

@@ -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"
}
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