af-consul
Advanced tools
Comparing version 1.1.9 to 1.1.11
@@ -22,3 +22,3 @@ "use strict"; | ||
var _a, _b; | ||
const { cLOptions, registerInterval, registerType = 'if-not-registered', deleteOtherInstance = false, noAlreadyRegisteredMessage = false, } = cyclicStartArgs; | ||
const { cLOptions, registerInterval, registerType = 'if-not-registered', deleteOtherInstance = false, noAlreadyRegisteredMessage = false, } = cyclicStartArgs || {}; | ||
if (!cLOptions && !this.options) { | ||
@@ -25,0 +25,0 @@ return -1; |
@@ -19,3 +19,3 @@ // noinspection JSUnusedGlobalSymbols | ||
var _a, _b; | ||
const { cLOptions, registerInterval, registerType = 'if-not-registered', deleteOtherInstance = false, noAlreadyRegisteredMessage = false, } = cyclicStartArgs; | ||
const { cLOptions, registerInterval, registerType = 'if-not-registered', deleteOtherInstance = false, noAlreadyRegisteredMessage = false, } = cyclicStartArgs || {}; | ||
if (!cLOptions && !this.options) { | ||
@@ -22,0 +22,0 @@ return -1; |
{ | ||
"name": "af-consul", | ||
"version": "1.1.9", | ||
"version": "1.1.11", | ||
"description": "A highly specialized function library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/src/index.js", |
@@ -27,3 +27,3 @@ // noinspection JSUnusedGlobalSymbols | ||
async start(cyclicStartArgs: ICyclicStartArgs): Promise<-1 | 0 | 1> { | ||
async start(cyclicStartArgs?: ICyclicStartArgs): Promise<-1 | 0 | 1> { | ||
const { | ||
@@ -35,3 +35,3 @@ cLOptions, | ||
noAlreadyRegisteredMessage = false, | ||
} = cyclicStartArgs; | ||
} = cyclicStartArgs || {}; | ||
@@ -38,0 +38,0 @@ if (!cLOptions && !this.options) { |
@@ -154,3 +154,3 @@ import Consul from "consul"; | ||
start: (cyclicStartArgs: ICyclicStartArgs) => Promise<-1 | 0 | 1> | ||
start: (cyclicStartArgs?: ICyclicStartArgs) => Promise<-1 | 0 | 1> | ||
stop: () => void | ||
@@ -157,0 +157,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
261075