@tuya-sat/sdf-main-sdk 6.0.10 → 6.0.12

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main.css": "auto/main.css",
3
3
  "main.js": "auto/main.bundle.js",
4
- "364.29927fb1.chunk.js": "auto/364.29927fb1.chunk.js",
4
+ "364.7b222d6f.chunk.js": "auto/364.7b222d6f.chunk.js",
5
5
  "static/img/login3.png": "auto/static/img/dd06d35d98047203e715.png",
6
6
  "static/img/reLogin.png": "auto/static/img/294142da390c5af23324.png",
7
7
  "static/img/login2.png": "auto/static/img/47a523d0027c7b5af83f.png",
@@ -23,5 +23,5 @@
23
23
  "static/img/tuya.png": "auto/static/img/328d8b5c342b13933c5c.png",
24
24
  "main.css.map": "auto/main.css.map",
25
25
  "main.bundle.js.map": "auto/main.bundle.js.map",
26
- "364.29927fb1.chunk.js.map": "auto/364.29927fb1.chunk.js.map"
26
+ "364.7b222d6f.chunk.js.map": "auto/364.7b222d6f.chunk.js.map"
27
27
  }
@@ -6,6 +6,8 @@
6
6
  * - 已登录:补 uid
7
7
  * - 存在 window.csrf 且未带 csrf-token:补 csrf-token
8
8
  * - isOpenCode:补 skip-sdf-check-token
9
+ * - 智能家居且请求 URL 为 home-space 路径并带 query home_id:先强制 project-id=home_id、isolation-type=homeId(与权限/ext-info 一致)
10
+ * - 智能家居、当前为 projectId 维、且地址栏或 Referer 中 project_id 与 SMART_HOME_ID 不一致:以 URL 纠正本请求 Project-Id 并回写 localStorage(修复子应用内换项目未调 switch 导致的陈旧 id)
9
11
  * - 非主应用请求、未带 project-id、且当前微应用要求项目/家庭:补 project-id(智能家居用 getHomeId,B 端用 getProjectId);智能家居同时补 isolation-type(projectId | homeId)
10
12
  * - 最后调用 gMainConfig.hooks.httpHook.before(req) 供壳子扩展
11
13
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/sdf-main-sdk",
3
- "version": "6.0.10",
3
+ "version": "6.0.12",
4
4
  "main": "./dist/main.bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",