From 4acb1879343287204957ae2f5bf4790cd83451e5 Mon Sep 17 00:00:00 2001 From: Robert Thornton Date: Mon, 4 Nov 2024 01:40:38 -0700 Subject: [PATCH] fix: deprecated `_extend` in bootstrap.js (#118) --- prelude/bootstrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prelude/bootstrap.js b/prelude/bootstrap.js index c775c92b..2f85f902 100644 --- a/prelude/bootstrap.js +++ b/prelude/bootstrap.js @@ -22,7 +22,7 @@ const fs = require('fs'); const { isRegExp } = require('util').types; const Module = require('module'); const path = require('path'); -const { promisify, _extend } = require('util'); +const { promisify } = require('util'); const { Script } = require('vm'); const { homedir } = require('os'); const util = require('util'); @@ -2005,7 +2005,7 @@ function payloadFileSync(pointer) { args.splice(pos, 0, {}); } const opts = args[pos]; - if (!opts.env) opts.env = _extend({}, process.env); + if (!opts.env) opts.env = { ...process.env }; // see https://github.com/vercel/pkg/issues/897#issuecomment-1049370335 if (opts.env.PKG_EXECPATH !== undefined) return; opts.env.PKG_EXECPATH = EXECPATH;