buildkite-graph
Advanced tools
Comparing version
@@ -7,2 +7,3 @@ import { Chainable, ExitStatus } from '../../base'; | ||
manual(allowed: boolean, permitOnPassed?: boolean, reason?: string): T; | ||
getAutomaticValue(): Map<ExitStatus, number>; | ||
} | ||
@@ -14,2 +15,3 @@ export declare class RetryImpl<T> extends Chainable<T> implements Retry<T>, Serializable { | ||
hasValue(): boolean; | ||
getAutomaticValue(): Map<ExitStatus, number>; | ||
automatic(statuses?: Statuses): T; | ||
@@ -16,0 +18,0 @@ manual(allowed?: boolean, permitOnPassed?: boolean, reason?: string): T; |
@@ -169,2 +169,12 @@ "use strict"; | ||
}; | ||
RetryImpl.prototype.getAutomaticValue = function () { | ||
switch (typeof this._automatic) { | ||
case 'boolean': | ||
return this._automatic ? new Map([['*', 2]]) : new Map(); | ||
case 'number': | ||
return new Map([['*', this._automatic]]); | ||
default: | ||
return this._automatic; | ||
} | ||
}; | ||
RetryImpl.prototype.automatic = function (statuses) { | ||
@@ -171,0 +181,0 @@ var e_1, _a; |
{ | ||
"name": "buildkite-graph", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
150076
0.31%2998
0.4%