New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

riverjs-event-sequence

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riverjs-event-sequence - npm Package Compare versions

Comparing version 0.0.5 to 0.0.51

6

lib/parallel.js

@@ -5,3 +5,7 @@ function parallel(){

}
parallel.prototype.push = Array.prototype.push;
parallel.prototype.push = function(){
arguments[0].args = arguments[1];
this._push(arguments[0]);
}
parallel.prototype._push = Array.prototype.push;
parallel.prototype.shift = Array.prototype.shift;

@@ -8,0 +12,0 @@ parallel.prototype.forEach = Array.prototype.forEach;

2

package.json
{
"name": "riverjs-event-sequence",
"version": "0.0.5",
"version": "0.0.51",
"description": "a tool for handling serial and parallel asynchronous event quene.",

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

@@ -61,6 +61,5 @@ riverjs-event-sequence

var queue = new parallel();
task1.args = [1,2];
queue.push(task1);
queue.push(task2);
queue.push(task3);
queue.push(task1,[params]);
queue.push(task2,[1,2]);
queue.push(task3,[{a:1}]);
queue.exec();

@@ -67,0 +66,0 @@

@@ -32,4 +32,3 @@ var parallel = require('../').parallel;

q = new parallel();
q.push(task1);
task1.args = ['jon'];
q.push(task1,['jon']);
q.push(task2);

@@ -36,0 +35,0 @@ q.push(task3);

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