New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

assert-env

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-env - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "assert-env",
"version": "0.2.0",
"version": "0.3.0",
"description": "Assert that specific environment variables exist.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,3 +25,3 @@ 'use strict';

test('assert', function (t) {
test('throws when missing keys', function (t) {
process.env.HTTP_LISTEN_PORT = 4242;

@@ -38,1 +38,16 @@

});
test('does not throw when all keys exist', function (t) {
process.env.HTTP_LISTEN_PORT = 4242;
process.env.HTTP_LISTEN_HOST = '0.0.0.0';
var fn = simulate([
'HTTP_LISTEN_PORT',
'HTTP_LISTEN_HOST'
]);
assert.doesNotThrow(fn, ReferenceError);
t.end();
});
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