From 15879361a05499a99bcc8bd01bb57706de0b6420 Mon Sep 17 00:00:00 2001 From: Shubham <192326793+shubham220420@users.noreply.github.com> Date: Sat, 22 Nov 2025 14:12:53 +0530 Subject: [PATCH 1/3] chore : fix javascript linting error ( issue stdlib-js#8567) --- .../repl/presentation/lib/commands/last.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js index 4d4590f3bd5b..304be822fcde 100644 --- a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js +++ b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js @@ -36,20 +36,20 @@ function command( pres ) { * @private */ function onCommand() { - pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle - - /** - * Callback invoked upon a `drain` event. - * - * @private - */ - function onDrain() { - pres.last().show(); - } + pres._repl.once( 'drain', onDrain ); + } + + /** + * Callback invoked upon a `drain` event. + * + * @private + */ + function onDrain() { + pres.last().show(); } } // EXPORTS // -module.exports = command; +module.exports = command; \ No newline at end of file From be95bd6be0b85da584161827f4e1256f8abd6cba Mon Sep 17 00:00:00 2001 From: Shubham Date: Sat, 22 Nov 2025 19:33:38 +0530 Subject: [PATCH 2/3] chore : fix javascript linting error ( issue stdlib-js#8567) Moved the onDrain function inside onCommand for better encapsulation. Signed-off-by: Shubham --- .../repl/presentation/lib/commands/last.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js index 304be822fcde..535491c9b208 100644 --- a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js +++ b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js @@ -36,20 +36,20 @@ function command( pres ) { * @private */ function onCommand() { - pres._repl.once( 'drain', onDrain ); - } + /** + * Callback invoked upon a `drain` event. + * + * @private + */ + function onDrain() { + pres.last().show(); + } - /** - * Callback invoked upon a `drain` event. - * - * @private - */ - function onDrain() { - pres.last().show(); + pres._repl.once( 'drain', onDrain ); } } // EXPORTS // -module.exports = command; \ No newline at end of file +module.exports = command; From 86f914857e11ab509549299d2a69358ea83972e8 Mon Sep 17 00:00:00 2001 From: Shubham Date: Sat, 22 Nov 2025 19:39:27 +0530 Subject: [PATCH 3/3] chore(lint): fix JavaScript linting error (issue stdlib-js#8567) Signed-off-by: Shubham --- .../repl/presentation/lib/commands/last.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js index 535491c9b208..867c3c6ba61c 100644 --- a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js +++ b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last.js @@ -36,16 +36,16 @@ function command( pres ) { * @private */ function onCommand() { - /** - * Callback invoked upon a `drain` event. - * - * @private - */ - function onDrain() { - pres.last().show(); - } - - pres._repl.once( 'drain', onDrain ); + pres.repl.once( 'drain', onDrain ); + } + + /** + * Callback invoked upon a `drain` event. + * + * @private + */ + function onDrain() { + pres.last().show(); } }