Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@types/fastclick
Advanced tools
TypeScript definitions for FastClick
npm install --save @types/fastclick
This package contains type definitions for FastClick (https://github.com/ftlabs/fastclick).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fastclick.
// Type definitions for FastClick v1.0.3
// Project: https://github.com/ftlabs/fastclick
// Definitions by: Shinnosuke Watanabe <https://github.com/shinnn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface FastClickObject {
lastTouchIdentifier: number;
layer: Element;
tapDelay: number;
targetElement: any;
touchBoundary: number;
touchStartX: number;
touchStartY: number;
trackingClick: boolean;
trackingClickStart: number;
destroy(): void;
determineEventType(targetElement: any): string;
findControl(labelElement: any /* EventTarget | HTMLLabelElement */): any;
focus(targetElement: any /* EventTarget | Element */): void;
getTargetElementFromEventTarget(eventTarget: EventTarget): any;
needsClick(target: any /* EventTarget | Element */): boolean;
needsFocus(target: any /* EventTarget | Element */): boolean;
}
interface FastClickOptions {
touchBoundary?: number | undefined;
tapDelay?: number | undefined;
}
interface FastClickStatic {
new(layer: any, options?: FastClickOptions): FastClickObject;
attach(layer: any, options?: FastClickOptions): FastClickObject;
}
declare module "fastclick" {
function fastclick(layer: any, options?: FastClickOptions): FastClickObject;
namespace fastclick {
var FastClick: FastClickStatic;
}
export = fastclick;
}
declare var FastClick: FastClickStatic;
FastClick
These definitions were written by Shinnosuke Watanabe.
FAQs
TypeScript definitions for fastclick
We found that @types/fastclick 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.