From 46b31096ddacc1e7931082e10c538ace87e26b25 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Wed, 22 May 2024 13:52:32 -0400 Subject: [PATCH] fix: import --- .github/scripts/libmongocrypt.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/libmongocrypt.mjs b/.github/scripts/libmongocrypt.mjs index 9e210b3..0a05d62 100644 --- a/.github/scripts/libmongocrypt.mjs +++ b/.github/scripts/libmongocrypt.mjs @@ -5,7 +5,7 @@ import child_process from 'node:child_process'; import events from 'node:events'; import path from 'node:path'; import https from 'node:https'; -import { pipeline } from 'node:stream/promises'; +import stream from 'node:stream/promises'; async function parseArguments() { const jsonImport = { @@ -169,7 +169,7 @@ if (!args.build) { const [response] = await events.once(https.get(downloadURL), 'response'); const start = performance.now(); - await pipeline(response, unzip.stdin); + await stream.pipeline(response, unzip.stdin); const end = performance.now(); console.error(`downloaded libmongocrypt in ${(end - start) / 1000} secs...`);