opencode-dotenv 0.3.1 → 0.3.2
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.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -883,6 +883,9 @@ function isValidEnvKey(key) {
|
|
|
883
883
|
return VALID_ENV_KEY.test(key);
|
|
884
884
|
}
|
|
885
885
|
function expandPath(rawPath) {
|
|
886
|
+
if (typeof rawPath !== "string") {
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
886
889
|
const home = getHomeDir();
|
|
887
890
|
const expanded = rawPath.replace(/^~/, home);
|
|
888
891
|
const resolved = resolve(expanded);
|