Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vitrical/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitrical/utils - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc