@antora/pdf-extension 1.0.0-beta.6 → 1.0.0-beta.7

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.
Files changed (2) hide show
  1. package/lib/converter.js +4 -2
  2. package/package.json +2 -2
package/lib/converter.js CHANGED
@@ -6,9 +6,9 @@ const ospath = require('node:path')
6
6
  const DEFAULT_COMMAND = 'asciidoctor-pdf'
7
7
 
8
8
  async function convert (runCommand, file, convertAttributes, buildConfig) {
9
- const { cwd = process.cwd(), command = await getDefaultCommand(cwd) } = buildConfig
9
+ const { command, cwd = process.cwd(), stderr = 'print' } = buildConfig
10
10
  const args = convertAttributes.toArgs('-a', command).concat('-o', convertAttributes.outfile, '-')
11
- await runCommand(command, args, { parse: true, cwd, stdin: file.contents, stdout: 'print', stderr: 'print' })
11
+ return runCommand(command, args, { parse: true, cwd, stdin: file.contents, stdout: 'print', stderr })
12
12
  }
13
13
 
14
14
  function getDefaultCommand (cwd) {
@@ -24,6 +24,8 @@ module.exports = {
24
24
  },
25
25
  convert,
26
26
  backend: 'pdf',
27
+ getDefaultCommand,
27
28
  extname: '.pdf',
28
29
  mediaType: 'application/pdf',
30
+ loggerName: require('../package.json').name,
29
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/pdf-extension",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "An Antora extension that uses Assembler to merge pages into assembly files, export them to the PDF format, and publishe them with the site.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -32,7 +32,7 @@
32
32
  "#package": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@antora/assembler": "1.0.0-beta.6",
35
+ "@antora/assembler": "1.0.0-beta.7",
36
36
  "@antora/run-command-helper": "~1.0"
37
37
  },
38
38
  "engines": {