markmap-cli
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "markmap-cli", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Create markmaps from CLI", | ||
@@ -26,3 +26,3 @@ "author": "Gerald <gera2ld@live.com>", | ||
"dev": "rollup -wc rollup.conf.js", | ||
"clean": "del-cli dist", | ||
"clean": "del-cli dist types", | ||
"lint": "eslint --ext .ts .", | ||
@@ -44,3 +44,3 @@ "build:types": "tsc", | ||
"@babel/runtime": "^7.13.10", | ||
"markmap-lib": "^0.11.4" | ||
"markmap-lib": "^0.11.5" | ||
}, | ||
@@ -57,3 +57,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "cbb56b8ede93b15000a31013a0474891b774a977" | ||
"gitHead": "e7ad38a05cf693b73c584899419eb945e7cb0c7a" | ||
} |
import { IDevelopOptions } from './util'; | ||
export declare function develop(fileName: string, options: IDevelopOptions): Promise<{ | ||
interface IFileUpdate { | ||
ts?: number; | ||
content?: string; | ||
line?: number; | ||
} | ||
interface IContentProvider { | ||
getUpdate: (ts: number, timeout?: number) => Promise<IFileUpdate>; | ||
setContent: (content: string) => void; | ||
setCursor: (line: number) => void; | ||
dispose: () => void; | ||
} | ||
export declare function develop(fileName: string | undefined, options: IDevelopOptions): Promise<{ | ||
provider: IContentProvider; | ||
close(): Promise<void>; | ||
}>; | ||
export {}; |
@@ -13,1 +13,6 @@ import { IAssets } from 'markmap-lib'; | ||
export declare function addToolbar(assets: IAssets): IAssets; | ||
export declare class Defer<T> { | ||
resolve: (value: T) => void; | ||
reject: (err: Error) => void; | ||
promise: Promise<unknown>; | ||
} |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
808882
15019
2