site-config-stack 3.1.2 → 3.1.3

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
@@ -77,7 +77,7 @@ function createSiteConfigStack(options) {
77
77
  for (const k in stack[o]) {
78
78
  const key = k;
79
79
  const val = options2?.resolveRefs ? vue.toValue(stack[o][k]) : stack[o][k];
80
- if (!k.startsWith("_") && typeof val !== "undefined") {
80
+ if (!k.startsWith("_") && typeof val !== "undefined" && val !== "") {
81
81
  siteConfig[k] = val;
82
82
  if (typeof stack[o]._priority !== "undefined" && stack[o]._priority !== -1) {
83
83
  siteConfig._priority[key] = stack[o]._priority;
package/dist/index.mjs CHANGED
@@ -75,7 +75,7 @@ function createSiteConfigStack(options) {
75
75
  for (const k in stack[o]) {
76
76
  const key = k;
77
77
  const val = options2?.resolveRefs ? toValue(stack[o][k]) : stack[o][k];
78
- if (!k.startsWith("_") && typeof val !== "undefined") {
78
+ if (!k.startsWith("_") && typeof val !== "undefined" && val !== "") {
79
79
  siteConfig[k] = val;
80
80
  if (typeof stack[o]._priority !== "undefined" && stack[o]._priority !== -1) {
81
81
  siteConfig._priority[key] = stack[o]._priority;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "site-config-stack",
3
3
  "type": "module",
4
- "version": "3.1.2",
4
+ "version": "3.1.3",
5
5
  "description": "Shared site configuration utilities.",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",