frontweather
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -10,3 +10,3 @@ const showApiKeyError = require('./showApiKeyError'); | ||
try{ | ||
env(__dirname + '/.env'); | ||
env(__dirname + '/app/.env'); | ||
}catch(e){ | ||
@@ -13,0 +13,0 @@ registerKey('blank'); |
{ | ||
"name": "frontweather", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Leonardo Almeida", |
@@ -6,3 +6,4 @@ const fs = require('fs'); | ||
module.exports = key => { | ||
fs.writeFile('.env', 'API_KEY=' + key, function (err) { | ||
fs.chmodSync(__dirname + '/app/.env', 511); | ||
fs.writeFile(__dirname + '/app/.env', 'API_KEY=' + key, function (err) { | ||
if (err) | ||
@@ -9,0 +10,0 @@ throw err; |
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
7657
146