Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-dotenv-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-dotenv-plugin - npm Package Compare versions

Comparing version 2.0.0 to 2.0.2

6

index.js

@@ -13,4 +13,8 @@ const dotenv = require('dotenv-safe');

dotenv.config(options);
this.example = dotenv.parse(fs.readFileSync(options.sample));
this.env = dotenv.parse(fs.readFileSync(options.path));
this.env = {};
if (fs.existsSync(options.path)) {
this.env = dotenv.parse(fs.readFileSync(options.path));
}
}

@@ -17,0 +21,0 @@

4

package.json
{
"name": "webpack-dotenv-plugin",
"version": "2.0.0",
"version": "2.0.2",
"description": "Use dotenv with webpack.",

@@ -29,3 +29,3 @@ "main": "index.js",

"dependencies": {
"dotenv-safe": "^2.3.1"
"dotenv-safe": "^4.0.4"
},

@@ -32,0 +32,0 @@ "peerDependencies": {

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