Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "proto-list", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A utility for managing a prototype chain", | ||
@@ -5,0 +5,0 @@ "main": "./proto-list.js", |
@@ -54,3 +54,3 @@ | ||
, shift : function () { | ||
if (this.list.length >= 1) { | ||
if (this.list.length === 1) { | ||
this.list[0].__proto__ = this.root | ||
@@ -57,0 +57,0 @@ } |
@@ -52,3 +52,11 @@ var tap = require("tap") | ||
p.push({red:'blue'}) | ||
p.push({red:'blue'}) | ||
p.push({red:'blue'}) | ||
while (p.length) { | ||
t.equal(p.get('default'), 'monkey') | ||
p.shift() | ||
} | ||
t.end() | ||
}) |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
5115
128
1