@gasket/core
Advanced tools
Comparing version 7.0.0-next.55 to 7.0.0-next.56
@@ -61,2 +61,8 @@ "use strict"; | ||
const { traceStack } = this; | ||
if (traceStack.includes(name)) { | ||
throw new Error(`Recursive action detected: ${[ | ||
...traceStack, | ||
name | ||
].join(' -> ')}`); | ||
} | ||
traceStack.push(name); | ||
@@ -63,0 +69,0 @@ this.trace(`★ ${name}`); |
@@ -61,2 +61,4 @@ /* eslint-disable no-console, no-process-env */ "use strict"; | ||
this.hook = this.engine.hook.bind(this.engine); | ||
// allow branches to reach back to the root | ||
this.root = ()=>this; | ||
this.config = config; | ||
@@ -63,0 +65,0 @@ this.command = null; |
@@ -38,2 +38,5 @@ import debugPkg from 'debug'; | ||
if (traceStack.includes(name)) { | ||
throw new Error(`Recursive action detected: ${[...traceStack, name].join(' -> ')}`); | ||
} | ||
traceStack.push(name); | ||
@@ -40,0 +43,0 @@ this.trace(`★ ${name}`); |
@@ -49,2 +49,4 @@ /* eslint-disable no-console, no-process-env */ | ||
this.hook = this.engine.hook.bind(this.engine); | ||
// allow branches to reach back to the root | ||
this.root = () => this; | ||
@@ -51,0 +53,0 @@ this.config = config; |
@@ -121,2 +121,3 @@ declare module '@gasket/core' { | ||
branch(): GasketBranch | ||
root(): Gasket | ||
} | ||
@@ -123,0 +124,0 @@ |
{ | ||
"name": "@gasket/core", | ||
"version": "7.0.0-next.55", | ||
"version": "7.0.0-next.56", | ||
"description": "Entry point to setting up Gasket instances", | ||
@@ -91,3 +91,3 @@ "type": "module", | ||
}, | ||
"gitHead": "84a2654cf25651972e1bfbb0a54cb9f330ecb3ad" | ||
"gitHead": "129c2124d2ce7c744a59f1309e87e0032cf29fc7" | ||
} |
65776
1609