@tuya-sat/micro-script 3.2.22 → 3.2.24

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.
@@ -96,6 +96,7 @@ function mockSaasInfo(app, microPort) {
96
96
  idsMap.set(app.name, { entry_id: (0, uuid_1.v4)(), oem_micro_app_id: (0, uid_1.uid)(16) });
97
97
  });
98
98
  return app.get('/api/saas-info', (req, res) => __awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b;
99
100
  const lang = parseCookie(req.headers['cookie'], 'main-i18next');
100
101
  if ((0, utils_1.isMonorepo)() || (multiApps && multiApps.length > 0)) {
101
102
  const result = {
@@ -137,8 +138,8 @@ function mockSaasInfo(app, microPort) {
137
138
  const saasApps = yield refactorConstructApp({
138
139
  url: target,
139
140
  headers: {
140
- cookie: expressApp.__appProxy__.getCookie(''),
141
- csrf: expressApp.__appProxy__.csrfValue.value,
141
+ cookie: (_a = expressApp.__appProxy__) === null || _a === void 0 ? void 0 : _a.getCookie(''),
142
+ csrf: (_b = expressApp.__appProxy__) === null || _b === void 0 ? void 0 : _b.csrfValue.value,
142
143
  }
143
144
  }, [
144
145
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.2.22",
3
+ "version": "3.2.24",
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.22",
27
- "@tuya-sat/micro-dev-proxy": "3.2.22",
28
- "@tuya-sat/micro-utils": "3.2.22",
26
+ "@tuya-sat/micro-dev-loader": "3.2.24",
27
+ "@tuya-sat/micro-dev-proxy": "3.2.24",
28
+ "@tuya-sat/micro-utils": "3.2.24",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",