@onekeyfe/hd-transport-emulator 1.1.16-alpha.0 → 1.1.16-alpha.2
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 +1 -2
- package/package.json +4 -4
- package/src/http.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -41,7 +41,6 @@ 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;
|
|
45
44
|
function contentType(body) {
|
|
46
45
|
if (typeof body === 'string') {
|
|
47
46
|
return 'text/plain';
|
|
@@ -96,7 +95,7 @@ function request(options) {
|
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
}
|
|
99
|
-
|
|
98
|
+
axios__default["default"].interceptors.request.use((config) => {
|
|
100
99
|
var _a;
|
|
101
100
|
if (typeof window !== 'undefined') {
|
|
102
101
|
return config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-emulator",
|
|
3
|
-
"version": "1.1.16-alpha.
|
|
3
|
+
"version": "1.1.16-alpha.2",
|
|
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.16-alpha.
|
|
28
|
-
"@onekeyfe/hd-transport": "1.1.16-alpha.
|
|
27
|
+
"@onekeyfe/hd-shared": "1.1.16-alpha.2",
|
|
28
|
+
"@onekeyfe/hd-transport": "1.1.16-alpha.2",
|
|
29
29
|
"axios": "1.12.2",
|
|
30
30
|
"secure-json-parse": "^4.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "2a8f1e7ecc71dad2be8e6d8cc9489d0c0334fffc"
|
|
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
|
}
|