From e393ebbd24b33da2837abc1303fcff8eefab7aa1 Mon Sep 17 00:00:00 2001 From: Mark Stosberg Date: Thu, 15 Jan 2026 13:16:03 -0500 Subject: [PATCH] Replace deprecated util.isArray with Array.isArray Node will now issue a start-up warning when any dep uses util.isArray(). This change replaces a deprecated method with an equivalent supported method. --- lib/form_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/form_data.js b/lib/form_data.js index d0aa69ad..78ccca88 100644 --- a/lib/form_data.js +++ b/lib/form_data.js @@ -61,7 +61,7 @@ FormData.prototype.append = function(field, value, options) { } // https://github.com/felixge/node-form-data/issues/38 - if (util.isArray(value)) { + if (Array.isArray(value)) { // Please convert your array into string // the way web server expects it this._error(new Error('Arrays are not supported.'));