@gesslar/bedoc 1.5.1 → 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.1",
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",
@@ -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, {moduleName: file.module, moduleContent: content}
122
+ this.action, {file, moduleContent: content}
123
123
  )
124
124
 
125
125
  return actionResult
@@ -315,7 +315,7 @@ export default class Discovery {
315
315
 
316
316
  debug("2 Loading module `%j`", 2, module)
317
317
 
318
- const {absolutePath: absoluteUri} = module
318
+ const {absoluteUri} = module
319
319
  const moduleExports = await import(absoluteUri)
320
320
 
321
321
  return {file: module, ...moduleExports}
@@ -256,7 +256,7 @@ async function getFiles(globPattern) {
256
256
  !globbyArray.length
257
257
  )
258
258
  throw new Error(
259
- "[getFiles] Invalid glob pattern: Array must contain only strings.",
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