nuxt-processor 0.0.11 → 0.0.12

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/README.md CHANGED
@@ -52,6 +52,15 @@ export default defineNuxtConfig({
52
52
  password: process.env.NUXT_REDIS_PASSWORD ?? '',
53
53
  username: process.env.NUXT_REDIS_USERNAME,
54
54
  db: Number(process.env.NUXT_REDIS_DB ?? 0),
55
+ // Optional connection behavior
56
+ // Delay connecting until first Redis command (useful to avoid build-time connects)
57
+ lazyConnect: process.env.NUXT_REDIS_LAZY_CONNECT
58
+ ? process.env.NUXT_REDIS_LAZY_CONNECT === 'true'
59
+ : undefined,
60
+ // Milliseconds to wait before giving up when establishing the connection
61
+ connectTimeout: process.env.NUXT_REDIS_CONNECT_TIMEOUT
62
+ ? Number(process.env.NUXT_REDIS_CONNECT_TIMEOUT)
63
+ : undefined,
55
64
  },
56
65
  },
57
66
  })
package/dist/cli.cjs CHANGED
@@ -8,7 +8,7 @@ const pathe = require('pathe');
8
8
  const consola = require('consola');
9
9
  const citty = require('citty');
10
10
  const kit = require('@nuxt/kit');
11
- const _package = require('./shared/nuxt-processor.5DlcaEgd.cjs');
11
+ const _package = require('./shared/nuxt-processor.XeX-J1zD.cjs');
12
12
 
13
13
  const ensureNuxtProject = async (args) => {
14
14
  const dir = pathe.resolve(args.dir);
package/dist/cli.mjs CHANGED
@@ -6,7 +6,7 @@ import { resolve } from 'pathe';
6
6
  import { consola } from 'consola';
7
7
  import { createMain, defineCommand } from 'citty';
8
8
  import { loadNuxtConfig } from '@nuxt/kit';
9
- import { v as version, d as description, n as name } from './shared/nuxt-processor.dUSuauLs.mjs';
9
+ import { v as version, d as description, n as name } from './shared/nuxt-processor.Bp92mFhC.mjs';
10
10
 
11
11
  const ensureNuxtProject = async (args) => {
12
12
  const dir = resolve(args.dir);
package/dist/module.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const kit = require('@nuxt/kit');
4
- const _package = require('./shared/nuxt-processor.5DlcaEgd.cjs');
4
+ const _package = require('./shared/nuxt-processor.XeX-J1zD.cjs');
5
5
  const node_path = require('node:path');
6
6
  const fg = require('fast-glob');
7
7
 
@@ -41,6 +41,8 @@ const module$1 = kit.defineNuxtModule({
41
41
  // needs Redis >= 6
42
42
  db: Number(process.env.NUXT_REDIS_DB ?? 0),
43
43
  // Defaults to 0 on ioredis
44
+ lazyConnect: process.env.NUXT_REDIS_LAZY_CONNECT === "true" ? true : void 0,
45
+ connectTimeout: process.env.NUXT_REDIS_CONNECT_TIMEOUT ? Number(process.env.NUXT_REDIS_CONNECT_TIMEOUT) : void 0,
44
46
  url: process.env.NUXT_REDIS_URL ?? void 0
45
47
  },
46
48
  workers: "server/workers"
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-processor",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0 || ^3.0.0"
6
6
  },
package/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useNuxt, createResolver, defineNuxtModule, addTemplate, addServerPlugin, addTypeTemplate } from '@nuxt/kit';
2
- import { c as configKey, a as compatibility, v as version, n as name } from './shared/nuxt-processor.dUSuauLs.mjs';
2
+ import { c as configKey, a as compatibility, v as version, n as name } from './shared/nuxt-processor.Bp92mFhC.mjs';
3
3
  import { relative } from 'node:path';
4
4
  import fg from 'fast-glob';
5
5
 
@@ -34,6 +34,8 @@ const module = defineNuxtModule({
34
34
  // needs Redis >= 6
35
35
  db: Number(process.env.NUXT_REDIS_DB ?? 0),
36
36
  // Defaults to 0 on ioredis
37
+ lazyConnect: process.env.NUXT_REDIS_LAZY_CONNECT === "true" ? true : void 0,
38
+ connectTimeout: process.env.NUXT_REDIS_CONNECT_TIMEOUT ? Number(process.env.NUXT_REDIS_CONNECT_TIMEOUT) : void 0,
37
39
  url: process.env.NUXT_REDIS_URL ?? void 0
38
40
  },
39
41
  workers: "server/workers"
@@ -1,5 +1,5 @@
1
1
  const name = "nuxt-processor";
2
- const version = "0.0.11";
2
+ const version = "0.0.12";
3
3
  const description = "Nuxt Processor";
4
4
  const configKey = "processor";
5
5
  const compatibility = {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "nuxt-processor";
4
- const version = "0.0.11";
4
+ const version = "0.0.12";
5
5
  const description = "Nuxt Processor";
6
6
  const configKey = "processor";
7
7
  const compatibility = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-processor",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Nuxt Processor",
5
5
  "repository": "https://github.com/aidanhibbard/nuxt-processor",
6
6
  "license": "MIT",