Comparing version 16.1.0 to 16.1.1
@@ -7,2 +7,12 @@ # Changelog | ||
## [16.1.1](https://github.com/motdotla/dotenv/compare/v16.1.0...v16.1.1) (2023-05-30) | ||
### Added | ||
- Added type definition for `decrypt` function | ||
### Changed | ||
- Fixed `{crypto: false}` in `packageJson.browser` | ||
## [16.1.0](https://github.com/motdotla/dotenv/compare/v16.0.3...v16.1.0) (2023-05-30) | ||
@@ -9,0 +19,0 @@ |
@@ -108,4 +108,4 @@ // TypeScript Version: 3.0 | ||
* | ||
* @param target - the target JSON object | ||
* @param source - the source JSON object | ||
* @param processEnv - the target JSON object. in most cases use process.env but you can also pass your own JSON object | ||
* @param parsed - the source JSON object | ||
* @param options - additional options. example: `{ debug: true, override: false }` | ||
@@ -115,2 +115,14 @@ * @returns {void} | ||
*/ | ||
export function populate(target: DotenvPopulateInput, source: DotenvPopulateInput, options?: DotenvConfigOptions): DotenvPopulateOutput; | ||
export function populate(processEnv: DotenvPopulateInput, parsed: DotenvPopulateInput, options?: DotenvConfigOptions): DotenvPopulateOutput; | ||
/** | ||
* Decrypt ciphertext | ||
* | ||
* See https://docs.dotenv.org | ||
* | ||
* @param encrypted - the encrypted ciphertext string | ||
* @param keyStr - the decryption key string | ||
* @returns {string} | ||
* | ||
*/ | ||
export function decrypt(encrypted: string, keyStr: string): string; |
{ | ||
"name": "dotenv", | ||
"version": "16.1.0", | ||
"version": "16.1.1", | ||
"description": "Loads environment variables from .env file", | ||
@@ -61,3 +61,4 @@ "main": "lib/main.js", | ||
"path": false, | ||
"os": false | ||
"os": false, | ||
"crypto": false | ||
}, | ||
@@ -64,0 +65,0 @@ "engines": { |
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
65787
382