@tuya-sat/micro-script 3.3.12 → 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.
package/dist/bin/cli.js
CHANGED
|
File without changes
|
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "3.3.14",
|
|
4
4
|
"bin": "./dist/bin/cli.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"dev": "rm -rf dist/ && tsc --watch",
|
|
14
14
|
"build": "rm -rf dist/ && tsc && node ./scripts/copyTemplate.js",
|
|
15
|
-
"prepublish": "yarn build"
|
|
16
|
-
"ci:publish": "NPM_TOKEN=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 npm publish"
|
|
15
|
+
"prepublish": "yarn build"
|
|
17
16
|
},
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"@babel/core": "7.17.8",
|
|
@@ -24,9 +23,9 @@
|
|
|
24
23
|
"@babel/preset-typescript": "7.16.7",
|
|
25
24
|
"@babel/traverse": "^7.20.13",
|
|
26
25
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
27
|
-
"@tuya-sat/micro-dev-loader": "
|
|
28
|
-
"@tuya-sat/micro-dev-proxy": "
|
|
29
|
-
"@tuya-sat/micro-utils": "
|
|
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",
|
|
30
29
|
"@types/kill-port": "^2.0.0",
|
|
31
30
|
"babel-loader": "8.2.4",
|
|
32
31
|
"babel-plugin-import": "1.13.3",
|
|
@@ -94,4 +93,4 @@
|
|
|
94
93
|
"cloud",
|
|
95
94
|
"tuya"
|
|
96
95
|
]
|
|
97
|
-
}
|
|
96
|
+
}
|