Socket
Socket
Sign inDemoInstall

@bjmrq/utils

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bjmrq/utils - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

2

dist/src/backend-utils/sanitizer.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc