Socket
Socket
Sign inDemoInstall

immp

Package Overview
Dependencies
17
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.0 to 1.5.1

.tmp/immp/0c21849a336bb2bacb96f7f47daa0f6b9dd1203a

2

package.json
{
"name": "immp",
"description": "Image Manipulation Middleware Proxy",
"version": "1.5.0",
"version": "1.5.1",
"repository": "garrows/IMMP",

@@ -6,0 +6,0 @@ "keywords": [

@@ -184,2 +184,6 @@ var _ = require('underscore'),

if(hasCrop) {
customCrop.x = parseInt(customCrop.x);
customCrop.y = parseInt(customCrop.y);
customCrop.w = parseInt(customCrop.w);
customCrop.h = parseInt(customCrop.h);
gmImage.crop(customCrop.w, customCrop.h, customCrop.x, customCrop.y);

@@ -186,0 +190,0 @@

@@ -218,7 +218,7 @@ var async = require('async'),

it('should do a custom crop', function (_done) {
it('should do a custom crop and round exponents', function (_done) {
this.slow(5000);
this.timeout(10000);
http.get(serverUrl + '/im/?image=/images/robot.jpg&sx=0&sy=0&sw=100&sh=111', function (_httpResponse) {
http.get(serverUrl + '/im/?image=/images/robot.jpg&sx=0.4&sy=5.798028723802416e-15&sw=100.4&sh=111.4', function (_httpResponse) {

@@ -438,3 +438,3 @@ _httpResponse.statusCode.should.eql(200);

filesize.should.be.lessThan(_fileSizeWithoutCompression);
(filesize / _fileSizeWithoutCompression).should.be.greaterThan(.5).and.lessThan(.8);
(filesize / _fileSizeWithoutCompression).should.be.greaterThan(0.5).and.lessThan(0.8);
_callback(null, filesize);

@@ -441,0 +441,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc