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

yarn

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

README.md

2

package.json

@@ -5,3 +5,3 @@ {

"description": "A simple asynchronous routing pattern.",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -1,18 +0,18 @@

module.exports = function(initial) {
var index = 0;
var sets = [];
var next = function(n){
if(typeof n == 'number')
{
return function(){ sets[index++][n].apply(next, arguments); };
}
else
{
sets.push(Array.prototype.slice.call(arguments));
return next;
}
};
var yarn = function(initial) {
var clew = []; // clew is a series of sets of functions [[f, ...], ...]
var currentSet = 0;
function next(i){
i = i || 0;
return function(){ clew[currentSet++][i].apply(next, arguments); };
}
function add(){
clew.push(Array.prototype.slice.call(arguments));
return add;
}
initial.call(next);
return next;
};
setTimeout(function(){ initial.call(next); }, 0);
return add;
};
if (module)
module.exports = yarn;
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