Comparing version 0.13.0-rc1 to 0.13.0-rc2
@@ -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 @@ |
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50469
822