Comparing version 0.3.0 to 0.4.0
@@ -34,5 +34,4 @@ "use strict"; | ||
} | ||
value = value.replace(/(^['"]|['"]$)/g, ''); // replace first and last quotes only | ||
value = value.replace(/['"]/gm, ''); | ||
return [key, value]; | ||
@@ -39,0 +38,0 @@ }, |
{ | ||
"name": "dotenv", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Loads environment variables from .env", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -23,3 +23,3 @@ # dotenv | ||
... | ||
"dotenv": "0.3.0" | ||
"dotenv": "0.4.0" | ||
} | ||
@@ -26,0 +26,0 @@ } |
@@ -15,3 +15,3 @@ var assert = require('assert'), | ||
it('version should be set', function() { | ||
result.version.should.eql("0.3.0"); | ||
result.version.should.eql("0.4.0"); | ||
}); | ||
@@ -96,3 +96,9 @@ | ||
}); | ||
it ('retains inner quotes', function() { | ||
process.env.RETAIN_INNER_QUOTES.should.eql('{"foo": "bar"}'); | ||
process.env.RETAIN_INNER_QUOTES_AS_STRING.should.eql('{"foo": "bar"}'); | ||
}); | ||
}); | ||
@@ -99,0 +105,0 @@ |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
13614
222
39