Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "calipers", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The fastest Node.js library for measuring PDF, PNG, and JPEG dimensions.", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha test --recursive" | ||
"test": "mocha test --recursive", | ||
"testCI": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/* && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" | ||
}, | ||
@@ -29,8 +30,11 @@ "repository": { | ||
"chai-as-promised": "^4.3.0", | ||
"mocha": "^2.1.0" | ||
"coveralls": "^2.11.2", | ||
"istanbul": "^0.3.13", | ||
"mocha": "^2.1.0", | ||
"mocha-lcov-reporter": "0.0.2" | ||
}, | ||
"dependencies": { | ||
"bluebird": "^2.9.13", | ||
"poppler-simple": "^0.1.8" | ||
"poppler-simple": "^0.1.10" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# 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) | ||
# 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) | ||
@@ -3,0 +3,0 @@ The fastest Node.js library for measuring **PDF**, **PNG**, and **JPEG** dimensions. |
@@ -50,4 +50,9 @@ 'use strict'; | ||
it('should error with a corrupt JPEG', function () { | ||
var jpegPath = path.resolve(__dirname, '../fixtures/corrupt/corrupt.jpg'); | ||
return expect(calipers.measure(jpegPath)).to.be.rejectedWith(Error); | ||
}); | ||
}); | ||
}); |
@@ -57,4 +57,9 @@ 'use strict'; | ||
it('should error with a corrupt PDF', function () { | ||
var pdfPath = path.resolve(__dirname, '../fixtures/corrupt/corrupt.pdf'); | ||
return expect(calipers.measure(pdfPath)).to.be.rejectedWith(Error); | ||
}); | ||
}); | ||
}); |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var result = utils.ascii(buffer, 0, string.length); | ||
expect(result).to.eql(string); | ||
return expect(result).to.eql(string); | ||
}); | ||
@@ -16,0 +16,0 @@ }); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3877534
52
420
1
6
Updatedpoppler-simple@^0.1.10