@sapphirecode/dcm
Advanced tools
Comparing version 1.2.8 to 1.2.9
@@ -113,3 +113,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var services, queue, started, index, service, waiting_for, _i, waiting_for_1, waiting_for_service, is_available, _a, services_1, available, threads, i; | ||
var services, queue, started, index, passes, service, waiting_for, _i, waiting_for_1, waiting_for_service, is_available, _a, services_1, available, threads, i; | ||
var _this = this; | ||
@@ -133,3 +133,9 @@ return __generator(this, function (_b) { | ||
index = 0; | ||
passes = 0; | ||
while (services.length > 0) { | ||
if (index >= services.length) { | ||
passes++; | ||
(0, assert_1.default)(passes < 128, "Maximum depth reached. Circular dependency detected\n".concat(services.map(function (s) { return "[".concat(s.name, "] ").concat(s.depends_on.join(', ')); }) | ||
.join('\n'))); | ||
} | ||
index %= services.length; | ||
@@ -136,0 +142,0 @@ service = services[index]; |
@@ -50,3 +50,13 @@ /* eslint-disable require-unicode-regexp, max-depth */ | ||
let index = 0; | ||
let passes = 0; | ||
while (services.length > 0) { | ||
if (index >= services.length) { | ||
passes++; | ||
assert ( | ||
passes < 128, | ||
`Maximum depth reached. Circular dependency detected\n${ | ||
services.map ((s) => `[${s.name}] ${s.depends_on.join (', ')}`) | ||
.join ('\n')}` | ||
); | ||
} | ||
index %= services.length; | ||
@@ -53,0 +63,0 @@ const service = services[index]; |
{ | ||
"name": "@sapphirecode/dcm", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Managing docker compose configurations, volumes and networks", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96281
2120