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.13.0-rc1 to 0.13.0-rc2

4

lib/api.js

@@ -134,3 +134,7 @@ const assert = require('assert');

input.ip = input.headers.forwarded ?? input.headers['x-forwarded-for']
?? input.body?.socket?.remoteAddress ?? '::1';
input.call = (fn, ...args) => fn.call(app, input, ...args);
input.keep = (k, v) => input[k] = v;

@@ -137,0 +141,0 @@ const reqInfo = {

@@ -124,2 +124,6 @@ import { Server } from 'http';

params: Record<string, string>
/** The remote address of the client performing the request. Standard proxy headers are considered.*/
ip: string,
/** Store `value` under the name `key` in the handler args for the lifetime of the request.*/
keep: (key: string, value: unknown) => void
} & Record<string, unknown>;

@@ -126,0 +130,0 @@

2

lib/ws.js
const cookie = require('cookie');
const { WebSocketServer } = require('ws');
const { OutgoingMessage, ServerResponse } = require('http');
const { ServerResponse } = require('http');
const normalizePath = p => (p.slice(-1) == '/' ? p.slice(0, -1) : p) || '/';

@@ -5,0 +5,0 @@

{
"name": "nodecaf",
"version": "0.13.0-rc1",
"version": "0.13.0-rc2",
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.",

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

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