UNPKG

@willsoto/node-konfig-core

Version:

Core configuration pacakge supporting file, static and environment variables

19 lines 518 B
import { Policy } from "cockatiel"; export class Loader { name = "base"; stopOnFailure; maxRetries; retryDelay; constructor(options) { this.stopOnFailure = options.stopOnFailure ?? true; this.maxRetries = options.maxRetries ?? 0; this.retryDelay = options.retryDelay ?? 0; } get retryPolicy() { return Policy.handleAll() .retry() .attempts(this.maxRetries) .delay(this.retryDelay); } } //# sourceMappingURL=base.js.map