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

@cedx/enum

Package Overview
Dependencies
Maintainers
1
Versions
38
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 2.2.0 to 2.2.1

4

CHANGELOG.md
# Changelog
This file contains highlights of what changes on each version of the [Enums for JS](https://github.com/cedx/enum.js) library.
## Version 2.2.1
- Fixed a code generation bug.
- Updated the package dependencies.
## Version 2.2.0

@@ -5,0 +9,0 @@ - Added support for the [Node Security Platform](https://nodesecurity.io) reports.

4

lib/enum.js

@@ -79,5 +79,3 @@ 'use strict';

value: function getValues(enumType) {
return Enum.getNames(enumType).map(function (name) {
return enumType[name];
});
return Object.values(enumType);
}

@@ -84,0 +82,0 @@ }]);

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

"repository": "cedx/enum.js",
"version": "2.2.0",
"version": "2.2.1",

@@ -17,4 +17,4 @@ "main": "./lib/index",

"devDependencies": {
"@cedx/coveralls": "^0.7.0",
"@cedx/gulp-david": "^6.2.0",
"@cedx/coveralls": "^1.0.0",
"@cedx/gulp-david": "^7.0.1",
"babel-preset-env": "^1.4.0",

@@ -28,5 +28,5 @@ "babel-register": "^6.24.1",

"gulp-eslint": "^3.0.1",
"mocha": "^3.3.0",
"mocha": "^3.4.1",
"nsp": "^2.6.3",
"nyc": "^10.3.0"
"nyc": "^10.3.2"
},

@@ -33,0 +33,0 @@ "engines": {

# Enums for JS
![Release](https://img.shields.io/npm/v/@cedx/enum.svg) ![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg) ![Downloads](https://img.shields.io/npm/dt/@cedx/enum.svg) ![Dependencies](https://david-dm.org/cedx/enum.js.svg) ![Coverage](https://coveralls.io/repos/github/cedx/enum.js/badge.svg) ![Build](https://travis-ci.org/cedx/enum.js.svg)
![Runtime](https://img.shields.io/badge/node-%3E%3D7.6-brightgreen.svg) ![Release](https://img.shields.io/npm/v/@cedx/enum.svg) ![License](https://img.shields.io/npm/l/@cedx/enum.svg) ![Downloads](https://img.shields.io/npm/dt/@cedx/enum.svg) ![Dependencies](https://david-dm.org/cedx/enum.js.svg) ![Coverage](https://coveralls.io/repos/github/cedx/enum.js/badge.svg) ![Build](https://travis-ci.org/cedx/enum.js.svg)

@@ -44,3 +44,3 @@ Yet another implementation of enumerated types for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript).

The created class has a constructor throwing an `Error`: it prohibits its instantiation. This class is also freezed to prevent any attempt at modifying its shape.
The created class has a constructor throwing a `TypeError`: it prohibits its instantiation. This class is also freezed to prevent any attempt at modifying its shape.

@@ -47,0 +47,0 @@ ### Work with the enumeration

@@ -66,4 +66,4 @@ /**

static getValues(enumType) {
return Enum.getNames(enumType).map(name => enumType[name]);
return Object.values(enumType);
}
}
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