@tsdotnet/collection-base
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -18,3 +18,2 @@ /** | ||
super(); | ||
this._version = 0; // Provides an easy means of tracking changes and invalidating enumerables. | ||
} | ||
@@ -26,3 +25,3 @@ /** | ||
get version() { | ||
return this._version; | ||
return this._version || 0 | 0; | ||
} | ||
@@ -55,5 +54,7 @@ /** | ||
incrementVersion() { | ||
return ++this._version; | ||
if (this._version) | ||
return ++this._version; | ||
return this._version = 1 | 0; | ||
} | ||
} | ||
//# sourceMappingURL=IterableCollectionBase.js.map |
@@ -15,3 +15,3 @@ /** | ||
protected constructor(); | ||
private _version; | ||
private _version?; | ||
/** | ||
@@ -18,0 +18,0 @@ * The version number used to track changes. |
@@ -21,3 +21,2 @@ "use strict"; | ||
super(); | ||
this._version = 0; // Provides an easy means of tracking changes and invalidating enumerables. | ||
} | ||
@@ -29,3 +28,3 @@ /** | ||
get version() { | ||
return this._version; | ||
return this._version || 0 | 0; | ||
} | ||
@@ -58,3 +57,5 @@ /** | ||
incrementVersion() { | ||
return ++this._version; | ||
if (this._version) | ||
return ++this._version; | ||
return this._version = 1 | 0; | ||
} | ||
@@ -61,0 +62,0 @@ } |
{ | ||
"name": "@tsdotnet/collection-base", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "", | ||
@@ -45,3 +45,3 @@ "author": "electricessence", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"mocha": "^7.1.2", | ||
"mocha": "^7.2.0", | ||
"npm-run-all": "^4.1.5", | ||
@@ -48,0 +48,0 @@ "nyc": "^15.0.1", |
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
61281
1290