Update dev-dependencies
This commit is contained in:
parent
7f23ba84fe
commit
fdc0fa5291
4 changed files with 69 additions and 68 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -7,13 +7,13 @@ jobs:
|
|||
name: ${{matrix.node}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{matrix.node}}
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- uses: codecov/codecov-action@v3
|
||||
- uses: codecov/codecov-action@v4
|
||||
strategy:
|
||||
matrix:
|
||||
node:
|
||||
|
|
13
package.json
13
package.json
|
@ -46,16 +46,16 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.0.0",
|
||||
"c8": "^8.0.0",
|
||||
"c8": "^10.0.0",
|
||||
"html-void-elements": "^3.0.0",
|
||||
"micromark": "^4.0.0",
|
||||
"micromark-build": "^2.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"remark-cli": "^11.0.0",
|
||||
"remark-preset-wooorm": "^9.0.0",
|
||||
"remark-cli": "^12.0.0",
|
||||
"remark-preset-wooorm": "^10.0.0",
|
||||
"type-coverage": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"xo": "^0.56.0"
|
||||
"xo": "^0.58.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepack": "npm run build && npm run format",
|
||||
|
@ -99,9 +99,10 @@
|
|||
],
|
||||
"prettier": true,
|
||||
"rules": {
|
||||
"logical-assignment-operators": "off",
|
||||
"max-params": "off",
|
||||
"unicorn/prefer-at": "off",
|
||||
"unicorn/no-this-assignment": "off"
|
||||
"unicorn/no-this-assignment": "off",
|
||||
"unicorn/prefer-at": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1678,10 +1678,10 @@ function abbr(d) {
|
|||
* @type {Handle}
|
||||
*/
|
||||
function youtube(d) {
|
||||
const attrs = d.attributes || {}
|
||||
const v = attrs.v
|
||||
const attributes = d.attributes || {}
|
||||
const v = attributes.v
|
||||
/** @type {string} */
|
||||
let prop
|
||||
let key
|
||||
|
||||
if (!v) return false
|
||||
|
||||
|
@ -1694,9 +1694,9 @@ function youtube(d) {
|
|||
list.push('title="' + this.encode(d.label) + '"')
|
||||
}
|
||||
|
||||
for (prop in attrs) {
|
||||
if (prop !== 'v') {
|
||||
list.push(this.encode(prop) + '="' + this.encode(attrs[prop]) + '"')
|
||||
for (key in attributes) {
|
||||
if (key !== 'v') {
|
||||
list.push(this.encode(key) + '="' + this.encode(attributes[key]) + '"')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1721,15 +1721,15 @@ function youtube(d) {
|
|||
*/
|
||||
function h(d) {
|
||||
const content = d.content || d.label
|
||||
const attrs = d.attributes || {}
|
||||
const attributes = d.attributes || {}
|
||||
/** @type {Array<string>} */
|
||||
const list = []
|
||||
/** @type {string} */
|
||||
let prop
|
||||
let key
|
||||
|
||||
for (prop in attrs) {
|
||||
if (own.call(attrs, prop)) {
|
||||
list.push(this.encode(prop) + '="' + this.encode(attrs[prop]) + '"')
|
||||
for (key in attributes) {
|
||||
if (own.call(attributes, key)) {
|
||||
list.push(this.encode(key) + '="' + this.encode(attributes[key]) + '"')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue