Socket
Socket
Sign inDemoInstall

wreck

Package Overview
Dependencies
Maintainers
4
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 14.1.3 to 14.1.4

CHANGELOG.md

16

lib/index.js
'use strict';
// Load modules
const Events = require('events');

@@ -13,2 +11,3 @@ const Http = require('http');

const Boom = require('boom');
const Bourne = require('bourne');
const Hoek = require('hoek');

@@ -21,4 +20,2 @@

// Declare internals
const internals = {

@@ -72,5 +69,4 @@ jsonRegex: /^application\/([a-z0-9.]*[+-]json|json)$/,

const parsedPath = Url.parse(path);
if (parsedPath.host &&
parsedPath.protocol) {
if (parsedPath.host) {
Hoek.assert(parsedPath.protocol, 'Invalid destination path missing protocol');
return Url.format(parsedPath);

@@ -151,3 +147,5 @@ }

if (options.gunzip && internals.findHeader('accept-encoding', uri.headers) === undefined) {
if (options.gunzip &&
internals.findHeader('accept-encoding', uri.headers) === undefined) {
uri.headers['accept-encoding'] = 'gzip';

@@ -641,3 +639,3 @@ }

try {
payload = JSON.parse(buffer.toString());
payload = Bourne.parse(buffer.toString());
}

@@ -644,0 +642,0 @@ catch (err) {

'use strict';
// Load modules
const Stream = require('stream');
// Declare internals
const internals = {};

@@ -11,0 +7,0 @@

'use strict';
// Load modules
const Stream = require('stream');

@@ -10,4 +8,2 @@

// Declare internals
const internals = {};

@@ -14,0 +10,0 @@

'use strict';
// Load modules
const Stream = require('stream');

@@ -9,4 +7,2 @@ const Payload = require('./payload');

// Declare internals
const internals = {};

@@ -13,0 +9,0 @@

{
"name": "wreck",
"description": "HTTP Client Utilities",
"version": "14.1.3",
"version": "14.1.4",
"repository": "git://github.com/hapijs/wreck",

@@ -13,2 +13,3 @@ "main": "lib/index",

"dependencies": {
"bourne": "1.x.x",
"boom": "7.x.x",

@@ -20,3 +21,3 @@ "hoek": "6.x.x"

"eslint-plugin-markdown": "1.0.0-beta.6",
"lab": "17.x.x"
"lab": "18.x.x"
},

@@ -23,0 +24,0 @@ "scripts": {

@@ -6,3 +6,2 @@ ![wreck Logo](https://raw.github.com/hapijs/wreck/master/images/wreck.png)

[![Npm Version](https://img.shields.io/npm/v/wreck.svg)](https://npmjs.com/package/wreck)
[![Node Version](https://img.shields.io/node/v/wreck.svg)](https://npmjs.com/package/wreck)
[![Build Status](https://secure.travis-ci.org/hapijs/wreck.svg)](http://travis-ci.org/hapijs/wreck)

@@ -80,3 +79,3 @@

const res = await promise;
const body = await Wreck.read(res);
const body = await Wreck.read(res, options);
console.log(body.toString());

@@ -129,3 +128,2 @@ }

before aborting the request. Defaults to unlimited.
- `maxBytes` - maximum size for response payload. Defaults to unlimited.
- `rejectUnauthorized` - [TLS](http://nodejs.org/api/tls.html) flag indicating

@@ -132,0 +130,0 @@ whether the client should reject a response from a server with invalid certificates. This cannot be set at the

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