neo-cmp-cli 1.6.0-beta.7 → 1.6.0-beta.8
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
CHANGED
package/src/module/index.js
CHANGED
package/src/neo/neoService.js
CHANGED
|
@@ -157,7 +157,7 @@ class NeoService {
|
|
|
157
157
|
token: access_token,
|
|
158
158
|
expiresAt: Date.now() + (expiresIn - 60) * 1000
|
|
159
159
|
};
|
|
160
|
-
spinner.succeed('
|
|
160
|
+
spinner.succeed('token 获取成功。');
|
|
161
161
|
return access_token;
|
|
162
162
|
} catch (error) {
|
|
163
163
|
console.error('\n获取 token 失败:', error.message);
|
|
@@ -458,7 +458,7 @@ class NeoService {
|
|
|
458
458
|
throw new Error(`更新组件失败: ${response.data.message || '未知错误'}`);
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
spinner.
|
|
461
|
+
spinner.succeed('组件更新成功。');
|
|
462
462
|
} catch (error) {
|
|
463
463
|
spinner.fail('更新组件失败。');
|
|
464
464
|
if (error.message) {
|
|
@@ -490,7 +490,9 @@ class NeoService {
|
|
|
490
490
|
queryAllAPI += `?fields=${cmpFields.join(',')}`;
|
|
491
491
|
const response = await axios.post(
|
|
492
492
|
queryAllAPI,
|
|
493
|
-
{
|
|
493
|
+
{
|
|
494
|
+
data: {}
|
|
495
|
+
},
|
|
494
496
|
{
|
|
495
497
|
headers: {
|
|
496
498
|
Authorization: `Bearer ${token}`,
|
|
@@ -46,7 +46,7 @@ const pullCmp = async (cmpType, authConfig, _neoService) => {
|
|
|
46
46
|
neoService = new NeoService(authConfig);
|
|
47
47
|
|
|
48
48
|
// 获取自定义组件列表
|
|
49
|
-
spinner.
|
|
49
|
+
spinner.info('正在获取自定义组件列表...');
|
|
50
50
|
cmpList = await neoService.getCustomCmpList();
|
|
51
51
|
cmpInfoMap = neoService.cmpInfoMap || {};
|
|
52
52
|
}
|
|
@@ -57,7 +57,6 @@ const pullCmp = async (cmpType, authConfig, _neoService) => {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// 获取自定义组件信息
|
|
60
|
-
spinner.text(`正在查找 ${cmpType} 组件信息...`);
|
|
61
60
|
cmpInfo = neoService.getCmpInfoByCmpType(cmpType);
|
|
62
61
|
if (!cmpInfo) {
|
|
63
62
|
spinner.stopAndFail(`拉取失败,当前租户不存在${cmpType}自定义组件。`);
|