Skip to content

Commit 28a5d9b

Browse files
authored
fix: add missing parameter in jsdoc for patchRequire (#233)
1 parent 2a3f609 commit 28a5d9b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/patchRequire.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function stripBOM(content) {
3131
* The methods should behave like the ones on the native `fs` object.
3232
*
3333
* @param {Object} vol
34+
* @param {boolean} [unixifyPaths=false]
3435
* @param {Object} Module Module loader to patch.
3536
*/
3637
export default function patchRequire(vol, unixifyPaths = false, Module = require('module')) {
@@ -42,11 +43,11 @@ export default function patchRequire(vol, unixifyPaths = false, Module = require
4243
readFileSync: (path,options) => {
4344
return original.readFileSync(correctPath(path),options);
4445
},
45-
46+
4647
realpathSync: (path) => {
4748
return original.realpathSync(correctPath(path));
4849
},
49-
50+
5051
statSync: (path) => {
5152
return original.statSync(correctPath(path));
5253
}

0 commit comments

Comments
 (0)