@zerochain/0chain
Advanced tools
Comparing version 1.3.77 to 1.3.78
@@ -769,5 +769,4 @@ /* | ||
const detailedBlobbers = currentBlobbers.map((blobber) => { | ||
const blobberUrl = new URL(blobber.url) | ||
blobber.convertedUrl = 'https://' + blobberUrl.hostname + '/blobber' + blobberUrl.port.slice(-2) + '/_statsJSON' | ||
blobber.convertedURL = 'https://' + blobberUrl.hostname + '/blobber' + blobberUrl.port.slice(-2) + '/_stats' | ||
blobber.convertedUrl = `${blobber.url}/_statsJSON` | ||
blobber.convertedURL = `${blobber.url}/_stats` | ||
@@ -774,0 +773,0 @@ return blobber; |
{ | ||
"name": "@zerochain/0chain", | ||
"version": "1.3.77", | ||
"version": "1.3.78", | ||
"description": "js client library to interact with 0chain Blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14
utils.js
@@ -358,15 +358,3 @@ /* | ||
} else { | ||
// Added patch for converting http to https | ||
if (/* window.location.protocol === "https" && */ consensusResponse.data && consensusResponse.data.blobbers && Array.isArray(consensusResponse.data.blobbers)) { | ||
consensusResponse.data.blobbers.forEach((blobber) => { | ||
let currentURL = new URL(blobber.url); | ||
blobber.url = 'https://' + currentURL.hostname + '/blobber' + currentURL.port.slice(-2); | ||
}); | ||
} else if (/* window.location.protocol === "https" && */ consensusResponse && consensusResponse.Nodes) { | ||
consensusResponse.Nodes.forEach((blobber) => { | ||
let currentURL = new URL(blobber.url); | ||
blobber.url = 'https://' + currentURL.hostname + '/blobber' + currentURL.port.slice(-2); | ||
}); | ||
} | ||
resolve(parseConsensusMessage(consensusResponse.data, parser)); | ||
@@ -373,0 +361,0 @@ } |
186805
1971