Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/pmb/node_modules_old/@svgr/core/lib/ drwxrwxrwx | |
| Viewing file: Select action/file-type: "use strict";
exports.__esModule = true;
exports.resolveConfig = resolveConfig;
exports.resolveConfigFile = resolveConfigFile;
exports.loadConfig = loadConfig;
exports.DEFAULT_CONFIG = void 0;
var _cosmiconfig = require("cosmiconfig");
const DEFAULT_CONFIG = {
dimensions: true,
expandProps: 'end',
icon: false,
native: false,
typescript: false,
prettier: true,
prettierConfig: null,
memo: false,
ref: false,
replaceAttrValues: null,
svgProps: null,
svgo: true,
svgoConfig: null,
template: null,
titleProp: false,
runtimeConfig: true,
plugins: null,
namedExport: 'ReactComponent'
};
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
const explorer = (0, _cosmiconfig.cosmiconfig)('svgr', {
sync: true,
cache: true,
rcExtensions: true
});
const explorerSync = (0, _cosmiconfig.cosmiconfigSync)('svgr', {
sync: true,
cache: true,
rcExtensions: true
});
async function resolveConfig(searchFrom, configFile) {
if (configFile == null) {
const result = await explorer.search(searchFrom);
return result ? result.config : null;
}
const result = await explorer.load(configFile);
return result ? result.config : null;
}
resolveConfig.sync = (searchFrom, configFile) => {
if (configFile == null) {
const result = explorerSync.search(searchFrom);
return result ? result.config : null;
}
const result = explorerSync.load(configFile);
return result ? result.config : null;
};
async function resolveConfigFile(filePath) {
const result = await explorer.search(filePath);
return result ? result.filepath : null;
}
resolveConfigFile.sync = filePath => {
const result = explorerSync.search(filePath);
return result ? result.filepath : null;
};
async function loadConfig({
configFile,
...baseConfig
}, state = {}) {
const rcConfig = state.filePath && baseConfig.runtimeConfig !== false ? await resolveConfig(state.filePath, configFile) : {};
return { ...DEFAULT_CONFIG,
...rcConfig,
...baseConfig
};
}
loadConfig.sync = ({
configFile,
...baseConfig
}, state = {}) => {
const rcConfig = state.filePath && baseConfig.runtimeConfig !== false ? resolveConfig.sync(state.filePath, configFile) : {};
return { ...DEFAULT_CONFIG,
...rcConfig,
...baseConfig
};
}; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0063 ]-- |