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);