@toruslabs/torus.js
Advanced tools
Comparing version 7.1.0 to 7.2.0
@@ -187,2 +187,5 @@ /******/ (() => { // webpackBootstrap | ||
} | ||
function logTracingHeader(response) { | ||
log.info(`Request tracing with traceID=${response.headers.get("x-web3-correlation-id")}`); | ||
} | ||
const promiseTimeout = (ms, promise) => { | ||
@@ -246,2 +249,5 @@ const timeout = new Promise((resolve, reject) => { | ||
return promiseTimeout(customOptions.timeout || 60000, fetchAndTrace(url, options).then(response => { | ||
if (customOptions.logTracingHeader) { | ||
logTracingHeader(response); | ||
} | ||
if (response.ok) { | ||
@@ -248,0 +254,0 @@ return response.json(); |
{ | ||
"name": "@toruslabs/torus.js", | ||
"version": "7.1.0", | ||
"version": "7.2.0", | ||
"description": "Handle communication with torus nodes", | ||
@@ -28,4 +28,4 @@ "main": "dist/torusUtils.cjs.js", | ||
"@toruslabs/constants": "^9.0.1", | ||
"@toruslabs/eccrypto": "^2.1.1", | ||
"@toruslabs/http-helpers": "^3.3.0", | ||
"@toruslabs/eccrypto": "^2.2.0", | ||
"@toruslabs/http-helpers": "^3.4.0", | ||
"bn.js": "^5.2.1", | ||
@@ -39,7 +39,7 @@ "elliptic": "^6.5.4", | ||
"@babel/register": "^7.21.0", | ||
"@babel/runtime": "^7.21.0", | ||
"@babel/runtime": "^7.21.5", | ||
"@toruslabs/eslint-config-typescript": "^1.4.3", | ||
"@toruslabs/fetch-node-details": "^9.0.1", | ||
"@toruslabs/torus-scripts": "^3.0.8", | ||
"@types/chai": "^4.3.4", | ||
"@types/chai": "^4.3.5", | ||
"@types/elliptic": "^6.4.14", | ||
@@ -50,4 +50,4 @@ "@types/faker": "^5.5.3", | ||
"@types/mocha": "^10.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.59.1", | ||
"@typescript-eslint/parser": "^5.59.1", | ||
"@typescript-eslint/eslint-plugin": "^5.59.2", | ||
"@typescript-eslint/parser": "^5.59.2", | ||
"chai": "^4.3.7", | ||
@@ -54,0 +54,0 @@ "cross-env": "^7.0.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3700403
27523
Updated@toruslabs/eccrypto@^2.2.0