@tuya-sat/micro-script 3.0.27-beta.26 → 3.0.27-beta.28

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.
@@ -45,7 +45,7 @@ const fs = __importStar(require("fs-extra"));
45
45
  const path = __importStar(require("path"));
46
46
  function parse_SDF(html) {
47
47
  var _a;
48
- const REGEX = /(?<=window._SDF=).*?}(?=;)/;
48
+ const REGEX = /(?<=window._SDF=).*?}(?=(;|<\/script>))/;
49
49
  return ((_a = REGEX.exec(html)) === null || _a === void 0 ? void 0 : _a[0]) || '';
50
50
  }
51
51
  function staticMain(app, debuggerConfig, microPort) {
@@ -126,9 +126,10 @@ function insertScript($, debuggerConfig) {
126
126
  $('head').prepend('<link rel="icon" />');
127
127
  $favicon = $('link[rel="icon"]');
128
128
  }
129
- const favicon = (saasInfo === null || saasInfo === void 0 ? void 0 : saasInfo.favicon) ? saasInfo.favicon : 'https://images.tuyacn.com/rms-static/ae9ba1b0-41d4-11ec-89bb-d7b7de210e4b-1636514225995.png?tyName=favicon.png';
130
- $favicon
131
- .attr('href', favicon);
129
+ const favicon = (saasInfo === null || saasInfo === void 0 ? void 0 : saasInfo.favicon)
130
+ ? saasInfo.favicon
131
+ : 'https://images.tuyacn.com/rms-static/ae9ba1b0-41d4-11ec-89bb-d7b7de210e4b-1636514225995.png?tyName=favicon.png';
132
+ $favicon.attr('href', favicon);
132
133
  }
133
134
  // 本地开发态多语言剥离多语言平台,走本地多语言兜底逻辑
134
135
  delete _SDF.saas.saas_locales;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.0.27-beta.26",
3
+ "version": "3.0.27-beta.28",
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.0.27-beta.26",
27
- "@tuya-sat/micro-dev-proxy": "3.0.27-beta.26",
28
- "@tuya-sat/micro-utils": "3.0.27-beta.26",
26
+ "@tuya-sat/micro-dev-loader": "3.0.27-beta.28",
27
+ "@tuya-sat/micro-dev-proxy": "3.0.27-beta.28",
28
+ "@tuya-sat/micro-utils": "3.0.27-beta.28",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",