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.12 to 0.15.9-alpha.14

21

dist/index.js
import { readFile, stat, mkdir, writeFile } from "fs/promises";
import { resolve, join, dirname } from "path";
import { join, resolve, dirname } from "path";
import { fileURLToPath } from "url";

@@ -11,2 +11,3 @@ import { Command } from "commander";

export * from "markmap-lib";
import { fillTemplate } from "markmap-render";
import { serve } from "@hono/node-server";

@@ -19,3 +20,4 @@ import chokidar from "chokidar";

import { finished } from "stream/promises";
const TOOLBAR_VERSION = "0.15.8";
const __vite_glob_0_0 = "data:application/octet-stream;base64,L2Fzc2V0cwo=";
const TOOLBAR_VERSION = "0.15.9-alpha.14";
const TOOLBAR_CSS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/style.css`;

@@ -72,5 +74,4 @@ const TOOLBAR_JS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/index.js`;

}
const rootDir = new URL(import.meta.url).pathname;
const config = {
assetsDir: resolve(rootDir, `.${ASSETS_PREFIX}`)
assetsDir: new URL((/* @__PURE__ */ Object.assign({ "../.gitignore": __vite_glob_0_0 }))[`../.${ASSETS_PREFIX}`], import.meta.url).pathname
};

@@ -296,6 +297,5 @@ var getMimeType = (filename) => {

assets = addToolbar(transformer.urlBuilder, assets);
const html = `${transformer.fillTemplate(
null,
assets
)}<script>(${startServer.toString()})(${options.toolbar ? 60 : 0})<\/script>`;
const html = `${fillTemplate(null, assets, {
urlBuilder: transformer.urlBuilder
})}<script>(${startServer.toString()})(${options.toolbar ? 60 : 0})<\/script>`;
const app = new Hono();

@@ -479,5 +479,6 @@ app.get("/", (c) => c.html(html));

}
const html = transformer.fillTemplate(root, assets, {
const html = fillTemplate(root, assets, {
baseJs: [],
jsonOptions: frontmatter == null ? void 0 : frontmatter.markmap
jsonOptions: frontmatter == null ? void 0 : frontmatter.markmap,
urlBuilder: transformer.urlBuilder
});

@@ -484,0 +485,0 @@ const output = options.output || "markmap.html";

{
"name": "markmap-cli",
"version": "0.15.9-alpha.12+e2132d2",
"version": "0.15.9-alpha.14+fa8173f",
"description": "Create markmaps from CLI",

@@ -51,5 +51,6 @@ "author": "Gerald <gera2ld@live.com>",

"hono": "^3.11.8",
"markmap-common": "0.15.9-alpha.12+e2132d2",
"markmap-lib": "0.15.9-alpha.12+e2132d2",
"markmap-toolbar": "0.15.9-alpha.12+e2132d2",
"markmap-common": "0.15.9-alpha.14+fa8173f",
"markmap-lib": "0.15.9-alpha.14+fa8173f",
"markmap-render": "0.15.9-alpha.14+fa8173f",
"markmap-toolbar": "0.15.9-alpha.14+fa8173f",
"open": "^10.0.0",

@@ -60,3 +61,3 @@ "pkg-dir": "^8.0.0",

},
"gitHead": "e2132d2615f5b19e246478dc9dbb6b6ca4d6d75f"
"gitHead": "fa8173fbb9d5b30e669da11497f24123e5ead511"
}
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