markmap-lib
Advanced tools
Comparing version 0.10.2 to 0.10.3-alpha.1
@@ -1,2 +0,2 @@ | ||
/*! markmap-lib v0.10.2 | MIT License */ | ||
/*! markmap-lib v0.10.3-alpha.1+a8c283a | MIT License */ | ||
import { persistCSS, persistJS, wrapFunction, Hook } from 'markmap-common'; | ||
@@ -10,3 +10,3 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n"; | ||
const baseJs = [`https://cdn.jsdelivr.net/npm/d3@${"6.2.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.1.2"}`].map(src => ({ | ||
const baseJs = [`https://cdn.jsdelivr.net/npm/d3@${"6.2.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.1.3-alpha.1+a8c283a"}`].map(src => ({ | ||
type: 'script', | ||
@@ -69,12 +69,10 @@ data: { | ||
fn: getMarkmap => { | ||
getMarkmap().registerRefreshPromise(new Promise(resolve => { | ||
window.WebFontConfig = { | ||
custom: { | ||
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter'] | ||
}, | ||
active: () => { | ||
resolve(); | ||
} | ||
}; | ||
})); | ||
window.WebFontConfig = { | ||
custom: { | ||
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter'] | ||
}, | ||
active: () => { | ||
getMarkmap().refreshHook.call(); | ||
} | ||
}; | ||
}, | ||
@@ -81,0 +79,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! markmap-lib v0.10.2 | MIT License */ | ||
/*! markmap-lib v0.10.3-alpha.1+a8c283a | MIT License */ | ||
'use strict'; | ||
@@ -19,3 +19,3 @@ | ||
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n"; | ||
const baseJs = [`https://cdn.jsdelivr.net/npm/d3@${"6.2.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.1.2"}`].map(src => ({ | ||
const baseJs = [`https://cdn.jsdelivr.net/npm/d3@${"6.2.0"}`, `https://cdn.jsdelivr.net/npm/markmap-view@${"0.1.3-alpha.1+a8c283a"}`].map(src => ({ | ||
type: 'script', | ||
@@ -78,12 +78,10 @@ data: { | ||
fn: getMarkmap => { | ||
getMarkmap().registerRefreshPromise(new Promise(resolve => { | ||
window.WebFontConfig = { | ||
custom: { | ||
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter'] | ||
}, | ||
active: () => { | ||
resolve(); | ||
} | ||
}; | ||
})); | ||
window.WebFontConfig = { | ||
custom: { | ||
families: ['KaTeX_AMS', 'KaTeX_Caligraphic:n4,n7', 'KaTeX_Fraktur:n4,n7', 'KaTeX_Main:n4,n7,i4,i7', 'KaTeX_Math:i4,i7', 'KaTeX_Script', 'KaTeX_SansSerif:n4,n7,i4', 'KaTeX_Size1', 'KaTeX_Size2', 'KaTeX_Size3', 'KaTeX_Size4', 'KaTeX_Typewriter'] | ||
}, | ||
active: () => { | ||
getMarkmap().refreshHook.call(); | ||
} | ||
}; | ||
}, | ||
@@ -90,0 +88,0 @@ |
{ | ||
"name": "markmap-lib", | ||
"version": "0.10.2", | ||
"version": "0.10.3-alpha.1+a8c283a", | ||
"description": "Visualize your Markdown as mindmaps with Markmap", | ||
@@ -14,6 +14,6 @@ "author": "Gerald <gera2ld@live.com>", | ||
"build:js": "rollup -c rollup.conf.js", | ||
"prebuild": "yarn ci && yarn clean", | ||
"prepublishOnly": "yarn build", | ||
"ci": "yarn lint", | ||
"build": "tsc && yarn build:js", | ||
"prebuild": "npm run ci && npm run clean", | ||
"prepublishOnly": "npm run build", | ||
"ci": "npm run lint", | ||
"build": "tsc && npm run build:js", | ||
"lint": "eslint --ext .ts ." | ||
@@ -39,3 +39,3 @@ }, | ||
"devDependencies": { | ||
"markmap-view": "^0.1.2" | ||
"markmap-view": "^0.1.3-alpha.1+a8c283a" | ||
}, | ||
@@ -45,3 +45,3 @@ "dependencies": { | ||
"katex": "^0.12.0", | ||
"markmap-common": "^0.1.0", | ||
"markmap-common": "^0.1.1-alpha.8+a8c283a", | ||
"prismjs": "^1.21.0", | ||
@@ -51,3 +51,3 @@ "remarkable": "^2.0.0", | ||
}, | ||
"gitHead": "3d2300a0c6421cc15f9e80de70f3be0be0d8c3bb" | ||
"gitHead": "a8c283a76f6984feb3f6ca1da2b63d2d6d1c29ca" | ||
} |
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
24281
15
698
1