From cc6ad98030103f0d53ced4237b0c8577014771b1 Mon Sep 17 00:00:00 2001
From: Marc Stammerjohann <8985933+marcjulian@users.noreply.github.com>
Date: Fri, 2 Feb 2024 19:50:24 +0100
Subject: [PATCH] update astro, add prettier plugins, format
---
docs/.prettierignore | 1 +
docs/.prettierrc.json | 5 +-
docs/README.md | 1 -
docs/package-lock.json | 355 ++++++++----------
docs/package.json | 25 +-
docs/src/components/HeadCommon.astro | 3 +-
docs/src/components/Search.tsx | 6 +-
docs/src/config.ts | 6 +-
docs/src/content/docs/basic-usage.md | 2 +-
.../docs/custom-prisma-client-location.md | 6 +-
docs/src/content/docs/exception-filter.md | 2 +-
.../content/docs/prisma-client-extensions.md | 8 +-
docs/src/content/docs/prisma-middleware.md | 2 +-
docs/src/layouts/Base.astro | 4 +-
docs/src/layouts/CustomDoc.astro | 2 +-
docs/src/layouts/Doc.astro | 4 +-
docs/src/pages/404.astro | 4 +-
docs/tsconfig.json | 4 +-
18 files changed, 204 insertions(+), 236 deletions(-)
create mode 100644 docs/.prettierignore
diff --git a/docs/.prettierignore b/docs/.prettierignore
new file mode 100644
index 0000000..483a9c4
--- /dev/null
+++ b/docs/.prettierignore
@@ -0,0 +1 @@
+package-lock.json
\ No newline at end of file
diff --git a/docs/.prettierrc.json b/docs/.prettierrc.json
index 6377878..95a7efc 100644
--- a/docs/.prettierrc.json
+++ b/docs/.prettierrc.json
@@ -1 +1,4 @@
-{ "singleQuote": true }
+{
+ "singleQuote": true,
+ "plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"]
+}
diff --git a/docs/README.md b/docs/README.md
index bea6349..2d7df38 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -6,7 +6,6 @@
![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png)
-
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
diff --git a/docs/package-lock.json b/docs/package-lock.json
index 8f26fa3..2a49e46 100644
--- a/docs/package-lock.json
+++ b/docs/package-lock.json
@@ -8,13 +8,13 @@
"name": "@example/basics",
"version": "0.0.1",
"dependencies": {
- "@astrojs/alpinejs": "^0.3.1",
- "@astrojs/react": "^3.0.7",
- "@astrojs/sitemap": "^3.0.3",
- "@astrojs/tailwind": "^5.0.3",
+ "@astrojs/alpinejs": "^0.4.0",
+ "@astrojs/react": "^3.0.9",
+ "@astrojs/sitemap": "^3.0.5",
+ "@astrojs/tailwind": "^5.1.0",
"@docsearch/react": "^3.3.4",
"alpinejs": "^3.13.3",
- "astro": "^4.0.3",
+ "astro": "^4.3.1",
"astro-icon": "^0.8.2",
"astro-robots-txt": "^1.0.0",
"astro-seo": "^0.8.0",
@@ -197,9 +197,9 @@
}
},
"node_modules/@astrojs/alpinejs": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/@astrojs/alpinejs/-/alpinejs-0.3.1.tgz",
- "integrity": "sha512-GKaptRkdJvcqoTOCeAbeiemnpsayJkUmShSjR2qlkvpCIv7B5HzqqfkblLnOwgMGKOggpwZJAZfSAmALqWgNcw==",
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@astrojs/alpinejs/-/alpinejs-0.4.0.tgz",
+ "integrity": "sha512-68BY1CA0XuielLW3WdX2sfh9F4sSTnFqQ//IE9AditbiYJ77HJDb4uZx07pTFDtr1jOMU7lCvH+iS9gmNafM1g==",
"peerDependencies": {
"@types/alpinejs": "^3.0.0",
"alpinejs": "^3.0.0"
@@ -217,9 +217,9 @@
"integrity": "sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A=="
},
"node_modules/@astrojs/markdown-remark": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-4.0.0.tgz",
- "integrity": "sha512-JSrn49fJGuH/0S2TTGxLK7bNDspOakJWZVFHeP+IDFjWdghT4HtsTShS2EiISNx3zfOFBAwy5Cj4xT4U5BWNeA==",
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-4.2.1.tgz",
+ "integrity": "sha512-2RQBIwrq+2qPYtp99bH+eL5hfbK0BoxXla85lHsRpIX/IsGqFrPX6pXI2cbWPihBwGbKCdxS6uZNX2QerZWwpQ==",
"dependencies": {
"@astrojs/prism": "^3.0.0",
"github-slugger": "^2.0.0",
@@ -231,13 +231,10 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"remark-smartypants": "^2.0.0",
- "shikiji": "^0.6.13",
+ "shikiji": "^0.9.18",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.1"
- },
- "peerDependencies": {
- "astro": "^4.0.0-beta.0"
}
},
"node_modules/@astrojs/prism": {
@@ -252,9 +249,9 @@
}
},
"node_modules/@astrojs/react": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@astrojs/react/-/react-3.0.7.tgz",
- "integrity": "sha512-MpjuFw7YGta44OaQExKVCWyXjujUtUsp5Nst/wIjRHbkmBBlypdj+MF9/xqjsYM+vjcrByOGupmluRrFQO67YQ==",
+ "version": "3.0.9",
+ "resolved": "https://registry.npmjs.org/@astrojs/react/-/react-3.0.9.tgz",
+ "integrity": "sha512-31J5yF5p9yBFV1axBooLA9PB4B2+MYm7swWhtlezSsJiUNXRFo5Is9qI3teJ7cKgmaCv+ZA593Smskko0NGaDQ==",
"dependencies": {
"@vitejs/plugin-react": "^4.2.0",
"ultrahtml": "^1.3.0"
@@ -353,18 +350,18 @@
}
},
"node_modules/@astrojs/sitemap": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.0.3.tgz",
- "integrity": "sha512-+GRKp1yho9dpHBcMcU6JpbL41k0yYZghOkNsMRb8QIRflbGHvd787tdv9oIZ5NJj0SqAuOlqp2UpqLkJXuAe2A==",
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.0.5.tgz",
+ "integrity": "sha512-60eLzNjMza3ABypiQPUC6ElOSZNZeY5CwSwgJ03hfeonl+Db9x12CCzBFdTw7A5Mq+O54xEZVUrR0tB+yWgX8w==",
"dependencies": {
"sitemap": "^7.1.1",
"zod": "^3.22.4"
}
},
"node_modules/@astrojs/tailwind": {
- "version": "5.0.3",
- "resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-5.0.3.tgz",
- "integrity": "sha512-p+uFa1PNuV8RxhGkPUFgVq8CUbmS3xr0u5k1An2xKECLotRh7vsrGcPUijHvYOt42URohcg8rIq0CxNoVMhReg==",
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-5.1.0.tgz",
+ "integrity": "sha512-BJoCDKuWhU9FT2qYg+fr6Nfb3qP4ShtyjXGHKA/4mHN94z7BGcmauQK23iy+YH5qWvTnhqkd6mQPQ1yTZTe9Ig==",
"dependencies": {
"autoprefixer": "^10.4.15",
"postcss": "^8.4.28",
@@ -1689,6 +1686,14 @@
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
},
+ "node_modules/aria-query": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
+ "dependencies": {
+ "dequal": "^2.0.3"
+ }
+ },
"node_modules/array-iterate": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz",
@@ -1699,13 +1704,13 @@
}
},
"node_modules/astro": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/astro/-/astro-4.0.3.tgz",
- "integrity": "sha512-hrwe7CIVhSKW8/iibDs1hpqzZAtvx6Qu8TFFxjaGbooEWF720M9L+ZZtyTgrcy6K/ZHJ0xwFvZV3/X2Vvbf/LQ==",
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/astro/-/astro-4.3.1.tgz",
+ "integrity": "sha512-LAY2zQHOuOXEhpguyw5X0AIz6Xq+TAkBNEqrgIxwj72R87mmRQqQWmjChMPPkK95nFHkYR/71M2BrKunpbsfyw==",
"dependencies": {
- "@astrojs/compiler": "^2.3.2",
+ "@astrojs/compiler": "^2.5.0",
"@astrojs/internal-helpers": "0.2.1",
- "@astrojs/markdown-remark": "4.0.0",
+ "@astrojs/markdown-remark": "4.2.1",
"@astrojs/telemetry": "3.0.4",
"@babel/core": "^7.23.3",
"@babel/generator": "^7.23.3",
@@ -1715,12 +1720,15 @@
"@babel/types": "^7.23.3",
"@types/babel__core": "^7.20.4",
"acorn": "^8.11.2",
+ "aria-query": "^5.3.0",
+ "axobject-query": "^4.0.0",
"boxen": "^7.1.1",
"chokidar": "^3.5.3",
"ci-info": "^4.0.0",
"clsx": "^2.0.0",
"common-ancestor-path": "^1.0.1",
"cookie": "^0.6.0",
+ "cssesc": "^3.0.0",
"debug": "^4.3.4",
"deterministic-object-hash": "^2.0.1",
"devalue": "^4.3.2",
@@ -1744,7 +1752,7 @@
"mime": "^3.0.0",
"ora": "^7.0.1",
"p-limit": "^5.0.0",
- "p-queue": "^7.4.1",
+ "p-queue": "^8.0.1",
"path-to-regexp": "^6.2.1",
"preferred-pm": "^3.1.2",
"probe-image-size": "^7.2.3",
@@ -1753,13 +1761,13 @@
"resolve": "^1.22.4",
"semver": "^7.5.4",
"server-destroy": "^1.0.1",
- "shikiji": "^0.6.13",
+ "shikiji": "^0.9.18",
"string-width": "^7.0.0",
"strip-ansi": "^7.1.0",
"tsconfck": "^3.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.1",
- "vite": "^5.0.0",
+ "vite": "^5.0.12",
"vitefu": "^0.2.5",
"which-pm": "^2.1.1",
"yargs-parser": "^21.1.1",
@@ -1773,7 +1781,7 @@
"npm": ">=6.14.0"
},
"optionalDependencies": {
- "sharp": "^0.32.5"
+ "sharp": "^0.32.6"
}
},
"node_modules/astro-icon": {
@@ -1800,9 +1808,9 @@
"integrity": "sha512-7gq6lhibCM8FuzZIJlbLLWP5EJ9KL2/4XqeFrAg9O6ZK2xMFxJ5ubKf+a0VJwwTu8W8Xr421CmpiXu6Hq7n/7Q=="
},
"node_modules/astro/node_modules/@astrojs/compiler": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.3.2.tgz",
- "integrity": "sha512-jkY7bCVxl27KeZsSxIZ+pqACe+g8VQUdTiSJRj/sXYdIaZlW3ZMq4qF2M17P/oDt3LBq0zLNwQr4Cb7fSpRGxQ=="
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.5.2.tgz",
+ "integrity": "sha512-fm9HNYu1tVnJjZYHE+SdDM5k6fZKNPXS9PwT43Mf6l4HVGx8d1jQwhGQqCvLkYJJBwQ9OysiexFMt7wtNuXhmQ=="
},
"node_modules/astro/node_modules/@types/node": {
"version": "20.10.4",
@@ -1815,9 +1823,9 @@
}
},
"node_modules/astro/node_modules/vite": {
- "version": "5.0.6",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.6.tgz",
- "integrity": "sha512-MD3joyAEBtV7QZPl2JVVUai6zHms3YOmLR+BpMzLlX2Yzjfcc4gTgNi09d/Rua3F4EtC8zdwPU8eQYyib4vVMQ==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.12.tgz",
+ "integrity": "sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==",
"dependencies": {
"esbuild": "^0.19.3",
"postcss": "^8.4.32",
@@ -1917,6 +1925,14 @@
"postcss": "^8.1.0"
}
},
+ "node_modules/axobject-query": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
+ "integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
+ "dependencies": {
+ "dequal": "^2.0.3"
+ }
+ },
"node_modules/b4a": {
"version": "1.6.4",
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz",
@@ -3845,9 +3861,9 @@
}
},
"node_modules/mdast-util-phrasing": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.0.0.tgz",
- "integrity": "sha512-xadSsJayQIucJ9n053dfQwVu1kuXg7jCTdYsMK8rqzKZh52nLfSH/k0sAxE0u+pj/zKZX+o5wB+ML5mRayOxFA==",
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",
+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",
"dependencies": {
"@types/mdast": "^4.0.0",
"unist-util-is": "^6.0.0"
@@ -4822,26 +4838,26 @@
}
},
"node_modules/p-queue": {
- "version": "7.4.1",
- "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.4.1.tgz",
- "integrity": "sha512-vRpMXmIkYF2/1hLBKisKeVYJZ8S2tZ0zEAmIJgdVKP2nq0nh4qCdf8bgw+ZgKrkh71AOCaqzwbJJk1WtdcF3VA==",
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.0.1.tgz",
+ "integrity": "sha512-NXzu9aQJTAzbBqOt2hwsR63ea7yvxJc0PwN/zobNAudYfb1B7R08SzB4TsLeSbUCuG467NhnoT0oO6w1qRO+BA==",
"dependencies": {
"eventemitter3": "^5.0.1",
- "p-timeout": "^5.0.2"
+ "p-timeout": "^6.1.2"
},
"engines": {
- "node": ">=12"
+ "node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/p-timeout": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz",
- "integrity": "sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==",
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.2.tgz",
+ "integrity": "sha512-UbD77BuZ9Bc9aABo74gfXhNvzC9Tx7SxtHSh1fxvx3jTLLYvmVhiQZZrJzqqU0jKbN32kb5VOKiLEQI/3bIjgQ==",
"engines": {
- "node": ">=12"
+ "node": ">=14.16"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -5638,9 +5654,9 @@
}
},
"node_modules/remark-rehype": {
- "version": "11.0.0",
- "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.0.0.tgz",
- "integrity": "sha512-vx8x2MDMcxuE4lBmQ46zYUDfcFMmvg80WYX+UNLeG6ixjdCCLcw1lrgAukwBTuOFsS78eoAedHGn9sNM0w7TPw==",
+ "version": "11.1.0",
+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.0.tgz",
+ "integrity": "sha512-z3tJrAs2kIs1AqIIy6pzHmAHlF1hWQ+OdY4/hv+Wxe35EhyLKcajL33iUEn3ScxtFox9nUvRufR/Zre8Q08H/g==",
"dependencies": {
"@types/hast": "^3.0.0",
"@types/mdast": "^4.0.0",
@@ -5654,62 +5670,18 @@
}
},
"node_modules/remark-smartypants": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.0.0.tgz",
- "integrity": "sha512-Rc0VDmr/yhnMQIz8n2ACYXlfw/P/XZev884QU1I5u+5DgJls32o97Vc1RbK3pfumLsJomS2yy8eT4Fxj/2MDVA==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.1.0.tgz",
+ "integrity": "sha512-qoF6Vz3BjU2tP6OfZqHOvCU0ACmu/6jhGaINSQRI9mM7wCxNQTKB3JUAN4SVoN2ybElEDTxBIABRep7e569iJw==",
"dependencies": {
"retext": "^8.1.0",
- "retext-smartypants": "^5.1.0",
- "unist-util-visit": "^4.1.0"
+ "retext-smartypants": "^5.2.0",
+ "unist-util-visit": "^5.0.0"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
}
},
- "node_modules/remark-smartypants/node_modules/@types/unist": {
- "version": "2.0.10",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz",
- "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA=="
- },
- "node_modules/remark-smartypants/node_modules/unist-util-is": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz",
- "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==",
- "dependencies": {
- "@types/unist": "^2.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/remark-smartypants/node_modules/unist-util-visit": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz",
- "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==",
- "dependencies": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^5.0.0",
- "unist-util-visit-parents": "^5.1.1"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/remark-smartypants/node_modules/unist-util-visit-parents": {
- "version": "5.1.3",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz",
- "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==",
- "dependencies": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^5.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
"node_modules/remark-stringify": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",
@@ -6351,13 +6323,18 @@
}
},
"node_modules/shikiji": {
- "version": "0.6.13",
- "resolved": "https://registry.npmjs.org/shikiji/-/shikiji-0.6.13.tgz",
- "integrity": "sha512-4T7X39csvhT0p7GDnq9vysWddf2b6BeioiN3Ymhnt3xcy9tXmDcnsEFVxX18Z4YcQgEE/w48dLJ4pPPUcG9KkA==",
+ "version": "0.9.19",
+ "resolved": "https://registry.npmjs.org/shikiji/-/shikiji-0.9.19.tgz",
+ "integrity": "sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==",
"dependencies": {
- "hast-util-to-html": "^9.0.0"
+ "shikiji-core": "0.9.19"
}
},
+ "node_modules/shikiji-core": {
+ "version": "0.9.19",
+ "resolved": "https://registry.npmjs.org/shikiji-core/-/shikiji-core-0.9.19.tgz",
+ "integrity": "sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw=="
+ },
"node_modules/signal-exit": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
@@ -7428,9 +7405,9 @@
}
},
"@astrojs/alpinejs": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/@astrojs/alpinejs/-/alpinejs-0.3.1.tgz",
- "integrity": "sha512-GKaptRkdJvcqoTOCeAbeiemnpsayJkUmShSjR2qlkvpCIv7B5HzqqfkblLnOwgMGKOggpwZJAZfSAmALqWgNcw==",
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@astrojs/alpinejs/-/alpinejs-0.4.0.tgz",
+ "integrity": "sha512-68BY1CA0XuielLW3WdX2sfh9F4sSTnFqQ//IE9AditbiYJ77HJDb4uZx07pTFDtr1jOMU7lCvH+iS9gmNafM1g==",
"requires": {}
},
"@astrojs/compiler": {
@@ -7445,9 +7422,9 @@
"integrity": "sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A=="
},
"@astrojs/markdown-remark": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-4.0.0.tgz",
- "integrity": "sha512-JSrn49fJGuH/0S2TTGxLK7bNDspOakJWZVFHeP+IDFjWdghT4HtsTShS2EiISNx3zfOFBAwy5Cj4xT4U5BWNeA==",
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-4.2.1.tgz",
+ "integrity": "sha512-2RQBIwrq+2qPYtp99bH+eL5hfbK0BoxXla85lHsRpIX/IsGqFrPX6pXI2cbWPihBwGbKCdxS6uZNX2QerZWwpQ==",
"requires": {
"@astrojs/prism": "^3.0.0",
"github-slugger": "^2.0.0",
@@ -7459,7 +7436,7 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"remark-smartypants": "^2.0.0",
- "shikiji": "^0.6.13",
+ "shikiji": "^0.9.18",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.1"
@@ -7474,9 +7451,9 @@
}
},
"@astrojs/react": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@astrojs/react/-/react-3.0.7.tgz",
- "integrity": "sha512-MpjuFw7YGta44OaQExKVCWyXjujUtUsp5Nst/wIjRHbkmBBlypdj+MF9/xqjsYM+vjcrByOGupmluRrFQO67YQ==",
+ "version": "3.0.9",
+ "resolved": "https://registry.npmjs.org/@astrojs/react/-/react-3.0.9.tgz",
+ "integrity": "sha512-31J5yF5p9yBFV1axBooLA9PB4B2+MYm7swWhtlezSsJiUNXRFo5Is9qI3teJ7cKgmaCv+ZA593Smskko0NGaDQ==",
"requires": {
"@vitejs/plugin-react": "^4.2.0",
"ultrahtml": "^1.3.0"
@@ -7519,18 +7496,18 @@
}
},
"@astrojs/sitemap": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.0.3.tgz",
- "integrity": "sha512-+GRKp1yho9dpHBcMcU6JpbL41k0yYZghOkNsMRb8QIRflbGHvd787tdv9oIZ5NJj0SqAuOlqp2UpqLkJXuAe2A==",
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.0.5.tgz",
+ "integrity": "sha512-60eLzNjMza3ABypiQPUC6ElOSZNZeY5CwSwgJ03hfeonl+Db9x12CCzBFdTw7A5Mq+O54xEZVUrR0tB+yWgX8w==",
"requires": {
"sitemap": "^7.1.1",
"zod": "^3.22.4"
}
},
"@astrojs/tailwind": {
- "version": "5.0.3",
- "resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-5.0.3.tgz",
- "integrity": "sha512-p+uFa1PNuV8RxhGkPUFgVq8CUbmS3xr0u5k1An2xKECLotRh7vsrGcPUijHvYOt42URohcg8rIq0CxNoVMhReg==",
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-5.1.0.tgz",
+ "integrity": "sha512-BJoCDKuWhU9FT2qYg+fr6Nfb3qP4ShtyjXGHKA/4mHN94z7BGcmauQK23iy+YH5qWvTnhqkd6mQPQ1yTZTe9Ig==",
"requires": {
"autoprefixer": "^10.4.15",
"postcss": "^8.4.28",
@@ -8399,19 +8376,27 @@
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
},
+ "aria-query": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
+ "requires": {
+ "dequal": "^2.0.3"
+ }
+ },
"array-iterate": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz",
"integrity": "sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg=="
},
"astro": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/astro/-/astro-4.0.3.tgz",
- "integrity": "sha512-hrwe7CIVhSKW8/iibDs1hpqzZAtvx6Qu8TFFxjaGbooEWF720M9L+ZZtyTgrcy6K/ZHJ0xwFvZV3/X2Vvbf/LQ==",
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/astro/-/astro-4.3.1.tgz",
+ "integrity": "sha512-LAY2zQHOuOXEhpguyw5X0AIz6Xq+TAkBNEqrgIxwj72R87mmRQqQWmjChMPPkK95nFHkYR/71M2BrKunpbsfyw==",
"requires": {
- "@astrojs/compiler": "^2.3.2",
+ "@astrojs/compiler": "^2.5.0",
"@astrojs/internal-helpers": "0.2.1",
- "@astrojs/markdown-remark": "4.0.0",
+ "@astrojs/markdown-remark": "4.2.1",
"@astrojs/telemetry": "3.0.4",
"@babel/core": "^7.23.3",
"@babel/generator": "^7.23.3",
@@ -8421,12 +8406,15 @@
"@babel/types": "^7.23.3",
"@types/babel__core": "^7.20.4",
"acorn": "^8.11.2",
+ "aria-query": "^5.3.0",
+ "axobject-query": "^4.0.0",
"boxen": "^7.1.1",
"chokidar": "^3.5.3",
"ci-info": "^4.0.0",
"clsx": "^2.0.0",
"common-ancestor-path": "^1.0.1",
"cookie": "^0.6.0",
+ "cssesc": "^3.0.0",
"debug": "^4.3.4",
"deterministic-object-hash": "^2.0.1",
"devalue": "^4.3.2",
@@ -8450,7 +8438,7 @@
"mime": "^3.0.0",
"ora": "^7.0.1",
"p-limit": "^5.0.0",
- "p-queue": "^7.4.1",
+ "p-queue": "^8.0.1",
"path-to-regexp": "^6.2.1",
"preferred-pm": "^3.1.2",
"probe-image-size": "^7.2.3",
@@ -8459,14 +8447,14 @@
"resolve": "^1.22.4",
"semver": "^7.5.4",
"server-destroy": "^1.0.1",
- "sharp": "^0.32.5",
- "shikiji": "^0.6.13",
+ "sharp": "^0.32.6",
+ "shikiji": "^0.9.18",
"string-width": "^7.0.0",
"strip-ansi": "^7.1.0",
"tsconfck": "^3.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.1",
- "vite": "^5.0.0",
+ "vite": "^5.0.12",
"vitefu": "^0.2.5",
"which-pm": "^2.1.1",
"yargs-parser": "^21.1.1",
@@ -8474,9 +8462,9 @@
},
"dependencies": {
"@astrojs/compiler": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.3.2.tgz",
- "integrity": "sha512-jkY7bCVxl27KeZsSxIZ+pqACe+g8VQUdTiSJRj/sXYdIaZlW3ZMq4qF2M17P/oDt3LBq0zLNwQr4Cb7fSpRGxQ=="
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.5.2.tgz",
+ "integrity": "sha512-fm9HNYu1tVnJjZYHE+SdDM5k6fZKNPXS9PwT43Mf6l4HVGx8d1jQwhGQqCvLkYJJBwQ9OysiexFMt7wtNuXhmQ=="
},
"@types/node": {
"version": "20.10.4",
@@ -8489,9 +8477,9 @@
}
},
"vite": {
- "version": "5.0.6",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.6.tgz",
- "integrity": "sha512-MD3joyAEBtV7QZPl2JVVUai6zHms3YOmLR+BpMzLlX2Yzjfcc4gTgNi09d/Rua3F4EtC8zdwPU8eQYyib4vVMQ==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.12.tgz",
+ "integrity": "sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==",
"requires": {
"esbuild": "^0.19.3",
"fsevents": "~2.3.3",
@@ -8543,6 +8531,14 @@
"postcss-value-parser": "^4.2.0"
}
},
+ "axobject-query": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
+ "integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
+ "requires": {
+ "dequal": "^2.0.3"
+ }
+ },
"b4a": {
"version": "1.6.4",
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz",
@@ -9866,9 +9862,9 @@
}
},
"mdast-util-phrasing": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.0.0.tgz",
- "integrity": "sha512-xadSsJayQIucJ9n053dfQwVu1kuXg7jCTdYsMK8rqzKZh52nLfSH/k0sAxE0u+pj/zKZX+o5wB+ML5mRayOxFA==",
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",
+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",
"requires": {
"@types/mdast": "^4.0.0",
"unist-util-is": "^6.0.0"
@@ -10467,18 +10463,18 @@
}
},
"p-queue": {
- "version": "7.4.1",
- "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.4.1.tgz",
- "integrity": "sha512-vRpMXmIkYF2/1hLBKisKeVYJZ8S2tZ0zEAmIJgdVKP2nq0nh4qCdf8bgw+ZgKrkh71AOCaqzwbJJk1WtdcF3VA==",
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.0.1.tgz",
+ "integrity": "sha512-NXzu9aQJTAzbBqOt2hwsR63ea7yvxJc0PwN/zobNAudYfb1B7R08SzB4TsLeSbUCuG467NhnoT0oO6w1qRO+BA==",
"requires": {
"eventemitter3": "^5.0.1",
- "p-timeout": "^5.0.2"
+ "p-timeout": "^6.1.2"
}
},
"p-timeout": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz",
- "integrity": "sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew=="
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.2.tgz",
+ "integrity": "sha512-UbD77BuZ9Bc9aABo74gfXhNvzC9Tx7SxtHSh1fxvx3jTLLYvmVhiQZZrJzqqU0jKbN32kb5VOKiLEQI/3bIjgQ=="
},
"p-try": {
"version": "2.2.0",
@@ -10980,9 +10976,9 @@
}
},
"remark-rehype": {
- "version": "11.0.0",
- "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.0.0.tgz",
- "integrity": "sha512-vx8x2MDMcxuE4lBmQ46zYUDfcFMmvg80WYX+UNLeG6ixjdCCLcw1lrgAukwBTuOFsS78eoAedHGn9sNM0w7TPw==",
+ "version": "11.1.0",
+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.0.tgz",
+ "integrity": "sha512-z3tJrAs2kIs1AqIIy6pzHmAHlF1hWQ+OdY4/hv+Wxe35EhyLKcajL33iUEn3ScxtFox9nUvRufR/Zre8Q08H/g==",
"requires": {
"@types/hast": "^3.0.0",
"@types/mdast": "^4.0.0",
@@ -10992,47 +10988,13 @@
}
},
"remark-smartypants": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.0.0.tgz",
- "integrity": "sha512-Rc0VDmr/yhnMQIz8n2ACYXlfw/P/XZev884QU1I5u+5DgJls32o97Vc1RbK3pfumLsJomS2yy8eT4Fxj/2MDVA==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.1.0.tgz",
+ "integrity": "sha512-qoF6Vz3BjU2tP6OfZqHOvCU0ACmu/6jhGaINSQRI9mM7wCxNQTKB3JUAN4SVoN2ybElEDTxBIABRep7e569iJw==",
"requires": {
"retext": "^8.1.0",
- "retext-smartypants": "^5.1.0",
- "unist-util-visit": "^4.1.0"
- },
- "dependencies": {
- "@types/unist": {
- "version": "2.0.10",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz",
- "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA=="
- },
- "unist-util-is": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz",
- "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==",
- "requires": {
- "@types/unist": "^2.0.0"
- }
- },
- "unist-util-visit": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz",
- "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^5.0.0",
- "unist-util-visit-parents": "^5.1.1"
- }
- },
- "unist-util-visit-parents": {
- "version": "5.1.3",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz",
- "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^5.0.0"
- }
- }
+ "retext-smartypants": "^5.2.0",
+ "unist-util-visit": "^5.0.0"
}
},
"remark-stringify": {
@@ -11501,13 +11463,18 @@
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="
},
"shikiji": {
- "version": "0.6.13",
- "resolved": "https://registry.npmjs.org/shikiji/-/shikiji-0.6.13.tgz",
- "integrity": "sha512-4T7X39csvhT0p7GDnq9vysWddf2b6BeioiN3Ymhnt3xcy9tXmDcnsEFVxX18Z4YcQgEE/w48dLJ4pPPUcG9KkA==",
+ "version": "0.9.19",
+ "resolved": "https://registry.npmjs.org/shikiji/-/shikiji-0.9.19.tgz",
+ "integrity": "sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==",
"requires": {
- "hast-util-to-html": "^9.0.0"
+ "shikiji-core": "0.9.19"
}
},
+ "shikiji-core": {
+ "version": "0.9.19",
+ "resolved": "https://registry.npmjs.org/shikiji-core/-/shikiji-core-0.9.19.tgz",
+ "integrity": "sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw=="
+ },
"signal-exit": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
diff --git a/docs/package.json b/docs/package.json
index 727205c..ec97bcd 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -8,31 +8,32 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
- "astro": "astro"
+ "astro": "astro",
+ "format": "prettier --write ."
},
"dependencies": {
- "@astrojs/alpinejs": "^0.3.1",
- "@astrojs/react": "^3.0.7",
- "@astrojs/sitemap": "^3.0.3",
- "@astrojs/tailwind": "^5.0.3",
+ "@astrojs/alpinejs": "^0.4.0",
+ "@astrojs/react": "^3.0.9",
+ "@astrojs/sitemap": "^3.0.5",
+ "@astrojs/tailwind": "^5.1.0",
"@docsearch/react": "^3.3.4",
- "alpinejs": "^3.13.3",
- "astro": "^4.0.3",
+ "alpinejs": "^3.13.5",
+ "astro": "^4.3.1",
"astro-icon": "^0.8.2",
"astro-robots-txt": "^1.0.0",
"astro-seo": "^0.8.0",
"inter-ui": "^3.19.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
- "tailwindcss": "^3.3.6"
+ "tailwindcss": "^3.4.1"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
- "@types/alpinejs": "^3.7.1",
+ "@types/alpinejs": "^3.13.6",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
- "prettier": "^3.1.0",
- "prettier-plugin-astro": "^0.12.2",
- "prettier-plugin-tailwindcss": "^0.5.9"
+ "prettier": "^3.2.4",
+ "prettier-plugin-astro": "^0.13.0",
+ "prettier-plugin-tailwindcss": "^0.5.11"
}
}
diff --git a/docs/src/components/HeadCommon.astro b/docs/src/components/HeadCommon.astro
index 7d53e5a..0bc04b9 100644
--- a/docs/src/components/HeadCommon.astro
+++ b/docs/src/components/HeadCommon.astro
@@ -11,5 +11,4 @@
+ src="https://analytics.notiz.dev/js/plausible.outbound-links.js">
diff --git a/docs/src/components/Search.tsx b/docs/src/components/Search.tsx
index db2e072..3274e59 100644
--- a/docs/src/components/Search.tsx
+++ b/docs/src/components/Search.tsx
@@ -76,7 +76,7 @@ function SearchDialog({
setIsOpen(true);
setInitialQuery(e.key);
},
- [setIsOpen, setInitialQuery]
+ [setIsOpen, setInitialQuery],
);
if (keyboardEvents) {
@@ -114,7 +114,7 @@ function SearchDialog({
});
}}
/>,
- document.body
+ document.body,
)}
>
);
@@ -125,7 +125,7 @@ export function Search() {
let [modifierKey, setModifierKey] = useState('⌘');
useEffect(() => {
setModifierKey(
- /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? '⌘' : 'Ctrl '
+ /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? '⌘' : 'Ctrl ',
);
}, []);
diff --git a/docs/src/config.ts b/docs/src/config.ts
index 0347cef..d11f29a 100644
--- a/docs/src/config.ts
+++ b/docs/src/config.ts
@@ -93,14 +93,12 @@ export const examples: Example[] = [
},
{
name: 'Extensions',
- description:
- 'Using the Prisma Client extension with nestjs-prisma',
+ description: 'Using the Prisma Client extension with nestjs-prisma',
link: 'https://github.com/notiz-dev/nestjs-prisma/tree/main/examples/extensions',
},
{
name: 'GraphQL',
- description:
- 'NestJS app with GraphQL Apollo, Prisma and nestjs-prisma',
+ description: 'NestJS app with GraphQL Apollo, Prisma and nestjs-prisma',
link: 'https://github.com/notiz-dev/nestjs-prisma/tree/main/examples/graphql',
},
{
diff --git a/docs/src/content/docs/basic-usage.md b/docs/src/content/docs/basic-usage.md
index b2d7d33..83c7683 100644
--- a/docs/src/content/docs/basic-usage.md
+++ b/docs/src/content/docs/basic-usage.md
@@ -4,7 +4,7 @@ title: Basic Usage
## Prisma schema
-`nestjs-prisma` requires the Prisma Client to be generated to the default output location (`./node_modules/.prisma/client`). The client will be imported from `@prisma/client`.
+`nestjs-prisma` requires the Prisma Client to be generated to the default output location (`./node_modules/.prisma/client`). The client will be imported from `@prisma/client`.
```prisma
// prisma/schema.prisma
diff --git a/docs/src/content/docs/custom-prisma-client-location.md b/docs/src/content/docs/custom-prisma-client-location.md
index 843d378..88fec0f 100644
--- a/docs/src/content/docs/custom-prisma-client-location.md
+++ b/docs/src/content/docs/custom-prisma-client-location.md
@@ -26,7 +26,7 @@ This can be useful if you want to just use a **different location** or want to u
To use `nestjs-prisma` with custom output location for Prisma Client, you need to update to `nestjs-prisma@v0.20.0` or later and use `CustomPrismaModule` and `CustomPrismaService`.
-Import `CustomPrismaModule` and provide a **unique** name and an **instance** of your `PrismaClient`. The unique name will be used to inject the `CustomPrismaService`.
+Import `CustomPrismaModule` and provide a **unique** name and an **instance** of your `PrismaClient`. The unique name will be used to inject the `CustomPrismaService`.
```ts
import { Module } from '@nestjs/common';
@@ -63,7 +63,7 @@ import { PrismaClient } from '@notiz/prisma'; // 👈 update to your output dire
export class AppService {
constructor(
@Inject('PrismaServiceAuth') // 👈 use unique name to reference
- private prisma: CustomPrismaService // specify PrismaClient for type-safety & auto-completion
+ private prisma: CustomPrismaService, // specify PrismaClient for type-safety & auto-completion
) {}
users() {
@@ -127,7 +127,7 @@ export class AppService {
@Inject('PrismaServiceAuth') // 👈 use unique name to reference
private prismaAuth: CustomPrismaService,
@Inject('PrismaServiceCms') // 👈 use unique name to reference
- private prismaCms: CustomPrismaService
+ private prismaCms: CustomPrismaService,
) {}
users() {
diff --git a/docs/src/content/docs/exception-filter.md b/docs/src/content/docs/exception-filter.md
index 4ecac97..5c9ad81 100644
--- a/docs/src/content/docs/exception-filter.md
+++ b/docs/src/content/docs/exception-filter.md
@@ -97,7 +97,7 @@ async function bootstrap() {
P2000: HttpStatus.BAD_REQUEST,
P2002: HttpStatus.CONFLICT,
P2025: HttpStatus.NOT_FOUND,
- })
+ }),
);
await app.listen(3000);
diff --git a/docs/src/content/docs/prisma-client-extensions.md b/docs/src/content/docs/prisma-client-extensions.md
index 14392b0..a7615d9 100644
--- a/docs/src/content/docs/prisma-client-extensions.md
+++ b/docs/src/content/docs/prisma-client-extensions.md
@@ -128,7 +128,7 @@ export class AppService {
constructor(
// ✅ use `ExtendedPrismaClient` type for correct type-safety of your extended PrismaClient
@Inject('PrismaService')
- private prismaService: CustomPrismaService
+ private prismaService: CustomPrismaService,
) {}
users() {
@@ -185,7 +185,7 @@ export class AppService {
constructor(
// ✅ use `ExtendedPrismaClient` from extension for correct type-safety
@Inject('PrismaService')
- private prismaService: CustomPrismaService
+ private prismaService: CustomPrismaService,
) {}
async usersPage() {
@@ -225,7 +225,7 @@ import { readReplicas } from '@prisma/extension-read-replicas';
export const extendedPrismaClient = new PrismaClient().$extends(
// update url to your read replica url
- readReplicas({ url: 'postgresql://replica.example.com:5432/db' })
+ readReplicas({ url: 'postgresql://replica.example.com:5432/db' }),
);
export type ExtendedPrismaClient = typeof extendedPrismaClient;
@@ -243,7 +243,7 @@ export class AppService {
constructor(
// ✅ use `ExtendedPrismaClient` type for correct type-safety of your extended PrismaClient
@Inject('PrismaService')
- private prismaService: CustomPrismaService
+ private prismaService: CustomPrismaService,
) {}
users() {
diff --git a/docs/src/content/docs/prisma-middleware.md b/docs/src/content/docs/prisma-middleware.md
index dae9825..48b5eb3 100644
--- a/docs/src/content/docs/prisma-middleware.md
+++ b/docs/src/content/docs/prisma-middleware.md
@@ -44,7 +44,7 @@ export function loggingMiddleware(): Prisma.Middleware {
const after = Date.now();
console.log(
- `Query ${params.model}.${params.action} took ${after - before}ms`
+ `Query ${params.model}.${params.action} took ${after - before}ms`,
);
return result;
diff --git a/docs/src/layouts/Base.astro b/docs/src/layouts/Base.astro
index c135745..eeb2a49 100644
--- a/docs/src/layouts/Base.astro
+++ b/docs/src/layouts/Base.astro
@@ -16,7 +16,7 @@ const { title } = Astro.props;
const formattedContentTitle = title ? `${title} - ${SITE.title}` : SITE.title;
---
-
+
@@ -56,7 +56,7 @@ const formattedContentTitle = title ? `${title} - ${SITE.title}` : SITE.title;