Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@types/koa-sslify
Advanced tools
Readme
npm install --save @types/koa-sslify
This package contains type definitions for koa-sslify (https://github.com/turboMaCk/koa-sslify#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-sslify.
import koa = require("koa");
export interface Options {
/**
* Function used to test if request is secure
*/
resolver?: ((ctx: koa.Context) => boolean) | undefined;
/**
* Hostname for redirect (uses request host if not set)
*/
hostname?: string | undefined;
/**
* Port of HTTPS server
*/
port?: number | undefined;
/**
* Avoid :443 port in redirect url
*/
skipDefaultPort?: boolean | undefined;
/**
* Ignore url path (redirect to domain)
*/
ignoreUrl?: boolean | undefined;
/**
* Temporary mode (use 307 Temporary Redirect)
*/
temporary?: boolean | undefined;
/**
* Whitelist methods that should be redirected
*/
redirectMethods?: string[] | undefined;
/**
* Status returned for disallowed methods
*/
disallowStatus?: number | undefined;
}
/**
* Default HTTPS resolver
* This works when using node.js TLS support
*/
export function httpsResolver(ctx: koa.Context): boolean;
/**
* x-forwarded-proto header resolver
* common for heroku gcp (ingress) etc
*/
export function xForwardedProtoResolver(ctx: koa.Context): boolean;
/**
* Azure resolver
* Azure is using `x-att-ssl` header
*/
export function azureResolver(ctx: koa.Context): boolean;
/**
* Custom proto header factory
*/
export function customProtoHeaderResolver(header: string): (ctx: koa.Context) => boolean;
/**
* Resolver for `Forwarded` header
* see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
*/
export function forwardedResolver(ctx: koa.Context): boolean;
export default function factory(options?: Options): koa.Middleware;
These definitions were written by Matthew Bull, and Mihkel Sokk.
FAQs
TypeScript definitions for koa-sslify
The npm package @types/koa-sslify receives a total of 3,393 weekly downloads. As such, @types/koa-sslify popularity was classified as popular.
We found that @types/koa-sslify demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.