Skip to content

Commit

Permalink
Upgrade libvips dependency to v8.5.4, plus other bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Apr 26, 2017
1 parent 6592361 commit 52bea15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/input.js
@@ -1,6 +1,5 @@
'use strict';

const util = require('util');
const color = require('color');
const is = require('./is');
const sharp = require('../build/Release/sharp.node');
Expand Down Expand Up @@ -143,7 +142,7 @@ function clone () {
const that = this;
// Clone existing options
const clone = this.constructor.call();
util._extend(clone.options, this.options);
clone.options = Object.assign({}, this.options);
// Pass 'finish' event to clone for Stream-based input
this.on('finish', function () {
// Clone inherits input data
Expand Down
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -68,26 +68,26 @@
"caw": "^2.0.0",
"color": "^1.0.3",
"got": "^6.7.1",
"nan": "^2.5.1",
"nan": "^2.6.2",
"semver": "^5.3.0",
"tar": "^2.2.1"
},
"devDependencies": {
"async": "^2.3.0",
"bufferutil": "^3.0.0",
"cc": "^1.0.0",
"documentation": "^4.0.0-beta.18",
"documentation": "^4.0.0-rc.0",
"exif-reader": "^1.0.2",
"icc": "^1.0.0",
"mocha": "^3.2.0",
"nyc": "^10.2.0",
"mocha": "^3.3.0",
"nyc": "^10.2.2",
"rimraf": "^2.5.4",
"semistandard": "^10.0.0",
"semistandard": "^11.0.0",
"unzip": "^0.1.11"
},
"license": "Apache-2.0",
"config": {
"libvips": "8.5.1"
"libvips": "8.5.4"
},
"engines": {
"node": ">=4"
Expand Down
4 changes: 2 additions & 2 deletions test/unit/io.js
Expand Up @@ -288,7 +288,7 @@ describe('Input/output', function () {
});

it('Fail when input is empty Buffer', function (done) {
sharp(new Buffer(0)).toBuffer().then(function () {
sharp(Buffer.alloc(0)).toBuffer().then(function () {
assert(false);
done();
}).catch(function (err) {
Expand All @@ -298,7 +298,7 @@ describe('Input/output', function () {
});

it('Fail when input is invalid Buffer', function (done) {
sharp(new Buffer([0x1, 0x2, 0x3, 0x4])).toBuffer().then(function () {
sharp(Buffer.from([0x1, 0x2, 0x3, 0x4])).toBuffer().then(function () {
assert(false);
done();
}).catch(function (err) {
Expand Down

0 comments on commit 52bea15

Please sign in to comment.