@steedos/service-package-registry 2.1.55 → 2.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/package.service.js +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-package-registry",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.56",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "package.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@steedos/service-package-loader": "2.1.
|
|
12
|
+
"@steedos/service-package-loader": "2.1.56",
|
|
13
13
|
"fs-extra": "8.1.0",
|
|
14
14
|
"i18next": "20.3.2",
|
|
15
15
|
"json-stringify-safe": "5.0.1",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a8eed2e9927d67c38df80be1474cb6b7f5b0159c"
|
|
30
30
|
}
|
package/package.service.js
CHANGED
|
@@ -508,8 +508,7 @@ module.exports = {
|
|
|
508
508
|
// 配置主控地址
|
|
509
509
|
const consoleUrl = settings.STEEDOS_CLOUD_URL;
|
|
510
510
|
if (!consoleUrl) {
|
|
511
|
-
|
|
512
|
-
return;
|
|
511
|
+
throw new Error('请配置主控地址');
|
|
513
512
|
}
|
|
514
513
|
|
|
515
514
|
// 初始化工作区数据
|
|
@@ -518,8 +517,7 @@ module.exports = {
|
|
|
518
517
|
const apiKey = settings.STEEDOS_CLOUD_API_KEY;
|
|
519
518
|
|
|
520
519
|
if (!spaceId || !apiKey) {
|
|
521
|
-
|
|
522
|
-
return;
|
|
520
|
+
throw new Error('请配置环境变量STEEDOS_CLOUD_SPACE_ID和STEEDOS_CLOUD_API_KEY。');
|
|
523
521
|
}
|
|
524
522
|
|
|
525
523
|
const registryUrl = settings.STEEDOS_REGISTRY_URL
|
|
@@ -528,8 +526,7 @@ module.exports = {
|
|
|
528
526
|
const { info, scopes } = await this.getSafeScopes(spaceId, apiKey, consoleUrl);
|
|
529
527
|
const { adminPhone } = info;
|
|
530
528
|
if (!adminPhone) {
|
|
531
|
-
|
|
532
|
-
return;
|
|
529
|
+
throw new Error('缺少工作区信息 工作区名称、管理员姓名、管理员手机号,请检查');
|
|
533
530
|
}
|
|
534
531
|
// let scope = '';
|
|
535
532
|
// if (scopes && scopes.length > 0) {
|