Skip to content

Commit cbc5452

Browse files
chore(deps-dev): bump eslint packages (#1088)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent fa13cdb commit cbc5452

6 files changed

Lines changed: 8757 additions & 185 deletions

File tree

lib/prepare_security.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ export default class PrepareSecurityRelease extends SecurityRelease {
4646
}
4747
const createVulnerabilitiesJSON = await this.promptVulnerabilitiesJSON();
4848

49-
let securityReleasePRUrl;
50-
const content = await this.buildDescription(releaseDate, securityReleasePRUrl);
49+
const content = await this.buildDescription(releaseDate);
5150
if (createVulnerabilitiesJSON) {
52-
securityReleasePRUrl = await this.startVulnerabilitiesJSONCreation(
51+
await this.startVulnerabilitiesJSONCreation(
5352
releaseDate, content, excludedReports);
5453
}
5554

@@ -322,11 +321,9 @@ export default class PrepareSecurityRelease extends SecurityRelease {
322321

323322
const supportedVersions = await getSupportedVersions();
324323

325-
let asking = true;
326-
while (asking) {
324+
while (true) {
327325
const dep = await promptDependencies(this.cli);
328326
if (!dep) {
329-
asking = false;
330327
break;
331328
}
332329

lib/security-release/security-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function pickReport(report, { cli, req }) {
183183
});
184184

185185
let prURL = '';
186-
let patchAuthors = [];
186+
let patchAuthors;
187187
if (custom_field_values.data.length) {
188188
prURL = custom_field_values.data[0].attributes.value;
189189
const { user } = await req.getPullRequest(prURL);

lib/update-v8/minorUpdate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function applyPatch(ctx, latestStr) {
7474
} catch (e) {
7575
const file = path.join(ctx.nodeDir, `${latestStr}.diff`);
7676
await fs.writeFile(file, diff);
77-
throw new Error(`Could not apply patch.\n${e}\nDiff was stored in ${file}`);
77+
throw new Error(`Could not apply patch.\n${e}\nDiff was stored in ${file}`, { cause: e });
7878
}
7979
}
8080

lib/update-v8/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export async function getNodeV8Version(cwd) {
2323
: `${this.major}.${this.minor}.${this.build}`;
2424
}
2525
};
26-
} catch (e) {
27-
throw new Error('Could not find V8 version');
26+
} catch (cause) {
27+
throw new Error('Could not find V8 version', { cause });
2828
}
2929
};
3030

0 commit comments

Comments
 (0)