Skip to content

Commit 162ba47

Browse files
committed
remove use of Object.entries
1 parent f10842a commit 162ba47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/plugin-http-errors/lib/redact-query-parameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const defaultBaseURL = 'http://invalid-base.com'
44
module.exports = function (url, redactedKeys) {
55
const urlObj = new URL(url, defaultBaseURL) // base needed for relative URLs
66
const params = new URLSearchParams(urlObj.search)
7-
const redactedParams = redactValues(Object.fromEntries(params), redactedKeys)
7+
const redactedParams = redactValues(params.entries(), redactedKeys)
88
urlObj.search = new URLSearchParams(redactedParams).toString()
99
const urlString = decodeURI(urlObj.toString())
1010
return urlString.startsWith(defaultBaseURL)

test/browser/features/http_errors.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@http_errors @requires_set
1+
@http_errors
22
Feature: HTTP Errors
33

44
HTTP errors plugin reports network request failures, including those made using fetch, and xml http requests.

0 commit comments

Comments
 (0)