@uniformdev/uniform-nuxt 16.2.1-nuxt.325 → 17.1.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.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-uniform",
3
3
  "configKey": "uniform",
4
- "version": "16.2.1-nuxt.325+c1c2247c8"
4
+ "version": "17.1.0"
5
5
  }
@@ -1,2 +1,2 @@
1
- declare const _default: any;
2
- export default _default;
1
+ declare const _default: any;
2
+ export default _default;
@@ -59,7 +59,9 @@ function setupContext(nuxtApp) {
59
59
  const uniformCookie = useCookie(UNIFORM_DEFAULT_COOKIE_NAME).value;
60
60
  let uniformContext = userProvidedContextInstance;
61
61
  if (uniformContext !== void 0 && !uniformContext.manifest) {
62
- throw new Error(`uniform-nuxt: The Uniform Context instance returned by ${options.uniformContextPath} is not valid`);
62
+ throw new Error(
63
+ `uniform-nuxt: The Uniform Context instance returned by ${options.uniformContextPath} is not valid`
64
+ );
63
65
  }
64
66
  if (!uniformContext && options.manifest) {
65
67
  console.log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
@@ -121,6 +123,9 @@ function setupPreview() {
121
123
  };
122
124
  }
123
125
  router.beforeEach((to, from, next) => {
126
+ if (!next) {
127
+ return;
128
+ }
124
129
  if (from.query.preview === "true" && to.query.preview !== "true") {
125
130
  return next({
126
131
  path: to.path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/uniform-nuxt",
3
- "version": "16.2.1-nuxt.325+c1c2247c8",
3
+ "version": "17.1.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -35,11 +35,11 @@
35
35
  "@nuxt/module-builder": "0.1.7",
36
36
  "@nuxt/schema": "3.0.0-rc.6",
37
37
  "@nuxtjs/eslint-config-typescript": "10.0.0",
38
- "@uniformdev/canvas": "^16.2.1-nuxt.325+c1c2247c8",
39
- "@uniformdev/canvas-vue": "^16.2.1-nuxt.325+c1c2247c8",
40
- "@uniformdev/context": "^16.2.1-nuxt.325+c1c2247c8",
41
- "@uniformdev/context-vue": "^16.2.1-nuxt.325+c1c2247c8",
42
- "esbuild": "0.13.15",
38
+ "@uniformdev/canvas": "^17.1.0",
39
+ "@uniformdev/canvas-vue": "^17.1.0",
40
+ "@uniformdev/context": "^17.1.0",
41
+ "@uniformdev/context-vue": "^17.1.0",
42
+ "esbuild": "0.15.5",
43
43
  "eslint": "latest",
44
44
  "nuxt": "3.0.0-rc.6",
45
45
  "vue": "3.2.37",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "c1c2247c820522de8ca9707a76e5697b0e3df334"
51
+ "gitHead": "47c6abcea06f19dcd2e723bbee79da32e7c395e5"
52
52
  }