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

markmap-cli

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markmap-cli - npm Package Compare versions

Comparing version 0.15.9-alpha.17 to 0.16.0

dist/types.d.ts

14

dist/dev-server.d.ts

@@ -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"
}
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