Socket
Socket
Sign inDemoInstall

wreck

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wreck - npm Package Compare versions

Comparing version 9.0.0 to 10.0.0

17

lib/index.js

@@ -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.

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