@antora/content-classifier 3.0.0-rc.1 → 3.0.0-rc.5

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.
@@ -156,11 +156,7 @@ function resolveAsciiDocConfig (siteAsciiDocConfig, { asciidoc }) {
156
156
  }
157
157
 
158
158
  function calculateRootPath (depth) {
159
- return depth
160
- ? Array(depth)
161
- .fill('..')
162
- .join('/')
163
- : '.'
159
+ return depth ? Array(depth).fill('..').join('/') : '.'
164
160
  }
165
161
 
166
162
  module.exports = classifyContent
@@ -322,7 +322,7 @@ class ContentCatalog {
322
322
  return this.addFile({ src: Object.assign({}, ROOT_INDEX_ALIAS_ID), rel, synthetic: true })
323
323
  } else if (rel === false) {
324
324
  logger.warn('Start page specified for site has invalid syntax: %s', startPageSpec)
325
- } else if (~startPageSpec.indexOf(':')) {
325
+ } else if (startPageSpec.lastIndexOf(':') > startPageSpec.indexOf(':')) {
326
326
  logger.warn('Start page specified for site not found: %s', startPageSpec)
327
327
  } else {
328
328
  logger.warn('Missing component name in start page for site: %s', startPageSpec)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/content-classifier",
3
- "version": "3.0.0-rc.1",
3
+ "version": "3.0.0-rc.5",
4
4
  "description": "Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -19,7 +19,7 @@
19
19
  "test": "_mocha"
20
20
  },
21
21
  "dependencies": {
22
- "@antora/logger": "3.0.0-rc.1",
22
+ "@antora/logger": "3.0.0-rc.5",
23
23
  "mime-types": "~2.1",
24
24
  "vinyl": "~2.2"
25
25
  },
@@ -37,5 +37,5 @@
37
37
  "static site",
38
38
  "web publishing"
39
39
  ],
40
- "gitHead": "044371a33e2c0fed9724d30945bbb549d64845d5"
40
+ "gitHead": "7760f9fe4d5a19fabde8e548fe3a4ec14cf97c59"
41
41
  }