Compare commits

...

1 Commits

Author SHA1 Message Date
Louis Lam
9bde02faf6 Fix envsubst issue 2023-12-15 17:43:18 +08:00

View File

@ -385,7 +385,11 @@ function traverseYAML(pair : Pair, env : DotenvParseOutput) : void {
if (item instanceof Pair) {
traverseYAML(item, env);
} else if (item instanceof Scalar) {
item.value = envsubst(item.value, env);
let value = item.value as unknown;
if (typeof(value) === "string") {
item.value = envsubst(value, env);
}
}
}
// @ts-ignore