Skip to content

Commit

Permalink
fix: add missing parameter in jsdoc for patchRequire (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 5, 2021
1 parent 2a3f609 commit 28a5d9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/patchRequire.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function stripBOM(content) {
* The methods should behave like the ones on the native `fs` object.
*
* @param {Object} vol
* @param {boolean} [unixifyPaths=false]
* @param {Object} Module Module loader to patch.
*/
export default function patchRequire(vol, unixifyPaths = false, Module = require('module')) {
Expand All @@ -42,11 +43,11 @@ export default function patchRequire(vol, unixifyPaths = false, Module = require
readFileSync: (path,options) => {
return original.readFileSync(correctPath(path),options);
},

realpathSync: (path) => {
return original.realpathSync(correctPath(path));
},

statSync: (path) => {
return original.statSync(correctPath(path));
}
Expand Down

0 comments on commit 28a5d9b

Please sign in to comment.