mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
build(deps): upgrade to eslint 10
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -176,7 +176,7 @@ export const parseRawConfig = (jsonText: string): RawConfig => {
|
||||
try {
|
||||
parsed = JSON.parse(trimmed);
|
||||
} catch (e) {
|
||||
throw new Error(`check-config: failed to parse JSON: ${(e as Error).message}`);
|
||||
throw new Error(`check-config: failed to parse JSON: ${(e as Error).message}`, { cause: e });
|
||||
}
|
||||
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
||||
throw new Error(`check-config: top-level value must be an object`);
|
||||
@@ -198,7 +198,7 @@ export const parseMatrixInput = (jsonText: string): Matrix => {
|
||||
try {
|
||||
parsed = JSON.parse(trimmed);
|
||||
} catch (e) {
|
||||
throw new Error(`check-config: failed to parse \`matrix\` input as JSON: ${(e as Error).message}`);
|
||||
throw new Error(`check-config: failed to parse \`matrix\` input as JSON: ${(e as Error).message}`, { cause: e });
|
||||
}
|
||||
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
||||
throw new Error('check-config: `matrix` must be a JSON object');
|
||||
|
||||
Reference in New Issue
Block a user