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

buildkite-graph

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildkite-graph - npm Package Compare versions

Comparing version

to
1.2.0

4

dist/conditional.d.ts

@@ -1,6 +0,8 @@

export declare abstract class Conditional<T> {
import { Step, Pipeline, GeneratorFn } from '.';
export declare abstract class Conditional<T extends Step | Pipeline> {
private readonly guarded;
constructor(guarded: T);
constructor(guarded: GeneratorFn<Pipeline | Step>);
get(): T;
abstract accept(): boolean;
}

@@ -8,3 +8,5 @@ "use strict";

Conditional.prototype.get = function () {
return this.guarded;
return typeof this.guarded === 'function'
? this.guarded()
: this.guarded;
};

@@ -11,0 +13,0 @@ return Conditional;

@@ -12,3 +12,4 @@ import 'reflect-metadata';

export { TriggerStep } from './steps/trigger';
export declare type PotentialStep = Step | Conditional<Step | Pipeline> | Pipeline;
export declare type GeneratorFn<T> = () => T;
export declare type PotentialStep = Pipeline | Step | Conditional<Pipeline | Step>;
export declare class Pipeline {

@@ -15,0 +16,0 @@ readonly name: string;

{
"name": "buildkite-graph",
"version": "1.1.2",
"version": "1.2.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",