mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 09:26:24 +00:00
Update packages.js
This commit is contained in:
parent
801ef83b38
commit
b81f8dc169
@ -8,10 +8,14 @@ const _ = require('lodash');
|
||||
const login = require('./login');
|
||||
|
||||
function registryUrl(scope) {
|
||||
const result = login.getYarnrcScopes();
|
||||
const url = result[`${scope}:registry`];
|
||||
if (url) {
|
||||
return url.slice(-1) === '/' ? url : `${url}/`;
|
||||
try {
|
||||
const result = login.getYarnrcScopes();
|
||||
const url = result[`${scope}:registry`];
|
||||
if (url) {
|
||||
return url.slice(-1) === '/' ? url : `${url}/`;
|
||||
}
|
||||
} catch (Exception) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user