Socket
Socket
Sign inDemoInstall

dotenv

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

3

lib/main.js

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

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