markmap-cli
Advanced tools
Comparing version 0.15.9-alpha.6 to 0.15.9-alpha.11
@@ -19,3 +19,3 @@ import { readFile, stat, mkdir, writeFile } from "fs/promises"; | ||
import { finished } from "stream/promises"; | ||
const TOOLBAR_VERSION = "0.15.9-alpha.6"; | ||
const TOOLBAR_VERSION = "0.15.8"; | ||
const TOOLBAR_CSS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/style.css`; | ||
@@ -287,5 +287,3 @@ const TOOLBAR_JS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/index.js`; | ||
var _a, _b, _c; | ||
const lines = ((_b = (_a = node.payload) == null ? void 0 : _a.lines) == null ? void 0 : _b.split(",")) || []; | ||
const start = +lines[0]; | ||
const end = +lines[1]; | ||
const [start, end] = ((_b = (_a = node.payload) == null ? void 0 : _a.lines) == null ? void 0 : _b.split(",").map((s) => +s)) || []; | ||
if (start >= 0 && start <= lineWithoutFrontmatter && lineWithoutFrontmatter < end) { | ||
@@ -292,0 +290,0 @@ best = node; |
{ | ||
"name": "markmap-cli", | ||
"version": "0.15.9-alpha.6+ccc1c15", | ||
"version": "0.15.9-alpha.11+d60da2f", | ||
"description": "Create markmaps from CLI", | ||
@@ -31,2 +31,3 @@ "author": "Gerald <gera2ld@live.com>", | ||
"build:js": "vite build", | ||
"build": "run-s clean build:*", | ||
"postinstall": "node -e \"import('./dist/index.js').then(({ fetchAssets }) => fetchAssets()).catch(() => {})\"" | ||
@@ -51,5 +52,5 @@ }, | ||
"hono": "^3.11.8", | ||
"markmap-common": "0.15.9-alpha.6+ccc1c15", | ||
"markmap-lib": "0.15.9-alpha.6+ccc1c15", | ||
"markmap-toolbar": "0.15.9-alpha.6+ccc1c15", | ||
"markmap-common": "0.15.9-alpha.11+d60da2f", | ||
"markmap-lib": "0.15.9-alpha.11+d60da2f", | ||
"markmap-toolbar": "0.15.9-alpha.11+d60da2f", | ||
"open": "^10.0.0", | ||
@@ -60,3 +61,3 @@ "pkg-dir": "^8.0.0", | ||
}, | ||
"gitHead": "ccc1c157905c0a8aedbadcb579a79d7114b45b0b" | ||
"gitHead": "d60da2fb13a85edec875ef002f1be414a0c00abe" | ||
} |
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
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
21914
598