fix(deps): update dependency sql-formatter to v12 (#520)
* 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>
This commit is contained in:
		
							parent
							
								
									c58d6e3423
								
							
						
					
					
						commit
						2bcb77a9f9
					
				| @ -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", | ||||
|  | ||||
							
								
								
									
										46
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										46
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							| @ -123,8 +123,8 @@ dependencies: | ||||
|     specifier: ^2.1.0 | ||||
|     version: 2.1.0 | ||||
|   sql-formatter: | ||||
|     specifier: ^8.2.0 | ||||
|     version: 8.2.0 | ||||
|     specifier: ^12.0.0 | ||||
|     version: 12.0.0 | ||||
|   ts-pattern: | ||||
|     specifier: ^4.2.2 | ||||
|     version: 4.2.2 | ||||
| @ -4307,7 +4307,6 @@ packages: | ||||
| 
 | ||||
|   /commander@2.20.3: | ||||
|     resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} | ||||
|     dev: true | ||||
| 
 | ||||
|   /commander@7.2.0: | ||||
|     resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} | ||||
| @ -4622,6 +4621,10 @@ packages: | ||||
|       path-type: 4.0.0 | ||||
|     dev: true | ||||
| 
 | ||||
|   /discontinuous-range@1.0.0: | ||||
|     resolution: {integrity: sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==} | ||||
|     dev: false | ||||
| 
 | ||||
|   /doctrine@2.1.0: | ||||
|     resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} | ||||
|     engines: {node: '>=0.10.0'} | ||||
| @ -6657,6 +6660,10 @@ packages: | ||||
|       pkg-types: 1.0.3 | ||||
|       ufo: 1.1.2 | ||||
| 
 | ||||
|   /moo@0.5.2: | ||||
|     resolution: {integrity: sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==} | ||||
|     dev: false | ||||
| 
 | ||||
|   /mrmime@1.0.1: | ||||
|     resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} | ||||
|     engines: {node: '>=10'} | ||||
| @ -6710,6 +6717,16 @@ packages: | ||||
|     resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} | ||||
|     dev: true | ||||
| 
 | ||||
|   /nearley@2.20.1: | ||||
|     resolution: {integrity: sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==} | ||||
|     hasBin: true | ||||
|     dependencies: | ||||
|       commander: 2.20.3 | ||||
|       moo: 0.5.2 | ||||
|       railroad-diagrams: 1.0.0 | ||||
|       randexp: 0.4.6 | ||||
|     dev: false | ||||
| 
 | ||||
|   /needle@3.2.0: | ||||
|     resolution: {integrity: sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==} | ||||
|     engines: {node: '>= 4.4.x'} | ||||
| @ -7381,6 +7398,18 @@ packages: | ||||
|     engines: {node: '>=10'} | ||||
|     dev: false | ||||
| 
 | ||||
|   /railroad-diagrams@1.0.0: | ||||
|     resolution: {integrity: sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==} | ||||
|     dev: false | ||||
| 
 | ||||
|   /randexp@0.4.6: | ||||
|     resolution: {integrity: sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==} | ||||
|     engines: {node: '>=0.12'} | ||||
|     dependencies: | ||||
|       discontinuous-range: 1.0.0 | ||||
|       ret: 0.1.15 | ||||
|     dev: false | ||||
| 
 | ||||
|   /randombytes@2.1.0: | ||||
|     resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} | ||||
|     dependencies: | ||||
| @ -7512,6 +7541,11 @@ packages: | ||||
|       supports-preserve-symlinks-flag: 1.0.0 | ||||
|     dev: true | ||||
| 
 | ||||
|   /ret@0.1.15: | ||||
|     resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==} | ||||
|     engines: {node: '>=0.12'} | ||||
|     dev: false | ||||
| 
 | ||||
|   /reusify@1.0.4: | ||||
|     resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} | ||||
|     engines: {iojs: '>=1.0.0', node: '>=0.10.0'} | ||||
| @ -7783,10 +7817,12 @@ packages: | ||||
|     resolution: {integrity: sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==} | ||||
|     dev: false | ||||
| 
 | ||||
|   /sql-formatter@8.2.0: | ||||
|     resolution: {integrity: sha512-5hQOSOk8jfhPkNgUmpm+9Fn2aaLWcf4vKL/dIvUN5q9rsamKHSyN/gL79xpkETNOyL+Zv5BMQfA7z9Rmz/DJJg==} | ||||
|   /sql-formatter@12.0.0: | ||||
|     resolution: {integrity: sha512-LR2m7BEvkyNAPzmcSCZ2b4Qzm5ySiiXS9Juc73VguTqCWIbYv7ZFV4LaDM7jNNZqHPfrqFssO7WWpITsAuLOuQ==} | ||||
|     hasBin: true | ||||
|     dependencies: | ||||
|       argparse: 2.0.1 | ||||
|       nearley: 2.20.1 | ||||
|     dev: false | ||||
| 
 | ||||
|   /stackback@0.0.2: | ||||
|  | ||||
| @ -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', | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user