Socket
Socket
Sign inDemoInstall

babel-plugin-dotenv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-dotenv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

index.js

@@ -20,5 +20,5 @@ var dotEnv = require('dotenv');

if (path.node.source.value === options.replacedModuleName) {
var config = dotEnv.config({ path: sysPath.join(configDir, '.env'), slient: true }) || {};
var config = dotEnv.config({ path: sysPath.join(configDir, '.env'), silent: true }) || {};
var platformPath = (process.env.BABEL_ENV === 'development' || process.env.BABEL_ENV === undefined) ? '.env.development' : '.env.production';
var config = Object.assign(config, dotEnv.config({ path: sysPath.join(configDir, platformPath) }));
var config = Object.assign(config, dotEnv.config({ path: sysPath.join(configDir, platformPath), silent: true }));

@@ -25,0 +25,0 @@ path.node.specifiers.forEach(function(specifier, idx){

{
"name": "babel-plugin-dotenv",
"version": "0.0.1",
"version": "0.0.2",
"description": "Load environment variables from .env file using import statement",

@@ -18,4 +18,5 @@ "main": "index.js",

"devDependencies": {
"babel-core": "^6.14.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.14.0",
"babel-runtime": "^5.0.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.14.0",
"expect.js": "^0.3.1",

@@ -22,0 +23,0 @@ "istanbul": "^0.4.5",

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