Comparing version 3.2.7 to 4.0.0-beta
@@ -258,6 +258,6 @@ 'use strict'; | ||
if (res.statusCode == 200) { | ||
if (res.statusCode >= 400) { | ||
ret.ok = false; | ||
} else { | ||
ret.ok = true; | ||
} else { | ||
ret.ok = false; | ||
} | ||
@@ -264,0 +264,0 @@ rv(ret); |
{ | ||
"name": "gohttp", | ||
"version": "3.2.7", | ||
"version": "4.0.0-beta", | ||
"description": "http client for HTTP/1.1", | ||
"main": "gohttp.js", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
![](images/gohttp.png) | ||
![](images/gohttp.jpg) | ||
@@ -147,5 +147,5 @@ # gohttp | ||
}).catch(err => { | ||
console.log(err); | ||
console.error(err); | ||
}); | ||
``` |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
17
1297
62931
2
11
3