@antora/document-converter 3.1.10 → 3.1.11

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.
@@ -1,5 +1,7 @@
1
1
  'use strict'
2
2
 
3
+ const $unsafe = Symbol.for('unsafe')
4
+
3
5
  /**
4
6
  * Converts the contents on the specified file from AsciiDoc to embedded HTML.
5
7
  *
@@ -24,7 +26,7 @@ function convertDocument (file, contentCatalog = undefined, asciidocConfig = {})
24
26
  const {
25
27
  extractAsciiDocMetadata = requireAsciiDocLoader().extractAsciiDocMetadata,
26
28
  loadAsciiDoc = requireAsciiDocLoader(),
27
- } = this ? this.getFunctions(false) : {}
29
+ } = this ? this.getFunctions($unsafe) : {}
28
30
  const doc = loadAsciiDoc(file, contentCatalog, asciidocConfig)
29
31
  if (!file.asciidoc) {
30
32
  file.asciidoc = extractAsciiDocMetadata(doc)
@@ -2,6 +2,8 @@
2
2
 
3
3
  const _convertDocument = require('./convert-document')
4
4
 
5
+ const $unsafe = Symbol.for('unsafe')
6
+
5
7
  /**
6
8
  * Converts the contents of publishable pages with the media type text/asciidoc
7
9
  * in the content catalog to embedded HTML.
@@ -29,7 +31,7 @@ function convertDocuments (contentCatalog, siteAsciiDocConfig = {}) {
29
31
  convertDocument = _convertDocument,
30
32
  extractAsciiDocMetadata = requireAsciiDocLoader().extractAsciiDocMetadata,
31
33
  loadAsciiDoc = requireAsciiDocLoader(),
32
- } = this ? this.getFunctions(false) : {}
34
+ } = this ? this.getFunctions($unsafe) : {}
33
35
  const mainAsciiDocConfigs = new Map()
34
36
  contentCatalog.getComponents().forEach(({ name: component, versions }) => {
35
37
  versions.forEach(({ version, asciidoc }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/document-converter",
3
- "version": "3.1.10",
3
+ "version": "3.1.11",
4
4
  "description": "Converts AsciiDoc documents to embeddable HTML for use in an Antora documentation pipeline.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -13,7 +13,8 @@
13
13
  "homepage": "https://antora.org",
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://gitlab.com/antora/antora.git"
16
+ "url": "git+https://gitlab.com/antora/antora.git",
17
+ "directory": "packages/document-converter"
17
18
  },
18
19
  "bugs": {
19
20
  "url": "https://gitlab.com/antora/antora/issues"
@@ -24,10 +25,10 @@
24
25
  "./package.json": "./package.json"
25
26
  },
26
27
  "dependencies": {
27
- "@antora/asciidoc-loader": "3.1.10"
28
+ "@antora/asciidoc-loader": "3.1.11"
28
29
  },
29
30
  "engines": {
30
- "node": ">=16.0.0"
31
+ "node": ">=18.0.0"
31
32
  },
32
33
  "files": [
33
34
  "lib/"
@@ -44,7 +45,7 @@
44
45
  ],
45
46
  "scripts": {
46
47
  "test": "_mocha",
47
- "prepublishOnly": "npx -y downdoc --prepublish",
48
- "postpublish": "npx -y downdoc --postpublish"
48
+ "prepublishOnly": "npx -y downdoc@latest --prepublish",
49
+ "postpublish": "npx -y downdoc@latest --postpublish"
49
50
  }
50
51
  }