site-config-stack 3.2.18 → 3.2.19

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/index.cjs CHANGED
@@ -99,7 +99,7 @@ function createSiteConfigStack(options) {
99
99
  };
100
100
  }
101
101
 
102
- function envSiteConfig(env) {
102
+ function envSiteConfig(env = {}) {
103
103
  return Object.fromEntries(Object.entries(env).filter(([k]) => k.startsWith("NUXT_SITE_") || k.startsWith("NUXT_PUBLIC_SITE_")).map(([k, v]) => [
104
104
  k.replace(/^NUXT_(PUBLIC_)?SITE_/, "").split("_").map((s, i) => i === 0 ? s.toLowerCase() : s[0]?.toUpperCase() + s.slice(1).toLowerCase()).join(""),
105
105
  v
package/dist/index.d.cts CHANGED
@@ -75,7 +75,7 @@ declare function createSiteConfigStack(options?: {
75
75
  debug: boolean;
76
76
  }): SiteConfigStack;
77
77
 
78
- declare function envSiteConfig(env: Record<string, any>): {
78
+ declare function envSiteConfig(env?: Record<string, any>): {
79
79
  [k: string]: any;
80
80
  };
81
81
 
package/dist/index.d.mts CHANGED
@@ -75,7 +75,7 @@ declare function createSiteConfigStack(options?: {
75
75
  debug: boolean;
76
76
  }): SiteConfigStack;
77
77
 
78
- declare function envSiteConfig(env: Record<string, any>): {
78
+ declare function envSiteConfig(env?: Record<string, any>): {
79
79
  [k: string]: any;
80
80
  };
81
81
 
package/dist/index.d.ts CHANGED
@@ -75,7 +75,7 @@ declare function createSiteConfigStack(options?: {
75
75
  debug: boolean;
76
76
  }): SiteConfigStack;
77
77
 
78
- declare function envSiteConfig(env: Record<string, any>): {
78
+ declare function envSiteConfig(env?: Record<string, any>): {
79
79
  [k: string]: any;
80
80
  };
81
81
 
package/dist/index.mjs CHANGED
@@ -97,7 +97,7 @@ function createSiteConfigStack(options) {
97
97
  };
98
98
  }
99
99
 
100
- function envSiteConfig(env) {
100
+ function envSiteConfig(env = {}) {
101
101
  return Object.fromEntries(Object.entries(env).filter(([k]) => k.startsWith("NUXT_SITE_") || k.startsWith("NUXT_PUBLIC_SITE_")).map(([k, v]) => [
102
102
  k.replace(/^NUXT_(PUBLIC_)?SITE_/, "").split("_").map((s, i) => i === 0 ? s.toLowerCase() : s[0]?.toUpperCase() + s.slice(1).toLowerCase()).join(""),
103
103
  v
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "site-config-stack",
3
3
  "type": "module",
4
- "version": "3.2.18",
4
+ "version": "3.2.19",
5
5
  "description": "Shared site configuration utilities.",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",