@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 +1 -1
- package/dist/runtime/plugin.d.ts +2 -2
- package/dist/runtime/plugin.mjs +6 -1
- package/package.json +7 -7
package/dist/module.json
CHANGED
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -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(
|
|
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": "
|
|
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": "^
|
|
39
|
-
"@uniformdev/canvas-vue": "^
|
|
40
|
-
"@uniformdev/context": "^
|
|
41
|
-
"@uniformdev/context-vue": "^
|
|
42
|
-
"esbuild": "0.
|
|
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": "
|
|
51
|
+
"gitHead": "47c6abcea06f19dcd2e723bbee79da32e7c395e5"
|
|
52
52
|
}
|