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

screwdriver-executor-router

Package Overview
Dependencies
Maintainers
8
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 1.1.0 to 1.1.1

4

index.js

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

getWeightedExecutor(executors) {
const totalWeight = executors.reduce((prev, curr) => prev + (curr.weightage || 0), 0);
const totalWeight = executors.reduce((prev, curr) => prev + (+curr.weightage || 0), 0);

@@ -89,3 +89,3 @@ if (totalWeight === 0) {

for (let i = 0; i < executors.length; i += 1) {
sum += executors[i].weightage;
sum += parseInt(executors[i].weightage, 10) || 0;

@@ -92,0 +92,0 @@ if (number < sum) return executors[i].name;

{
"name": "screwdriver-executor-router",
"version": "1.1.0",
"version": "1.1.1",
"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