@mermaid-js/mermaid-cli 10.0.2 → 10.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mermaid-js/mermaid-cli",
3
- "version": "10.0.2",
3
+ "version": "10.1.0",
4
4
  "description": "Command-line interface for mermaid",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:mermaid-js/mermaid-cli.git",
@@ -27,7 +27,7 @@
27
27
  "puppeteer": "^19.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@fortawesome/fontawesome-free-webfonts": "^1.0.9",
30
+ "@fortawesome/fontawesome-free": "^5.6.0",
31
31
  "@mermaid-js/mermaid-mindmap": "^9.2.2",
32
32
  "@tsconfig/node14": "^1.0.3",
33
33
  "jest": "^29.0.1",
package/src/index.js CHANGED
@@ -114,7 +114,7 @@ async function cli () {
114
114
  .option('-c, --configFile [configFile]', 'JSON configuration file for mermaid.')
115
115
  .option('-C, --cssFile [cssFile]', 'CSS file for the page.')
116
116
  .addOption(new Option('-s, --scale [scale]', 'Puppeteer scale factor').argParser(parseCommanderInt).default(1))
117
- .option('-f, --pdfFit [pdfFit]', 'Scale PDF to fit chart')
117
+ .option('-f, --pdfFit', 'Scale PDF to fit chart')
118
118
  .option('-q, --quiet', 'Suppress log output')
119
119
  .option('-p --puppeteerConfigFile [puppeteerConfigFile]', 'JSON configuration file for puppeteer.')
120
120
  .parse(process.argv)
@@ -125,7 +125,7 @@ async function cli () {
125
125
 
126
126
  // check input file
127
127
  if (!input) {
128
- warn('No input file specfied, reading from stdin. ' +
128
+ warn('No input file specified, reading from stdin. ' +
129
129
  'If you want to specify an input file, please use `-i <input>.` ' +
130
130
  'You can use `-i -` to read from stdin and to suppress this warning.'
131
131
  )