@wpnuxt/core 1.0.0-edge.12 → 1.0.0-edge.13

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": "@wpnuxt/core",
3
- "version": "1.0.0-edge.12",
3
+ "version": "1.0.0-edge.13",
4
4
  "configKey": "wpNuxt",
5
5
  "nuxt": ">=3.1.0",
6
6
  "builder": {
package/dist/module.mjs CHANGED
@@ -7,7 +7,7 @@ import { upperFirst } from 'scule';
7
7
  import { parse } from 'graphql';
8
8
 
9
9
  const name = "@wpnuxt/core";
10
- const version = "1.0.0-edge.12";
10
+ const version = "1.0.0-edge.13";
11
11
 
12
12
  const loggerRef = ref();
13
13
  const initLogger = (logLevel) => {
@@ -228,7 +228,9 @@ const module = defineNuxtModule({
228
228
  if (m.meta.name === "@wpnuxt/blocks" && m.entryPath) {
229
229
  logger.debug("Loading queries from @wpnuxt/blocks");
230
230
  let blocksQueriesPath;
231
- if (m.entryPath.startsWith("../")) {
231
+ if (m.entryPath == "../src/module") {
232
+ blocksQueriesPath = join(nuxt.options.rootDir, "../src/runtime/queries/");
233
+ } else if (m.entryPath.startsWith("../")) {
232
234
  blocksQueriesPath = join(nuxt.options.rootDir, "../", m.entryPath, "./runtime/queries/");
233
235
  } else {
234
236
  blocksQueriesPath = join("./node_modules", m.entryPath, "dist/runtime/queries/");
@@ -20,7 +20,7 @@ const componentToRender = await findComponentToRender()
20
20
  <template>
21
21
  <component
22
22
  :is="componentToRender"
23
- v-if="componentToRender"
23
+ v-if="componentToRender && node"
24
24
  :node="node"
25
25
  />
26
26
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/core",
3
- "version": "1.0.0-edge.12",
3
+ "version": "1.0.0-edge.13",
4
4
  "description": "WPNuxt",
5
5
  "repository": {
6
6
  "type": "git",