@napp/dti-client 4.1.4 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/caller.js +1 -1
  2. package/package.json +2 -2
package/caller.js CHANGED
@@ -106,7 +106,7 @@ class DtiClientCaller {
106
106
  let resu = yield resp.text();
107
107
  if (resp.ok) {
108
108
  try {
109
- return JSON.parse(resu);
109
+ return resu ? JSON.parse(resu) : undefined;
110
110
  }
111
111
  catch (error) {
112
112
  throw dti_core_1.DtiError.fromCode("InvalidJSON", resu);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napp/dti-client",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "data transaction interface client library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "author": "Farcek <farcek@gmail.com>",
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
- "@napp/dti-core": "4.1.4",
19
+ "@napp/dti-core": "4.1.5",
20
20
  "base64url": "latest",
21
21
  "cross-fetch": "latest"
22
22
  }