Comparing version 16.0.2 to 16.0.3
@@ -5,4 +5,10 @@ # Changelog | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.0.2...master) | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.0.3...master) | ||
## [16.0.3](https://github.com/motdotla/dotenv/compare/v16.0.2...v16.0.3) (2022-09-29) | ||
### Changed | ||
- Added library version to debug logs ([#682](https://github.com/motdotla/dotenv/pull/682)) | ||
## [16.0.2](https://github.com/motdotla/dotenv/compare/v16.0.1...v16.0.2) (2022-08-30) | ||
@@ -9,0 +15,0 @@ |
const fs = require('fs') | ||
const path = require('path') | ||
const os = require('os') | ||
const packageJson = require('../package.json') | ||
const version = packageJson.version | ||
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg | ||
@@ -47,3 +50,3 @@ | ||
function _log (message) { | ||
console.log(`[dotenv][DEBUG] ${message}`) | ||
console.log(`[dotenv@${version}][DEBUG] ${message}`) | ||
} | ||
@@ -50,0 +53,0 @@ |
{ | ||
"name": "dotenv", | ||
"version": "16.0.2", | ||
"version": "16.0.3", | ||
"description": "Loads environment variables from .env file", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -0,1 +1,38 @@ | ||
<div align="center"> | ||
<p> | ||
<sup> | ||
<a href="https://github.com/sponsors/motdotla">Dotenv is supported by the community.</a> | ||
</sup> | ||
</p> | ||
<sup>Special thanks to:</sup> | ||
<br> | ||
<br> | ||
<a href="https://www.warp.dev/?utm_source=github&utm_medium=referral&utm_campaign=dotenv_p_20220831"> | ||
<div> | ||
<img src="https://res.cloudinary.com/dotenv-org/image/upload/v1661980709/warp_hi8oqj.png" width="230" alt="Warp"> | ||
</div> | ||
<b>Warp is a blazingly fast, Rust-based terminal reimagined to work like a modern app.</b> | ||
<div> | ||
<sup>Get more done in the CLI with real text editing, block-based output, and AI command search.</sup> | ||
</div> | ||
</a> | ||
<br> | ||
<a href="https://retool.com/?utm_source=sponsor&utm_campaign=dotenv"> | ||
<div> | ||
<img src="https://res.cloudinary.com/dotenv-org/image/upload/c_scale,w_300/v1664466968/logo-full-black_vidfqf.png" width="270" alt="Retool"> | ||
</div> | ||
<b>Retool helps developers build custom internal software, like CRUD apps and admin panels, really fast.</b> | ||
<div> | ||
<sup>Build UIs visually with flexible components, connect to any data source, and write business logic in JavaScript.</sup> | ||
</div> | ||
</a> | ||
<hr> | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
</div> | ||
[![dotenv-vault](https://badge.dotenv.org/works-with.svg?r=1)](https://www.dotenv.org/r/github.com/dotenv-org/dotenv-vault?r=1) | ||
@@ -17,2 +54,4 @@ | ||
[![Featured on Openbase](https://badges.openbase.com/js/featured/dotenv.svg?token=eE0hWPkhC2JGSD4G9hwg5C54EBxjJAyvurGfQsYoKiQ=)](https://openbase.com/js/dotenv?utm_source=embedded&utm_medium=badge&utm_campaign=featured-badge&utm_term=js/dotenv) | ||
[![Limited Edition Tee Original](https://img.shields.io/badge/Limited%20Edition%20Tee%20%F0%9F%91%95-Original-yellow?labelColor=black&style=plastic)](https://dotenv.gumroad.com/l/original) | ||
[![Limited Edition Tee Redacted](https://img.shields.io/badge/Limited%20Edition%20Tee%20%F0%9F%91%95-Redacted-gray?labelColor=black&style=plastic)](https://dotenv.gumroad.com/l/redacted) | ||
@@ -41,3 +80,3 @@ ## Install | ||
require('dotenv').config() | ||
console.log(process.env) // remove this after you've confirmed it working | ||
console.log(process.env) // remove this after you've confirmed it is working | ||
``` | ||
@@ -72,3 +111,3 @@ | ||
... | ||
-----END DSA PRIVATE KEY-----" | ||
-----END RSA PRIVATE KEY-----" | ||
``` | ||
@@ -79,3 +118,3 @@ | ||
```dosini | ||
PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nKh9NV...\n-----END DSA PRIVATE KEY-----\n" | ||
PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nKh9NV...\n-----END RSA PRIVATE KEY-----\n" | ||
``` | ||
@@ -82,0 +121,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
36605
188
447