Socket
Socket
Sign inDemoInstall

@types/marked

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/marked - npm Package Compare versions

Comparing version 1.2.2 to 2.0.0

82

marked/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for Marked 1.2
// Type definitions for Marked 2.0
// Project: https://github.com/markedjs/marked, https://marked.js.org

@@ -40,3 +40,7 @@ // Definitions by: William Orr <https://github.com/worr>

*/
declare function marked(src: string, options: marked.MarkedOptions, callback: (error: any | undefined, parseResult: string) => void): void;
declare function marked(
src: string,
options: marked.MarkedOptions,
callback: (error: any | undefined, parseResult: string) => void,
): void;

@@ -78,3 +82,7 @@ declare namespace marked {

*/
function parse(src: string, options?: MarkedOptions, callback?: (error: any | undefined, parseResult: string) => void): string;
function parse(
src: string,
options?: MarkedOptions,
callback?: (error: any | undefined, parseResult: string) => void,
): string;

@@ -142,3 +150,3 @@ /**

space(src: string): Tokens.Space;
code(src: string, token: Token): Tokens.Code;
code(src: string): Tokens.Code;
fences(src: string): Tokens.Code;

@@ -159,5 +167,4 @@ heading(src: string): Tokens.Heading;

link(src: string): Tokens.Image | Tokens.Link;
reflink(src: string, links: Tokens.Link[] |Tokens.Image[]): Tokens.Link |Tokens.Image | Tokens.Text;
strong(src: string): Tokens.Strong;
em(src: string): Tokens.Em;
reflink(src: string, links: Tokens.Link[] | Tokens.Image[]): Tokens.Link | Tokens.Image | Tokens.Text;
emStrong(src: string, maskedSrc: string, prevChar: string): Tokens.Em | Tokens.Strong;
codespan(src: string): Tokens.Codespan;

@@ -185,6 +192,9 @@ br(src: string): Tokens.Br;

tablerow(content: string): string;
tablecell(content: string, flags: {
header: boolean;
align: 'center' | 'left' | 'right' | null;
}): string;
tablecell(
content: string,
flags: {
header: boolean;
align: 'center' | 'left' | 'right' | null;
},
): string;
strong(text: string): string;

@@ -215,3 +225,3 @@ em(text: string): string;

tokens: TokensList;
token: Token|null;
token: Token | null;
options: MarkedOptions;

@@ -241,3 +251,3 @@ renderer: Renderer;

class Slugger {
seen: {[slugValue: string]: number};
seen: { [slugValue: string]: number };
slug(value: string, options?: SluggerOptions): string;

@@ -256,8 +266,8 @@ }

links: {
[key: string]: { href: string | null; title: string | null; }
}
[key: string]: { href: string | null; title: string | null };
};
};
type Token =
Tokens.Space
| Tokens.Space
| Tokens.Code

@@ -417,24 +427,24 @@ | Tokens.Heading

interface Em {
type: 'em';
raw: string;
text: string;
}
interface Em {
type: 'em';
raw: string;
text: string;
}
interface Codespan {
type: 'codespan';
raw: string;
text: string;
}
interface Codespan {
type: 'codespan';
raw: string;
text: string;
}
interface Br {
interface Br {
type: 'br';
raw: string;
}
}
interface Del {
type: 'del';
raw: string;
text: string;
}
interface Del {
type: 'del';
raw: string;
text: string;
}
}

@@ -474,3 +484,7 @@

*/
highlight?(code: string, lang: string, callback?: (error: any | undefined, code?: string) => void): string | void;
highlight?(
code: string,
lang: string,
callback?: (error: any | undefined, code?: string) => void,
): string | void;

@@ -477,0 +491,0 @@ /**

{
"name": "@types/marked",
"version": "1.2.2",
"version": "2.0.0",
"description": "TypeScript definitions for Marked",

@@ -57,4 +57,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "829a21e07c4e71b1995ff10730ef777f028e4f2684f10c3cea49339215c5f49a",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "dab0ba347abdd82025508e549b9d24724c4f9bc7ec500fbe6d2d661a2dbcd254",
"typeScriptVersion": "3.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sun, 31 Jan 2021 19:50:06 GMT
* Last updated: Sun, 07 Mar 2021 18:12:56 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `marked`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc