@onekeyfe/hd-transport-http 0.3.8 → 0.3.10

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/index.js CHANGED
@@ -96,7 +96,7 @@ axios__default["default"].interceptors.request.use(config => {
96
96
  if ((_a = config.url) === null || _a === void 0 ? void 0 : _a.startsWith('http://localhost:21320')) {
97
97
  if (!((_b = config === null || config === void 0 ? void 0 : config.headers) === null || _b === void 0 ? void 0 : _b.Origin)) {
98
98
  console.log('set node request origin');
99
- config.headers = Object.assign(Object.assign({}, config.headers), { Origin: 'https://jssdk.onekeycn.com' });
99
+ config.headers = Object.assign(Object.assign({}, config.headers), { Origin: 'https://jssdk.onekey.so' });
100
100
  }
101
101
  }
102
102
  return config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-http",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "hardware http transport",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -25,9 +25,9 @@
25
25
  "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@onekeyfe/hd-shared": "^0.3.8",
29
- "@onekeyfe/hd-transport": "^0.3.8",
28
+ "@onekeyfe/hd-shared": "^0.3.10",
29
+ "@onekeyfe/hd-transport": "^0.3.10",
30
30
  "axios": "^0.27.2"
31
31
  },
32
- "gitHead": "ceb0ccd989c481d1343771cc38159ede866629a0"
32
+ "gitHead": "c92353e115d6b8b16dbe1e9468b913a4a2cf807e"
33
33
  }
package/src/http.ts CHANGED
@@ -76,7 +76,7 @@ axios.interceptors.request.use(config => {
76
76
  // add Origin field for request headers
77
77
  config.headers = {
78
78
  ...config.headers,
79
- Origin: 'https://jssdk.onekeycn.com',
79
+ Origin: 'https://jssdk.onekey.so',
80
80
  };
81
81
  }
82
82
  }