nuxt-auto-crud 1.12.0 → 1.13.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-auto-crud",
3
3
  "configKey": "autoCrud",
4
- "version": "1.12.0",
4
+ "version": "1.13.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -24,7 +24,7 @@ const module$1 = defineNuxtModule({
24
24
  nuxt.options.alias["#site/drizzle"] = drizzlePath;
25
25
  const abilityPath = resolver.resolve(
26
26
  nuxt.options.rootDir,
27
- "server/utils/ability"
27
+ "shared/utils/abilities"
28
28
  );
29
29
  nuxt.options.alias["#site/ability"] = abilityPath;
30
30
  nuxt.options.alias["#authorization"] = nuxt.options.alias["#authorization"] || "nuxt-authorization/utils";
@@ -1,4 +1,3 @@
1
- import '../../auth.d.ts.js';
2
1
  import type { H3Event } from 'h3';
3
2
  export declare function checkAdminAccess(event: H3Event, model: string, action: string): Promise<boolean>;
4
3
  export declare function ensureAuthenticated(event: H3Event): Promise<void>;
@@ -1,4 +1,3 @@
1
- import "../../auth.d.ts";
2
1
  import { createError } from "h3";
3
2
  import globalAbility from "#site/ability";
4
3
  import { requireUserSession, allows } from "#imports";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auto-crud",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Exposes RESTful CRUD APIs for your Nuxt app based solely on your database migrations.",
5
5
  "author": "Cliford Pereira",
6
6
  "license": "MIT",
@@ -1,4 +1,5 @@
1
- import '../../auth.d.ts'
1
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference
2
+ /// <reference path="../../auth.d.ts" />
2
3
  import type { H3Event } from 'h3'
3
4
  import { createError } from 'h3'
4
5
  import globalAbility from '#site/ability'