Socket
Socket
Sign inDemoInstall

request

Package Overview
Dependencies
Maintainers
4
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request - npm Package Compare versions

Comparing version 2.78.0 to 2.79.0

2

lib/auth.js
'use strict'
var caseless = require('caseless')
, uuid = require('node-uuid')
, uuid = require('uuid')
, helpers = require('./helpers')

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

'use strict'
var uuid = require('node-uuid')
var uuid = require('uuid')
, CombinedStream = require('combined-stream')

@@ -5,0 +5,0 @@ , isstream = require('isstream')

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

, caseless = require('caseless')
, uuid = require('node-uuid')
, uuid = require('uuid')
, oauth = require('oauth-sign')

@@ -9,0 +9,0 @@ , crypto = require('crypto')

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

],
"version": "2.78.0",
"version": "2.79.0",
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>",

@@ -25,2 +25,7 @@ "repository": {

"main": "index.js",
"files": [
"lib/",
"index.js",
"request.js"
],
"dependencies": {

@@ -41,3 +46,2 @@ "aws-sign2": "~0.6.0",

"mime-types": "~2.1.7",
"node-uuid": "~1.4.7",
"oauth-sign": "~0.8.1",

@@ -47,3 +51,4 @@ "qs": "~6.3.0",

"tough-cookie": "~2.3.0",
"tunnel-agent": "~0.4.1"
"tunnel-agent": "~0.4.1",
"uuid": "^3.0.0"
},

@@ -77,3 +82,3 @@ "scripts": {

"tape": "^4.6.0",
"taper": "^0.4.0"
"taper": "^0.5.0"
},

@@ -80,0 +85,0 @@ "greenkeeper": {

@@ -758,3 +758,3 @@

- `hawk` - Options for [Hawk signing](https://github.com/hueniverse/hawk). The `credentials` key must contain the necessary signing info, [see hawk docs for details](https://github.com/hueniverse/hawk#usage-example).
- `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`. Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services). If you want to use AWS sign version 4 use the parameter `sign_version` with value `4` otherwise the default is version 2. **Note:** you need to `npm install aws4` first.
- `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`, and optionally `session` (note that this only works for services that require session as part of the canonical string). Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services). If you want to use AWS sign version 4 use the parameter `sign_version` with value `4` otherwise the default is version 2. **Note:** you need to `npm install aws4` first.
- `httpSignature` - Options for the [HTTP Signature Scheme](https://github.com/joyent/node-http-signature/blob/master/http_signing.md) using [Joyent's library](https://github.com/joyent/node-http-signature). The `keyId` and `key` properties must be specified. See the docs for other options.

@@ -761,0 +761,0 @@

@@ -1295,6 +1295,10 @@ 'use strict'

accessKeyId: opts.key,
secretAccessKey: opts.secret
secretAccessKey: opts.secret,
sessionToken: opts.session
})
self.setHeader('authorization', signRes.headers.Authorization)
self.setHeader('x-amz-date', signRes.headers['X-Amz-Date'])
if (signRes.headers['X-Amz-Security-Token']) {
self.setHeader('x-amz-security-token', signRes.headers['X-Amz-Security-Token'])
}
}

@@ -1301,0 +1305,0 @@ else {

Sorry, the diff of this file is too big to display

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