Skip to content

Commit

Permalink
fix(deps): update dependency sql-formatter to v12 (CorentinTh#520)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency sql-formatter to v12

* fix(sql-prettify): corrected types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Corentin Thomasset <[email protected]>
  • Loading branch information
renovate[bot] and CorentinTh authored Aug 21, 2023
1 parent c58d6e3 commit 2bcb77a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"plausible-tracker": "^0.3.8",
"qrcode": "^1.5.1",
"randombytes": "^2.1.0",
"sql-formatter": "^8.2.0",
"sql-formatter": "^12.0.0",
"ts-pattern": "^4.2.2",
"ua-parser-js": "^1.0.35",
"unicode-emoji-json": "^0.4.0",
Expand Down
46 changes: 41 additions & 5 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/tools/sql-prettify/sql-prettify.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup lang="ts">
import { type FormatFnOptions, format as formatSQL } from 'sql-formatter';
import { type FormatOptionsWithLanguage, format as formatSQL } from 'sql-formatter';
import TextareaCopyable from '@/components/TextareaCopyable.vue';
import { useStyleStore } from '@/stores/style.store';
const inputElement = ref<HTMLElement>();
const styleStore = useStyleStore();
const config = reactive<Partial<FormatFnOptions>>({
const config = reactive<FormatOptionsWithLanguage>({
keywordCase: 'upper',
useTabs: false,
language: 'sql',
Expand Down

0 comments on commit 2bcb77a

Please sign in to comment.