From 8bdf01893ce1b9002557836e6d1e32698c4c0af2 Mon Sep 17 00:00:00 2001 From: Aniket Sonawane Date: Tue, 7 Apr 2026 07:40:02 +0530 Subject: [PATCH 1/2] chore: fix JavaScript lint errors --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../datasets/us-states-names-capitals/examples/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/datasets/us-states-names-capitals/examples/index.js b/lib/node_modules/@stdlib/datasets/us-states-names-capitals/examples/index.js index c58ac2623b95..e539127ca9d6 100644 --- a/lib/node_modules/@stdlib/datasets/us-states-names-capitals/examples/index.js +++ b/lib/node_modules/@stdlib/datasets/us-states-names-capitals/examples/index.js @@ -18,6 +18,7 @@ 'use strict'; +var format = require( '@stdlib/string/format' ); var capitalize = require( '@stdlib/string/capitalize' ); var table = require( './../lib' ); @@ -38,7 +39,7 @@ function getCapital( state ) { // Ensure a valid state name was provided... if ( capital === void 0 ) { - throw new Error( 'unrecognized state name. Value: `' + state + '`.' ); + throw new Error( format( 'unrecognized state name. Value: `%s`.', state ) ); } return capital; } From b743be84e3613e0e9bb20e8b9328e06e45204c71 Mon Sep 17 00:00:00 2001 From: Aniket Sonawane Date: Tue, 7 Apr 2026 15:52:52 +0530 Subject: [PATCH 2/2] chore: updated corresponding example in README --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/datasets/us-states-names-capitals/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/datasets/us-states-names-capitals/README.md b/lib/node_modules/@stdlib/datasets/us-states-names-capitals/README.md index c949334250fd..1eba8b10751b 100644 --- a/lib/node_modules/@stdlib/datasets/us-states-names-capitals/README.md +++ b/lib/node_modules/@stdlib/datasets/us-states-names-capitals/README.md @@ -103,6 +103,7 @@ var t = table(); ```javascript +var format = require( '@stdlib/string/format' ); var capitalize = require( '@stdlib/string/capitalize' ); var table = require( '@stdlib/datasets/us-states-names-capitals' ); @@ -123,7 +124,7 @@ function getCapital( state ) { // Ensure a valid state name was provided... if ( capital === void 0 ) { - throw new Error( 'unrecognized state name. Value: `' + state + '`.' ); + throw new Error( format( 'unrecognized state name. Value: `%s`.', state ) ); } return capital; }