@now/node
Advanced tools
+19
-13
| /// <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; |
+1
-1
| { | ||
| "name": "@now/node", | ||
| "version": "1.8.6-canary.0", | ||
| "version": "1.8.6-canary.1", | ||
| "license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
3164591
0.01%88877
0.01%