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 2.6.2 to 3.0.0

2

__tests__/index.test.js

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

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