The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: bump markdown-table (#22249)
Kevin Grüneberg55afcccd392e
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsxindex af21687008e..294b223a73a 100644--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx@@ -1,6 +1,5 @@import { compact, isObject, isString, map } from 'lodash'-// @ts-ignore-import MarkdownTable from 'markdown-table'+import { markdownTable } from 'markdown-table'import { useRouter } from 'next/router'import { useMemo, useRef } from 'react'import { CSVLink } from 'react-csv'@@ -90,7 +89,7 @@ const ResultsDropdown = ({ id }: ResultsDropdownProps) => {return temp})const table = [columns].concat(rows)- const markdownData = MarkdownTable(table)+ const markdownData = markdownTable(table)copyToClipboard(markdownData, () => {toast.success('Copied results to clipboard')diff --git a/apps/studio/package.json b/apps/studio/package.jsonindex 373867bb913..9c39304b49a 100644--- a/apps/studio/package.json+++ b/apps/studio/package.json@@ -59,7 +59,7 @@"jsonrepair": "^3.2.3","lodash": "^4.17.21","lucide-react": "^0.338.0",- "markdown-table": "=2.0.0",+ "markdown-table": "^3.0.3","mobx": "^6.10.2","mobx-react-lite": "^4.0.5","monaco-editor": "0.33.0",diff --git a/package-lock.json b/package-lock.jsonindex ccb32647fb2..1ee29c01570 100644--- a/package-lock.json+++ b/package-lock.json@@ -2371,7 +2371,7 @@"jsonrepair": "^3.2.3","lodash": "^4.17.21","lucide-react": "^0.338.0",- "markdown-table": "=2.0.0",+ "markdown-table": "^3.0.3","mobx": "^6.10.2","mobx-react-lite": "^4.0.5","monaco-editor": "0.33.0",@@ -30851,11 +30851,9 @@}},"node_modules/markdown-table": {- "version": "2.0.0",- "license": "MIT",- "dependencies": {- "repeat-string": "^1.0.0"- },+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.3.tgz",+ "integrity": "sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==","funding": {"type": "github","url": "https://github.com/sponsors/wooorm"@@ -31802,16 +31800,6 @@"integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==","dev": true},- "node_modules/mdast-util-gfm-table/node_modules/markdown-table": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.3.tgz",- "integrity": "sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==",- "dev": true,- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing": {"version": "4.1.0","resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",@@ -40079,14 +40067,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/remark-gfm/node_modules/markdown-table": {- "version": "3.0.3",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/remark-gfm/node_modules/mdast-util-find-and-replace": {"version": "2.2.2","license": "MIT",