Skip to content

Commit

Permalink
fix: broken paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed Jun 12, 2024
1 parent 3a74d8c commit 6e61c28
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/Can.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup generic="Ability extends BouncerAbility<any>">
import type { AuthorizerResponse, BouncerAbility } from '../../utils/types'
import { allows } from '../utils/bouncer'
import type { AuthorizerResponse, BouncerAbility } from '../../utils'
import { allows } from '#imports'
const props = defineProps<{
bouncerAbility: Ability
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/components/Cannot.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup generic="Ability extends BouncerAbility<any>">
import type { AuthorizerResponse, BouncerAbility } from '../../utils/types'
import { denies } from '../utils/bouncer'
import type { AuthorizerResponse, BouncerAbility } from '../../utils'
import { denies } from '#imports'
const props = defineProps<{
bouncerAbility: Ability
Expand Down
5 changes: 2 additions & 3 deletions src/runtime/server/utils/bouncer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { type H3Event } from 'h3'
import type { AuthorizerResponse, BouncerAbility } from '../../../utils/types'
import { allows as _allows, denies as _denies, authorize as _authorize } from '../../../utils/bouncer'
import { AuthorizationError } from '../../../utils/error'
import type { AuthorizerResponse, BouncerAbility } from '../../../utils'
import { allows as _allows, denies as _denies, authorize as _authorize, AuthorizationError } from '../../../utils'
import { useNitroApp, createError } from '#imports'

/**
Expand Down
5 changes: 2 additions & 3 deletions src/runtime/utils/bouncer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint @typescript-eslint/no-explicit-any: off */

import type { BouncerAbility, AuthorizerResponse } from '../../utils/types'
import { allows as _allows, denies as _denies, authorize as _authorize } from '../../utils/bouncer'
import { AuthorizationError } from '../../utils/error'
import type { BouncerAbility, AuthorizerResponse } from '../../utils'
import { allows as _allows, denies as _denies, authorize as _authorize, AuthorizationError } from '../../utils'
import { useNuxtApp, createError } from '#imports'

/**
Expand Down

0 comments on commit 6e61c28

Please sign in to comment.