Comparing version 1.2.1 to 1.2.2
@@ -45,3 +45,3 @@ let erotic = require('erotic'); if (erotic && erotic.__esModule) erotic = erotic.default; | ||
if (isJson) { | ||
if (isJson && res.body) { | ||
try { | ||
@@ -48,0 +48,0 @@ res.parsedBody = JSON.parse(res.body) |
@@ -0,1 +1,7 @@ | ||
## 3 February 2019 | ||
### 1.2.2 | ||
- [fix] Don't parse `JSON` if body is empty. | ||
## 2 February 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@rqt/aqt", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "An Advanced Network Request Package That Returns Body (Parsed As JSON If Needed), Headers And Status After Gzip Decompression.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -45,3 +45,3 @@ import erotic from 'erotic' | ||
if (isJson) { | ||
if (isJson && res.body) { | ||
try { | ||
@@ -48,0 +48,0 @@ res.parsedBody = JSON.parse(res.body) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28841