@devite/nuxt-sanity 2.2.0 → 2.2.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/nuxt-sanity",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "configKey": "sanity",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineNuxtModule, createResolver, addPlugin, addServerHandler, addImpor
3
3
  import defu from 'defu';
4
4
 
5
5
  const name = "@devite/nuxt-sanity";
6
- const version = "2.2.0";
6
+ const version = "2.2.1";
7
7
 
8
8
  const module = defineNuxtModule({
9
9
  meta: {
@@ -17,7 +17,7 @@ import { useSanityQuery } from '../composables/useSanityQuery'
17
17
  import { groq } from '../utils/groq'
18
18
  import { useHead, useRoute, useRuntimeConfig, useSeoMeta } from '#imports'
19
19
 
20
- const path = useRoute().fullPath
20
+ const path = useRoute().path
21
21
  const groqFilter = path === '/' ? '_type == "home"' : `_type == "page" && slug.current == $slug`
22
22
  const { data: sanityData } = await useSanityQuery<Home | Page | NotFound>(
23
23
  groq`*[(${groqFilter}) || _type == "notFound"][0] { _id, _type, title, modules, seo { _type, indexable, title, shortTitle, description, image ${IMAGE_WITHOUT_PREVIEW_PROJECTION} } }`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/nuxt-sanity",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Advanced Sanity integration for Nuxt.js.",
5
5
  "repository": "devite-io/nuxt-sanity",
6
6
  "license": "MIT",