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

react-native-dotenv

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-dotenv - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

.vscode/launch.json

1

__tests__/__fixtures__/process-env/source.js
console.log(process.env.API_KEY)
console.log(process.env.DEV_USERNAME)
console.log(process.env.NODE_ENV)

3

__tests__/__fixtures__/safe-success/source.js

@@ -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",

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