Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 5, 2024
1 parent 8801060 commit 6774ec5
Show file tree
Hide file tree
Showing 15 changed files with 574 additions and 576 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@vueuse/core": "^11.0.3",
"floating-vue": "^5.2.2",
"fuse.js": "^7.0.0",
"sass": "^1.77.8",
"sass": "^1.78.0",
"unocss": "^0.62.3",
"vitepress": "^1.3.4",
"vue": "^3.4.38"
"vue": "^3.5.2"
}
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config": "^3.0.0",
"@antfu/eslint-config": "^3.2.1",
"@iconify-json/ri": "^1.2.0",
"@iconify-json/svg-spinners": "^1.2.0",
"@shikijs/markdown-it": "^1.15.2",
"@shikijs/transformers": "^1.15.2",
"@shikijs/twoslash": "^1.15.2",
"@shikijs/vitepress-twoslash": "^1.15.2",
"@types/node": "^22.5.2",
"@shikijs/markdown-it": "^1.16.2",
"@shikijs/transformers": "^1.16.2",
"@shikijs/twoslash": "^1.16.2",
"@shikijs/vitepress-twoslash": "^1.16.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@typescript/twoslash": "^3.2.8",
Expand All @@ -41,7 +41,7 @@
"preact": "^10.23.2",
"pretty-format": "^29.7.0",
"react": "^18.3.1",
"shiki": "^1.15.2",
"shiki": "^1.16.2",
"simple-git-hooks": "^2.11.1",
"tslib": "^2.7.0",
"twoslash": "workspace:*",
Expand All @@ -51,13 +51,13 @@
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.2",
"vite": "^5.4.3",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.0.5",
"vue": "^3.4.38"
"vue": "^3.5.2"
},
"resolutions": {
"@types/node": "^22.5.2",
"@types/node": "^22.5.4",
"twoslash": "workspace:*",
"twoslash-vue": "workspace:*",
"typescript": "^5.5.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/twoslash-cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"twoslash-cdn": "workspace:*",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"unstorage": "^1.10.2",
"vite": "^5.4.2",
"unstorage": "^1.11.1",
"vite": "^5.4.3",
"vitest": "^2.0.5"
}
}
6 changes: 3 additions & 3 deletions packages/twoslash-cdn/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"dev": "vite"
},
"dependencies": {
"@shikijs/twoslash": "^1.15.2",
"shiki": "^1.15.2"
"@shikijs/twoslash": "^1.16.2",
"shiki": "^1.16.2"
},
"devDependencies": {
"idb-keyval": "^6.2.1",
"vite": "^5.4.2"
"vite": "^5.4.3"
}
}
16 changes: 7 additions & 9 deletions packages/twoslash-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,13 @@ export function createTwoslasher(createOptions: CreateTwoslashVueOptions = {}):

const mappedRemovals = [
...sourceMeta.removals,
...result.meta.removals
.map((r) => {
const start = get(map.toSourceLocation(r[0]), 0)?.[0] ?? code.match(/(?<=<script[\s\S]*>\s)/)?.index
const end = get(map.toSourceLocation(r[1]), 0)?.[0]
if (start == null || end == null || start < 0 || end < 0 || start >= end)
return undefined
return [start, end] as Range
})
.filter(isNotNull),
...result.meta.removals.map((r) => {
const start = get(map.toSourceLocation(r[0]), 0)?.[0] ?? code.match(/(?<=<script[\s\S]*>\s)/)?.index
const end = get(map.toSourceLocation(r[1]), 0)?.[0]
if (start == null || end == null || start < 0 || end < 0 || start >= end)
return undefined
return [start, end] as Range
}).filter(isNotNull),
]

if (!options.handbookOptions?.keepNotations) {
Expand Down
2 changes: 1 addition & 1 deletion packages/twoslash-vue/test/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('basic', () => {
"target": "computed",
"text": "(alias) const computed: {
<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
<T, S = T>(options: WritableComputedOptions<T, S>, debugOptions?: DebuggerOptions): WritableComputedRef<T, S>;
}
import computed",
"type": "query",
Expand Down
10 changes: 5 additions & 5 deletions packages/twoslash-vue/test/results/completion.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/twoslash-vue/test/results/cut-around-vue.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/twoslash-vue/test/results/cut-in-vue.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions packages/twoslash-vue/test/results/example.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6774ec5

Please sign in to comment.