Skip to content

Commit f39d729

Browse files
authored
fix: Update some wording and fix grammar in messages (#121)
1 parent 298e7a2 commit f39d729

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import BuiltinModule from 'module';
33
import path from 'path';
44

55
const nodeModulesRegex = /^(?:.*[\\/])?node_modules(?:[\\/].*)?$/;
6-
// Guard against poorly mocked module constructors.
6+
// Guard against poorly-mocked module constructors.
77
const Module =
88
module.constructor.length > 1 ? module.constructor : BuiltinModule;
99

@@ -12,7 +12,7 @@ const HOOK_RETURNED_NOTHING_ERROR_MESSAGE =
1212
' violation of intergalactic law!\n' +
1313
'--------------------\n' +
1414
'If you have no idea what this means or what Pirates is, let me explain: ' +
15-
'Pirates is a module that makes is easy to implement require hooks. One of' +
15+
'Pirates is a module that makes it easy to implement require hooks. One of' +
1616
" the require hooks you're using uses it. One of these require hooks" +
1717
" didn't return anything from it's handler, so we don't know what to" +
1818
' do. You might want to debug this.';
@@ -138,7 +138,7 @@ export function addHook(hook, opts = {}) {
138138

139139
exts.forEach((ext) => {
140140
// if the current loader for the extension is our loader then unregister it and set the oldLoader again
141-
// if not we can not do anything as we cannot remove a loader from within the loader-chain
141+
// if not we cannot do anything as we cannot remove a loader from within the loader-chain
142142
if (Module._extensions[ext] === loaders[ext]) {
143143
if (!oldLoaders[ext]) {
144144
delete Module._extensions[ext];

0 commit comments

Comments
 (0)