Comparing version 16.4.3 to 16.4.4
@@ -5,4 +5,10 @@ # Changelog | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.4.3...master) | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.4.4...master) | ||
## [16.4.4](https://github.com/motdotla/dotenv/compare/v16.4.3...v16.4.4) (2024-02-13) | ||
### Changed | ||
- π Replaced chaining operator `?.` with old school `&&` (fixing node 12 failures) [#812](https://github.com/motdotla/dotenv/pull/812) | ||
## [16.4.3](https://github.com/motdotla/dotenv/compare/v16.4.2...v16.4.3) (2024-02-12) | ||
@@ -9,0 +15,0 @@ |
@@ -210,3 +210,3 @@ const fs = require('fs') | ||
if (options?.encoding) { | ||
if (options && options.encoding) { | ||
encoding = options.encoding | ||
@@ -220,3 +220,3 @@ } else { | ||
let optionPathsThatExist = [] | ||
if (options?.path) { | ||
if (options && options.path) { | ||
if (!Array.isArray(options.path)) { | ||
@@ -223,0 +223,0 @@ if (fs.existsSync(options.path)) { |
{ | ||
"name": "dotenv", | ||
"version": "16.4.3", | ||
"version": "16.4.4", | ||
"description": "Loads environment variables from .env file", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -369,4 +369,2 @@ <div align="center"> | ||
```js | ||
```js | ||
require('dotenv').config({ path: ['.env.local', '.env'] }) | ||
@@ -373,0 +371,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78984
729