Skip to content

Commit 6d4cd11

Browse files
committed
build: upgrade to ts 5.5
1 parent 13a5d68 commit 6d4cd11

File tree

4 files changed

+199
-198
lines changed

4 files changed

+199
-198
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@commitlint/cli": "^19.3.0",
3535
"@commitlint/config-conventional": "^19.2.2",
3636
"@commitlint/types": "^19.0.3",
37-
"@types/node": "^20.14.5",
37+
"@types/node": "^20.14.7",
3838
"@types/webpack-env": "^1.18.5",
3939
"@vitest/coverage-istanbul": "^1.6.0",
4040
"bumpp": "^9.4.1",
@@ -50,7 +50,7 @@
5050
"sort-package-json": "^2.10.0",
5151
"tsconfig-vuepress": "^4.5.0",
5252
"tsup": "^8.1.0",
53-
"typescript": "^5.4.5",
53+
"typescript": "^5.5.2",
5454
"vite": "~5.3.1",
5555
"vitest": "^1.6.0",
5656
"vue-tsc": "^2.0.21"

packages/bundler-webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"vue": "^3.4.29",
5959
"vue-loader": "^17.4.2",
6060
"vue-router": "^4.3.3",
61-
"webpack": "^5.92.0",
61+
"webpack": "^5.92.1",
6262
"webpack-5-chain": "^8.0.2",
6363
"webpack-dev-server": "^5.0.4",
6464
"webpack-merge": "^5.10.0"

packages/markdown/src/plugins/assetsPlugin/assetsPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const assetsPlugin: PluginWithOptions<AssetsPluginOptions> = (
5252
tokens[idx].content = tokens[idx].content
5353
// handle src
5454
.replace(
55-
/(<img\b.*?src=)(['"])([^\2]*?)\2/gs,
55+
/(<img\b.*?src=)(['"])(.*?)\2/gs,
5656
(_, prefix: string, quote: string, src: string) =>
5757
`${prefix}${quote}${resolveLink(src.trim(), {
5858
env,
@@ -63,7 +63,7 @@ export const assetsPlugin: PluginWithOptions<AssetsPluginOptions> = (
6363
)
6464
// handle srcset
6565
.replace(
66-
/(<img\b.*?srcset=)(['"])([^\2]*?)\2/gs,
66+
/(<img\b.*?srcset=)(['"])(.*?)\2/gs,
6767
(_, prefix: string, quote: string, srcset: string) =>
6868
`${prefix}${quote}${srcset
6969
.split(',')

0 commit comments

Comments
 (0)