Skip to content

Commit 6e61c28

Browse files
committed
fix: broken paths
1 parent 3a74d8c commit 6e61c28

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

src/runtime/components/Can.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup generic="Ability extends BouncerAbility<any>">
2-
import type { AuthorizerResponse, BouncerAbility } from '../../utils/types'
3-
import { allows } from '../utils/bouncer'
2+
import type { AuthorizerResponse, BouncerAbility } from '../../utils'
3+
import { allows } from '#imports'
44
55
const props = defineProps<{
66
bouncerAbility: Ability

src/runtime/components/Cannot.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup generic="Ability extends BouncerAbility<any>">
2-
import type { AuthorizerResponse, BouncerAbility } from '../../utils/types'
3-
import { denies } from '../utils/bouncer'
2+
import type { AuthorizerResponse, BouncerAbility } from '../../utils'
3+
import { denies } from '#imports'
44
55
const props = defineProps<{
66
bouncerAbility: Ability

src/runtime/server/utils/bouncer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { type H3Event } from 'h3'
2-
import type { AuthorizerResponse, BouncerAbility } from '../../../utils/types'
3-
import { allows as _allows, denies as _denies, authorize as _authorize } from '../../../utils/bouncer'
4-
import { AuthorizationError } from '../../../utils/error'
2+
import type { AuthorizerResponse, BouncerAbility } from '../../../utils'
3+
import { allows as _allows, denies as _denies, authorize as _authorize, AuthorizationError } from '../../../utils'
54
import { useNitroApp, createError } from '#imports'
65

76
/**

src/runtime/utils/bouncer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* eslint @typescript-eslint/no-explicit-any: off */
22

3-
import type { BouncerAbility, AuthorizerResponse } from '../../utils/types'
4-
import { allows as _allows, denies as _denies, authorize as _authorize } from '../../utils/bouncer'
5-
import { AuthorizationError } from '../../utils/error'
3+
import type { BouncerAbility, AuthorizerResponse } from '../../utils'
4+
import { allows as _allows, denies as _denies, authorize as _authorize, AuthorizationError } from '../../utils'
65
import { useNuxtApp, createError } from '#imports'
76

87
/**

0 commit comments

Comments
 (0)