@cloudbase/framework-plugin-low-code 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/lib/index.js +17 -17
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -567,23 +567,6 @@ class LowCodePlugin extends framework_core_1.Plugin {
567
567
  else {
568
568
  yield this._postProcessWebsiteConfig();
569
569
  }
570
- try {
571
- let publishAppCustomNavRes = yield this.api.cloudbaseManager.commonService('lowcode', '2021-01-08').call({
572
- Action: 'PublishAppCustomNav',
573
- Param: {
574
- WeAppId: this._resolvedInputs.appId,
575
- EnvId: this.api.envId,
576
- PublishType: this._resolvedInputs.deployOptions.mode === lowcode_builder_1.DEPLOY_MODE.UPLOAD ? 'product' : 'preview',
577
- },
578
- });
579
- this.api.logger.info(`${this.api.emoji('🚀')} custom publish success: ${JSON.stringify(publishAppCustomNavRes)}`);
580
- }
581
- catch (e) {
582
- this.api.logger.error(`${this.api.emoji('🚀')} custom publish fail: ${JSON.stringify(e)}`);
583
- if ((e === null || e === void 0 ? void 0 : e.code) !== 'ResourceNotFound') {
584
- throw e;
585
- }
586
- }
587
570
  try {
588
571
  const { deployOptions, appId } = this._resolvedInputs;
589
572
  const isPreview = (deployOptions === null || deployOptions === void 0 ? void 0 : deployOptions.mode) === lowcode_builder_1.DEPLOY_MODE.PREVIEW;
@@ -610,6 +593,23 @@ class LowCodePlugin extends framework_core_1.Plugin {
610
593
  throw e;
611
594
  }
612
595
  }
596
+ try {
597
+ let publishAppCustomNavRes = yield this.api.cloudbaseManager.commonService('lowcode', '2021-01-08').call({
598
+ Action: 'PublishAppCustomNav',
599
+ Param: {
600
+ WeAppId: this._resolvedInputs.appId,
601
+ EnvId: this.api.envId,
602
+ PublishType: this._resolvedInputs.deployOptions.mode === lowcode_builder_1.DEPLOY_MODE.UPLOAD ? 'product' : 'preview',
603
+ },
604
+ });
605
+ this.api.logger.info(`${this.api.emoji('🚀')} custom publish success: ${JSON.stringify(publishAppCustomNavRes)}`);
606
+ }
607
+ catch (e) {
608
+ this.api.logger.error(`${this.api.emoji('🚀')} custom publish fail: ${JSON.stringify(e)}`);
609
+ if ((e === null || e === void 0 ? void 0 : e.code) !== 'ResourceNotFound') {
610
+ throw e;
611
+ }
612
+ }
613
613
  if (this._skipInstallExt) {
614
614
  try {
615
615
  yield this.api.cloudApi.tcbService.request('CloudBaseCIResultCallback', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/framework-plugin-low-code",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -37,12 +37,12 @@
37
37
  "url": "https://github.com/TencentCloudBase/cloudbase-framework/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@cloudbase/cals": "^0.4.10",
40
+ "@cloudbase/cals": "^0.4.11",
41
41
  "@cloudbase/framework-core": "^1.8.16",
42
42
  "@cloudbase/framework-plugin-auth": "^1.8.16",
43
43
  "@cloudbase/framework-plugin-mp": "1.9.5-beta.0",
44
44
  "@cloudbase/framework-plugin-website": "^1.8.17",
45
- "@cloudbase/lowcode-builder": "^1.1.5",
45
+ "@cloudbase/lowcode-builder": "^1.1.7",
46
46
  "@formily/react-schema-renderer": "1.1.7",
47
47
  "archiver": "^4.0.1",
48
48
  "compressing": "^1.4.0",