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

@zohocatalyst/catalyst-functions-utils

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zohocatalyst/catalyst-functions-utils - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "@zohocatalyst/catalyst-functions-utils",
"version": "0.0.3",
"version": "0.0.4",
"description": "catalyst function utils",

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

function getCatalystHeaders(REQUEST) {
let catalystHeaders = {};
Object.keys(REQUEST.rawHeaders).forEach(HEADER => {
if (HEADER.toLocaleLowerCase().startsWith("x-zc-"))
catalystHeaders[HEADER] = REQUEST.rawHeaders[HEADER];
Object.keys(REQUEST.headers).forEach(HEADER => {
if (HEADER.startsWith("x-zc-"))
catalystHeaders[HEADER] = REQUEST.headers[HEADER];
});

@@ -7,0 +7,0 @@ return catalystHeaders;

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