Socket
Socket
Sign inDemoInstall

http-api-proxy-server

Package Overview
Dependencies
36
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.7 to 0.0.8

6

dist/proxy-server.js

@@ -311,4 +311,6 @@ "use strict";

var apiResponseStatus = _a.status, apiResponseHeaders = _a.headers, apiResponseBody = _a.body;
res.writeHead(apiResponseStatus, __assign(__assign({}, apiResponseHeaders), { "access-control-allow-origin": "*" }));
res.end(JSON.stringify(apiResponseBody));
var bodyData = JSON.stringify(apiResponseBody);
var bodyLength = Buffer.byteLength(bodyData);
res.writeHead(apiResponseStatus, __assign(__assign({}, apiResponseHeaders), { "content-length": bodyLength.toString(), "access-control-allow-origin": "*" }));
res.end(bodyData);
};

@@ -315,0 +317,0 @@ /** @description adding and overwrites by object key */

{
"name": "http-api-proxy-server",
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc