Comparing version 2.5.5 to 2.5.6
@@ -34,2 +34,4 @@ /** | ||
/** | ||
* Take a value. | ||
* | ||
* Get a value, or set the value and returns it. | ||
@@ -41,3 +43,3 @@ * | ||
*/ | ||
get_or_set(key: Key, generator: () => T): T; | ||
take(key: Key, generator: () => T): T; | ||
/** | ||
@@ -44,0 +46,0 @@ * Set a value with key. |
@@ -90,2 +90,4 @@ "use strict"; | ||
/** | ||
* Take a value. | ||
* | ||
* Get a value, or set the value and returns it. | ||
@@ -97,3 +99,3 @@ * | ||
*/ | ||
UniqueMap.prototype.get_or_set = function (key, generator) { | ||
UniqueMap.prototype.take = function (key, generator) { | ||
var it = this.find(key); | ||
@@ -100,0 +102,0 @@ return it.equals(this.end()) |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "2.5.5", | ||
"version": "2.5.6", | ||
"main": "./index.js", | ||
@@ -12,0 +12,0 @@ "typings": "./index.d.ts", |
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
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
1413942
28753
0