Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@now/node

Package Overview
Dependencies
Maintainers
16
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@now/node - npm Package Compare versions

Comparing version
1.8.6-canary.0
to
1.8.6-canary.1
+19
-13
dist/index.d.ts
/// <reference types="node" />
import { ServerResponse, IncomingMessage } from 'http';
export declare type NowRequestCookies = {
export declare type VercelRequestCookies = {
[key: string]: string;
};
export declare type NowRequestQuery = {
export declare type VercelRequestQuery = {
[key: string]: string | string[];
};
export declare type NowRequestBody = any;
export declare type NowRequest = IncomingMessage & {
query: NowRequestQuery;
cookies: NowRequestCookies;
body: NowRequestBody;
export declare type VercelRequestBody = any;
export declare type VercelRequest = IncomingMessage & {
query: VercelRequestQuery;
cookies: VercelRequestCookies;
body: VercelRequestBody;
};
export declare type NowResponse = ServerResponse & {
send: (body: any) => NowResponse;
json: (jsonBody: any) => NowResponse;
status: (statusCode: number) => NowResponse;
redirect: (statusOrUrl: string | number, url?: string) => NowResponse;
export declare type VercelResponse = ServerResponse & {
send: (body: any) => VercelResponse;
json: (jsonBody: any) => VercelResponse;
status: (statusCode: number) => VercelResponse;
redirect: (statusOrUrl: string | number, url?: string) => VercelResponse;
};
export declare type NowApiHandler = (req: NowRequest, res: NowResponse) => void;
export declare type VercelApiHandler = (req: VercelRequest, res: VercelResponse) => void;
export declare type NowRequestCookies = VercelRequestCookies;
export declare type NowRequestQuery = VercelRequestQuery;
export declare type NowRequestBody = any;
export declare type NowRequest = VercelRequest;
export declare type NowResponse = VercelResponse;
export declare type NowApiHandler = VercelApiHandler;
{
"name": "@now/node",
"version": "1.8.6-canary.0",
"version": "1.8.6-canary.1",
"license": "MIT",

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