@tuya-sat/micro-script 3.3.5 → 3.3.7
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.
|
@@ -225,7 +225,7 @@ function refactorConstructApp(config, localApps) {
|
|
|
225
225
|
return localApps.map((app) => {
|
|
226
226
|
const uuid = app.manifest.universalId;
|
|
227
227
|
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 });
|
|
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
229
|
});
|
|
230
230
|
});
|
|
231
231
|
}
|
|
@@ -60,6 +60,10 @@ function staticMain(app, debuggerConfig, microPort) {
|
|
|
60
60
|
'/apps/:appId/*',
|
|
61
61
|
'/application',
|
|
62
62
|
'/application/*',
|
|
63
|
+
'/forgot',
|
|
64
|
+
'/register',
|
|
65
|
+
'/403',
|
|
66
|
+
'/404'
|
|
63
67
|
], (req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
64
68
|
if (!debuggerConfig.isMainApp && app._isLogin) {
|
|
65
69
|
yield app._isLogin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
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.
|
|
27
|
-
"@tuya-sat/micro-dev-proxy": "3.3.
|
|
28
|
-
"@tuya-sat/micro-utils": "3.3.
|
|
26
|
+
"@tuya-sat/micro-dev-loader": "3.3.7",
|
|
27
|
+
"@tuya-sat/micro-dev-proxy": "3.3.7",
|
|
28
|
+
"@tuya-sat/micro-utils": "3.3.7",
|
|
29
29
|
"@types/kill-port": "^2.0.0",
|
|
30
30
|
"babel-loader": "8.2.4",
|
|
31
31
|
"babel-plugin-import": "1.13.3",
|