@tuya-sat/micro-script 3.2.11 → 3.2.18
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.
|
@@ -86,7 +86,7 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
86
86
|
options: {
|
|
87
87
|
modules: {
|
|
88
88
|
auto: true,
|
|
89
|
-
localIdentName:
|
|
89
|
+
localIdentName: '[path][name]__[local]',
|
|
90
90
|
},
|
|
91
91
|
importLoaders: loadersBeforeCssLoader.length,
|
|
92
92
|
},
|
|
@@ -224,20 +224,7 @@ function refactorConstructApp(config, localApps) {
|
|
|
224
224
|
return localApps.map((app) => {
|
|
225
225
|
const uuid = app.manifest.universalId;
|
|
226
226
|
const appInfo = saasAppsMap[app.oem_micro_app_id] || {};
|
|
227
|
-
return {
|
|
228
|
-
ext_info: appInfo.ext_info,
|
|
229
|
-
micro_app_config: appInfo.micro_app_config,
|
|
230
|
-
lang_package_biz_id: appInfo.lang_package_biz_id,
|
|
231
|
-
active_rule: app.baseUrl,
|
|
232
|
-
micro_app_code: app.code || `${packageInfo.name}`,
|
|
233
|
-
micro_app_name: app.code ? `${app.code}-dev` : `${packageInfo.name}-dev`,
|
|
234
|
-
micro_app_version: '0.0.0-x',
|
|
235
|
-
oem_micro_app_id: app.oem_micro_app_id,
|
|
236
|
-
resource: `http://localhost:${app.port}/${app.code || 'index'}.html`,
|
|
237
|
-
universal_id: uuid,
|
|
238
|
-
isAuth: true,
|
|
239
|
-
schema: null,
|
|
240
|
-
};
|
|
227
|
+
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 });
|
|
241
228
|
});
|
|
242
229
|
});
|
|
243
230
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.18",
|
|
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.2.
|
|
27
|
-
"@tuya-sat/micro-dev-proxy": "3.2.
|
|
28
|
-
"@tuya-sat/micro-utils": "3.2.
|
|
26
|
+
"@tuya-sat/micro-dev-loader": "3.2.18",
|
|
27
|
+
"@tuya-sat/micro-dev-proxy": "3.2.18",
|
|
28
|
+
"@tuya-sat/micro-utils": "3.2.18",
|
|
29
29
|
"@types/kill-port": "^2.0.0",
|
|
30
30
|
"babel-loader": "8.2.4",
|
|
31
31
|
"babel-plugin-import": "1.13.3",
|