New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

calipers

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calipers - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/fixtures/corrupt/corrupt.jpg

12

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc