Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cedx/enum

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cedx/enum - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

3

CHANGELOG.md
# Changelog
## Version [4.0.0](https://github.com/cedx/enum.js/compare/v3.3.0...v4.0.0)
- Breaking change: dropped the `get` prefix from the `getEntries()`, `getNames()` and `getValues()` methods of the enumerated types.
## Version [3.3.0](https://github.com/cedx/enum.js/compare/v3.2.0...v3.3.0)

@@ -4,0 +7,0 @@ - Added a user guide based on [MkDocs](http://www.mkdocs.org).

6

lib/enum.js

@@ -31,8 +31,8 @@ 'use strict';

static coerce(value, defaultValue = null) { return Enum.coerce(enumType, value, defaultValue); }
static entries() { return Enum.getEntries(enumType); }
static isDefined(value) { return Enum.isDefined(enumType, value); }
static getEntries() { return Enum.getEntries(enumType); }
static getIndex(value) { return Enum.getIndex(enumType, value); }
static getName(value) { return Enum.getName(enumType, value); }
static getNames() { return Enum.getNames(enumType); }
static getValues() { return Enum.getValues(enumType); }
static names() { return Enum.getNames(enumType); }
static values() { return Enum.getValues(enumType); }
/* eslint-enable require-jsdoc */

@@ -39,0 +39,0 @@ };

@@ -10,3 +10,3 @@ {

"repository": "cedx/enum.js",
"version": "3.3.0",
"version": "4.0.0",
"devDependencies": {

@@ -13,0 +13,0 @@ "@cedx/coveralls": "^5.1.0",

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