Comparing version 1.0.1 to 1.0.3
14
index.js
@@ -1,10 +0,2 @@ | ||
var assert = console.assert ? console.assert : (function(a, b) { | ||
return a || (function() { | ||
throw new Error(b); | ||
})(); | ||
}); | ||
var FreeList = (function() { | ||
var __slice = [].slice; | ||
function FreeList(name, max, constructor) { | ||
@@ -18,8 +10,6 @@ this.name = name; | ||
FreeList.prototype.alloc = function() { | ||
var args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
if (this.list.length) { | ||
return this.list.shift(); | ||
} else { | ||
return this.constructor.apply(this, args); | ||
return this.constructor.apply(this, arguments); | ||
} | ||
@@ -43,2 +33,2 @@ }; | ||
module.exports = FreeList | ||
module.exports = FreeList; |
{ | ||
"name": "freelist", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "Outsource of Node's internal FreeList module (originally by Ryan Dahl)", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
@@ -16,3 +13,3 @@ "free", | ||
"author": "Kenan Sulayman", | ||
"license": "ISC" | ||
"license": "MIT" | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
3
1
0
19
1254
27