Skip to content

Commit 32bd39c

Browse files
committed
docs: update warning
1 parent 4114a6f commit 32bd39c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function getPaths(
111111
return [...paths, ...subDirResults.flat()];
112112
}
113113

114-
/** Warning: Recursive can be tasking with nested directories. */
114+
/** Warning: Recursive can be demanding with nested directories. */
115115
async function getFolders(dirPath: string, options?: GetFoldersOptions) {
116116
if (options !== undefined && (options === null || typeof options !== "object" || Array.isArray(options))) {
117117
throw new Error(`Invalid options: '${options}'. Must be a an object.`);
@@ -140,7 +140,7 @@ async function getFolders(dirPath: string, options?: GetFoldersOptions) {
140140
return await getPaths(dirPath, isRecursive, processMode, reduceCallback, recursiveCallback);
141141
}
142142

143-
/** Warning: Recursive can be tasking for nested directories. */
143+
/** Warning: Recursive can be demanding with nested directories. */
144144
async function getModules(dirPath: string, options?: GetModulesOptions) {
145145
if (options !== undefined && (options === null || typeof options !== "object" || Array.isArray(options))) {
146146
throw new Error(`Invalid options: '${options}'. Must be a an object.`);

0 commit comments

Comments
 (0)