site-config-stack 0.8.14 → 0.8.17
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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -28,6 +28,8 @@ const envSiteConfig = {
|
|
|
28
28
|
function createSiteConfigStack() {
|
|
29
29
|
const stack = [];
|
|
30
30
|
function push(input) {
|
|
31
|
+
if (!input || typeof input !== "object" || Object.keys(input).length === 0)
|
|
32
|
+
return;
|
|
31
33
|
if (!input._context) {
|
|
32
34
|
let lastFunctionName = new Error("tmp").stack?.split("\n")[2].split(" ")[5];
|
|
33
35
|
if (lastFunctionName?.includes("/"))
|
package/dist/index.mjs
CHANGED
|
@@ -26,6 +26,8 @@ const envSiteConfig = {
|
|
|
26
26
|
function createSiteConfigStack() {
|
|
27
27
|
const stack = [];
|
|
28
28
|
function push(input) {
|
|
29
|
+
if (!input || typeof input !== "object" || Object.keys(input).length === 0)
|
|
30
|
+
return;
|
|
29
31
|
if (!input._context) {
|
|
30
32
|
let lastFunctionName = new Error("tmp").stack?.split("\n")[2].split(" ")[5];
|
|
31
33
|
if (lastFunctionName?.includes("/"))
|