ts-enum-util
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -90,5 +90,3 @@ "use strict"; | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
value: isDone ? undefined : _this.keysList[index] | ||
value: _this.keysList[index] | ||
}; | ||
@@ -121,5 +119,3 @@ ++index; | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
value: isDone ? undefined : _this.valuesList[index] | ||
value: _this.valuesList[index] | ||
}; | ||
@@ -149,6 +145,4 @@ ++index; | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
// NOTE: defensive copy not necessary because entries are "frozen" | ||
value: isDone ? undefined : _this[index] | ||
value: _this[index] | ||
}; | ||
@@ -155,0 +149,0 @@ ++index; |
@@ -88,5 +88,3 @@ /** | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
value: isDone ? undefined : _this.keysList[index] | ||
value: _this.keysList[index] | ||
}; | ||
@@ -119,5 +117,3 @@ ++index; | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
value: isDone ? undefined : _this.valuesList[index] | ||
value: _this.valuesList[index] | ||
}; | ||
@@ -147,6 +143,4 @@ ++index; | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
// NOTE: defensive copy not necessary because entries are "frozen" | ||
value: isDone ? undefined : _this[index] | ||
value: _this[index] | ||
}; | ||
@@ -153,0 +147,0 @@ ++index; |
{ | ||
"name": "ts-enum-util", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "TypeScript Enum Utilities", | ||
@@ -39,5 +39,5 @@ "repository": { | ||
"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 prettier:test lint dtslint jest", | ||
"test:coverage": "run-s compile prettier:test lint dtslint jest:coverage", | ||
"dtslint": "run-s clean:dist build:types dtslint:v2_3_plus dtslint:v2_4_plus", | ||
"test": "run-s compile prettier:test lint jest", | ||
"test:coverage": "run-s compile prettier:test lint jest:coverage", | ||
"build:travis": "run-p test:coverage build && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
@@ -52,3 +52,3 @@ }, | ||
"devDependencies": { | ||
"@types/jest": "22.2.3", | ||
"@types/jest": "23.0.0", | ||
"@types/node": "10.3.0", | ||
@@ -59,3 +59,3 @@ "coveralls": "3.0.1", | ||
"npm-run-all": "4.1.3", | ||
"prettier": "1.13.3", | ||
"prettier": "1.13.4", | ||
"rimraf": "2.6.2", | ||
@@ -62,0 +62,0 @@ "ts-jest": "22.4.6", |
@@ -200,5 +200,3 @@ /** | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
value: isDone ? (undefined as any) : this.keysList[index] | ||
value: this.keysList[index] | ||
}; | ||
@@ -233,5 +231,3 @@ | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
value: isDone ? (undefined as any) : this.valuesList[index] | ||
value: this.valuesList[index] | ||
}; | ||
@@ -263,6 +259,4 @@ | ||
done: isDone, | ||
// "as any" cast is necessary to work around this bug: | ||
// https://github.com/Microsoft/TypeScript/issues/11375 | ||
// NOTE: defensive copy not necessary because entries are "frozen" | ||
value: isDone ? (undefined as any) : this[index] | ||
value: this[index] | ||
}; | ||
@@ -269,0 +263,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147978
2152