Comparing version 9.0.0 to 10.0.0
@@ -32,5 +32,2 @@ 'use strict'; | ||
// Use a single emitter instance for events | ||
Object.assign(this, process[internals.emitSymbol]); | ||
this.agents = { | ||
@@ -43,2 +40,14 @@ https: new Https.Agent({ maxSockets: Infinity }), | ||
this._defaults = defaults || {}; | ||
Events.EventEmitter.call(this); | ||
// replay request/response events to process[Symbol.for('wreck')] | ||
const self = this; | ||
const selfEmit = this.emit; | ||
this.emit = function () { | ||
const processEmitter = process[internals.emitSymbol]; | ||
selfEmit.apply(self, arguments); | ||
processEmitter.emit.apply(processEmitter, arguments); | ||
}; | ||
}; | ||
@@ -130,3 +139,3 @@ | ||
_trace = (_trace || []); | ||
_trace.push({ method: uri.method, url: url }); | ||
_trace.push({ method: uri.method, url }); | ||
@@ -133,0 +142,0 @@ const client = (uri.protocol === 'https:' ? Https : Http); |
{ | ||
"name": "wreck", | ||
"description": "HTTP Client Utilities", | ||
"version": "9.0.0", | ||
"version": "10.0.0", | ||
"repository": "git://github.com/hapijs/wreck", | ||
@@ -16,3 +16,3 @@ "main": "lib/index", | ||
"dependencies": { | ||
"boom": "3.x.x", | ||
"boom": "4.x.x", | ||
"hoek": "4.x.x" | ||
@@ -22,3 +22,3 @@ }, | ||
"code": "3.x.x", | ||
"lab": "10.x.x", | ||
"lab": "11.x.x", | ||
"require-reload": "0.2.x" | ||
@@ -25,0 +25,0 @@ }, |
@@ -93,3 +93,3 @@ ![wreck Logo](https://raw.github.com/hapijs/wreck/master/images/wreck.png) | ||
- `socketPath` - `/path/to/unix/socket` for Server. | ||
- `payload` - The request body as string, Buffer, Readable Stream, or an object that can be serialized using `JSON.stringify()`. | ||
- `payload` - The request body as a string, Buffer, Readable Stream, or an object that can be serialized using `JSON.stringify()`. | ||
- `headers` - An object containing request headers. | ||
@@ -96,0 +96,0 @@ - `redirects` - The maximum number of redirects to follow. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34856
441
+ Addedboom@4.3.1(transitive)
- Removedboom@3.2.2(transitive)
Updatedboom@4.x.x