@mermaid-js/mermaid-cli 10.2.2 → 10.3.0
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/README.md +12 -1
- package/dist/index.html +188 -177
- package/dist-types/src/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.js +11 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA6Vc,MAAM;;;;SACN,MAAM;;;;;;AAqBpB;;;;;;;;;;;;;;GAcG;AACH,2BAZW,GAAG,MAAM,IAAI,IAAI,GAAG,UAAU,EAAE,GAAG,MAAM,GAAG,SAAS,UAIrD,GAAG,MAAM,IAAI,IAAI,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,EAAE;;;;;8BAwGlE;AArQD;;;;;;;;;GASG;AACH,uCAPW,OAAO,WAAW,EAAE,OAAO,cAC3B,MAAM,gBACN,KAAK,GAAG,KAAK,GAAG,KAAK,8FAEnB,QAAQ;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC,CAoH9E;AArJD;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,kCAPW,OAAO,WAAW,EAAE,OAAO,cAC3B,MAAM,gBACN,KAAK,GAAG,KAAK,GAAG,KAAK,sCAGnB,QAAQ,MAAM,CAAC,CAK3B;AAzHD,qCA+FC;AAnLD;;;;;GAKG;AACH,+BAHW,MAAM,GACJ,KAAK,CAKjB;sBAnBqB,WAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mermaid-js/mermaid-cli",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Command-line interface for mermaid",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "git@github.com:mermaid-js/mermaid-cli.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@fortawesome/fontawesome-free": "^5.6.0",
|
|
31
|
-
"@tsconfig/node14": "^1.0
|
|
31
|
+
"@tsconfig/node14": "^14.1.0",
|
|
32
32
|
"jest": "^29.0.1",
|
|
33
33
|
"mermaid": "^10.0.0",
|
|
34
34
|
"standard": "^17.0.0",
|
package/src/index.js
CHANGED
|
@@ -157,10 +157,19 @@ async function cli () {
|
|
|
157
157
|
checkConfigFile(configFile)
|
|
158
158
|
mermaidConfig = Object.assign(mermaidConfig, JSON.parse(fs.readFileSync(configFile, 'utf-8')))
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
// @ts-expect-error Setting headless to `1` is not officially supported
|
|
161
|
+
let puppeteerConfig = /** @type {import('puppeteer').PuppeteerLaunchOptions} */ ({
|
|
162
|
+
/*
|
|
163
|
+
* `headless: 1` is not officially supported, but setting this to any
|
|
164
|
+
* non-`true` truthy value doesn't change any behavior, but it hides the
|
|
165
|
+
* Puppeteer old Headless deprecation warning,
|
|
166
|
+
* see https://github.com/argos-ci/jest-puppeteer/issues/553#issuecomment-1561826456
|
|
167
|
+
*/
|
|
168
|
+
headless: 1
|
|
169
|
+
})
|
|
161
170
|
if (puppeteerConfigFile) {
|
|
162
171
|
checkConfigFile(puppeteerConfigFile)
|
|
163
|
-
puppeteerConfig = JSON.parse(fs.readFileSync(puppeteerConfigFile, 'utf-8'))
|
|
172
|
+
puppeteerConfig = Object.assign(puppeteerConfig, JSON.parse(fs.readFileSync(puppeteerConfigFile, 'utf-8')))
|
|
164
173
|
}
|
|
165
174
|
|
|
166
175
|
// check cssFile
|