nuxt-directus-sdk 3.0.5 → 3.0.7

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.mjs CHANGED
@@ -4,7 +4,7 @@ import { generateTypes } from '../dist/runtime/types/index.js';
4
4
  import { useUrl } from '../dist/runtime/utils/index.js';
5
5
 
6
6
  const name = "nuxt-directus-sdk";
7
- const version = "3.0.5";
7
+ const version = "3.0.7";
8
8
 
9
9
  const configKey = "directus";
10
10
  const logger = useLogger("nuxt-directus-sdk");
@@ -1,10 +1,10 @@
1
1
  <script setup lang="ts" generic="T extends keyof DirectusSchema">
2
2
  import type { PrimaryKey } from '@directus/types'
3
- import { computed, useRoute } from '#imports'
3
+ import { computed, useRoute, useRuntimeConfig } from '#imports'
4
4
  import { apply, setAttr } from '@directus/visual-editing'
5
5
  import { Slot } from '../utils'
6
6
 
7
- type SingleDirectusCollection = DirectusSchema[T][0]
7
+ type SingleDirectusCollection = DirectusSchema[T] extends Array<any> ? DirectusSchema[T][0] : DirectusSchema[T]
8
8
  type FieldKey = keyof SingleDirectusCollection
9
9
 
10
10
  const props = defineProps<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-directus-sdk",
3
3
  "type": "module",
4
- "version": "3.0.5",
4
+ "version": "3.0.7",
5
5
  "description": "A Directus nuxt module that uses the Directus SDK",
6
6
  "author": "Matthew Rollinson <matt@rolley.io>",
7
7
  "license": "MIT",