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.17 to 0.0.18

1

dist/src/general-utils/object.d.ts

@@ -5,1 +5,2 @@ /// <reference types="ts-toolbelt" />

export declare const sanitizeObject: import("Function/Curry").Curry<(head: string[], head: Record<string, any>) => Pick<Record<string, any>, never>>;
export declare const readOnly: <M = Record<string, unknown>>(object: M) => Readonly<M>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sanitizeObject = exports.idOf = exports.nameOf = void 0;
exports.readOnly = exports.sanitizeObject = exports.idOf = exports.nameOf = void 0;
const ramda_1 = require("ramda");

@@ -8,2 +8,9 @@ exports.nameOf = ramda_1.propOr("No name", "name");

exports.sanitizeObject = ramda_1.curryN(2, (keysToSanitize, object) => ramda_1.omit(keysToSanitize, object));
exports.readOnly = (object) => {
Object.values(object).forEach((value) => {
if (value && typeof value === "object")
exports.readOnly(value);
});
return Object.freeze(object);
};
//# sourceMappingURL=object.js.map

2

package.json
{
"name": "@bjmrq/utils",
"version": "0.0.17",
"version": "0.0.18",
"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