New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

accept-json

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accept-json - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

index.js

@@ -40,2 +40,10 @@ const http = require('http');

if (options.rejectUnauthorized !== undefined) {
this.endpoint.rejectUnauthorized = options.rejectUnauthorized;
}
if (options.ca !== undefined) {
this.endpoint.ca = options.ca;
}
if (options.keepAliveMsecs) {

@@ -42,0 +50,0 @@ this.endpoint.agent = new this.protocol.Agent({

2

package.json
{
"name": "accept-json",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple client for HTTP JSON APIs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -80,10 +80,12 @@ # accept-json

| Property | Description |
|:----------------|:------------|
| `token` | OPTIONAL - String; token for HTTP Bearer authentication (OAuth2) |
| `basic` | OPTIONAL - String; base64 encoding of `<user>:<password>` (HTTP Basic authentication); alternatively, user name and password can be specified as separate strings (see next) |
| `user` | OPTIONAL - String; user name for HTTP Basic authentication; takes effect only if also `password` is specified |
| `password` | OPTIONAL - String; password for HTTP Basic authentication; takes effect only if also `user` is specified
| `timeout` | OPTIONAL - Integer number; request timeout in milliseconds |
| `headers` | OPTIONAL - Object; headers to be added to the request; there is no need to specify the `accept` header or the `content-type` header since they are automatically generated
| Property | Description |
|:---------------------|:------------|
| `token` | OPTIONAL - String; token for HTTP Bearer authentication (OAuth2) |
| `basic` | OPTIONAL - String; base64 encoding of `<user>:<password>` (HTTP Basic authentication); alternatively, user name and password can be specified as separate strings (see next) |
| `user` | OPTIONAL - String; user name for HTTP Basic authentication; takes effect only if also `password` is specified |
| `password` | OPTIONAL - String; password for HTTP Basic authentication; takes effect only if also `user` is specified |
| `timeout` | OPTIONAL - Integer number; request timeout in milliseconds |
| `headers` | OPTIONAL - Object; headers to be added to the request; there is no need to specify the `accept` header or the `content-type` header since they are automatically generated |
| `rejectUnauthorized` | OPTIONAL - Boolean; default to `true`; see [tls.connect()](https://nodejs.org/dist/latest-v8.x/docs/api/tls.html#tls_tls_connect_options_callback) documentation for information |
| `ca` | OPTIONAL - String, array of strings, buffer, or array of buffers; default to the list of well-known CAs curated by Mozilla; see [tls.createSecureContext()](https://nodejs.org/dist/latest-v8.x/docs/api/tls.html#tls_tls_createsecurecontext_options) for information |
| `keepAliveMsec` | OPTIONAL - Integer number; when present, creates a persistent connection to the server with the specified keep alive in milliseconds |

@@ -90,0 +92,0 @@ | `maxSockets` | OPTIONAL - Integer number; maximum number of concurrent sockets to the server; takes effect only when `keepAliveMsec` is specified and has `1` (single socket) as default value |

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