summaryrefslogtreecommitdiff
path: root/src/node_metadata.cc
diff options
context:
space:
mode:
authorDebadree Chatterjee <debadree333@gmail.com>2022-12-18 21:19:08 +0530
committerGitHub <noreply@github.com>2022-12-18 16:49:08 +0100
commit9d1d94819fd34a9d11e5eb0306f145dfe0d04ac4 (patch)
treeee94c5e5139bcf6a82bb085fc472fdb599ded59d /src/node_metadata.cc
parentca2ec902e92f44115b47e0d1cb13dcaa5ca4a75d (diff)
downloadnode-new-9d1d94819fd34a9d11e5eb0306f145dfe0d04ac4.tar.gz
src: add undici and acorn to `process.versions`
Fixes: https://github.com/nodejs/node/issues/45260 Refs: https://github.com/nodejs/node/pull/45599 Refs: https://github.com/nodejs/node/issues/45260 PR-URL: https://github.com/nodejs/node/pull/45621 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src/node_metadata.cc')
-rw-r--r--src/node_metadata.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node_metadata.cc b/src/node_metadata.cc
index d4c8ccde21..fefad37c89 100644
--- a/src/node_metadata.cc
+++ b/src/node_metadata.cc
@@ -1,9 +1,11 @@
#include "node_metadata.h"
+#include "acorn_version.h"
#include "ares.h"
#include "brotli/encode.h"
#include "llhttp.h"
#include "nghttp2/nghttp2ver.h"
#include "node.h"
+#include "undici_version.h"
#include "util.h"
#include "uv.h"
#include "uvwasi.h"
@@ -90,6 +92,10 @@ Metadata::Versions::Versions() {
std::to_string((BrotliEncoderVersion() & 0xFFF000) >> 12) +
"." +
std::to_string(BrotliEncoderVersion() & 0xFFF);
+#ifndef NODE_SHARED_BUILTIN_UNDICI_UNDICI_PATH
+ undici = UNDICI_VERSION;
+#endif
+ acorn = ACORN_VERSION;
uvwasi = UVWASI_VERSION_STRING;