
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@types/hapi__call
Advanced tools
TypeScript definitions for @hapi/call
npm install --save @types/hapi__call
This package contains type definitions for @hapi/call (https://github.com/hapijs/call#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__call.
/// <reference types="node" />
export interface RouteDefinition {
/**
* Generally this is an HTTP method or "*" to mean any.
* This field is case insensitive.
*
* - "get"
* - "head"
* - "post"
* - "put"
* - "delete"
* - "connect"
* - "options"
* - "trace"
* - "patch"
*/
method: string;
path: string;
}
export interface RouterOptions {
isCaseSensitive: boolean;
}
export interface Match<Handler> {
params: Partial<Record<string, string>>;
paramsArray: string[];
route: Handler;
}
export type Route<Handler> = Match<Handler> | Error;
export class Router<Handler> {
constructor(routerOptions?: RouterOptions);
add(definition: RouteDefinition, route?: Handler): void;
route(method: string, path: string): Route<Handler>;
}
These definitions were written by Rodrigo Saboya, and Sebastian Malton.
FAQs
TypeScript definitions for @hapi/call
The npm package @types/hapi__call receives a total of 1,780 weekly downloads. As such, @types/hapi__call popularity was classified as popular.
We found that @types/hapi__call demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.