
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@types/extract-domain
Advanced tools
TypeScript definitions for extract-domain
npm install --save @types/extract-domain
This package contains type definitions for extract-domain (https://github.com/bjarneo/extract-domain).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-domain.
// Type definitions for extract-domain 2.3
// Project: https://github.com/bjarneo/extract-domain
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Performant domain name extraction. No regex or array magic.
* This package will also remove the sub domain.
*/
declare function extractDomain(url: string, opts?: extractDomain.Options): string;
declare function extractDomain(urls: string[], options?: extractDomain.Options): string[];
declare namespace extractDomain {
interface Options {
tld?: boolean | undefined;
}
}
export as namespace extractDomain;
export = extractDomain;
extractDomain
These definitions were written by Piotr Błażejewicz.
FAQs
TypeScript definitions for extract-domain
The npm package @types/extract-domain receives a total of 6,206 weekly downloads. As such, @types/extract-domain popularity was classified as popular.
We found that @types/extract-domain 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.