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

documentdb

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documentdb - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

4

changelog.md

@@ -0,1 +1,5 @@

## Changes in 1.5.4 : ##
- Dedicated HTTPS Agent: Avoid modifying the global agent for DocumentDB purposes. Use a dedicated agent for all of the lib�s requests.
## Changes in 1.5.3 : ##

@@ -2,0 +6,0 @@

2

lib/constants.js

@@ -149,3 +149,3 @@ /*

UserAgent: "documentdb-nodejs-sdk-1.5.3",
UserAgent: "documentdb-nodejs-sdk-1.5.4",

@@ -152,0 +152,0 @@ DefaultPrecisions: {

@@ -30,10 +30,6 @@ /*

, url = require("url")
, querystring = require("querystring");
, querystring = require("querystring")
// Dedicated Agent for socket pooling
, keepAliveAgent = new https.Agent({ keepAlive: true, maxSockets: Infinity });
// We don't turn off agent because we want the pooling benefits.
https.globalAgent.maxSockets = 10000;
// setting security protocol for the global agent.
https.globalAgent.options.secureProtocol = "TLSv1_client_method";
// Keeping the connection alive to reuse the sockets.
https.globalAgent.keepAlive = true;
//----------------------------------------------------------------------------

@@ -150,2 +146,4 @@ // Utility methods

requestOptions.headers = headers;
requestOptions.agent = keepAliveAgent;
requestOptions.secureProtocol = "TLSv1_client_method";

@@ -152,0 +150,0 @@ if (queryParams) {

@@ -12,3 +12,3 @@ {

],
"version": "1.5.3",
"version": "1.5.4",
"author": "Microsoft Corporation",

@@ -15,0 +15,0 @@ "main": "./index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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