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

web-cgi

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-cgi - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

14

dist/index.js

@@ -36,6 +36,12 @@ "use strict";

}
if (process.env.CONTENT_TYPE) {
headers.set("content-type", process.env.CONTENT_TYPE);
}
if (process.env.CONTENT_LENGTH) {
headers.set("content-length", process.env.CONTENT_LENGTH);
}
const method = process.env.REQUEST_METHOD;
const url = process.env.REQUEST_URI;
if (!url) {
throw new Error("REQUEST_URI not set");
let url = `${/https/i.test(process.env.SERVER_PROTOCOL ?? "") ? "https" : "http"}://${process.env.SERVER_NAME}:${process.env.SERVER_PORT}${process.env.PATH_INFO}`;
if (process.env.QUERY_STRING) {
url += `?${process.env.QUERY_STRING}`;
}

@@ -51,2 +57,4 @@ return new Request(url, {

console.log(`Status: ${response.status}`);
} else {
console.log(`Status: ${response.status} OK`);
}

@@ -53,0 +61,0 @@ for (const [key, value] of response.headers) {

{
"name": "web-cgi",
"version": "0.0.0",
"version": "0.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/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