New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@trackunit/shared-utils

Package Overview
Dependencies
Maintainers
0
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trackunit/shared-utils - npm Package Compare versions

Comparing version 0.0.71 to 0.0.72

2

index.cjs.js

@@ -414,3 +414,3 @@ 'use strict';

const enumFromValueTypesafe = (val, _enum) => {
const enumName = (objectKeys(_enum)).find(k => _enum[k] === val);
const enumName = objectKeys(_enum).find(k => _enum[k] === val);
if (!enumName) {

@@ -417,0 +417,0 @@ throw Error(`Unknown enum value: ${String(val)} expect one of: ${JSON.stringify(objectValues(_enum))}`);

@@ -412,3 +412,3 @@ var HoursAndMinutesFormat;

const enumFromValueTypesafe = (val, _enum) => {
const enumName = (objectKeys(_enum)).find(k => _enum[k] === val);
const enumName = objectKeys(_enum).find(k => _enum[k] === val);
if (!enumName) {

@@ -415,0 +415,0 @@ throw Error(`Unknown enum value: ${String(val)} expect one of: ${JSON.stringify(objectValues(_enum))}`);

{
"name": "@trackunit/shared-utils",
"version": "0.0.71",
"version": "0.0.72",
"repository": "https://github.com/Trackunit/manager",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.txt",

@@ -9,3 +9,3 @@ /**

*/
export declare const enumFromValue: <T extends Record<string, string>>(val: string, _enum: T) => T[keyof T];
export declare const enumFromValue: <T extends Record<string, string | number>>(val: string | number, _enum: T) => T[keyof T];
/**

@@ -12,0 +12,0 @@ * Returns the enum value from a string value or undefined if the string value is undefined or null.

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