Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! src: extend dot-env to also handle sections
update jsdoc types for options

Co-authored-by: Yagiz Nizipli <[email protected]>
  • Loading branch information
dario-piotrowicz and anonrig authored Jun 22, 2025
commit 967e6719aa465be38d20904f33d11a90d8a3d3d5
2 changes: 1 addition & 1 deletion lib/internal/process/per_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function wrapProcessMethods(binding) {
/**
* Loads the `.env` file to process.env.
* @param {string | URL | Buffer | undefined} path
* @param {{ sections?: [] } | undefined} options
* @param {{ sections?: string[] }} [options]
*/
function loadEnvFile(path = '.env', options = {}) {
getValidatedPath ??= require('internal/fs/utils').getValidatedPath;
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function _exceptionWithHostPort(...args) {
/**
* Parses the content of a `.env` file.
* @param {string} content
* @param {{ sections?: [] } | undefined} options
* @param {{ sections?: string[] }} [options]
* @returns {Record<string, string>}
*/
function parseEnv(content, options = {}) {
Expand Down
Loading