alex-c-line 2.9.2 → 2.9.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/dist/index.cjs +4 -4
- package/dist/index.js +5 -5
- package/package.json +6 -6
- package/templates/incidents/incident.md +41 -0
package/dist/index.cjs
CHANGED
|
@@ -413,9 +413,9 @@ async function getSecurityAudit(program) {
|
|
|
413
413
|
low: 2,
|
|
414
414
|
info: 1
|
|
415
415
|
};
|
|
416
|
-
const auditTable = tableTemplate.replace("{{tableRows}}", Object.entries(securityAudit.advisories).toSorted((
|
|
417
|
-
return severityOrder[
|
|
418
|
-
}).map(([id, data]) => {
|
|
416
|
+
const auditTable = tableTemplate.replace("{{tableRows}}", Object.entries(securityAudit.advisories).toSorted((0, _alextheman_utility.sortBy)(([_, advisory]) => {
|
|
417
|
+
return severityOrder[advisory.severity];
|
|
418
|
+
}, "desc")).map(([id, data]) => {
|
|
419
419
|
return tableRowTemplate.replace("{{advisoryId}}", id).replace("{{severity}}", data.severity).replace("{{packageName}}", data.module_name).replace("{{title}}", data.title).replace("{{affected}}", data.vulnerable_versions).replace("{{patched}}", data.patched_versions).replace("{{url}}", data.url);
|
|
420
420
|
}).join("\n"));
|
|
421
421
|
return _alextheman_utility.normaliseIndents`
|
|
@@ -1356,7 +1356,7 @@ function template(program) {
|
|
|
1356
1356
|
//#endregion
|
|
1357
1357
|
//#region package.json
|
|
1358
1358
|
var name = "alex-c-line";
|
|
1359
|
-
var version$1 = "2.9.
|
|
1359
|
+
var version$1 = "2.9.3";
|
|
1360
1360
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1361
1361
|
//#endregion
|
|
1362
1362
|
//#region src/utility/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import boxen from "boxen";
|
|
|
7
7
|
import figlet from "figlet";
|
|
8
8
|
import envPaths from "env-paths";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import { ONE_DAY_IN_MILLISECONDS, VersionNumber, az, fillArray, getStringsAndInterpolations, interpolate, isTemplateStringsArray, kebabToCamel, normaliseIndents, omitProperties, parseBoolean, parseVersionType, removeDuplicates, removeUndefinedFromObject, stringifyDotenv } from "@alextheman/utility";
|
|
10
|
+
import { ONE_DAY_IN_MILLISECONDS, VersionNumber, az, fillArray, getStringsAndInterpolations, interpolate, isTemplateStringsArray, kebabToCamel, normaliseIndents, omitProperties, parseBoolean, parseVersionType, removeDuplicates, removeUndefinedFromObject, sortBy, stringifyDotenv } from "@alextheman/utility";
|
|
11
11
|
import { confirm, input, password, select } from "@inquirer/prompts";
|
|
12
12
|
import { access, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
13
13
|
import { parse } from "dotenv";
|
|
@@ -382,9 +382,9 @@ async function getSecurityAudit(program) {
|
|
|
382
382
|
low: 2,
|
|
383
383
|
info: 1
|
|
384
384
|
};
|
|
385
|
-
const auditTable = tableTemplate.replace("{{tableRows}}", Object.entries(securityAudit.advisories).toSorted(([_,
|
|
386
|
-
return severityOrder[
|
|
387
|
-
}).map(([id, data]) => {
|
|
385
|
+
const auditTable = tableTemplate.replace("{{tableRows}}", Object.entries(securityAudit.advisories).toSorted(sortBy(([_, advisory]) => {
|
|
386
|
+
return severityOrder[advisory.severity];
|
|
387
|
+
}, "desc")).map(([id, data]) => {
|
|
388
388
|
return tableRowTemplate.replace("{{advisoryId}}", id).replace("{{severity}}", data.severity).replace("{{packageName}}", data.module_name).replace("{{title}}", data.title).replace("{{affected}}", data.vulnerable_versions).replace("{{patched}}", data.patched_versions).replace("{{url}}", data.url);
|
|
389
389
|
}).join("\n"));
|
|
390
390
|
return normaliseIndents`
|
|
@@ -1325,7 +1325,7 @@ function template(program) {
|
|
|
1325
1325
|
//#endregion
|
|
1326
1326
|
//#region package.json
|
|
1327
1327
|
var name = "alex-c-line";
|
|
1328
|
-
var version$1 = "2.9.
|
|
1328
|
+
var version$1 = "2.9.3";
|
|
1329
1329
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1330
1330
|
//#endregion
|
|
1331
1331
|
//#region src/utility/updates/checkUpdate.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alex-c-line",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"description": "Command-line tool with commands to streamline the developer workflow.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "5.
|
|
37
|
+
"@alextheman/utility": "5.21.0",
|
|
38
38
|
"@inquirer/prompts": "8.5.2",
|
|
39
39
|
"axios": "1.17.0",
|
|
40
40
|
"boxen": "8.0.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"execa": "9.6.1",
|
|
47
47
|
"figlet": "1.11.0",
|
|
48
48
|
"gray-matter": "4.0.3",
|
|
49
|
-
"semver": "7.8.
|
|
49
|
+
"semver": "7.8.4",
|
|
50
50
|
"supports-color": "10.2.2",
|
|
51
51
|
"toml": "4.1.1",
|
|
52
52
|
"zod": "4.4.3"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@alextheman/eslint-plugin": "5.17.0",
|
|
56
56
|
"@commander-js/extra-typings": "15.0.0",
|
|
57
57
|
"@types/eslint": "9.6.1",
|
|
58
|
-
"@types/node": "25.9.
|
|
58
|
+
"@types/node": "25.9.3",
|
|
59
59
|
"@types/semver": "7.7.1",
|
|
60
60
|
"@types/update-notifier": "6.0.8",
|
|
61
61
|
"cross-env": "10.1.0",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"eslint": "10.4.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
65
|
"markdownlint-cli2": "0.22.1",
|
|
66
|
-
"prettier": "3.8.
|
|
66
|
+
"prettier": "3.8.4",
|
|
67
67
|
"tempy": "3.2.0",
|
|
68
68
|
"ts-node": "10.9.2",
|
|
69
69
|
"tsdown": "0.22.2",
|
|
70
70
|
"typescript": "6.0.3",
|
|
71
|
-
"typescript-eslint": "8.
|
|
71
|
+
"typescript-eslint": "8.61.0",
|
|
72
72
|
"vite": "8.0.16",
|
|
73
73
|
"vitest": "4.1.8"
|
|
74
74
|
},
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: incident
|
|
3
|
+
placeholders:
|
|
4
|
+
- date
|
|
5
|
+
- severity
|
|
6
|
+
- incidentType
|
|
7
|
+
- projectName
|
|
8
|
+
- reason
|
|
9
|
+
---
|
|
10
|
+
# Incident on {{date}}
|
|
11
|
+
|
|
12
|
+
**Severity**: {{severity}}
|
|
13
|
+
**Incident Type**: {{incidentType}}
|
|
14
|
+
|
|
15
|
+
This document details a serious incident related to `{{projectName}}` which affected regular usage. Please read below for a description of what went wrong and the steps being taken to resolve it.
|
|
16
|
+
|
|
17
|
+
## Description of Incident
|
|
18
|
+
|
|
19
|
+
### Incident Summary
|
|
20
|
+
|
|
21
|
+
A high-level overview of what went wrong.
|
|
22
|
+
|
|
23
|
+
### Cause(s) of Incident
|
|
24
|
+
|
|
25
|
+
What were the primary contributing factor(s) towards why this incident occurred?
|
|
26
|
+
|
|
27
|
+
### Consequences of Incident
|
|
28
|
+
|
|
29
|
+
What ended up being affected as a result of this incident occurring?
|
|
30
|
+
|
|
31
|
+
## Timeline
|
|
32
|
+
|
|
33
|
+
A rough timeline on how the incident played out, from the introduction of the issue to the resolution.
|
|
34
|
+
|
|
35
|
+
## Action Plan
|
|
36
|
+
|
|
37
|
+
What steps have we been taking/are planning to take to minimise the chances of this happening again?
|
|
38
|
+
|
|
39
|
+
## Additional Notes
|
|
40
|
+
|
|
41
|
+
Additional notes here.
|