Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/topojson-simplify
Advanced tools
TypeScript definitions for topojson-simplify
npm install --save @types/topojson-simplify
This package contains type definitions for topojson-simplify (https://github.com/topojson/topojson-simplify).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/topojson-simplify.
import * as GeoJSON from "geojson";
import { Objects, OrNull, Topology } from "topojson-specification";
export type Triangle = [[number, number], [number, number], [number, number]];
export type TriangleWeighter = (triangle: Triangle) => number;
export type Ring = Array<[number, number]>;
export type RingWeighter = (triangle: Ring) => number;
export type Filter = (ring: Ring, interior: boolean) => boolean;
export function presimplify<T extends Objects>(topology: Topology<T>, weight?: TriangleWeighter): Topology<T>;
export function simplify<T extends Objects>(topology: Topology<T>, minWeight?: number): Topology<T>;
export function quantile(topology: Topology, p: number): number;
export function filter<K extends Objects>(topology: Topology<K>, filter: Filter): Topology<OrNull<K>>;
export function filterAttached(topology: Topology): Filter;
export function filterAttachedWeight(topology: Topology, minWeight?: number, weight?: RingWeighter): Filter;
export function filterWeight(topology: Topology, minWeight?: number, weight?: RingWeighter): Filter;
export function planarRingArea(ring: Ring): number;
export function planarTriangleArea(triangle: Triangle): number;
export function sphericalRingArea(ring: Ring, interior: boolean): number;
export function sphericalTriangleArea(triangle: Triangle): number;
These definitions were written by denisname, and Ricardo Mello.
FAQs
TypeScript definitions for topojson-simplify
We found that @types/topojson-simplify 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.