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

screwdriver-executor-router

Package Overview
Dependencies
Maintainers
10
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screwdriver-executor-router - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

index.js

@@ -20,2 +20,3 @@ 'use strict';

const executorConfig = config.executor;
const defaultPlugin = config.defaultPlugin;

@@ -27,3 +28,2 @@ if (!executorConfig || !(Array.isArray(executorConfig)) || executorConfig.length === 0) {

super();
this.defaultExecutor = config.defaultPlugin;

@@ -45,5 +45,8 @@ executorConfig.forEach((plugin) => {

// Set the default executor
if (!this.defaultExecutor && !config.defaultPlugin) {
if (defaultPlugin && defaultPlugin === plugin.name) {
// set the default plugin to the desired one
this.defaultExecutor = executorPlugin;
} else if (!defaultPlugin && !this.defaultExecutor) {
// When given no default plugin, use the first module we instantiated
this.defaultExecutor = executorPlugin;
}

@@ -50,0 +53,0 @@

{
"name": "screwdriver-executor-router",
"version": "0.1.1",
"version": "0.1.2",
"description": "A generic plugin for routing builds to specified executors",

@@ -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