@antora/ui-loader 3.2.0-alpha.10 → 3.2.0-alpha.12

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/load-ui.js +1 -1
  2. package/package.json +3 -3
package/lib/load-ui.js CHANGED
@@ -276,7 +276,7 @@ function classifyFile (file, config) {
276
276
  }
277
277
 
278
278
  function resolveType (file) {
279
- const firstPathSegment = file.path.split('/', 1)[0]
279
+ const firstPathSegment = file.path.split('/')[0]
280
280
  if (firstPathSegment === 'layouts') return 'layout'
281
281
  if (firstPathSegment === 'helpers') return 'helper'
282
282
  if (firstPathSegment === 'partials') return 'partial'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/ui-loader",
3
- "version": "3.2.0-alpha.10",
3
+ "version": "3.2.0-alpha.12",
4
4
  "description": "Downloads a UI bundle, if necessary, and loads the files into a UI catalog for use in an Antora documentation pipeline.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -39,7 +39,7 @@
39
39
  "should-proxy": "~1.0",
40
40
  "simple-get": "~4.0",
41
41
  "vinyl": "~3.0",
42
- "yauzl": "~3.1"
42
+ "yauzl": "~3.3"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=18.0.0"
@@ -57,7 +57,7 @@
57
57
  "web publishing"
58
58
  ],
59
59
  "scripts": {
60
- "test": "_mocha",
60
+ "test": "node --test",
61
61
  "prepublishOnly": "npx -y downdoc@latest --prepublish",
62
62
  "postpublish": "npx -y downdoc@latest --postpublish"
63
63
  }