frontend/.pnpm-store/v3/files/16/4f4a110b99d7ee3e3e05b8d9309e0f99a76463e92790366b121d12a6c8d3f804a3882e1c9472b2f255ec10e158ab8f7a819733679d6227988bf0fdd799c66f

13 lines
398 B
Plaintext

'use strict';
const rc = require('rc');
const registryUrl = scope => {
const result = rc('npm', {registry: 'https://registry.npmjs.org/'});
const url = result[`${scope}:registry`] || result.config_registry || result.registry;
return url.slice(-1) === '/' ? url : `${url}/`;
};
module.exports = registryUrl;
// TODO: Remove this for the next major release
module.exports.default = registryUrl;