bls-wallet-clients
Advanced tools
Comparing version 0.8.1-980039 to 0.8.1-bfdcf0f
@@ -54,3 +54,4 @@ "use strict"; | ||
const json = await resp.json(); | ||
if (json) { | ||
const isValidNonEmptyJson = json && Object.keys(json).length; | ||
if (isValidNonEmptyJson) { | ||
return json; | ||
@@ -57,0 +58,0 @@ } |
{ | ||
"name": "bls-wallet-clients", | ||
"version": "0.8.1-980039", | ||
"version": "0.8.1-bfdcf0f", | ||
"description": "Client libraries for interacting with BLS Wallet components", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -119,3 +119,4 @@ import fetch from "node-fetch"; | ||
const json = await resp.json(); | ||
if (json) { | ||
const isValidNonEmptyJson = json && Object.keys(json).length; | ||
if (isValidNonEmptyJson) { | ||
return json as T; | ||
@@ -122,0 +123,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1102469
13567