react-native-dotenv
Advanced tools
Comparing version 3.3.0 to 3.3.1
console.log(process.env.API_KEY) | ||
console.log(process.env.DEV_USERNAME) | ||
console.log(process.env.NODE_ENV) |
@@ -1,3 +0,4 @@ | ||
import {HELLO} from '@env' | ||
import {HELLO, NODE_ENV} from '@env' | ||
console.log(HELLO) | ||
console.log(NODE_ENV) |
@@ -83,3 +83,3 @@ const {transformFileSync} = require('@babel/core') | ||
const {code} = transformFileSync(FIXTURES + 'process-env/source.js') | ||
expect(code).toBe('console.log("abc123");\nconsole.log("username");') | ||
expect(code).toBe('console.log("abc123");\nconsole.log("username");\nconsole.log("test");') | ||
}) | ||
@@ -131,3 +131,3 @@ | ||
const {code} = transformFileSync(FIXTURES + 'safe-success/source.js') | ||
expect(code).toBe('console.log("1");') | ||
expect(code).toBe('console.log("1");\nconsole.log("test");') | ||
}) | ||
@@ -134,0 +134,0 @@ |
@@ -50,2 +50,3 @@ const {readFileSync} = require('fs') | ||
this.env = Object.assign(Object.assign(Object.assign(parsed, modeParsed), localParsed), modeLocalParsed) | ||
this.env.NODE_ENV = process.env.NODE_ENV || babelMode | ||
} else { | ||
@@ -52,0 +53,0 @@ dotenv.config({ |
{ | ||
"name": "react-native-dotenv", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Load environment variables using import statements.", | ||
@@ -29,7 +29,7 @@ "repository": "github:goatandsheep/react-native-dotenv", | ||
"devDependencies": { | ||
"@babel/core": "7.15.5", | ||
"codecov": "^3.8.2", | ||
"jest": "27.2.4", | ||
"@babel/core": "7.16.0", | ||
"codecov": "^3.8.3", | ||
"jest": "27.4.4", | ||
"jest-junit": "^13.0.0", | ||
"xo": "^0.46.3" | ||
"xo": "^0.47.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "author": "Kemal Ahmed", |
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
37553
90
299
18