Skip to content

Commit

Permalink
Ensure 'versions' is populated from vendored libvips
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Sep 7, 2021
1 parent 50c7a08 commit 481e350
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Requires libvips v8.11.3

### v0.29.2 - TBD

* Ensure `sharp.versions` is populated from vendored libvips.

### v0.29.1 - 7th September 2021

* Add `lightness` option to `modulate` operation.
Expand Down
3 changes: 2 additions & 1 deletion lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const events = require('events');
const detectLibc = require('detect-libc');

const is = require('./is');
const platformAndArch = require('./platform')();
const sharp = require('./sharp');

/**
Expand Down Expand Up @@ -45,7 +46,7 @@ let versions = {
vips: sharp.libvipsVersion()
};
try {
versions = require(`../vendor/${versions.vips}/versions.json`);
versions = require(`../vendor/${versions.vips}/${platformAndArch}/versions.json`);
} catch (err) {}

/**
Expand Down

0 comments on commit 481e350

Please sign in to comment.