
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
npm install --save @types/psl
This package contains type definitions for psl (https://github.com/wrangr/psl#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/psl.
// Type definitions for psl 1.1
// Project: https://github.com/wrangr/psl#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export as namespace psl;
export function parse(domain: string): ParsedDomain | ParseError;
export function get(domain: null | undefined): null;
export function get(domain: string): string | null;
export function isValid(domain: string): boolean;
export interface ParsedDomain {
tld: string | null;
sld: string | null;
domain: string | null;
subdomain: string | null;
listed: boolean;
input: string;
error: undefined;
}
export interface ParseError {
input: string;
error: {
code:
| "DOMAIN_TOO_SHORT"
| "DOMAIN_TOO_LONG"
| "LABEL_STARTS_WITH_DASH"
| "LABEL_ENDS_WITH_DASH"
| "LABEL_TOO_LONG"
| "LABEL_TOO_SHORT"
| "LABEL_INVALID_CHARS";
message: string;
};
}
psl
These definitions were written by BendingBender.
FAQs
TypeScript definitions for psl
The npm package @types/psl receives a total of 638,382 weekly downloads. As such, @types/psl popularity was classified as popular.
We found that @types/psl 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.