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

nodecaf

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodecaf - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

9

lib/api.js

@@ -176,4 +176,11 @@ const assert = require('assert');

input.req = { method, path, host: origReq.host, 'user-agent': origReq['user-agent'] };
app.log.debug({ req: input.req });
app.log.debug({
method: method, path,
host: origReq.host,
agent: origReq['user-agent'],
type: 'request',
msg: 'Received ' + method + ' request to ' + path
});
let res = input.res = new Response(input);

@@ -180,0 +187,0 @@

2

lib/main.js

@@ -110,3 +110,3 @@ const

this.state = 'stuck';
await this.stop();
await this.stop().catch(() => {});
throw err;

@@ -113,0 +113,0 @@ }

@@ -48,3 +48,14 @@ const { sign } = require('cookie-signature');

this.res && this.res.end(body);
this.log.debug({ res: this });
this.log.debug({
path: this.req.path,
method: this.req.method,
host: this.req.host,
agent: this.req['user-agent'],
status: this.statusCode,
level: this.statusCode > 499 ? 'warn' : 'debug',
type: 'response',
msg: 'Sent ' + this.statusCode + ' response to ' + this.req.method + ' ' + this.req.path
});
this.finished = true;

@@ -51,0 +62,0 @@ return this.resolve({

{
"name": "nodecaf",
"version": "0.12.1",
"version": "0.12.2",
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.",

@@ -45,8 +45,8 @@ "main": "lib/main.js",

"cors": "^2.8.5",
"golog": "^0.4.1"
"golog": "^0.5.0"
},
"devDependencies": {
"muhb": "^3.0.4",
"muhb": "^3.0.6",
"toml": "^3.0.0"
}
}
# [Nodecaf](https://gitlab.com/GCSBOSS/nodecaf)
> Docs for version v0.11.x.
> Docs for version v0.12.x.

@@ -34,2 +34,5 @@ Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.

// Optionally bind to a given port
conf: { port: 80 },
// Load your routes and API definitions.

@@ -36,0 +39,0 @@ api,

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