Socket
Socket
Sign inDemoInstall

dotenv

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv - npm Package Compare versions

Comparing version 16.4.3 to 16.4.4

8

CHANGELOG.md

@@ -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 @@

4

lib/main.js

@@ -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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc