Skip to content

Commit

Permalink
Merge pull request #46 from AckeeCZ/chore/rename-safe-values
Browse files Browse the repository at this point in the history
🚚 Rename safeValues to maskedValues
  • Loading branch information
pavelsvagr authored Jun 3, 2024
2 parents 0b820d6 + d70be17 commit 5e00ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { createLoader } from './lib/loader'
export { values, safeValues } from './lib/polishers'
export { values, maskedValues } from './lib/polishers'
2 changes: 1 addition & 1 deletion src/lib/polishers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ const mapConfig =
export const values = mapConfig(x => x.value) as <T extends Record<any, any>>(
config: T
) => Values<T>
export const safeValues = mapConfig(x =>
export const maskedValues = mapConfig(x =>
x.hidden ? anonymize(x.rawValue) : x.value
) as <T extends Record<any, any>>(config: T) => AnonymousValues<T>

0 comments on commit 5e00ffe

Please sign in to comment.