modif comtabilite

This commit is contained in:
2019-01-16 16:23:31 +01:00
parent 6b741a9666
commit 9312edc3ae
1844 changed files with 158848 additions and 55874 deletions
+5 -4
View File
@@ -7,6 +7,7 @@ var net = require('net')
, events = require('events')
, assert = require('assert')
, util = require('util')
, Buffer = require('safe-buffer').Buffer
;
exports.httpOverHttp = httpOverHttp
@@ -118,7 +119,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
var placeholder = {}
self.sockets.push(placeholder)
var connectOptions = mergeOptions({}, self.proxyOptions,
var connectOptions = mergeOptions({}, self.proxyOptions,
{ method: 'CONNECT'
, path: options.host + ':' + options.port
, agent: false
@@ -127,7 +128,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
if (connectOptions.proxyAuth) {
connectOptions.headers = connectOptions.headers || {}
connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
new Buffer(connectOptions.proxyAuth).toString('base64')
Buffer.from(connectOptions.proxyAuth).toString('base64')
}
debug('making CONNECT request')
@@ -183,7 +184,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
var pos = this.sockets.indexOf(socket)
if (pos === -1) return
this.sockets.splice(pos, 1)
var pending = this.requests.shift()
@@ -198,7 +199,7 @@ function createSecureSocket(options, cb) {
var self = this
TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
// 0 is dummy port for v0.6
var secureSocket = tls.connect(0, mergeOptions({}, self.options,
var secureSocket = tls.connect(0, mergeOptions({}, self.options,
{ servername: options.host
, socket: socket
}
+17 -19
View File
@@ -1,33 +1,27 @@
{
"_args": [
[
"tunnel-agent@0.4.3",
"/mnt/data/Sites/anissabensalah.net/user/themes/anissabensalah"
]
],
"_development": true,
"_from": "tunnel-agent@0.4.3",
"_id": "tunnel-agent@0.4.3",
"_from": "tunnel-agent@^0.6.0",
"_id": "tunnel-agent@0.6.0",
"_inBundle": false,
"_integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=",
"_integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"_location": "/tunnel-agent",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "tunnel-agent@0.4.3",
"raw": "tunnel-agent@^0.6.0",
"name": "tunnel-agent",
"escapedName": "tunnel-agent",
"rawSpec": "0.4.3",
"rawSpec": "^0.6.0",
"saveSpec": null,
"fetchSpec": "0.4.3"
"fetchSpec": "^0.6.0"
},
"_requiredBy": [
"/request"
],
"_resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz",
"_spec": "0.4.3",
"_where": "/mnt/data/Sites/anissabensalah.net/user/themes/anissabensalah",
"_resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"_shasum": "27a5dea06b36b04a0a9966774b290868f0fc40fd",
"_spec": "tunnel-agent@^0.6.0",
"_where": "/home/kevin/Documents/Sites/anissabensalah.net/user/themes/anissabensalah/node_modules/request",
"author": {
"name": "Mikeal Rogers",
"email": "mikeal.rogers@gmail.com",
@@ -36,7 +30,11 @@
"bugs": {
"url": "https://github.com/mikeal/tunnel-agent/issues"
},
"dependencies": {},
"bundleDependencies": false,
"dependencies": {
"safe-buffer": "^5.0.1"
},
"deprecated": false,
"description": "HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.",
"devDependencies": {},
"engines": {
@@ -53,5 +51,5 @@
"repository": {
"url": "git+https://github.com/mikeal/tunnel-agent.git"
},
"version": "0.4.3"
"version": "0.6.0"
}