Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating to safe-buffer for improved security. #2574

Merged
merged 1 commit into from Mar 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/helpers.js
Expand Up @@ -2,6 +2,7 @@

var jsonSafeStringify = require('json-stringify-safe')
, crypto = require('crypto')
, Buffer = require('safe-buffer').Buffer

var defer = typeof setImmediate === 'undefined'
? process.nextTick
Expand Down
1 change: 1 addition & 0 deletions lib/multipart.js
Expand Up @@ -3,6 +3,7 @@
var uuid = require('uuid')
, CombinedStream = require('combined-stream')
, isstream = require('isstream')
, Buffer = require('safe-buffer').Buffer


function Multipart (request) {
Expand Down
1 change: 1 addition & 0 deletions lib/oauth.js
Expand Up @@ -6,6 +6,7 @@ var url = require('url')
, uuid = require('uuid')
, oauth = require('oauth-sign')
, crypto = require('crypto')
, Buffer = require('safe-buffer').Buffer


function OAuth (request) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -44,9 +44,10 @@
"oauth-sign": "~0.8.1",
"performance-now": "^0.2.0",
"qs": "~6.3.0",
"safe-buffer": "^5.0.1",
"stringstream": "~0.0.4",
"tough-cookie": "~2.3.0",
"tunnel-agent": "~0.4.1",
"tunnel-agent": "^0.5.0",
"uuid": "^3.0.0"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions request.js
Expand Up @@ -29,6 +29,7 @@ var http = require('http')
, Redirect = require('./lib/redirect').Redirect
, Tunnel = require('./lib/tunnel').Tunnel
, now = require('performance-now')
, Buffer = require('safe-buffer').Buffer

var safeStringify = helpers.safeStringify
, isReadStream = helpers.isReadStream
Expand Down