react-native-dotenv
Advanced tools
Comparing version 2.6.2 to 3.0.0
@@ -61,3 +61,3 @@ const {transformFileSync} = require('@babel/core') | ||
const {code} = transformFileSync(FIXTURES + 'local-env/source.js') | ||
expect(code).toBe('console.log("local-key");\nconsole.log("username123456");') | ||
expect(code).toBe('console.log("username123456");\nconsole.log("local-key");') | ||
}) | ||
@@ -64,0 +64,0 @@ |
@@ -40,12 +40,12 @@ const {readFileSync} = require('fs') | ||
const parsed = parseDotenvFile(this.opts.path, this.opts.verbose) | ||
const localParsed = parseDotenvFile(this.opts.path + '.local') | ||
const modeParsed = parseDotenvFile(this.opts.path + '.' + babelMode) | ||
const localParsed = parseDotenvFile(this.opts.path + '.local') | ||
this.env = Object.assign(Object.assign(parsed, modeParsed), localParsed) | ||
} else { | ||
dotenv.config({ | ||
path: this.opts.path + '.local', | ||
path: this.opts.path + '.' + babelMode, | ||
silent: true | ||
}) | ||
dotenv.config({ | ||
path: this.opts.path + '.' + babelMode, | ||
path: this.opts.path + '.local', | ||
silent: true | ||
@@ -52,0 +52,0 @@ }) |
{ | ||
"name": "react-native-dotenv", | ||
"version": "2.6.2", | ||
"version": "3.0.0", | ||
"description": "Load environment variables using import statements.", | ||
@@ -5,0 +5,0 @@ "repository": "github:goatandsheep/react-native-dotenv", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33086