Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default tseslint.config(
parserOptions: {
tsconfigRootDir: import.meta.dirname,
projectService: true,
extraFileExtensions: ['.mjs'],
},
},

Expand Down
21 changes: 21 additions & 0 deletions lib/logger/err-serializer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,26 @@ describe('logger/err-serializer', () => {
},
});
});

it('handles AggregateErrors', () => {
const err = partial<Error & Record<string, unknown>>({
message: 'foo',
stack: 'error stack',
body: 'error body',
});
const aggregateError = new AggregateError([err], 'bar');
aggregateError.stack = 'aggregate stack';
expect(errSerializer(aggregateError)).toEqual({
message: 'bar',
stack: 'aggregate stack',
errors: [
{
message: 'foo',
body: 'error body',
stack: 'error stack',
},
],
});
});
});
});
17 changes: 17 additions & 0 deletions lib/logger/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,22 @@ describe('logger/utils', () => {
name: 'TimeoutError',
});
});

it('handles AggregateError', () => {
const err = new Error('err');
err.stack = 'err stack';
const aggregateErr = new AggregateError([err], 'aggregate');
aggregateErr.stack = 'aggregate stack';
expect(prepareError(aggregateErr)).toMatchObject({
message: 'aggregate',
stack: 'aggregate stack',
errors: [
{
message: 'err',
stack: 'err stack',
},
],
});
});
});
});
4 changes: 4 additions & 0 deletions lib/logger/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export default function prepareError(err: Error): Record<string, unknown> {
response.stack = err.stack;
}

if (err instanceof AggregateError) {
response.errors = err.errors.map((error) => prepareError(error));
}

// handle got error
if (err instanceof HttpError) {
const options: Record<string, unknown> = {
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/azure-pipelines/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resources:
- container: linux
image: ubuntu:24.04
- container: python
image: python:3.13@sha256:b89c8a45626cd670f81e0504084362c7e88dd432090b08f6de1b7b047fcf6c4a
image: python:3.13@sha256:eec1b4e88e8762b4711b9f5fd69648b96ac04864e56993769cf50a9891a1d317

stages:
- stage: StageOne
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"@renovatebot/osv-offline": "1.6.5",
"@renovatebot/pep440": "4.1.0",
"@renovatebot/ruby-semver": "4.0.0",
"@sindresorhus/is": "7.0.1",
"@sindresorhus/is": "7.0.2",
"@yarnpkg/core": "4.4.2",
"@yarnpkg/parsers": "3.0.3",
"agentkeepalive": "4.6.0",
Expand All @@ -187,7 +187,7 @@
"azure-devops-node-api": "15.1.0",
"bunyan": "1.8.15",
"cacache": "19.0.1",
"chalk": "4.1.2",
"chalk": "5.4.1",
"changelog-filename-regex": "2.0.1",
"clean-git-ref": "2.0.1",
"commander": "14.0.0",
Expand Down Expand Up @@ -260,7 +260,7 @@
"vuln-vects": "1.1.0",
"xmldoc": "1.3.0",
"yaml": "2.8.0",
"zod": "3.25.50"
"zod": "3.25.51"
},
"optionalDependencies": {
"better-sqlite3": "11.10.0",
Expand All @@ -271,7 +271,7 @@
"@containerbase/eslint-plugin": "1.1.4",
"@eslint/js": "9.28.0",
"@hyrious/marshal": "0.3.3",
"@ls-lint/ls-lint": "2.3.0",
"@ls-lint/ls-lint": "2.3.1",
"@openpgp/web-stream-tools": "0.1.3",
"@semantic-release/exec": "7.1.0",
"@smithy/util-stream": "4.2.2",
Expand Down
6 changes: 3 additions & 3 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading