Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@types/scroll-into-view
Advanced tools
Readme
npm install --save @types/scroll-into-view
This package contains type definitions for scroll-into-view (https://github.com/KoryNunn/scroll-into-view).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scroll-into-view.
declare namespace __ScrollIntoView {
interface Settings {
time?: number | undefined;
ease?: ((value: number) => number) | undefined;
validTarget?: ((target: HTMLElement, parentsScrolled: number) => boolean) | undefined;
align?: Alignment | undefined;
isScrollable?:
| ((target: HTMLElement, defaultIsScrollable: (target: HTMLElement) => boolean) => boolean)
| undefined;
isWindow?: ((target: HTMLElement) => boolean) | undefined;
cancellable?: boolean | undefined;
maxSynchronousAlignments?: number | undefined;
debug?: boolean | undefined;
}
interface Alignment {
/** 0 to 1, default 0.5 (center) */
top?: number | undefined;
/** 0 to 1, default 0.5 (center) */
left?: number | undefined;
/** pixels to offset top alignment */
topOffset?: number | undefined;
/** pixels to offset left alignment */
leftOffset?: number | undefined;
/** boolean to prevent X scrolling */
lockX?: boolean | undefined;
/** boolean to prevent Y scrolling */
lockY?: boolean | undefined;
}
/** type will be 'complete' if the scroll completed or 'canceled' if the current scroll was canceled by a new scroll */
type callbackParameterType = "complete" | "canceled";
type Callback = (type: callbackParameterType) => void;
interface ScrollIntoView {
(target: HTMLElement, callback?: __ScrollIntoView.Callback): void;
(target: HTMLElement, settings: __ScrollIntoView.Settings, callback?: __ScrollIntoView.Callback): void;
}
}
declare module "scroll-into-view" {
var scrollIntoView: __ScrollIntoView.ScrollIntoView;
export = scrollIntoView;
}
These definitions were written by zivni, Thibaut, and goodCycle.
FAQs
TypeScript definitions for scroll-into-view
We found that @types/scroll-into-view 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.