@uniformdev/uniform-nuxt 17.3.1-alpha.117 → 17.3.1-alpha.146

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": "17.3.1-alpha.117+8812fbe6b"
4
+ "version": "17.3.1-alpha.146+33ba1d5c7"
5
5
  }
@@ -29,6 +29,8 @@ import {
29
29
  onRouteChange,
30
30
  useUniformContext
31
31
  } from "@uniformdev/context-vue";
32
+ const log = process.env.NODE_ENV === "development" ? (...args) => console.log(...args) : () => {
33
+ };
32
34
  export default defineNuxtPlugin((nuxtApp) => {
33
35
  if (nuxtApp.$uniformIsSetup) {
34
36
  return;
@@ -64,7 +66,7 @@ function setupContext(nuxtApp) {
64
66
  );
65
67
  }
66
68
  if (!uniformContext && options.manifest) {
67
- console.log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
69
+ log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
68
70
  const manifestAsSimpleObject = toRaw(options.manifest);
69
71
  uniformContext = new Context({
70
72
  defaultConsent: Boolean(options.defaultConsent),
@@ -116,7 +118,7 @@ function setupPreview() {
116
118
  const route = useRoute();
117
119
  let preview;
118
120
  if (route.query.preview === "true") {
119
- console.log("uniform-nuxt: \u{1F575}\uFE0F Entering preview mode");
121
+ log("uniform-nuxt: \u{1F575}\uFE0F Entering preview mode");
120
122
  preview = {
121
123
  slug: route.query.slug,
122
124
  compositionId: route.query.id
package/dist/types.d.ts CHANGED
@@ -3,4 +3,4 @@ import { } from './module'
3
3
 
4
4
 
5
5
 
6
- export { default } from './module'
6
+ export { UniformModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/uniform-nuxt",
3
- "version": "17.3.1-alpha.117+8812fbe6b",
3
+ "version": "17.3.1-alpha.146+33ba1d5c7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -32,13 +32,13 @@
32
32
  "@uniformdev/context-vue": ">15"
33
33
  },
34
34
  "devDependencies": {
35
- "@nuxt/module-builder": "0.1.7",
35
+ "@nuxt/module-builder": "0.2.0",
36
36
  "@nuxt/schema": "3.0.0-rc.9",
37
37
  "@nuxtjs/eslint-config-typescript": "11.0.0",
38
- "@uniformdev/canvas": "^17.3.1-alpha.117+8812fbe6b",
39
- "@uniformdev/canvas-vue": "^17.3.1-alpha.117+8812fbe6b",
40
- "@uniformdev/context": "^17.3.1-alpha.117+8812fbe6b",
41
- "@uniformdev/context-vue": "^17.3.1-alpha.117+8812fbe6b",
38
+ "@uniformdev/canvas": "^17.3.1-alpha.146+33ba1d5c7",
39
+ "@uniformdev/canvas-vue": "^17.3.1-alpha.146+33ba1d5c7",
40
+ "@uniformdev/context": "^17.3.1-alpha.146+33ba1d5c7",
41
+ "@uniformdev/context-vue": "^17.3.1-alpha.146+33ba1d5c7",
42
42
  "esbuild": "0.15.11",
43
43
  "eslint": "latest",
44
44
  "nuxt": "3.0.0-rc.9",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "8812fbe6b2d14f5b53cd9163b163fdd18bb76799"
51
+ "gitHead": "33ba1d5c7cf8aca1d9d5c7c14e0d97c0805f6840"
52
52
  }