@node-core/utils 4.2.2 → 4.2.3
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/lib/prepare_security.js
CHANGED
@@ -78,7 +78,7 @@ class SecurityReleaseIssue {
|
|
78
78
|
let reportsContent = '';
|
79
79
|
for (const report of reports.data) {
|
80
80
|
const { id, attributes: { title }, relationships: { severity } } = report;
|
81
|
-
const reportLevel = severity.data.attributes.rating;
|
81
|
+
const reportLevel = severity ? severity.data.attributes.rating : 'TBD';
|
82
82
|
cli.separator();
|
83
83
|
cli.info(`Report: ${id} - ${title} (${reportLevel})`);
|
84
84
|
const include = await cli.prompt(
|
package/lib/update-v8/index.js
CHANGED
@@ -5,18 +5,11 @@ import updateVersionNumbers from './updateVersionNumbers.js';
|
|
5
5
|
import commitUpdate from './commitUpdate.js';
|
6
6
|
import majorUpdate from './majorUpdate.js';
|
7
7
|
import minorUpdate from './minorUpdate.js';
|
8
|
-
import updateMaintainingDependencies from './updateMaintainingDependencies.js';
|
9
8
|
import updateV8Clone from './updateV8Clone.js';
|
10
9
|
|
11
10
|
export function major(options) {
|
12
11
|
const tasks = new Listr(
|
13
|
-
[
|
14
|
-
updateV8Clone(),
|
15
|
-
majorUpdate(),
|
16
|
-
updateMaintainingDependencies(),
|
17
|
-
commitUpdate(),
|
18
|
-
updateVersionNumbers()
|
19
|
-
],
|
12
|
+
[updateV8Clone(), majorUpdate(), commitUpdate(), updateVersionNumbers()],
|
20
13
|
getOptions(options)
|
21
14
|
);
|
22
15
|
return tasks.run(options);
|
package/package.json
CHANGED
@@ -1,34 +0,0 @@
|
|
1
|
-
import { promises as fs } from 'node:fs';
|
2
|
-
import { getNodeV8Version } from './util.js';
|
3
|
-
|
4
|
-
export default function updateMaintainingDependencies() {
|
5
|
-
return {
|
6
|
-
title: 'Update V8 version in maintaining-dependencies.md',
|
7
|
-
task: async(ctx) => {
|
8
|
-
const path = `${ctx.nodeDir}/doc/contributing/maintaining/maintaining-dependencies.md`;
|
9
|
-
let maintainingDependenciesMd = await fs.readFile(path, 'utf8');
|
10
|
-
const v8Version = (await getNodeV8Version(ctx.nodeDir)).toString();
|
11
|
-
const v8VersionNoDots = v8Version.replaceAll('.', '');
|
12
|
-
// V8 itemlist link
|
13
|
-
maintainingDependenciesMd = maintainingDependenciesMd.replace(
|
14
|
-
/\* \[V8.*/,
|
15
|
-
`* [V8 ${v8Version}][]`
|
16
|
-
);
|
17
|
-
// V8 link to section
|
18
|
-
maintainingDependenciesMd = maintainingDependenciesMd.replace(
|
19
|
-
/\[v8.*\]: #v8.*/,
|
20
|
-
`[v8 ${v8Version}]: #v8-${v8VersionNoDots}`
|
21
|
-
);
|
22
|
-
// V8 section title
|
23
|
-
maintainingDependenciesMd = maintainingDependenciesMd.replace(
|
24
|
-
/### V8.*/,
|
25
|
-
`### V8 ${v8Version}`
|
26
|
-
);
|
27
|
-
await fs.writeFile(path, maintainingDependenciesMd);
|
28
|
-
await ctx.execGitNode(
|
29
|
-
'add',
|
30
|
-
['doc/contributing/maintaining/maintaining-dependencies.md']
|
31
|
-
);
|
32
|
-
}
|
33
|
-
};
|
34
|
-
};
|