nuxt-auto-crud 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -2,7 +2,7 @@ import { eq } from "drizzle-orm";
|
|
|
2
2
|
import { useDrizzle } from "#site/drizzle";
|
|
3
3
|
import * as tables from "#site/schema";
|
|
4
4
|
import { useAutoCrudConfig } from "../utils/config.js";
|
|
5
|
-
import { defineNitroPlugin, hashPassword } from "#imports";
|
|
5
|
+
import { defineNitroPlugin, hashPassword, onHubReady } from "#imports";
|
|
6
6
|
export default defineNitroPlugin(async () => {
|
|
7
7
|
onHubReady(async () => {
|
|
8
8
|
const { auth } = useAutoCrudConfig();
|
package/package.json
CHANGED
|
@@ -5,10 +5,9 @@ import { useDrizzle } from '#site/drizzle'
|
|
|
5
5
|
import * as tables from '#site/schema'
|
|
6
6
|
import { useAutoCrudConfig } from '../utils/config'
|
|
7
7
|
// @ts-expect-error - #imports is available in runtime
|
|
8
|
-
import { defineNitroPlugin, hashPassword } from '#imports'
|
|
8
|
+
import { defineNitroPlugin, hashPassword, onHubReady } from '#imports'
|
|
9
9
|
|
|
10
10
|
export default defineNitroPlugin(async () => {
|
|
11
|
-
// @ts-expect-error - onHubReady is auto-imported from @nuxthub/core
|
|
12
11
|
onHubReady(async () => {
|
|
13
12
|
const { auth } = useAutoCrudConfig()
|
|
14
13
|
|