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}}
|
name: ${{matrix.node}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{matrix.node}}
|
node-version: ${{matrix.node}}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v4
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node:
|
node:
|
||||||
|
|
13
package.json
13
package.json
|
@ -46,16 +46,16 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.0.0",
|
"@types/node": "^20.0.0",
|
||||||
"c8": "^8.0.0",
|
"c8": "^10.0.0",
|
||||||
"html-void-elements": "^3.0.0",
|
"html-void-elements": "^3.0.0",
|
||||||
"micromark": "^4.0.0",
|
"micromark": "^4.0.0",
|
||||||
"micromark-build": "^2.0.0",
|
"micromark-build": "^2.0.0",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0",
|
||||||
"remark-cli": "^11.0.0",
|
"remark-cli": "^12.0.0",
|
||||||
"remark-preset-wooorm": "^9.0.0",
|
"remark-preset-wooorm": "^10.0.0",
|
||||||
"type-coverage": "^2.0.0",
|
"type-coverage": "^2.0.0",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"xo": "^0.56.0"
|
"xo": "^0.58.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepack": "npm run build && npm run format",
|
"prepack": "npm run build && npm run format",
|
||||||
|
@ -99,9 +99,10 @@
|
||||||
],
|
],
|
||||||
"prettier": true,
|
"prettier": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"logical-assignment-operators": "off",
|
||||||
"max-params": "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}
|
* @type {Handle}
|
||||||
*/
|
*/
|
||||||
function youtube(d) {
|
function youtube(d) {
|
||||||
const attrs = d.attributes || {}
|
const attributes = d.attributes || {}
|
||||||
const v = attrs.v
|
const v = attributes.v
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
let prop
|
let key
|
||||||
|
|
||||||
if (!v) return false
|
if (!v) return false
|
||||||
|
|
||||||
|
@ -1694,9 +1694,9 @@ function youtube(d) {
|
||||||
list.push('title="' + this.encode(d.label) + '"')
|
list.push('title="' + this.encode(d.label) + '"')
|
||||||
}
|
}
|
||||||
|
|
||||||
for (prop in attrs) {
|
for (key in attributes) {
|
||||||
if (prop !== 'v') {
|
if (key !== 'v') {
|
||||||
list.push(this.encode(prop) + '="' + this.encode(attrs[prop]) + '"')
|
list.push(this.encode(key) + '="' + this.encode(attributes[key]) + '"')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1721,15 +1721,15 @@ function youtube(d) {
|
||||||
*/
|
*/
|
||||||
function h(d) {
|
function h(d) {
|
||||||
const content = d.content || d.label
|
const content = d.content || d.label
|
||||||
const attrs = d.attributes || {}
|
const attributes = d.attributes || {}
|
||||||
/** @type {Array<string>} */
|
/** @type {Array<string>} */
|
||||||
const list = []
|
const list = []
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
let prop
|
let key
|
||||||
|
|
||||||
for (prop in attrs) {
|
for (key in attributes) {
|
||||||
if (own.call(attrs, prop)) {
|
if (own.call(attributes, key)) {
|
||||||
list.push(this.encode(prop) + '="' + this.encode(attrs[prop]) + '"')
|
list.push(this.encode(key) + '="' + this.encode(attributes[key]) + '"')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue