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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-dotenv",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "OpenCode plugin to load .env files at startup",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",