From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/html-minifier-terser/src/utils.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 node_modules/html-minifier-terser/src/utils.js (limited to 'node_modules/html-minifier-terser/src/utils.js') diff --git a/node_modules/html-minifier-terser/src/utils.js b/node_modules/html-minifier-terser/src/utils.js deleted file mode 100644 index a6fec710..00000000 --- a/node_modules/html-minifier-terser/src/utils.js +++ /dev/null @@ -1,11 +0,0 @@ -export async function replaceAsync(str, regex, asyncFn) { - const promises = []; - - str.replace(regex, (match, ...args) => { - const promise = asyncFn(match, ...args); - promises.push(promise); - }); - - const data = await Promise.all(promises); - return str.replace(regex, () => data.shift()); -} -- cgit v1.2.3