From 09e507d72352381ecc3e0bfeeed1d83ac5e968e8 Mon Sep 17 00:00:00 2001 From: Clay Date: Thu, 3 Dec 2026 15:10:47 -0500 Subject: [PATCH] Cleanup: remove unused redactParams helper --- src/oscar.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/oscar.js b/src/oscar.js index 33c4cc3..bb2d9bc 100644 --- a/src/oscar.js +++ b/src/oscar.js @@ -18,14 +18,6 @@ export class OscarApiError extends Error { } } -function redactParams(params) { - const redacted = { ...params }; - for (const key of ['a', 'password', 'pwd', 'pass']) { - if (key in redacted) redacted[key] = '[redacted]'; - } - return redacted; -} - // Call a Web API endpoint and unwrap the { response: { statusCode, statusText, data } } envelope. async function call(path, params = {}, { base = WEBAPI_BASE, method = 'GET', formBody = null, timeoutMs = 15000 } = {}) { const url = new URL(path, base);