@tuya-sat/micro-script 3.2.7 → 3.2.8
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.
|
@@ -114,11 +114,10 @@ function insertScript($, debuggerConfig) {
|
|
|
114
114
|
return item.config_key === 'dynamic_theme';
|
|
115
115
|
}) || initalCustom_configs(saas);
|
|
116
116
|
const theme = (0, webpack_common_1.validateMicroTheme)();
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
supportedTheme
|
|
120
|
-
|
|
121
|
-
: {})), readThemeConfig()));
|
|
117
|
+
const configJson = JSON.parse(themeConfig.config_value_json);
|
|
118
|
+
themeConfig.config_value_json = JSON.stringify(Object.assign(Object.assign(Object.assign({}, configJson), { supportedTheme: configJson.supportedTheme === 'all'
|
|
119
|
+
? configJson.supportedTheme
|
|
120
|
+
: theme }), readThemeConfig()));
|
|
122
121
|
overrideNotification(saas);
|
|
123
122
|
if (fs.existsSync(path.join(process.cwd(), 'saas-info.config.json'))) {
|
|
124
123
|
const saasInfo = fs.readJSONSync(path.join(process.cwd(), 'saas-info.config.json'));
|
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.8",
|
|
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.8",
|
|
27
|
+
"@tuya-sat/micro-dev-proxy": "3.2.8",
|
|
28
|
+
"@tuya-sat/micro-utils": "3.2.8",
|
|
29
29
|
"@types/kill-port": "^2.0.0",
|
|
30
30
|
"babel-loader": "8.2.4",
|
|
31
31
|
"babel-plugin-import": "1.13.3",
|