Comparing version 2.4.0 to 2.5.0
@@ -347,2 +347,13 @@ "use strict"; | ||
Enum.prototype[Symbol.iterator] = function () { | ||
var _this = this; | ||
var index = 0; | ||
return { | ||
next: function () { | ||
return index < _this.enums.length ? { done: false, value: _this.enums[index++] } : { done: true }; | ||
} | ||
}; | ||
}; | ||
return Enum; | ||
@@ -349,0 +360,0 @@ })(); |
{ | ||
"author": "adrai", | ||
"name": "enum", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -16,5 +16,2 @@ # Introduction | ||
# Dependencies | ||
No dependencies! | ||
# Download | ||
@@ -25,4 +22,4 @@ Releases for a browser are available for download from GitHub. | ||
|:------------|:----------------|:---------| | ||
| `enum-2.3.0.js` | *uncompressed, with comments* | [Download](https://raw.github.com/adrai/enum/master/enum-2.3.0.js) | | ||
| `enum-2.3.0.min.js` | *compressed, without comments* | [Download](https://raw.github.com/adrai/enum/master/enum-2.3.0.min.js) | | ||
| `enum-2.4.0.js` | *uncompressed, with comments* | [Download](https://raw.github.com/adrai/enum/master/enum-2.4.0.js) | | ||
| `enum-2.4.0.min.js` | *compressed, without comments* | [Download](https://raw.github.com/adrai/enum/master/enum-2.4.0.min.js) | | ||
@@ -144,2 +141,6 @@ # Installation (node.js) | ||
// check if it's defined | ||
myEnum.isDefined(myEnum.A) // returns true | ||
myEnum.isDefined('A') // returns true | ||
myEnum.isDefined(1) // returns true | ||
@@ -209,3 +210,3 @@ // compare | ||
Copyright (c) 2015 Adriano Raiano, Christoph Hermann | ||
Copyright (c) 2016 Adriano Raiano, Christoph Hermann | ||
@@ -212,0 +213,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
74010
986
226