Skip to content

Commit 7285e05

Browse files
committed
fix(aggregate-error): upgraded to the latest version
BREAKING CHANGE: due to the aggregate-error upgrade, thrown errors are no longer iterable, but instead list the errors under an `errors` property
1 parent 1bce937 commit 7285e05

File tree

6 files changed

+286
-141
lines changed

6 files changed

+286
-141
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function verifyConditions(pluginConfig, context) {
3333
await verifyNpmAuth(npmrc, pkg, context);
3434
}
3535
} catch (error) {
36-
errors.push(...error);
36+
errors.push(...error.errors);
3737
}
3838

3939
if (errors.length > 0) {
@@ -53,7 +53,7 @@ export async function prepare(pluginConfig, context) {
5353
await verifyNpmAuth(npmrc, pkg, context);
5454
}
5555
} catch (error) {
56-
errors.push(...error);
56+
errors.push(...error.errors);
5757
}
5858

5959
if (errors.length > 0) {
@@ -75,7 +75,7 @@ export async function publish(pluginConfig, context) {
7575
await verifyNpmAuth(npmrc, pkg, context);
7676
}
7777
} catch (error) {
78-
errors.push(...error);
78+
errors.push(...error.errors);
7979
}
8080

8181
if (errors.length > 0) {
@@ -100,7 +100,7 @@ export async function addChannel(pluginConfig, context) {
100100
await verifyNpmAuth(npmrc, pkg, context);
101101
}
102102
} catch (error) {
103-
errors.push(...error);
103+
errors.push(...error.errors);
104104
}
105105

106106
if (errors.length > 0) {

0 commit comments

Comments
 (0)