Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rqt/aqt

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rqt/aqt - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

src/index.js

8

build/index.js

@@ -18,3 +18,4 @@ const { request: https } = require('https');

* @param {OutgoingHttpHeaders} [options.headers] Headers to use for the request.
* @param {boolean} [options.compress=true] Add the `Accept-Encoding: gzip, deflate` header automatically to indicate to the server that it can send a compressed response. Default `true`.
* @param {boolean} [options.compress=true] Add the `Accept-Encoding: gzip, deflate` header to indicate to the server that it can send a compressed response. Default `true`.
* @param {number} [options.timeout] The timeout after which the request should fail.
* @param {string} [options.method="POST"] What HTTP method to use to send data. Default `POST`.

@@ -36,2 +37,3 @@ * @param {boolean} [options.binary=false] Whether to return a buffer instead of a string. Default `false`.

justHeaders = false,
timeout,
} = options

@@ -51,2 +53,3 @@ const er = erotic(true)

},
timeout,
}

@@ -98,3 +101,4 @@

* @prop {OutgoingHttpHeaders} [headers] Headers to use for the request.
* @prop {boolean} [compress=true] Add the `Accept-Encoding: gzip, deflate` header automatically to indicate to the server that it can send a compressed response. Default `true`.
* @prop {boolean} [compress=true] Add the `Accept-Encoding: gzip, deflate` header to indicate to the server that it can send a compressed response. Default `true`.
* @prop {number} [timeout] The timeout after which the request should fail.
* @prop {string} [method="POST"] What HTTP method to use to send data. Default `POST`.

@@ -101,0 +105,0 @@ * @prop {boolean} [binary=false] Whether to return a buffer instead of a string. Default `false`.

@@ -63,2 +63,5 @@ let erotic = require('erotic'); if (erotic && erotic.__esModule) erotic = erotic.default;

})
.on('timeout', () => {
req.abort()
})
}).then(() => {

@@ -65,0 +68,0 @@ const r = {

## 11 January 2018
### 1.2.0
- [feature] Add timeout option.
- [package] Export the module.
- [package] Add [https://www.technation.sucks](Tech Nation Visa Sucks) footer.
## 11 January 2019
### 1.1.5

@@ -4,0 +12,0 @@

{
"name": "@rqt/aqt",
"version": "1.1.5",
"version": "1.2.0",
"description": "An Advanced Network Request Package That Returns Body (Parsed As JSON If Needed), Headers And Status After Gzip Decompression.",
"main": "build",
"module": "src",
"scripts": {

@@ -20,3 +21,4 @@ "t": "zoroaster -a",

"build",
"types"
"types",
"src"
],

@@ -44,4 +46,4 @@ "repository": {

"devDependencies": {
"@idio/core": "1.0.2",
"documentary": "1.20.1",
"@idio/core": "1.2.0",
"documentary": "1.21.1",
"eslint-config-artdeco": "1.0.1",

@@ -53,5 +55,5 @@ "https-context": "1.0.3",

"dependencies": {
"catchment": "3.2.0",
"erotic": "2.0.1"
"catchment": "3.2.2",
"erotic": "2.0.2"
}
}

@@ -44,11 +44,12 @@ # @rqt/aqt

| Name | Type | Description | Default |
| ----------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -------- |
| __data*__ | _Object_ | Optional data to send to the server with the request. | - |
| type | _'form'\|'json'_ | How to send data: `json` to serialise JSON data and `form` for url-encoded transmission with `json` mode by default. | `'json'` |
| headers | _[OutgoingHttpHeaders](#type-outgoinghttpheaders)_ | Headers to use for the request. | - |
| compress | _boolean_ | Add the `Accept-Encoding: gzip, deflate` header automatically to indicate to the server that it can send a compressed response. | `true` |
| method | _string_ | What HTTP method to use to send data. | `POST` |
| binary | _boolean_ | Whether to return a buffer instead of a string. | `false` |
| justHeaders | _boolean_ | Whether to stop the request after response headers were received, without waiting for the data. | `false` |
| Name | Type | Description | Default |
| ----------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------- |
| __data*__ | _Object_ | Optional data to send to the server with the request. | - |
| type | _'form'\|'json'_ | How to send data: `json` to serialise JSON data and `form` for url-encoded transmission with `json` mode by default. | `'json'` |
| headers | _[OutgoingHttpHeaders](#type-outgoinghttpheaders)_ | Headers to use for the request. | - |
| compress | _boolean_ | Add the `Accept-Encoding: gzip, deflate` header to indicate to the server that it can send a compressed response. | `true` |
| timeout | _number_ | The timeout after which the request should fail. | - |
| method | _string_ | What HTTP method to use to send data. | `POST` |
| binary | _boolean_ | Whether to return a buffer instead of a string. | `false` |
| justHeaders | _boolean_ | Whether to stop the request after response headers were received, without waiting for the data. | `false` |
```js

@@ -68,3 +69,3 @@ import aqt from '@rqt/aqt'

"content-type": "text/plain",
"date": "Fri, 11 Jan 2019 05:57:33 GMT",
"date": "Sat, 02 Feb 2019 15:40:28 GMT",
"connection": "close",

@@ -158,4 +159,22 @@ "transfer-encoding": "chunked"

(c) [Rqt][1] 2019
[1]: https://rqt.biz
<table>
<tr>
<th>
<a href="https://artd.eco">
<img src="https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png" alt="Art Deco" />
</a>
</th>
<th>
© <a href="https://artd.eco">Art Deco</a> for <a href="http://rqt.biz">Rqt</a>
2019
</th>
<th>
<a href="https://www.technation.sucks" title="Tech Nation Visa">
<img src="https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif" alt="Tech Nation Visa" />
</a>
</th>
<th>
<a href="https://www.technation.sucks">Tech Nation Visa Sucks</a>
</th>
</tr>
</table>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc