Skip to content

Commit

Permalink
export pangoVersion to help debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
chearon authored and zbjornson committed Jun 27, 2022
1 parent 7a8a606 commit 64fdf18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
(Unreleased)
==================
### Changed
* Export `pangoVersion`
### Added
### Fixed

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@ exports.gifVersion = bindings.gifVersion ? bindings.gifVersion.replace(/[^.\d]/g
exports.freetypeVersion = bindings.freetypeVersion
/** rsvg version. */
exports.rsvgVersion = bindings.rsvgVersion
/** pango version. */
exports.pangoVersion = bindings.pangoVersion
2 changes: 2 additions & 0 deletions src/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ NAN_MODULE_INIT(init) {
Nan::Set(target, Nan::New<String>("rsvgVersion").ToLocalChecked(), Nan::New<String>(LIBRSVG_VERSION).ToLocalChecked()).Check();
#endif

Nan::Set(target, Nan::New<String>("pangoVersion").ToLocalChecked(), Nan::New<String>(PANGO_VERSION_STRING).ToLocalChecked()).Check();

char freetype_version[10];
snprintf(freetype_version, 10, "%d.%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH);
Nan::Set(target, Nan::New<String>("freetypeVersion").ToLocalChecked(), Nan::New<String>(freetype_version).ToLocalChecked()).Check();
Expand Down

0 comments on commit 64fdf18

Please sign in to comment.