request-libcurl
Advanced tools
Comparing version 0.0.5 to 1.0.0
'use strict'; | ||
const { URL } = require('url'); | ||
const { Curl } = require('node-libcurl'); | ||
const { Curl, CurlFeature } = require('node-libcurl'); | ||
@@ -18,3 +18,3 @@ const request = function LibCurlRequest (_opts, cb) { | ||
if (opts.noStorage || opts.rawBody) { | ||
curl.enable(Curl.feature.NO_STORAGE); | ||
curl.enable(CurlFeature.NO_STORAGE); | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "request-libcurl", | ||
"version": "0.0.5", | ||
"version": "1.0.0", | ||
"description": "Extremely stable HTTP request module built on top of libcurl with retries, timeouts, Promise and async/await API", | ||
@@ -41,4 +41,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"node-libcurl": "^1.3.3" | ||
"node-libcurl": "^2.0.0" | ||
} | ||
} |
# Request-Extra | ||
<a href="https://www.patreon.com/bePatron?u=20396046"> | ||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160"> | ||
</a> | ||
```shell | ||
@@ -14,3 +18,3 @@ npm install --save request-libcurl | ||
- 😎 IDNs support (*internationalized domain names*); | ||
- 😎 Repeat (*built-in retries*) request of connection was broken; | ||
- 😎 Repeat (*built-in retries*) request on broken connection; | ||
- 😎 Send GET/POST with custom `body` and headers; | ||
@@ -112,3 +116,2 @@ - 😎 Follow or deny redirects; | ||
__Note__: When using `opts.rawBody` or `opts.noStorage` callback/promise won't return `body` and `headers`, to get headers and body use next events: | ||
@@ -229,4 +232,3 @@ | ||
This project wouldn't be possible without [ostr.io](https://ostr.io). | ||
Using [ostr.io](https://ostr.io) you are not only [protecting domain names](https://ostr.io/info/domain-names-protection), [monitoring websites and servers](https://ostr.io/info/monitoring), using [Prerendering for better SEO](https://ostr.io/info/prerendering) of your JavaScript website, but support our Open Source activity, and great packages like this one are available for free. | ||
- [Become a patron](https://www.patreon.com/bePatron?u=20396046) — support my open source contributions with monthly donation | ||
- Use [ostr.io](https://ostr.io) — [Monitoring](https://snmp-monitoring.com), [Analytics](https://ostr.io/info/web-analytics), [WebSec](https://domain-protection.info), [Web-CRON](https://web-cron.info) and [Pre-rendering](https://prerendering.com) for a website |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25542
0
232
+ Added@mapbox/node-pre-gyp@1.0.5(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddetect-libc@1.0.3(transitive)
+ Addedenv-paths@2.2.0(transitive)
+ Addedfs-minipass@2.1.0(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedminipass@3.3.65.0.0(transitive)
+ Addedminizlib@2.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedms@2.1.3(transitive)
+ Addednan@2.15.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednode-gyp@7.1.2(transitive)
+ Addednode-libcurl@2.3.4(transitive)
+ Addednopt@5.0.0(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsemver@6.3.17.6.3(transitive)
+ Addedtar@6.2.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtslib@2.0.1(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedyallist@4.0.0(transitive)
- Removedblock-stream@0.0.9(transitive)
- Removeddebug@3.1.0(transitive)
- Removedfs-extra@5.0.0(transitive)
- Removedfstream@1.0.12(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removednan@2.10.0(transitive)
- Removednode-gyp@3.8.0(transitive)
- Removednode-libcurl@1.3.3(transitive)
- Removednopt@3.0.6(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsemver@5.3.0(transitive)
- Removedtar@2.2.2(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedwhich@1.3.1(transitive)
Updatednode-libcurl@^2.0.0