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

@compas/server

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/server - npm Package Compare versions

Comparing version 0.0.165 to 0.0.166

4

package.json
{
"name": "@compas/server",
"version": "0.0.165",
"version": "0.0.166",
"description": "Koa server and common middleware",

@@ -18,3 +18,3 @@ "main": "./index.js",

"dependencies": {
"@compas/stdlib": "0.0.165",
"@compas/stdlib": "0.0.166",
"@types/formidable": "1.2.4",

@@ -21,0 +21,0 @@ "@types/koa": "2.13.4",

@@ -34,3 +34,3 @@ import { environment, isStaging } from "@compas/stdlib";

credentials: true,
exposeHeaders: ["x-request-id"],
exposeHeaders: [],
};

@@ -37,0 +37,0 @@

@@ -5,5 +5,5 @@ import { Transform } from "stream";

eventStop,
isNil,
newEvent,
newLogger,
isNil,
uuid,

@@ -52,13 +52,6 @@ } from "@compas/stdlib";

const startTime = process.hrtime.bigint();
let requestId = ctx.get("x-request-id");
if (isNil(requestId) || requestId.length === 0) {
requestId = uuid();
}
ctx.set("x-request-id", requestId);
ctx.log = newLogger({
ctx: {
type: "http",
requestId,
requestId: uuid(),
},

@@ -65,0 +58,0 @@ });

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