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

enumerated-type

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enumerated-type - npm Package Compare versions

Comparing version 0.5.8 to 0.5.10

6

index.js

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

// define property with value to return matching enumValue to the key
// define function value to return matching enumValue to the key
Object.defineProperty(this, 'value', {
value: function (key) {
value: function (key, defaultValue = UNDEFINED) {
// allow values to be passed

@@ -271,3 +271,3 @@ if (this.values.indexOf(key) !== -1) return key;

if (enumValue.value === key) return BREAK(enumValue);
});
}) || defaultValue;
},

@@ -274,0 +274,0 @@ });

{
"name": "enumerated-type",
"version": "0.5.8",
"version": "0.5.10",
"description": "enum type for javascript",

@@ -5,0 +5,0 @@ "main": "index.js",

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