Skip to content

Commit 7cc45df

Browse files
committed
Temp workaround fix for critical 'util.isRegExp is not a function' issue: jsdoc2md/jsdoc-to-markdown#306
1 parent a3b88ff commit 7cc45df

File tree

4 files changed

+51
-51
lines changed

4 files changed

+51
-51
lines changed

dist/index.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TempFile {
3939
}
4040
}
4141

42-
const { __dirname: __dirname$1 } = currentModulePaths((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
42+
const { __dirname: __dirname$1 } = currentModulePaths((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
4343

4444
class JsdocCommand {
4545
constructor (options = {}, cache) {
@@ -68,7 +68,7 @@ class JsdocCommand {
6868

6969
this.jsdocPath = process.env.JSDOC_PATH || walkBack(
7070
path.join(__dirname$1, '..'),
71-
path.join('node_modules', 'jsdoc', 'jsdoc.js')
71+
path.join('node_modules', '@75lb', 'jsdoc-node23-fix', 'jsdoc.js')
7272
);
7373
}
7474

lib/jsdoc-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class JsdocCommand {
3535

3636
this.jsdocPath = process.env.JSDOC_PATH || walkBack(
3737
path.join(__dirname, '..'),
38-
path.join('node_modules', 'jsdoc', 'jsdoc.js')
38+
path.join('node_modules', '@75lb', 'jsdoc-node23-fix', 'jsdoc.js')
3939
)
4040
}
4141

package-lock.json

Lines changed: 46 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"docs": "75lb-nature jsdoc2md index.js lib/*.js > docs/api.md"
3232
},
3333
"dependencies": {
34+
"@75lb/jsdoc-node23-fix": "^4.0.3",
3435
"array-back": "^6.2.2",
3536
"cache-point": "^3.0.0",
3637
"current-module-paths": "^1.1.2",
37-
"file-set": "^5.2.0",
38-
"jsdoc": "^4.0.3",
38+
"file-set": "^5.2.2",
3939
"object-to-spawn-args": "^2.0.1",
4040
"walk-back": "^5.1.1"
4141
},

0 commit comments

Comments
 (0)