From cdadca0373e898d959c32cb24953e851f10bcc90 Mon Sep 17 00:00:00 2001 From: Pwndrian <112816+Pwndrian@users.noreply.github.com> Date: Tue, 24 Mar 2026 08:23:08 +0100 Subject: [PATCH] Use "Object.assign" instead of node's deprecated "util._extend" function --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 76f9957..982f2ae 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,7 +92,7 @@ exports.encode = function(opts) { } var Encoder = exports.Encoder = function(opts) { - this.opts = util._extend({ lengthSize: 4 }, opts) + this.opts = Object.assign({ lengthSize: 4 }, opts) this.setLength = this.opts.setLength || createSetLengthMethod(this.opts.lengthSize)