markmap-cli 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-cli v0.15.
|
|
1
|
+
/*! markmap-cli v0.15.3 | MIT License */
|
|
2
2
|
import { readFile, writeFile } from 'fs/promises';
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
4
|
import { Command } from 'commander';
|
|
@@ -32,7 +32,7 @@ function _extends() {
|
|
|
32
32
|
return _extends.apply(this, arguments);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const TOOLBAR_VERSION = "0.15.
|
|
35
|
+
const TOOLBAR_VERSION = "0.15.3";
|
|
36
36
|
const TOOLBAR_CSS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/style.css`;
|
|
37
37
|
const TOOLBAR_JS = `markmap-toolbar@${TOOLBAR_VERSION}/dist/index.js`;
|
|
38
38
|
const renderToolbar = () => {
|
|
@@ -318,7 +318,11 @@ async function createMarkmap(options) {
|
|
|
318
318
|
transformer.urlBuilder.setProvider('local', localProvider);
|
|
319
319
|
transformer.urlBuilder.provider = 'local';
|
|
320
320
|
} else {
|
|
321
|
-
|
|
321
|
+
try {
|
|
322
|
+
await transformer.urlBuilder.findFastestProvider();
|
|
323
|
+
} catch (_unused) {
|
|
324
|
+
// ignore
|
|
325
|
+
}
|
|
322
326
|
}
|
|
323
327
|
const {
|
|
324
328
|
root,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"description": "Create markmaps from CLI",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"highlight.js": "^11.8.0",
|
|
51
51
|
"katex": "^0.16.8",
|
|
52
52
|
"koa": "^2.14.2",
|
|
53
|
-
"markmap-common": "0.15.
|
|
54
|
-
"markmap-lib": "0.15.
|
|
55
|
-
"markmap-toolbar": "0.15.
|
|
56
|
-
"markmap-view": "0.15.
|
|
53
|
+
"markmap-common": "0.15.3",
|
|
54
|
+
"markmap-lib": "0.15.3",
|
|
55
|
+
"markmap-toolbar": "0.15.3",
|
|
56
|
+
"markmap-view": "0.15.3",
|
|
57
57
|
"open": "^9.1.0",
|
|
58
58
|
"pkg-dir": "^7.0.0",
|
|
59
59
|
"prismjs": "^1.29.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"update-notifier": "^6.0.2",
|
|
62
62
|
"webfontloader": "^1.6.28"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "428254f2f36d56a89a3e161658f079d74dd16d15"
|
|
65
65
|
}
|