Comparing version 1.1.3 to 1.1.4
@@ -255,15 +255,15 @@ /** | ||
if (vnodes) { | ||
vnodes.forEach(function(vnode) { | ||
if (!vnode <= self.vnodes) { | ||
throw new Error('vnode ' + vnode + | ||
vnodes.forEach(function(v) { | ||
if (!v <= self.vnodes) { | ||
throw new Error('vnode ' + v + | ||
' does not exist in the ring'); | ||
} | ||
if (vnodeMap[vnode]) { | ||
throw new Error('vnode ' + vnode + ' specified more than once'); | ||
if (vnodeMap[v]) { | ||
throw new Error('vnode ' + v + ' specified more than once'); | ||
} | ||
vnodeMap[vnode] = true; | ||
vnodeMap[v] = true; | ||
// check that the vnode doesn't already belong to the newPnode. | ||
if (self.vnodeToPnodeMap_[vnode].pnode === newPnode) { | ||
throw new Error('vnode ' + vnode + ' already belongs to pnode'); | ||
if (self.vnodeToPnodeMap_[v].pnode === newPnode) { | ||
throw new Error('vnode ' + v + ' already belongs to pnode'); | ||
} | ||
@@ -270,0 +270,0 @@ }); |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"repository": { | ||
@@ -34,3 +34,5 @@ "type": "git", | ||
"bignum": "0.6.0", | ||
"bunyan": "*" | ||
"bunyan": "*", | ||
"cmdln": "1.1.1", | ||
"dashdash": "1.2.1" | ||
}, | ||
@@ -37,0 +39,0 @@ "devDependencies": { |
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
4084968
1134
5
6
+ Addedcmdln@1.1.1
+ Addeddashdash@1.2.1
+ Addedcmdln@1.1.1(transitive)
+ Addeddashdash@1.2.01.2.1(transitive)
+ Addedextsprintf@1.0.2(transitive)
+ Addedverror@1.3.6(transitive)