@bjmrq/utils
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -1,1 +0,1 @@ | ||
export declare const sanitizeExposedBody: (head: Record<string, any>) => string; | ||
export declare const sanitizeExposedBody: (object: Record<string, any>) => string; |
/// <reference types="ts-toolbelt" /> | ||
export declare const nameOf: <U, V>(obj: U) => V; | ||
export declare const idOf: <T>(obj: Record<"id", T>) => T; | ||
export declare const sanitizeObject: import("Function/Curry").Curry<(head: string[], head: Record<string, any>) => Pick<Record<string, any>, never>>; | ||
export declare const sanitizeObject: import("Function/Curry").Curry<(<M extends Record<string, any>>(keysToSanitize: string[], object: M) => Pick<M, Exclude<keyof M, string>>)>; | ||
export declare const readOnly: <M = Record<string, unknown>>(object: M) => Readonly<M>; |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.idOf = ramda_1.prop("id"); | ||
exports.sanitizeObject = ramda_1.curryN(2, (keysToSanitize, object) => ramda_1.omit(keysToSanitize, object)); | ||
exports.sanitizeObject = ramda_1.curry((keysToSanitize, object) => ramda_1.omit(keysToSanitize, object)); | ||
exports.readOnly = (object) => { | ||
@@ -10,0 +10,0 @@ Object.values(object).forEach((value) => { |
{ | ||
"name": "@bjmrq/utils", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "A toolkit of little utilities", | ||
@@ -5,0 +5,0 @@ "author": "Benjamin Marquis", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14310