@resolveio/server-lib 22.3.238 → 22.3.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -408,12 +408,15 @@ function cleanDateString(value) {
|
|
|
408
408
|
return Number.isNaN(date.getTime()) ? new Date().toISOString() : date.toISOString();
|
|
409
409
|
}
|
|
410
410
|
function normalizeHotfixChannel(value) {
|
|
411
|
-
var
|
|
411
|
+
var normalizedRaw = cleanText(value, 120).toLowerCase().replace(/[\s-]+/g, '_');
|
|
412
|
+
var normalized = (/^(backend|server|backend_hotfix|server_hotfix|backend_js_hotfix|nodejs_hotfix|node_hotfix)$/.test(normalizedRaw)
|
|
413
|
+
? 'backend_js'
|
|
414
|
+
: normalizedRaw);
|
|
412
415
|
return HOTFIX_CHANNELS.has(normalized) ? normalized : '';
|
|
413
416
|
}
|
|
414
417
|
function normalizeHotfixStatus(value) {
|
|
415
418
|
var normalized = cleanText(value, 120).toLowerCase().replace(/[\s-]+/g, '_');
|
|
416
|
-
if (/^(pass|passed|success|succeeded|complete|completed|accepted)$/.test(normalized)) {
|
|
419
|
+
if (/^(pass|passed|ok|healthy|active|success|succeeded|complete|completed|accepted)$/.test(normalized)) {
|
|
417
420
|
return 'passed';
|
|
418
421
|
}
|
|
419
422
|
if (/^(block|blocked|failed|fail|error|denied)$/.test(normalized)) {
|