site-config-stack 2.2.2 → 2.2.4

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
@@ -67,9 +67,9 @@ function createSiteConfigStack(options) {
67
67
  for (const o in stack.sort((a, b) => (a._priority || 0) - (b._priority || 0))) {
68
68
  for (const k in stack[o]) {
69
69
  const key = k;
70
- const val = stack[o][k];
71
- if (!k.startsWith("_")) {
72
- siteConfig[k] = options2?.resolveRefs ? vue.toValue(val) : val;
70
+ const val = options2?.resolveRefs ? vue.toValue(stack[o][k]) : stack[o][k];
71
+ if (!k.startsWith("_") && typeof val !== "undefined") {
72
+ siteConfig[k] = val;
73
73
  if (options2?.debug)
74
74
  siteConfig._context[key] = stack[o]._context?.[key] || stack[o]._context || "anonymous";
75
75
  }
package/dist/index.mjs CHANGED
@@ -65,9 +65,9 @@ function createSiteConfigStack(options) {
65
65
  for (const o in stack.sort((a, b) => (a._priority || 0) - (b._priority || 0))) {
66
66
  for (const k in stack[o]) {
67
67
  const key = k;
68
- const val = stack[o][k];
69
- if (!k.startsWith("_")) {
70
- siteConfig[k] = options2?.resolveRefs ? toValue(val) : val;
68
+ const val = options2?.resolveRefs ? toValue(stack[o][k]) : stack[o][k];
69
+ if (!k.startsWith("_") && typeof val !== "undefined") {
70
+ siteConfig[k] = val;
71
71
  if (options2?.debug)
72
72
  siteConfig._context[key] = stack[o]._context?.[key] || stack[o]._context || "anonymous";
73
73
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "site-config-stack",
3
3
  "type": "module",
4
- "version": "2.2.2",
4
+ "version": "2.2.4",
5
5
  "description": "Shared site configuration utilities.",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",