@tatumio/shared-core
Advanced tools
Comparing version 2.1.8 to 2.1.10
{ | ||
"name": "@tatumio/shared-core", | ||
"version": "2.1.8", | ||
"version": "2.1.10", | ||
"license": "MIT", | ||
@@ -8,3 +8,3 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"@tatumio/api-client": "2.1.8", | ||
"@tatumio/api-client": "2.1.10", | ||
"axios": "^0.26.0", | ||
@@ -11,0 +11,0 @@ "form-data": "^4.0.0", |
@@ -0,5 +1,6 @@ | ||
import { AxiosRequestConfig } from 'axios'; | ||
import { Blockchain, EvmBasedBlockchain } from './models/Blockchain'; | ||
export declare const httpHelper: { | ||
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: import("axios").AxiosRequestConfig<D>) => Promise<R>; | ||
post: <T_1 = any, R_1 = import("axios").AxiosResponse<T_1, any>, D_1 = any>(url: string, data?: D_1, config?: import("axios").AxiosRequestConfig<D_1>) => Promise<R_1>; | ||
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: AxiosRequestConfig<D>) => Promise<R>; | ||
post: <T_1 = any, R_1 = import("axios").AxiosResponse<T_1, any>, D_1 = any>(url: string, data?: D_1, config?: AxiosRequestConfig<D_1>) => Promise<R_1>; | ||
axios: import("axios").AxiosInstance; | ||
@@ -6,0 +7,0 @@ CancelToken: import("axios").CancelTokenStatic; |
@@ -33,7 +33,9 @@ "use strict"; | ||
}; | ||
const isWebWorker = typeof self === 'object' && self.constructor && self.constructor.name === 'DedicatedWorkerGlobalScope'; | ||
const isWebWorker = typeof self === 'object' && | ||
self.constructor && | ||
['DedicatedWorkerGlobalScope', 'ServiceWorkerGlobalScope'].includes(self.constructor.name); | ||
exports.httpHelper = { | ||
get: axios_1.default.get, | ||
post: axios_1.default.post, | ||
axios: axios_1.default.create({ adapter: isWebWorker ? api_client_1.fetchAdapter : undefined }), | ||
axios: axios_1.default.create(), | ||
CancelToken: axios_1.default.CancelToken, | ||
@@ -40,0 +42,0 @@ web3Endpoint: (blockchain, url, apiKey) => { |
Sorry, the diff of this file is not supported yet
608
40017
+ Added@tatumio/api-client@2.1.10(transitive)
- Removed@tatumio/api-client@2.1.8(transitive)
Updated@tatumio/api-client@2.1.10