Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
65
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.6 to 1.2.7

8

express.js

@@ -35,5 +35,7 @@ "use strict";

try {
if (!apiKey)
console.error('Missing apiKey variable');
if (req.headers['key'] !== apiKey) {
if (!apiKey) {
throw new Error('Missing apiKey variable');
}
const clientKey = req.headers['key'] || req.query['_apiKey'];
if (clientKey !== apiKey) {
res.status(403).send({ msg: 'Invalid API Key' });

@@ -40,0 +42,0 @@ return;

{
"name": "@vitrical/utils",
"version": "1.2.6",
"version": "1.2.7",
"description": "Collection of useful functions and typings",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc