@storyblok/nuxt 4.1.1 → 4.2.0

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.d.ts CHANGED
@@ -28,7 +28,8 @@ var module = defineNuxtModule({
28
28
  const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url));
29
29
  nuxt.options.build.transpile.push(runtimeDir);
30
30
  nuxt.options.runtimeConfig.public.storyblok = options;
31
- addPlugin(resolve(__dirname, "runtime", `./plugin`));
31
+ if (options.usePlugin !== false)
32
+ addPlugin(resolve(__dirname, "runtime", `./plugin`));
32
33
  const names = [
33
34
  "useStoryblok",
34
35
  "useStoryblokApi",
package/dist/module.mjs CHANGED
@@ -28,7 +28,8 @@ const module = defineNuxtModule({
28
28
  const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url));
29
29
  nuxt.options.build.transpile.push(runtimeDir);
30
30
  nuxt.options.runtimeConfig.public.storyblok = options;
31
- addPlugin(resolve(__dirname, "runtime", `./plugin`));
31
+ if (options.usePlugin !== false)
32
+ addPlugin(resolve(__dirname, "runtime", `./plugin`));
32
33
  const names = [
33
34
  "useStoryblok",
34
35
  "useStoryblokApi",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/nuxt",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "description": "Storyblok Nuxt.js module",
5
5
  "main": "./src/module.js",
6
6
  "module": "./src/module.js",
@@ -27,10 +27,10 @@
27
27
  "test:e2e-watch": "start-server-and-test playground:run http://localhost:3000 cy:open"
28
28
  },
29
29
  "dependencies": {
30
- "@nuxt/kit": "^3.0.0-rc.2",
31
- "@storyblok/vue": "^6.2.0"
30
+ "@storyblok/vue": "^6.2.1"
32
31
  },
33
32
  "devDependencies": {
33
+ "@nuxt/kit": "^3.0.0-rc.7",
34
34
  "@babel/core": "^7.15.0",
35
35
  "@nuxt/module-builder": "latest",
36
36
  "babel-jest": "^28.1.3",
@@ -38,7 +38,7 @@
38
38
  "eslint-plugin-cypress": "^2.12.1",
39
39
  "jest": "^26.6.3",
40
40
  "start-server-and-test": "^1.14.0",
41
- "vite": "^2.7.6"
41
+ "vite": "^2.9.14"
42
42
  },
43
43
  "release": {
44
44
  "branches": [
package/src/module.js CHANGED
@@ -33,7 +33,8 @@ export default defineNuxtModule({
33
33
 
34
34
  // Add plugin
35
35
  nuxt.options.runtimeConfig.public.storyblok = options;
36
- addPlugin(resolve(__dirname, "runtime", `./plugin`));
36
+ if (options.usePlugin !== false)
37
+ addPlugin(resolve(__dirname, "runtime", `./plugin`));
37
38
 
38
39
  // Autoimports
39
40
  const names = [