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

arch-orchestrator

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arch-orchestrator - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

3

lib/orchestrator.js

@@ -67,3 +67,4 @@ 'use strict';

if (metadata.args) {
args = metadata.args;
args = metadata.args.slice();
metadata.args = null;
} else {

@@ -70,0 +71,0 @@ args = Array.prototype.slice.apply(arguments);

{
"name": "arch-orchestrator",
"version": "1.4.2",
"version": "1.4.3",
"description": "Orchestrator for large node.js applications",

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

@@ -25,3 +25,3 @@ 'use strict';

function fn4(arg1, arg2) {
return arg1 + arg2 + 10;1
return arg1 + arg2 + 10;
}

@@ -315,2 +315,17 @@

it('should not cache results of previous calls', function () {
fn = orchestrator()
.setNext(fn1).resultTo(fn4)
.setNext(fn2)
.setNext(fn3).resultTo(fn4)
.setNext(fn4)
.end();
var res = fn(10);
res.should.be.exactly(730);
res = fn(20);
res.should.be.exactly(750);
});
it('should be able to prepend arguments which are result of some generator function', function * () {

@@ -317,0 +332,0 @@ fn = orchestrator()

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