@nuxtjs/prismic 3.0.0-alpha.6 → 3.0.0-alpha.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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/prismic",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.7",
4
4
  "configKey": "prismic",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
package/dist/module.mjs CHANGED
@@ -7,7 +7,7 @@ import { existsSync } from 'fs';
7
7
  import consola from 'consola';
8
8
 
9
9
  const name = "@nuxtjs/prismic";
10
- const version = "3.0.0-alpha.6";
10
+ const version = "3.0.0-alpha.7";
11
11
 
12
12
  const fileExists = (path, extensions = ["js", "ts"]) => {
13
13
  if (!path) {
@@ -114,9 +114,9 @@ const module = defineNuxtModule({
114
114
  });
115
115
  }
116
116
  const repositoryName = isRepositoryEndpoint(mergedOptions.endpoint) ? getRepositoryName(mergedOptions.endpoint) : mergedOptions.endpoint;
117
- (_b = nuxt.options).head || (_b.head = {});
118
- (_c = nuxt.options.head).script || (_c.script = []);
119
- nuxt.options.head.script.push({
117
+ (_b = nuxt.options.app).head || (_b.head = {});
118
+ (_c = nuxt.options.app.head).script || (_c.script = []);
119
+ nuxt.options.app.head.script.push({
120
120
  src: `https://static.cdn.prismic.io/prismic.min.js?repo=${repositoryName}&new=true`
121
121
  });
122
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/prismic",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.7",
4
4
  "description": "Easily connect your Nuxt 3 application to your content hosted on Prismic",
5
5
  "keywords": [
6
6
  "nuxt",
package/src/module.ts CHANGED
@@ -146,9 +146,9 @@ export default defineNuxtModule<PrismicModuleOptions>({
146
146
  const repositoryName = isRepositoryEndpoint(mergedOptions.endpoint)
147
147
  ? getRepositoryName(mergedOptions.endpoint)
148
148
  : mergedOptions.endpoint
149
- nuxt.options.head ||= {}
150
- nuxt.options.head.script ||= []
151
- nuxt.options.head.script.push({
149
+ nuxt.options.app.head ||= {}
150
+ nuxt.options.app.head.script ||= []
151
+ nuxt.options.app.head.script.push({
152
152
  src: `https://static.cdn.prismic.io/prismic.min.js?repo=${repositoryName}&new=true`
153
153
  })
154
154
  }