Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 0.6.5 to 0.7.0

34

marked/index.d.ts

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

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

@@ -33,2 +33,4 @@ // Definitions by: William Orr <https://github.com/worr>

declare namespace marked {
const defaults: MarkedOptions;
/**

@@ -79,6 +81,22 @@ * @param src String of markdown source to be compiled

*/
function options(options: MarkedOptions): typeof marked;
/**
* Sets the default options.
*
* @param options Hash of options
*/
function setOptions(options: MarkedOptions): typeof marked;
/**
* Gets the original marked default options.
*/
function getDefaults(): MarkedOptions;
class InlineLexer {
constructor(links: string[], options?: MarkedOptions);
options: MarkedOptions;
links: string[];
rules: Rules;
renderer: Renderer;
static rules: Rules;

@@ -95,2 +113,3 @@ static output(src: string, links: string[], options?: MarkedOptions): string;

constructor(options?: MarkedOptions);
options: MarkedOptions;
code(code: string, language: string, isEscaped: boolean): string;

@@ -103,2 +122,3 @@ blockquote(quote: string): string;

listitem(text: string): string;
checkbox(checked: boolean): string;
paragraph(text: string): string;

@@ -134,6 +154,11 @@ table(header: string, body: string): string;

constructor(options?: MarkedOptions);
tokens: TokensList;
token: Token|null;
options: MarkedOptions;
renderer: Renderer;
slugger: Slugger;
static parse(src: TokensList, options?: MarkedOptions): string;
parse(src: TokensList): string;
next(): Token;
peek(): Token | number;
peek(): Token | 0;
parseText(): string;

@@ -145,2 +170,5 @@ tok(): string;

constructor(options?: MarkedOptions);
tokens: TokensList;
options: MarkedOptions;
rules: Rules;
static rules: Rules;

@@ -153,2 +181,3 @@ static lex(src: TokensList, options?: MarkedOptions): TokensList;

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

@@ -191,2 +220,3 @@ }

type: 'code';
codeBlockStyle?: 'indented';
lang?: string;

@@ -193,0 +223,0 @@ text: string;

4

marked/package.json
{
"name": "@types/marked",
"version": "0.6.5",
"version": "0.7.0",
"description": "TypeScript definitions for Marked",

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

"dependencies": {},
"typesPublisherContentHash": "2b1adeb03750cdca09ac9c9e1e07d4f4e93b27a9c499696af1a59aceb7172e4e",
"typesPublisherContentHash": "5b38d875bdd98d7a0d5cb21e2287e4ba575065e12679e276d1bda4351c4e920c",
"typeScriptVersion": "2.0"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for Marked ( https://github.com/markedjs/marked ).
This package contains type definitions for Marked (https://github.com/markedjs/marked).

@@ -12,3 +12,3 @@ # Details

Additional Details
* Last updated: Wed, 03 Apr 2019 18:23:30 GMT
* Last updated: Tue, 05 Nov 2019 00:51:30 GMT
* Dependencies: none

@@ -18,2 +18,2 @@ * Global values: marked

# Credits
These definitions were written by William Orr <https://github.com/worr>, BendingBender <https://github.com/BendingBender>, CrossR <https://github.com/CrossR>, Mike Wickett <https://github.com/mwickett>, Hitomi Hatsukaze <https://github.com/htkzhtm>.
These definitions were written by William Orr <https://github.com/worr>, BendingBender <https://github.com/BendingBender>, CrossR <https://github.com/CrossR>, Mike Wickett <https://github.com/mwickett>, and Hitomi Hatsukaze <https://github.com/htkzhtm>.
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