Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "stringmap", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "fast and robust stringmap", | ||
@@ -5,0 +5,0 @@ "main": "stringmap.js", |
@@ -12,3 +12,3 @@ # stringmap.js | ||
```javascript | ||
var StringMap = require("./stringmap"); | ||
var StringMap = require("stringmap"); | ||
@@ -15,0 +15,0 @@ var sm1 = new StringMap(); |
@@ -67,3 +67,3 @@ // stringmap.js | ||
this.obj = create(); | ||
this.hasProto = undefined; // undefined (no __proto__ key) or true (has __proto__ key), never false | ||
this.hasProto = false; // false (no __proto__ key) or true (has __proto__ key) | ||
this.proto = undefined; // value for __proto__ key when hasProto is true, undefined otherwise | ||
@@ -74,3 +74,3 @@ | ||
} | ||
} | ||
}; | ||
@@ -95,3 +95,3 @@ // primitive methods that deals with data representation | ||
return (key === "__proto__" ? | ||
this.hasProto && this.proto : | ||
this.proto : | ||
(hasOwnProperty.call(this.obj, key) ? this.obj[key] : undefined)); | ||
@@ -118,3 +118,4 @@ }; | ||
if (key === "__proto__") { | ||
this.hasProto = this.proto = undefined; | ||
this.hasProto = false; | ||
this.proto = undefined; | ||
} else { | ||
@@ -234,3 +235,4 @@ delete this.obj[key]; | ||
}).join(",") + "}"; | ||
} | ||
}; | ||
return stringmap; | ||
@@ -237,0 +239,0 @@ })(); |
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
243
0
11483