Comparing version 1.0.1 to 1.0.2
@@ -17,3 +17,3 @@ 'use strict'; | ||
var PNG_PATH = path.resolve(__dirname, '../test/fixtures/png/123x456.png'); | ||
var JPEG_PATH = path.resolve(__dirname, '../test/fixtures/jpeg/123x456.jpeg'); | ||
var JPEG_PATH = path.resolve(__dirname, '../test/fixtures/jpeg/123x456.jpg'); | ||
@@ -20,0 +20,0 @@ function runCalipersBenchmark (name, file) { |
@@ -6,2 +6,3 @@ 'use strict'; | ||
var popen = Promise.promisify(fs.open); | ||
var pclose = Promise.promisify(fs.close); | ||
var detect = require('./detect'); | ||
@@ -23,3 +24,6 @@ | ||
}) | ||
.finally(function () { | ||
return pclose(this.fd); | ||
}) | ||
.nodeify(callback); | ||
}; |
{ | ||
"name": "calipers", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The fastest Node.js library for measuring PDF, PNG, and JPEG dimensions.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -90,5 +90,7 @@ # calipers [![npm version](https://badge.fury.io/js/calipers.svg)](http://badge.fury.io/js/calipers) [![Build Status](https://travis-ci.org/lob/calipers.svg)](https://travis-ci.org/lob/calipers) [![Coverage Status](https://coveralls.io/repos/lob/calipers/badge.svg)](https://coveralls.io/r/lob/calipers) | ||
``` | ||
apt-get install pkg-config | ||
apt-get install libpoppler-cpp-dev | ||
``` | ||
# Contribute | ||
@@ -95,0 +97,0 @@ |
3877662
424
102