@onekeyfe/hd-transport-emulator 1.1.15-alpha.0 → 1.1.16-alpha.0
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 +2 -1
- package/package.json +4 -4
- package/src/http.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
41
41
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
var _a;
|
|
44
45
|
function contentType(body) {
|
|
45
46
|
if (typeof body === 'string') {
|
|
46
47
|
return 'text/plain';
|
|
@@ -95,7 +96,7 @@ function request(options) {
|
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
|
-
axios__default["default"].interceptors.request.use((config) => {
|
|
99
|
+
(_a = axios__default["default"] === null || axios__default["default"] === void 0 ? void 0 : axios__default["default"].interceptors) === null || _a === void 0 ? void 0 : _a.request.use((config) => {
|
|
99
100
|
var _a;
|
|
100
101
|
if (typeof window !== 'undefined') {
|
|
101
102
|
return config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-emulator",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16-alpha.0",
|
|
4
4
|
"description": "hardware emulator transport",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@onekeyfe/hd-shared": "1.1.
|
|
28
|
-
"@onekeyfe/hd-transport": "1.1.
|
|
27
|
+
"@onekeyfe/hd-shared": "1.1.16-alpha.0",
|
|
28
|
+
"@onekeyfe/hd-transport": "1.1.16-alpha.0",
|
|
29
29
|
"axios": "1.12.2",
|
|
30
30
|
"secure-json-parse": "^4.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "5176cda0516c2c6112cb8e70ba5e7d6d7a8ebfdd"
|
|
33
33
|
}
|
package/src/http.ts
CHANGED
|
@@ -66,7 +66,7 @@ export async function request(options: HttpRequestOptions) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
axios
|
|
69
|
+
axios?.interceptors?.request.use((config: InternalAxiosRequestConfig) => {
|
|
70
70
|
if (typeof window !== 'undefined') {
|
|
71
71
|
return config;
|
|
72
72
|
}
|