@wpnuxt/core 2.0.0-beta.2 → 2.0.0-beta.3
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 +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +2 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { ref } from 'vue';
|
|
|
9
9
|
import { parse, GraphQLError } from 'graphql';
|
|
10
10
|
import { execSync } from 'node:child_process';
|
|
11
11
|
|
|
12
|
-
const version = "2.0.0-beta.
|
|
12
|
+
const version = "2.0.0-beta.3";
|
|
13
13
|
|
|
14
14
|
function createModuleError(module, message) {
|
|
15
15
|
return new Error(formatErrorMessage(module, message));
|
|
@@ -1120,7 +1120,7 @@ async function setupClientOptions(nuxt, _resolver, logger) {
|
|
|
1120
1120
|
logger.debug("Created graphqlMiddleware.clientOptions.ts with WPNuxt defaults (preview mode support)");
|
|
1121
1121
|
}
|
|
1122
1122
|
function configureTrailingSlash(nuxt, logger) {
|
|
1123
|
-
const handlerPath = join(nuxt.options.buildDir, "wpnuxt", "trailing-slash-handler.ts");
|
|
1123
|
+
const handlerPath = join(nuxt.options.buildDir, "wpnuxt", "trailing-slash-handler.ts").replace(/\\/g, "/");
|
|
1124
1124
|
const handlerCode = `import { defineEventHandler, sendRedirect, getRequestURL } from 'h3'
|
|
1125
1125
|
|
|
1126
1126
|
export default defineEventHandler((event) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wpnuxt/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Nuxt module for WordPress integration via GraphQL (WPGraphQL)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"lint": "eslint src",
|
|
74
74
|
"test": "vitest run",
|
|
75
75
|
"test:watch": "vitest watch",
|
|
76
|
-
"typecheck": "vue-tsc --noEmit"
|
|
77
|
-
"clean": "rm -rf dist .nuxt node_modules"
|
|
76
|
+
"typecheck": "vue-tsc --noEmit"
|
|
78
77
|
}
|
|
79
78
|
}
|