react-native-dotenv
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -18,2 +18,8 @@ # Changelog | ||
## [0.2.0] - 2018-7-17 | ||
### Fixed | ||
- Compatibility with RN 0.56 (Babel 7) (#42) | ||
## [0.1.1] - 2018-1-14 | ||
@@ -20,0 +26,0 @@ |
var path = require('path'); | ||
module.exports = { | ||
module.exports = () => ({ | ||
plugins: [ | ||
@@ -10,2 +10,2 @@ [require('babel-plugin-dotenv'), { | ||
], | ||
}; | ||
}); |
{ | ||
"name": "react-native-dotenv", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "A Babel preset let you `import` application configs from **.env** file (zero runtime dependency)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,4 +17,12 @@ # react-native-dotenv | ||
### RN (0.56+) (Babel 7) | ||
```json | ||
{ | ||
"presets": ["react-native", "module:react-native-dotenv"] | ||
} | ||
``` | ||
### RN (<0.56) | ||
```json | ||
{ | ||
"presets": ["react-native", "react-native-dotenv"] | ||
@@ -47,3 +55,3 @@ } | ||
## How does it works? | ||
## How does it work? | ||
@@ -50,0 +58,0 @@ As you can see, it's implemented as a babel plugin. All referenced imported members are replaced as the values specified in the **.env** file. |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
5519
100
1