From 739178dd7488fa0370e4da6f2d673a4f161383f3 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 5 Oct 2016 10:32:56 +0100 Subject: [PATCH] Include '.node' ext for Meteor's require() implementation #537 --- docs/changelog.md | 4 ++++ index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index abe4f078..c6fa6407 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -8,6 +8,10 @@ Requires libvips v8.3.3 * C++11 ABI version is now auto-detected, remove sharp-cxx11 installation flag. +* Include .node extension for Meteor's require() implementation. + [#537](https://github.com/lovell/sharp/issues/537) + [@isjackwild](https://github.com/isjackwild) + * Ensure convolution kernel scale is clamped to a minimum value of 1. [#561](https://github.com/lovell/sharp/issues/561) [@abagshaw](https://github.com/abagshaw) diff --git a/index.js b/index.js index 98585510..ed2e9fd1 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ var semver = require('semver'); var color = require('color'); var BluebirdPromise = require('bluebird'); -var sharp = require('./build/Release/sharp'); +var sharp = require('./build/Release/sharp.node'); // Versioning var versions = {