Skip to content

Commit 510fe9e

Browse files
committed
Update dev-dependencies
1 parent fe6f00d commit 510fe9e

File tree

10 files changed

+179
-176
lines changed

10 files changed

+179
-176
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
name: ${{matrix.node}} on ${{matrix.os}}
88
runs-on: ${{matrix.os}}
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
1515
- run: npm test
16-
- uses: codecov/codecov-action@v3
16+
- uses: codecov/codecov-action@v4
1717
strategy:
1818
matrix:
1919
os:

index.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ unified()
187187

188188
unified().use(function () {
189189
// Function.
190-
this.parser = function (doc, file) {
191-
expectType<string>(doc)
190+
this.parser = function (document, file) {
191+
expectType<string>(document)
192192
expectType<VFile>(file)
193193
return {type: ''}
194194
}

lib/callable-instance.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ export const CallableInstance =
1818
// type-coverage:ignore-next-line
1919
constr.prototype
2020
)
21-
const func = proto[property]
21+
const value = proto[property]
2222
/** @type {(...parameters: Array<unknown>) => unknown} */
2323
const apply = function () {
24-
return func.apply(apply, arguments)
24+
return value.apply(apply, arguments)
2525
}
2626

2727
Object.setPrototypeOf(apply, proto)
2828

29-
const names = Object.getOwnPropertyNames(func)
29+
const names = Object.getOwnPropertyNames(value)
3030

3131
for (const p of names) {
32-
const descriptor = Object.getOwnPropertyDescriptor(func, p)
32+
const descriptor = Object.getOwnPropertyDescriptor(value, p)
3333
if (descriptor) Object.defineProperty(apply, p, descriptor)
3434
}
3535

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
"@types/hast": "^3.0.0",
5959
"@types/mdast": "^4.0.0",
6060
"@types/node": "^20.0.0",
61-
"c8": "^8.0.0",
61+
"c8": "^9.0.0",
6262
"prettier": "^3.0.0",
63-
"remark-cli": "^11.0.0",
64-
"remark-preset-wooorm": "^9.0.0",
65-
"tsd": "^0.29.0",
63+
"remark-cli": "^12.0.0",
64+
"remark-preset-wooorm": "^10.0.0",
65+
"tsd": "^0.31.0",
6666
"type-coverage": "^2.0.0",
6767
"typescript": "^5.0.0",
68-
"xo": "^0.56.0"
68+
"xo": "^0.58.0"
6969
},
7070
"scripts": {
7171
"build": "tsc --build --clean && tsc --build && node script/fix-types.js && type-coverage && tsd",
@@ -107,7 +107,8 @@
107107
"rules": {
108108
"@typescript-eslint/ban-types": "off",
109109
"@typescript-eslint/consistent-type-definitions": "off",
110-
"@typescript-eslint/naming-convention": "off"
110+
"@typescript-eslint/naming-convention": "off",
111+
"import/no-duplicates": "off"
111112
}
112113
}
113114
],

0 commit comments

Comments
 (0)