@tuya-sat/micro-script 3.0.27-beta.24 → 3.0.27-beta.25

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.
@@ -145,10 +145,14 @@ function mockSaasInfo(app, microPort) {
145
145
  }
146
146
  exports.default = mockSaasInfo;
147
147
  function consturctEntry(manifest, oem_micro_app_id, entry_id, baseUrl, lang, dir) {
148
+ var _a;
148
149
  let fakeMenu;
149
150
  if (dir === 'apps/iot-suite-device') {
150
151
  fakeMenu = (0, micro_utils_1.getFakeMenu)(Object.assign(Object.assign({}, manifest), { entries: [] }), dir);
151
152
  }
153
+ else if ((_a = process.env) === null || _a === void 0 ? void 0 : _a.IS_OPEN_CODE) {
154
+ fakeMenu = (0, micro_utils_1.getFakeMenu)(Object.assign(Object.assign({}, manifest), { entries: manifest === null || manifest === void 0 ? void 0 : manifest.entries.filter((item) => item.type !== 'DynamicMenu') }), dir);
155
+ }
152
156
  else {
153
157
  fakeMenu = (0, micro_utils_1.getFakeMenu)(manifest, dir);
154
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.0.27-beta.24",
3
+ "version": "3.0.27-beta.25",
4
4
  "bin": "./dist/bin/cli.js",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
@@ -23,9 +23,9 @@
23
23
  "@babel/preset-typescript": "7.16.7",
24
24
  "@babel/traverse": "^7.20.13",
25
25
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
26
- "@tuya-sat/micro-dev-loader": "3.0.27-beta.24",
27
- "@tuya-sat/micro-dev-proxy": "3.0.27-beta.24",
28
- "@tuya-sat/micro-utils": "3.0.27-beta.24",
26
+ "@tuya-sat/micro-dev-loader": "3.0.27-beta.25",
27
+ "@tuya-sat/micro-dev-proxy": "3.0.27-beta.25",
28
+ "@tuya-sat/micro-utils": "3.0.27-beta.25",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",