Comparing version 1.0.0 to 1.1.0
@@ -6,3 +6,3 @@ { | ||
"description": "A data structure that combines a hash and an array for fast dictionary lookup and traversal by complex keys.", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -12,3 +12,13 @@ "url": "https://github.com/joshjung/hash-array", | ||
"email": "joshua.p.jung@gmail.com", | ||
"files": ["dist", "src", "index.js", "test"], | ||
"files": [ | ||
"dist", | ||
"src", | ||
"index.js", | ||
"test" | ||
], | ||
"scripts": { | ||
"release:major": "npm version major && npm publish && git push --follow-tags", | ||
"release:minor": "npm version minor && npm publish && git push --follow-tags", | ||
"release:patch": "npm version patch && npm publish && git push --follow-tags" | ||
}, | ||
"dependencies": { | ||
@@ -28,2 +38,2 @@ "jclass": "^1.0.1" | ||
] | ||
} | ||
} |
@@ -244,2 +244,4 @@ /*===========================================================================*\ | ||
this._map[key].splice(ix, 1); | ||
else | ||
throw new Error('HashArray: attempting to remove an object that was never added!' + key); | ||
@@ -251,3 +253,8 @@ if (this._map[key].length == 0) | ||
this._list.splice(this._list.indexOf(item), 1); | ||
var ix = this._list.indexOf(item); | ||
if (ix != -1) | ||
this._list.splice(ix, 1); | ||
else | ||
throw new Error('HashArray: attempting to remove an object that was never added!' + key); | ||
} | ||
@@ -254,0 +261,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
63778
1470