Skip to content

Commit

Permalink
Update @types/hast, utilities, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 31, 2023
1 parent 11e5761 commit 813bea2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@
"index.js"
],
"dependencies": {
"@types/hast": "^2.0.0",
"@types/hast": "^3.0.0",
"@types/replace-ext": "^2.0.0",
"hast-util-is-element": "^2.0.0",
"hast-util-is-element": "^3.0.0",
"replace-ext": "^2.0.0",
"unified": "^10.0.0",
"unist-util-visit": "^4.0.0"
"unified": "^11.0.0",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@types/tape": "^5.0.0",
"c8": "^8.0.0",
"prettier": "^3.0.0",
"rehype-parse": "^8.0.0",
"rehype-stringify": "^9.0.0",
"rehype-parse": "^9.0.0",
"rehype-stringify": "^10.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
Expand Down
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('rehypePicture', (t) => {
.process('<img src="cat.png">', (error, file) => {
t.deepEqual(
[error, String(file)],
[null, '<img src="cat.png">'],
[undefined, '<img src="cat.png">'],
'should ignore non-matching images'
)
})
Expand All @@ -24,7 +24,7 @@ test('rehypePicture', (t) => {
.process('<img>', (error, file) => {
t.deepEqual(
[error, String(file)],
[null, '<img>'],
[undefined, '<img>'],
'should ignore images without src'
)
})
Expand All @@ -36,7 +36,7 @@ test('rehypePicture', (t) => {
.process('<img src="cat.jpg">', (error, file) => {
t.deepEqual(
[error, String(file)],
[null, '<picture><img src="cat.jpg"></picture>'],
[undefined, '<picture><img src="cat.jpg"></picture>'],
'should work without replacement map'
)
})
Expand All @@ -49,7 +49,7 @@ test('rehypePicture', (t) => {
t.deepEqual(
[error, String(file)],
[
null,
undefined,
'<picture><source srcset="cat.webp" type="image/webp"><img src="cat.jpg"></picture>'
],
'should add sources'
Expand Down

0 comments on commit 813bea2

Please sign in to comment.