Socket
Socket
Sign inDemoInstall

postman-request

Package Overview
Dependencies
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-request - npm Package Compare versions

Comparing version 2.88.1-postman.4 to 2.88.1-postman.5

2

index.js

@@ -27,3 +27,3 @@ // Copyright 2010-2012 Mikeal Rogers

var params = {}
if (typeof options === 'object') {
if (options !== null && typeof options === 'object') {
extend(params, options, {uri: uri})

@@ -30,0 +30,0 @@ } else if (typeof uri === 'string') {

@@ -65,3 +65,3 @@ 'use strict'

var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi
for (;;) {
while (true) {
var match = re.exec(authHeader)

@@ -68,0 +68,0 @@ if (!match) {

@@ -175,3 +175,3 @@ 'use strict'

if (!param.fileName && !param.fileName && !param.contentType) {
if (!param.fileName && !param.contentType) {
options.formData[param.name] = param.value

@@ -178,0 +178,0 @@ return

@@ -10,3 +10,3 @@ {

],
"version": "2.88.1-postman.4",
"version": "2.88.1-postman.5",
"repository": {

@@ -46,3 +46,3 @@ "type": "git",

"stream-length": "^1.0.2",
"tough-cookie": "~2.4.3",
"tough-cookie": "~2.5.0",
"tunnel-agent": "^0.6.0",

@@ -49,0 +49,0 @@ "uuid": "^3.3.2"

@@ -907,4 +907,3 @@ 'use strict'

socket.removeListener('connect', onReqSockConnect)
clearTimeout(self.timeoutTimer)
self.timeoutTimer = null
self.clearTimeout()
setReqTimeout()

@@ -954,6 +953,3 @@ }

}
if (self.timeout && self.timeoutTimer) {
clearTimeout(self.timeoutTimer)
self.timeoutTimer = null
}
self.clearTimeout()
self.emit('error', error)

@@ -1045,6 +1041,3 @@ }

}
if (self.timeout && self.timeoutTimer) {
clearTimeout(self.timeoutTimer)
self.timeoutTimer = null
}
self.clearTimeout()

@@ -1254,2 +1247,3 @@ var targetCookieJar = (self._jar && self._jar.setCookie) ? self._jar : globalCookieJar

self.clearTimeout()
self.emit('abort')

@@ -1531,3 +1525,3 @@ }

} else {
var targetCookieJar = (jar && jar.getCookieString) ? jar : globalCookieJar
var targetCookieJar = jar.getCookieString ? jar : globalCookieJar
var urihref = self.uri.href

@@ -1616,2 +1610,3 @@ // fetch cookie in the Specified host

var self = this
this.clearTimeout()
if (!self._ended) {

@@ -1624,2 +1619,9 @@ self.end()

Request.prototype.clearTimeout = function () {
if (this.timeoutTimer) {
clearTimeout(this.timeoutTimer)
this.timeoutTimer = null
}
}
Request.defaultProxyHeaderWhiteList =

@@ -1626,0 +1628,0 @@ Tunnel.defaultProxyHeaderWhiteList.slice()

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