Skip to content

Commit

Permalink
src: add protobuf to process.versions
Browse files Browse the repository at this point in the history
PR-URL: #166
Fixes: #163
Reviewed-By: Santiago Gimeno <[email protected]>
  • Loading branch information
RafaelGSS committed Sep 24, 2024
1 parent 6d1e57e commit 0db40b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "uvwasi.h"
#include "v8.h"
#include "sodium/version.h"
#include <google/protobuf/message.h>

#ifdef NODE_BUNDLED_ZLIB
#include "zlib_version.h"
Expand Down Expand Up @@ -154,6 +155,7 @@ Metadata::Versions::Versions() {
"."
NODE_STRINGIFY(ZMQ_VERSION_PATCH);
sodium = SODIUM_VERSION_STRING;
protobuf = google::protobuf::internal::VersionString(GOOGLE_PROTOBUF_VERSION);
}

Metadata::Release::Release() : name(NODE_RELEASE) {
Expand Down
1 change: 1 addition & 0 deletions src/node_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ namespace node {
V(curl) \
V(grpc) \
V(sodium) \
V(protobuf) \
V(nlohmann) \
V(opentelemetry) \
V(zmq) \
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-process-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const expected_keys = [
'opentelemetry',
'zmq',
'sodium',
'protobuf',
];

const hasUndici = process.config.variables.node_builtin_shareable_builtins.includes('deps/undici/undici.js');
Expand Down

0 comments on commit 0db40b4

Please sign in to comment.