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
3
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.51-alpha-6e6c6e1cfa.0 to 0.0.51

8

index.cjs.js

@@ -381,5 +381,5 @@ 'use strict';

const enumFromValue = (val, _enum) => {
const enumName = Object.keys(_enum).find(k => _enum[k] === val);
const enumName = objectKeys(_enum).find(k => _enum[k] === val);
if (!enumName) {
throw Error(`Unknown enum value: ${val} expect one of: ${JSON.stringify(Object.values(_enum))}`);
throw Error(`Unknown enum value: ${val} expect one of: ${JSON.stringify(objectValues(_enum))}`);
}

@@ -412,5 +412,5 @@ return _enum[enumName];

const enumFromValueTypesafe = (val, _enum) => {
const enumName = Object.keys(_enum).find(k => _enum[k] === val);
const enumName = (objectKeys(_enum)).find(k => _enum[k] === val);
if (!enumName) {
throw Error(`Unknown enum value: ${String(val)} expect one of: ${JSON.stringify(Object.values(_enum))}`);
throw Error(`Unknown enum value: ${String(val)} expect one of: ${JSON.stringify(objectValues(_enum))}`);
}

@@ -417,0 +417,0 @@ return _enum[enumName];

@@ -377,5 +377,5 @@ var HoursAndMinutesFormat;

const enumFromValue = (val, _enum) => {
const enumName = Object.keys(_enum).find(k => _enum[k] === val);
const enumName = objectKeys(_enum).find(k => _enum[k] === val);
if (!enumName) {
throw Error(`Unknown enum value: ${val} expect one of: ${JSON.stringify(Object.values(_enum))}`);
throw Error(`Unknown enum value: ${val} expect one of: ${JSON.stringify(objectValues(_enum))}`);
}

@@ -408,5 +408,5 @@ return _enum[enumName];

const enumFromValueTypesafe = (val, _enum) => {
const enumName = Object.keys(_enum).find(k => _enum[k] === val);
const enumName = (objectKeys(_enum)).find(k => _enum[k] === val);
if (!enumName) {
throw Error(`Unknown enum value: ${String(val)} expect one of: ${JSON.stringify(Object.values(_enum))}`);
throw Error(`Unknown enum value: ${String(val)} expect one of: ${JSON.stringify(objectValues(_enum))}`);
}

@@ -413,0 +413,0 @@ return _enum[enumName];

{
"name": "@trackunit/shared-utils",
"version": "0.0.51-alpha-6e6c6e1cfa.0",
"version": "0.0.51",
"repository": "https://github.com/Trackunit/manager",

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

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