dotenv
Advanced tools
Comparing version 13.0.0 to 13.0.1
@@ -5,6 +5,12 @@ # Changelog | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v13.0.0...master) | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v13.0.1...master) | ||
TBD | ||
## [13.0.1](https://github.com/motdotla/dotenv/compare/v13.0.0...v13.0.1) (2022-01-16) | ||
### Changed | ||
* Hide comments and newlines from debug output | ||
## [13.0.0](https://github.com/motdotla/dotenv/compare/v12.0.4...v13.0.0) (2022-01-16) | ||
@@ -11,0 +17,0 @@ |
@@ -47,3 +47,8 @@ const fs = require('fs') | ||
} else if (debug) { | ||
log(`did not match key and value when parsing line ${idx + 1}: ${line}`) | ||
const trimmedLine = line.trim() | ||
// ignore empty and commented lines | ||
if (trimmedLine.length && trimmedLine[0] !== '#') { | ||
log(`failed to match key and value when parsing line ${idx + 1}: ${line}`) | ||
} | ||
} | ||
@@ -50,0 +55,0 @@ }) |
{ | ||
"name": "dotenv", | ||
"version": "13.0.0", | ||
"version": "13.0.1", | ||
"description": "Loads environment variables from .env file", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -91,2 +91,3 @@ <p align="center"> | ||
* [typescript parse](https://github.com/dotenv-org/examples/tree/master/dotenv-typescript-parse) | ||
* [typescript config](https://github.com/dotenv-org/examples/tree/master/dotenv-typescript-config) | ||
* [webpack](https://github.com/dotenv-org/examples/tree/master/dotenv-webpack) | ||
@@ -93,0 +94,0 @@ * [webpack (plugin)](https://github.com/dotenv-org/examples/tree/master/dotenv-webpack2) |
27656
165
345