Socket
Socket
Sign inDemoInstall

freelist

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freelist - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

README.md

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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc