
Research
Malicious NuGet Packages Typosquat Nethereum to Exfiltrate Wallet Keys
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
@types/slate-html-serializer
Advanced tools
TypeScript definitions for slate-html-serializer
npm install --save @types/slate-html-serializer
This package contains type definitions for slate-html-serializer (https://github.com/ianstormtaylor/slate).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slate-html-serializer.
import * as React from "react";
import { BlockProperties, Leaf, Mark, Node as SlateNode, Value, ValueJSON } from "slate";
export interface Rule {
deserialize?:
| ((el: Element, next: (elements: Element[] | NodeList | Array<Node & ChildNode>) => any) => any)
| undefined;
serialize?: ((obj: any, children: string) => React.ReactNode) | undefined;
}
export interface HtmlOptions {
rules?: Rule[] | undefined;
defaultBlock?: BlockProperties | string | undefined;
parseHtml?: ((html: string) => HTMLElement) | undefined;
}
export default class Html {
constructor(options?: HtmlOptions);
deserialize(html: string, options: { toJSON: true }): ValueJSON;
deserialize(html: string, options?: { toJSON?: false | undefined }): Value;
serialize(value: Value, options?: { render?: true | undefined }): string;
serialize(value: Value, options: { render: false }): Element[];
protected rules: Rule[];
protected defaultBlock: BlockProperties;
protected parseHtml: (html: string) => HTMLElement;
protected deserializeElements: (elements: HTMLElement[]) => SlateNode[];
protected deserializeElement: (element: HTMLElement) => any;
protected deserializeMark: (mark: Mark) => SlateNode[];
protected serializeNode: (node: SlateNode) => string;
protected serializeLeaf: (leaf: Leaf) => string;
protected serializeString: (string: string) => string;
}
These definitions were written by Brandon Shelton.
FAQs
TypeScript definitions for slate-html-serializer
We found that @types/slate-html-serializer 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
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.