Socket
Socket
Sign inDemoInstall

mappersmith

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mappersmith - npm Package Compare versions

Comparing version 2.31.2 to 2.32.0

10

gateway/http.js

@@ -78,2 +78,6 @@ "use strict";

if (httpOptions.useSocketConnectionTimeout) {
requestParams['timeout'] = timeout;
}
if (httpOptions.configure) {

@@ -117,3 +121,7 @@ (0, _utils.assign)(requestParams, httpOptions.configure(requestParams));

if (timeout) {
httpRequest.setTimeout(timeout, function () {
if (!httpOptions.useSocketConnectionTimeout) {
httpRequest.setTimeout(timeout);
}
httpRequest.on('timeout', function () {
_this.canceled = true;

@@ -120,0 +128,0 @@ httpRequest.abort();

@@ -16,3 +16,3 @@ "use strict";

/* global VERSION */
var version = "2.31.2";
var version = "2.32.0";
exports.version = version;

@@ -68,3 +68,3 @@ var configs = {

/**
* For aditional configurations to the XMLHttpRequest object.
* For additional configurations to the XMLHttpRequest object.
* @param {XMLHttpRequest} xhr

@@ -77,2 +77,12 @@ * @default null

/**
* Enable this option to evaluate timeout on entire request durations,
* including DNS resolution and socket connection.
*
* See original nodejs issue: https://github.com/nodejs/node/pull/8101
*
* @default false
*/
useSocketConnectionTimeout: false,
/**
* For additional configurations to the http/https module

@@ -85,3 +95,10 @@ * For http: https://nodejs.org/api/http.html#http_http_request_options_callback

*/
configure: null
configure: null,
onRequestWillStart: null,
onRequestSocketAssigned: null,
onSocketLookup: null,
onSocketConnect: null,
onSocketSecureConnect: null,
onResponseReadable: null,
onResponseEnd: null
},

@@ -88,0 +105,0 @@ Fetch: {

2

package.json
{
"name": "mappersmith",
"version": "2.31.2",
"version": "2.32.0",
"description": "It is a lightweight rest client for node.js and the browser",

@@ -5,0 +5,0 @@ "author": "Tulio Ornelas <ornelas.tulio@gmail.com>",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc