@gesslar/bedoc 1.5.0 → 1.5.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gesslar/bedoc",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Pluggable documentation engine for any language and format",
|
|
5
5
|
"publisher": "gesslar",
|
|
6
6
|
"main": "./src/core/Core.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"types": "./dist/types/core/Core.d.ts"
|
|
25
25
|
},
|
|
26
26
|
"./*": {
|
|
27
|
+
"import": "./src/*",
|
|
27
28
|
"types": "./dist/types/*"
|
|
28
29
|
}
|
|
29
30
|
},
|
|
@@ -119,7 +119,7 @@ export default class ActionManager {
|
|
|
119
119
|
throw new Error(`No \`run\` function found for action \`${this.meta.action}\``)
|
|
120
120
|
|
|
121
121
|
const actionResult = await func.call(
|
|
122
|
-
this.action, {
|
|
122
|
+
this.action, {file, moduleContent: content}
|
|
123
123
|
)
|
|
124
124
|
|
|
125
125
|
return actionResult
|
package/src/core/Discovery.js
CHANGED
|
@@ -315,7 +315,7 @@ export default class Discovery {
|
|
|
315
315
|
|
|
316
316
|
debug("2 Loading module `%j`", 2, module)
|
|
317
317
|
|
|
318
|
-
const {
|
|
318
|
+
const {absoluteUri} = module
|
|
319
319
|
const moduleExports = await import(absoluteUri)
|
|
320
320
|
|
|
321
321
|
return {file: module, ...moduleExports}
|
package/src/core/util/FDUtil.js
CHANGED
|
@@ -256,7 +256,7 @@ async function getFiles(globPattern) {
|
|
|
256
256
|
!globbyArray.length
|
|
257
257
|
)
|
|
258
258
|
throw new Error(
|
|
259
|
-
|
|
259
|
+
`Invalid glob pattern: Array must contain only strings. Got ${JSON.stringify(globPattern)}`,
|
|
260
260
|
)
|
|
261
261
|
|
|
262
262
|
// Use Globby to fetch matching files
|