await streamPipeline()

in src/functions.ts [161:173]


          await streamPipeline(
            response.body,
            fs.createWriteStream(xpiFilepath),
          );

          req.xpiFilepath = xpiFilepath;

          // Add a listener that will run code after the response is sent.
          res.on('finish', () => {
            _unlinkFile(xpiFilepath).catch((error) => {
              _console.error(`_unlinkFile(): ${error}`);
            });
          });