@antora/ui-loader 3.1.11 → 3.1.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.
- package/lib/file.js +3 -3
- package/lib/load-ui.js +5 -5
- package/package.json +5 -6
package/lib/file.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const { constants: fsc } = require('
|
|
4
|
-
const { posix: path } = require('
|
|
5
|
-
const { Readable } = require('
|
|
3
|
+
const { constants: fsc } = require('fs')
|
|
4
|
+
const { posix: path } = require('path')
|
|
5
|
+
const { Readable } = require('stream')
|
|
6
6
|
const Vinyl = require('vinyl')
|
|
7
7
|
|
|
8
8
|
const DEFAULT_FILE_MODE = 0o100666 & ~process.umask()
|
package/lib/load-ui.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const { compile: bracesToGroup } = require('braces')
|
|
4
|
-
const { createHash } = require('
|
|
4
|
+
const { createHash } = require('crypto')
|
|
5
5
|
const expandPath = require('@antora/expand-path-helper')
|
|
6
6
|
const { File, MemoryFile, ZipReadable } = require('./file')
|
|
7
|
-
const { promises: fsp } = require('
|
|
7
|
+
const { promises: fsp } = require('fs')
|
|
8
8
|
const { concat: get } = require('simple-get')
|
|
9
9
|
const getCacheDir = require('cache-directory')
|
|
10
10
|
const { globStream } = require('fast-glob')
|
|
11
|
-
const { inspect } = require('
|
|
11
|
+
const { inspect } = require('util')
|
|
12
12
|
const invariably = { false: () => false, void: () => undefined }
|
|
13
|
-
const ospath = require('
|
|
13
|
+
const ospath = require('path')
|
|
14
14
|
const { posix: path } = ospath
|
|
15
15
|
const picomatch = require('picomatch')
|
|
16
16
|
const posixify = ospath.sep === '\\' ? (p) => p.replace(/\\/g, '/') : undefined
|
|
17
|
-
const { pipeline, PassThrough, Writable } = require('
|
|
17
|
+
const { pipeline, PassThrough, Writable } = require('stream')
|
|
18
18
|
const forEach = (write, final) => new Writable({ objectMode: true, write, final })
|
|
19
19
|
const through = () => new PassThrough({ objectMode: true })
|
|
20
20
|
const UiCatalog = require('./ui-catalog')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antora/ui-loader",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.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)",
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"homepage": "https://antora.org",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://gitlab.com/antora/antora.git"
|
|
17
|
-
"directory": "packages/ui-loader"
|
|
16
|
+
"url": "git+https://gitlab.com/antora/antora.git"
|
|
18
17
|
},
|
|
19
18
|
"bugs": {
|
|
20
19
|
"url": "https://gitlab.com/antora/antora/issues"
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
"yauzl": "~3.1"
|
|
43
42
|
},
|
|
44
43
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
44
|
+
"node": ">=16.0.0"
|
|
46
45
|
},
|
|
47
46
|
"files": [
|
|
48
47
|
"lib/"
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
],
|
|
59
58
|
"scripts": {
|
|
60
59
|
"test": "_mocha",
|
|
61
|
-
"prepublishOnly": "npx -y downdoc
|
|
62
|
-
"postpublish": "npx -y downdoc
|
|
60
|
+
"prepublishOnly": "npx -y downdoc --prepublish",
|
|
61
|
+
"postpublish": "npx -y downdoc --postpublish"
|
|
63
62
|
}
|
|
64
63
|
}
|