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

ts-enum-util

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-enum-util - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

9

dist/commonjs/index.js

@@ -12,3 +12,2 @@ "use strict";

* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -24,4 +23,4 @@ * @template V - Type of the enum value.

* instance:
* - {@link $enum}
* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -88,3 +87,3 @@ * @param enumObj - An enum-like object. See the {@link EnumLike} type for more explanation.

next: function () {
var isDone = index >= _this.length;
var isDone = (index >= _this.length);
var result = {

@@ -119,3 +118,3 @@ done: isDone,

next: function () {
var isDone = index >= _this.length;
var isDone = (index >= _this.length);
var result = {

@@ -147,3 +146,3 @@ done: isDone,

next: function () {
var isDone = index >= _this.length;
var isDone = (index >= _this.length);
var entry = _this[index];

@@ -150,0 +149,0 @@ var result = {

@@ -10,3 +10,2 @@ /**

* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -22,4 +21,4 @@ * @template V - Type of the enum value.

* instance:
* - {@link $enum}
* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -86,3 +85,3 @@ * @param enumObj - An enum-like object. See the {@link EnumLike} type for more explanation.

next: function () {
var isDone = index >= _this.length;
var isDone = (index >= _this.length);
var result = {

@@ -117,3 +116,3 @@ done: isDone,

next: function () {
var isDone = index >= _this.length;
var isDone = (index >= _this.length);
var result = {

@@ -145,3 +144,3 @@ done: isDone,

next: function () {
var isDone = index >= _this.length;
var isDone = (index >= _this.length);
var entry = _this[index];

@@ -148,0 +147,0 @@ var result = {

@@ -19,3 +19,2 @@ /**

* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -102,4 +101,4 @@ * @template V - Type of the enum value.

* instance:
* - {@link $enum}
* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -106,0 +105,0 @@ * @param enumObj - An enum-like object. See the {@link EnumLike} type for more explanation.

{
"name": "ts-enum-util",
"version": "2.0.0",
"version": "2.0.1",
"description": "TypeScript Enum Utilities",

@@ -33,6 +33,9 @@ "repository": {

"pack": "run-p clean:pack build && npm pack",
"jest": "jest --runInBand",
"jest:coverage": "npm run clean:coverage && jest --runInBand --coverage",
"test": "run-s compile lint jest",
"test:coverage": "run-s compile lint jest:coverage",
"jest": "jest",
"jest:coverage": "npm run clean:coverage && jest --coverage",
"dtslint:v2_3_plus": "dtslint type_tests/v2_3_plus",
"dtslint:v2_4_plus": "dtslint type_tests/v2_4_plus",
"dtslint": "run-s dtslint:v2_3_plus dtslint:v2_4_plus",
"test": "run-s compile lint dtslint jest",
"test:coverage": "run-s compile lint dtslint jest:coverage",
"build:travis": "run-p test:coverage build && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

@@ -51,2 +54,3 @@ },

"coveralls": "3.0.0",
"dtslint": "0.2.0",
"jest": "22.3.0",

@@ -60,3 +64,3 @@ "npm-run-all": "4.1.2",

"peerDependencies": {
"typescript": ">= 2.4.1"
"typescript": ">= 2.3.1"
},

@@ -63,0 +67,0 @@ "keywords": [

@@ -339,2 +339,3 @@ [![npm version](https://img.shields.io/npm/v/ts-enum-util.svg)](https://www.npmjs.com/package/ts-enum-util)

## Requirements
- *TypeScript 2.3+*: Code that uses `ts-enum-util` will not compile properly with TypeScript versions prior to 2.3. You'll need TypeScript 2.4+ to take andvantage of string enums, but you can still use `ts-enum-util` with [Enum-Like Objects](#enum-like-object) containing string values if you are stuck with TypeScript 2.3.
- *ES6 Features*: The following ES6 features are used by `ts-enum-util`, so they must exist (either natively or via polyfill) in the run-time environment:

@@ -341,0 +342,0 @@ - `Map`

@@ -20,3 +20,2 @@ /**

* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -135,4 +134,4 @@ * @template V - Type of the enum value.

* instance:
* - {@link $enum}
* - {@link EnumWrapper.getCachedInstance}
* - {@link EnumWrapper.createUncachedInstance}
*

@@ -187,3 +186,3 @@ * @param enumObj - An enum-like object. See the {@link EnumLike} type for more explanation.

next: () => {
const isDone = index >= this.length;
const isDone = (index >= this.length);
const result: IteratorResult<keyof T> = {

@@ -220,3 +219,3 @@ done: isDone,

next: () => {
const isDone = index >= this.length;
const isDone = (index >= this.length);
const result: IteratorResult<T[keyof T]> = {

@@ -250,3 +249,3 @@ done: isDone,

next: () => {
const isDone = index >= this.length;
const isDone = (index >= this.length);
const entry = this[index];

@@ -253,0 +252,0 @@ const result: IteratorResult<EnumWrapper.Entry<V, T>> = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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