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

marshmallows

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marshmallows - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

9

index.js
'use strict';
const auth = require('basic-auth');
function processIsConfigured(proc) {
return !!proc.env.NODE_ENV &&
proc.env.NODE_ENV !== 'development' &&
!!proc.env.USER &&
!!proc.env.PASS;
}
/**

@@ -16,3 +23,3 @@ * auth

function authHandler(req, res, next) {
if (!!process.env.NODE_ENV && process.env.NODE_ENV !== 'development') {
if (processIsConfigured(process)) {
const user = auth(req);

@@ -19,0 +26,0 @@

2

package.json
{
"name": "marshmallows",
"version": "0.1.1",
"version": "1.0.0",
"description": "A drop-in Basic Auth middleware for Express",

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

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