From d70be1776d8ccaecede5b693b4490df8a2f3277b Mon Sep 17 00:00:00 2001 From: pavelsvagr Date: Mon, 3 Jun 2024 10:16:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Rename=20safeValues=20to=20maske?= =?UTF-8?q?dValues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 +- src/lib/polishers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 04fd0ba..6bd02af 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ export { createLoader } from './lib/loader' -export { values, safeValues } from './lib/polishers' +export { values, maskedValues } from './lib/polishers' diff --git a/src/lib/polishers.ts b/src/lib/polishers.ts index bcc5051..d79ceaa 100644 --- a/src/lib/polishers.ts +++ b/src/lib/polishers.ts @@ -51,6 +51,6 @@ const mapConfig = export const values = mapConfig(x => x.value) as >( config: T ) => Values -export const safeValues = mapConfig(x => +export const maskedValues = mapConfig(x => x.hidden ? anonymize(x.rawValue) : x.value ) as >(config: T) => AnonymousValues