Skip to content

Commit

Permalink
fix(deps): update dependency sql-formatter to v12 (#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 <corentin.thomasset74@gmail.com>
  • Loading branch information
renovate[bot] and CorentinTh committed 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
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
@@ -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

1 comment on commit 2bcb77a

@vercel
Copy link

@vercel vercel bot commented on 2bcb77a Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

it-tools – ./

it-tools.vercel.app
it-tools-git-main-ctmsst.vercel.app
it-tools-ctmsst.vercel.app
it-tools.tech

Please sign in to comment.