@tuya-sat/micro-script 3.3.13 → 3.3.14

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.
@@ -147,6 +147,7 @@ function mockSaasInfo(app, microPort) {
147
147
  oem_micro_app_id,
148
148
  baseUrl,
149
149
  lang,
150
+ customMicroAppHost: process.env.CUSTOM_MICRO_APP_HOST,
150
151
  port: microPort
151
152
  }
152
153
  ]);
@@ -225,7 +226,8 @@ function refactorConstructApp(config, localApps) {
225
226
  return localApps.map((app) => {
226
227
  const uuid = app.manifest.universalId;
227
228
  const appInfo = saasAppsMap[app.oem_micro_app_id] || {};
228
- return Object.assign(Object.assign({}, appInfo), { active_rule: app.baseUrl, micro_app_code: app.code || `${packageInfo.name}`, micro_app_name: app.code ? `${app.code}-dev` : `${packageInfo.name}-dev`, micro_app_version: '0.0.0-x', oem_micro_app_id: app.oem_micro_app_id, resource: `http://localhost:${app.port}/${app.code || 'index'}.html`, universal_id: uuid, isAuth: true, schema: null, ext_info: app.manifest.annotations });
229
+ const appHost = app.customMicroAppHost || `http://localhost:${app.port}`;
230
+ return Object.assign(Object.assign({}, appInfo), { active_rule: app.baseUrl, micro_app_code: app.code || `${packageInfo.name}`, micro_app_name: app.code ? `${app.code}-dev` : `${packageInfo.name}-dev`, micro_app_version: '0.0.0-x', oem_micro_app_id: app.oem_micro_app_id, resource: `${appHost}/${app.code || 'index'}.html`, universal_id: uuid, isAuth: true, schema: null, ext_info: app.manifest.annotations });
229
231
  });
230
232
  });
231
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.3.13",
3
+ "version": "3.3.14",
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.3.13",
27
- "@tuya-sat/micro-dev-proxy": "3.3.13",
28
- "@tuya-sat/micro-utils": "3.3.13",
26
+ "@tuya-sat/micro-dev-loader": "3.3.14",
27
+ "@tuya-sat/micro-dev-proxy": "3.3.14",
28
+ "@tuya-sat/micro-utils": "3.3.14",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",