Skip to content

Commit d8aed83

Browse files
committed
WIP
1 parent 6c7e73f commit d8aed83

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/nodejs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: ^20.8
17+
node-version: '22'
1818
- run: |
1919
npm install
2020
npm run lint
@@ -27,7 +27,7 @@ jobs:
2727

2828
strategy:
2929
matrix:
30-
node-version: ['12.22.0', '12', '14.17.0', '14', '16.0.0', '16', '18', '20', '21']
30+
node-version: ['12.22.0', '12', '14.17.0', '14', '16.0.0', '16', '18', '20', '22']
3131

3232
steps:
3333
- uses: actions/checkout@v4
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-node@v4
5050
with:
51-
node-version: '20'
51+
node-version: '22'
5252
- run: |
5353
npm install --force [email protected]
5454
npm test

lib/format-code-path.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function formatCodePath(codePath, { segmentNames } = { })
4343
{
4444
const { id } = segment;
4545
const lines = segment.internal.nodes || [];
46+
if (!segment.reachable)
47+
lines.unshift('❮❮unreachable❯❯');
4648
if (segmentNames)
4749
lines.unshift(`【${id}】`);
48-
else if (!lines.length)
49-
lines.push(id);
5050
const label = lines.join('\n');
5151
text += `state ${JSON.stringify(label)} as ${id}\n`;
5252
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"test": "mocha --check-leaks"
2121
},
2222
"dependencies": {
23-
"eslint": "^8.4",
23+
"eslint": "9",
2424
"postrequire": "2"
2525
},
2626
"devDependencies": {
27-
"@origin-1/eslint-config": "latest",
27+
"@origin-1/eslint-config": "eslint-8",
2828
"c8js": "latest",
2929
"eslint-formatter-compact": "latest",
3030
"globals": "latest",

0 commit comments

Comments
 (0)