markmap-cli
Advanced tools
Comparing version 0.15.9-alpha.17 to 0.16.0
@@ -1,13 +0,2 @@ | ||
import { IDevelopOptions } from './util'; | ||
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; | ||
} | ||
import { IDevelopOptions, IContentProvider } from './types'; | ||
export declare function develop(fileName: string | undefined, options: IDevelopOptions): Promise<{ | ||
@@ -17,2 +6,1 @@ provider: IContentProvider; | ||
}>; | ||
export {}; |
import { type IMarkmapCreateOptions } from 'markmap-lib'; | ||
import { IDevelopOptions, config } from './util'; | ||
import { config } from './util'; | ||
import { IDevelopOptions } from './types'; | ||
import { develop } from './dev-server'; | ||
import { fetchAssets } from './fetch-assets'; | ||
export * from 'markmap-lib'; | ||
export * from './types'; | ||
export { config, develop, fetchAssets }; | ||
export declare function createMarkmap(options: IMarkmapCreateOptions & IDevelopOptions): Promise<void>; | ||
export declare function main(): Promise<void>; |
@@ -20,3 +20,3 @@ import { readFile, stat, mkdir, writeFile } from "fs/promises"; | ||
const __vite_glob_0_0 = "data:application/octet-stream;base64,L2Fzc2V0cwo="; | ||
const TOOLBAR_VERSION = "0.15.9-alpha.17"; | ||
const TOOLBAR_VERSION = "0.16.0"; | ||
const TOOLBAR_CSS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/style.css`; | ||
@@ -23,0 +23,0 @@ const TOOLBAR_JS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/index.js`; |
@@ -6,19 +6,2 @@ /// <reference types="node" /> | ||
export declare const ASSETS_PREFIX = "/assets/"; | ||
export interface IDevelopOptions { | ||
/** | ||
* Whether to open the generated markmap in browser | ||
*/ | ||
open: boolean; | ||
/** | ||
* Whether to show the default toolbar | ||
*/ | ||
toolbar: boolean; | ||
/** | ||
* Whether to inline all assets to make the HTML work offline. | ||
* Ignored in watching mode. | ||
*/ | ||
offline: boolean; | ||
/** Port number for the devServer to listen. */ | ||
port?: number; | ||
} | ||
export declare function addToolbar(urlBuilder: UrlBuilder, assets: IAssets): IAssets; | ||
@@ -25,0 +8,0 @@ export declare function localProvider(path: string): string; |
{ | ||
"name": "markmap-cli", | ||
"version": "0.15.9-alpha.17+d500e1e", | ||
"version": "0.16.0", | ||
"description": "Create markmaps from CLI", | ||
@@ -51,6 +51,6 @@ "author": "Gerald <gera2ld@live.com>", | ||
"hono": "^3.11.8", | ||
"markmap-common": "0.15.9-alpha.17+d500e1e", | ||
"markmap-lib": "0.15.9-alpha.17+d500e1e", | ||
"markmap-render": "0.15.9-alpha.17+d500e1e", | ||
"markmap-toolbar": "0.15.9-alpha.17+d500e1e", | ||
"markmap-common": "0.16.0", | ||
"markmap-lib": "0.16.0", | ||
"markmap-render": "0.16.0", | ||
"markmap-toolbar": "0.16.0", | ||
"open": "^10.0.0", | ||
@@ -61,3 +61,3 @@ "pkg-dir": "^8.0.0", | ||
}, | ||
"gitHead": "d500e1e5d723a30c6f26fb5f3de6f8748149ad3b" | ||
"gitHead": "caf3f840ad39c240ba522bfea83c57de62c6cac4" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
10
595
3
21898
+ Added@gera2ld/jsx-dom@2.2.2(transitive)
+ Added@types/d3@7.4.3(transitive)
+ Added@types/d3-array@3.2.1(transitive)
+ Added@types/d3-axis@3.0.6(transitive)
+ Added@types/d3-brush@3.0.6(transitive)
+ Added@types/d3-chord@3.0.6(transitive)
+ Added@types/d3-color@3.1.3(transitive)
+ Added@types/d3-contour@3.0.6(transitive)
+ Added@types/d3-delaunay@6.0.4(transitive)
+ Added@types/d3-dispatch@3.0.6(transitive)
+ Added@types/d3-drag@3.0.7(transitive)
+ Added@types/d3-dsv@3.0.7(transitive)
+ Added@types/d3-ease@3.0.2(transitive)
+ Added@types/d3-fetch@3.0.7(transitive)
+ Added@types/d3-force@3.0.10(transitive)
+ Added@types/d3-format@3.0.4(transitive)
+ Added@types/d3-geo@3.1.0(transitive)
+ Added@types/d3-hierarchy@3.1.7(transitive)
+ Added@types/d3-interpolate@3.0.4(transitive)
+ Added@types/d3-path@3.1.0(transitive)
+ Added@types/d3-polygon@3.0.2(transitive)
+ Added@types/d3-quadtree@3.0.6(transitive)
+ Added@types/d3-random@3.0.3(transitive)
+ Added@types/d3-scale@4.0.8(transitive)
+ Added@types/d3-scale-chromatic@3.1.0(transitive)
+ Added@types/d3-selection@3.0.11(transitive)
+ Added@types/d3-shape@3.1.7(transitive)
+ Added@types/d3-time@3.0.4(transitive)
+ Added@types/d3-time-format@4.0.3(transitive)
+ Added@types/d3-timer@3.0.2(transitive)
+ Added@types/d3-transition@3.0.9(transitive)
+ Added@types/d3-zoom@3.0.8(transitive)
+ Added@types/geojson@7946.0.15(transitive)
+ Addedargparse@1.0.102.0.1(transitive)
+ Addedautolinker@3.16.2(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedcheerio@1.0.0-rc.12(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedcommander@7.2.08.3.0(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addedd3@7.9.0(transitive)
+ Addedd3-array@3.2.4(transitive)
+ Addedd3-axis@3.0.0(transitive)
+ Addedd3-brush@3.0.0(transitive)
+ Addedd3-chord@3.0.1(transitive)
+ Addedd3-color@3.1.0(transitive)
+ Addedd3-contour@4.0.2(transitive)
+ Addedd3-delaunay@6.0.4(transitive)
+ Addedd3-dispatch@3.0.1(transitive)
+ Addedd3-drag@3.0.0(transitive)
+ Addedd3-dsv@3.0.1(transitive)
+ Addedd3-ease@3.0.1(transitive)
+ Addedd3-fetch@3.0.1(transitive)
+ Addedd3-flextree@2.1.2(transitive)
+ Addedd3-force@3.0.0(transitive)
+ Addedd3-format@3.1.0(transitive)
+ Addedd3-geo@3.1.1(transitive)
+ Addedd3-hierarchy@1.1.93.1.2(transitive)
+ Addedd3-interpolate@3.0.1(transitive)
+ Addedd3-path@3.1.0(transitive)
+ Addedd3-polygon@3.0.1(transitive)
+ Addedd3-quadtree@3.0.1(transitive)
+ Addedd3-random@3.0.1(transitive)
+ Addedd3-scale@4.0.2(transitive)
+ Addedd3-scale-chromatic@3.1.0(transitive)
+ Addedd3-selection@3.0.0(transitive)
+ Addedd3-shape@3.2.0(transitive)
+ Addedd3-time@3.1.0(transitive)
+ Addedd3-time-format@4.1.0(transitive)
+ Addedd3-timer@3.0.1(transitive)
+ Addedd3-transition@3.0.1(transitive)
+ Addedd3-zoom@3.0.0(transitive)
+ Addeddelaunator@5.0.1(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.2.2(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedhighlight.js@11.11.1(transitive)
+ Addedhtmlparser2@8.0.2(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedinternmap@2.0.3(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedkatex@0.16.20(transitive)
+ Addedmarkmap-common@0.16.0(transitive)
+ Addedmarkmap-html-parser@0.16.0(transitive)
+ Addedmarkmap-lib@0.16.0(transitive)
+ Addedmarkmap-render@0.16.0(transitive)
+ Addedmarkmap-toolbar@0.16.0(transitive)
+ Addedmarkmap-view@0.16.0(transitive)
+ Addednpm2url@0.2.4(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedparse5@7.2.1(transitive)
+ Addedparse5-htmlparser2-tree-adapter@7.1.0(transitive)
+ Addedprismjs@1.29.0(transitive)
+ Addedremarkable@2.0.1(transitive)
+ Addedremarkable-katex@1.2.1(transitive)
+ Addedrobust-predicates@3.0.2(transitive)
+ Addedrw@1.3.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedtslib@2.8.1(transitive)
Updatedmarkmap-common@0.16.0
Updatedmarkmap-lib@0.16.0
Updatedmarkmap-render@0.16.0
Updatedmarkmap-toolbar@0.16.0