Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fiforce

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fiforce - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

LICENSE

18

lib/fiforce.js

@@ -5,3 +5,3 @@ var Fiforce = module.exports = function () {

var flush = function () {
while (queue[0] && queue[0].completed) {
while (queue[0] && queue[0].call) {
queue.shift().call();

@@ -12,10 +12,3 @@ }

return function (callback) {
var callbackObject = {
completed: false,
arguments: [],
callback: callback,
call: function () {
callback.apply(null, this.arguments);
}
};
var callbackObject = {};

@@ -25,4 +18,7 @@ queue.push(callbackObject);

return function () {
callbackObject.completed = true;
callbackObject.arguments = arguments;
var args = arguments;
callbackObject.call = function () {
callback.apply(null, args);
};
flush();

@@ -29,0 +25,0 @@ };

{
"name": "fiforce",
"version": "0.1.0",
"version": "0.2.0",
"description": "Ensure FIFO ordering of asynchronous calls",

@@ -5,0 +5,0 @@ "main": "index.js",

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