diff --git a/packages/walletconnect-core/package-lock.json b/packages/walletconnect-core/package-lock.json index 7f4380e5a..15ede61a1 100644 --- a/packages/walletconnect-core/package-lock.json +++ b/packages/walletconnect-core/package-lock.json @@ -1,6 +1,6 @@ { "name": "js-walletconnect-core", - "version": "0.6.25", + "version": "0.6.26", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/walletconnect-core/src/connector.js b/packages/walletconnect-core/src/connector.js index 1daf3bcba..3f4c5640e 100644 --- a/packages/walletconnect-core/src/connector.js +++ b/packages/walletconnect-core/src/connector.js @@ -282,7 +282,12 @@ export default class Connector { } // get body - const response = await res.json() + let response = null + + const text = await res.text() + if (text.length) { + response = JSON.parse(text) + } return response } diff --git a/packages/walletconnect-react-native/package-lock.json b/packages/walletconnect-react-native/package-lock.json index b09cd2b4b..6de84e51d 100644 --- a/packages/walletconnect-react-native/package-lock.json +++ b/packages/walletconnect-react-native/package-lock.json @@ -1,6 +1,6 @@ { "name": "rn-walletconnect-wallet", - "version": "0.6.25", + "version": "0.6.26", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5464,9 +5464,9 @@ "dev": true }, "js-walletconnect-core": { - "version": "0.6.25", - "resolved": "https://registry.npmjs.org/js-walletconnect-core/-/js-walletconnect-core-0.6.25.tgz", - "integrity": "sha512-rJk1fLk+zbq++EmgyPzQ8Iq9Kygt4b1RiRIW2aIZ2o4zYUUV4dh2d9nRzSECWfFdMNf4WZ+86Ignez4gxnbxMg==", + "version": "0.6.26", + "resolved": "https://registry.npmjs.org/js-walletconnect-core/-/js-walletconnect-core-0.6.26.tgz", + "integrity": "sha512-1XN0D+TKUIBVpjSEeVlp6i1LB0JXhvb/kkUaGd39tpO3z8DConKjLsaWLhpTs804ue7p4Y48X1qcZPHJ67vpAQ==", "requires": { "eth-parse-uri": "^0.6.7" } diff --git a/packages/walletconnect/package-lock.json b/packages/walletconnect/package-lock.json index 578e775aa..733439348 100644 --- a/packages/walletconnect/package-lock.json +++ b/packages/walletconnect/package-lock.json @@ -1,6 +1,6 @@ { "name": "walletconnect", - "version": "0.6.25", + "version": "0.6.26", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5464,9 +5464,9 @@ "dev": true }, "js-walletconnect-core": { - "version": "0.6.25", - "resolved": "https://registry.npmjs.org/js-walletconnect-core/-/js-walletconnect-core-0.6.25.tgz", - "integrity": "sha512-rJk1fLk+zbq++EmgyPzQ8Iq9Kygt4b1RiRIW2aIZ2o4zYUUV4dh2d9nRzSECWfFdMNf4WZ+86Ignez4gxnbxMg==", + "version": "0.6.26", + "resolved": "https://registry.npmjs.org/js-walletconnect-core/-/js-walletconnect-core-0.6.26.tgz", + "integrity": "sha512-1XN0D+TKUIBVpjSEeVlp6i1LB0JXhvb/kkUaGd39tpO3z8DConKjLsaWLhpTs804ue7p4Y48X1qcZPHJ67vpAQ==", "requires": { "eth-parse-uri": "^0.6.7" }