@tuya-sat/micro-dev-proxy 3.0.27-beta.2 → 3.0.27-beta.20

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/appProxy.js CHANGED
@@ -112,7 +112,6 @@ class AppProxy {
112
112
  }).then(({ body }) => {
113
113
  body.text().then((data) => {
114
114
  SDF = JSON.parse(parse_SDF(data));
115
- console.log(SDF);
116
115
  });
117
116
  });
118
117
  })
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ function awaiting() {
31
31
  exports.awaiting = awaiting;
32
32
  function createProxy(_a) {
33
33
  var { additionHeaders = {} } = _a, restPrevConfig = __rest(_a, ["additionHeaders"]);
34
- const config = Object.assign({ additionHeaders: Object.assign({ terminalId: os_1.default.hostname() }, additionHeaders), isMainApp: restPrevConfig.isMainApp, loginApi: '/api/login', needProxyApi: ['/api', '/open-api', '/custom-api'], logSign: false, csrf: true }, restPrevConfig);
34
+ const config = Object.assign({ additionHeaders: Object.assign({ terminalId: os_1.default.hostname() + Date.now() }, additionHeaders), isMainApp: restPrevConfig.isMainApp, loginApi: '/api/login', needProxyApi: ['/api', '/open-api', '/custom-api'], logSign: false, csrf: true }, restPrevConfig);
35
35
  const { needProxyApi } = config, appProxyConfig = __rest(config, ["needProxyApi"]);
36
36
  const appProxy = new appProxy_1.default(appProxyConfig);
37
37
  return function middleware(app) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-dev-proxy",
3
- "version": "3.0.27-beta.2",
3
+ "version": "3.0.27-beta.20",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {