@hapi/wreck
Advanced tools
Comparing version 17.2.0 to 18.0.0
@@ -151,3 +151,3 @@ 'use strict'; | ||
_trace = _trace || []; | ||
_trace = _trace ?? []; | ||
_trace.push({ method: uri.method, url }); | ||
@@ -239,3 +239,3 @@ | ||
const redirectOptions = Hoek.clone(options, { shallow: internals.shallowOptions }); | ||
redirectOptions.payload = shadow || options.payload; // shadow must be ready at this point if set | ||
redirectOptions.payload = shadow ?? options.payload; // shadow must be ready at this point if set | ||
redirectOptions.redirects = --redirects; | ||
@@ -553,3 +553,3 @@ if (timeoutId) { | ||
catch (err) { | ||
err.data = err.data || {}; | ||
err.data = err.data ?? {}; | ||
err.data.res = res; | ||
@@ -681,3 +681,3 @@ throw err; | ||
options.pathname = url.pathname; | ||
options.path = `${url.pathname}${url.search || ''}`; | ||
options.path = `${url.pathname}${url.search}`; | ||
options.href = url.href; | ||
@@ -684,0 +684,0 @@ if (url.port !== '') { |
@@ -1,2 +0,3 @@ | ||
Copyright (c) 2012-2022, Sideway Inc, and project contributors | ||
Copyright (c) 2012-2022, Project contributors | ||
Copyright (c) 2012-2020, Sideway Inc | ||
Copyright (c) 2012-2014, Walmart. | ||
@@ -3,0 +4,0 @@ All rights reserved. |
{ | ||
"name": "@hapi/wreck", | ||
"description": "HTTP Client Utilities", | ||
"version": "17.2.0", | ||
"version": "18.0.0", | ||
"repository": "git://github.com/hapijs/wreck", | ||
@@ -17,10 +17,11 @@ "main": "lib/index", | ||
"dependencies": { | ||
"@hapi/bourne": "2.x.x", | ||
"@hapi/boom": "9.x.x", | ||
"@hapi/hoek": "9.x.x" | ||
"@hapi/boom": "^10.0.0", | ||
"@hapi/bourne": "^3.0.0", | ||
"@hapi/hoek": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "24.x.x", | ||
"typescript": "~4.0.2" | ||
"@hapi/code": "^9.0.0", | ||
"@hapi/lab": "^25.0.0", | ||
"@types/node": "^17.0.31", | ||
"typescript": "~4.6.4" | ||
}, | ||
@@ -27,0 +28,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37562
2
4
+ Added@hapi/boom@10.0.1(transitive)
+ Added@hapi/bourne@3.0.0(transitive)
+ Added@hapi/hoek@10.0.111.0.4(transitive)
- Removed@hapi/boom@9.1.4(transitive)
- Removed@hapi/bourne@2.1.0(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
Updated@hapi/boom@^10.0.0
Updated@hapi/bourne@^3.0.0
Updated@hapi/hoek@^10.0.0