Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jimp/jpeg

Package Overview
Dependencies
Maintainers
2
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/jpeg - npm Package Compare versions

Comparing version 0.21.3 to 0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0

12

package.json
{
"name": "@jimp/jpeg",
"version": "0.21.3",
"version": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0",
"description": "Default Jimp jpeg encoder/decoder.",

@@ -10,3 +10,3 @@ "main": "dist/index.js",

"scripts": {
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
"test:watch": "npm run test -- --reporter min --watch",

@@ -25,3 +25,3 @@ "test:coverage": "nyc npm run test",

"dependencies": {
"@jimp/utils": "^0.21.3",
"@jimp/utils": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0",
"jpeg-js": "^0.4.4"

@@ -33,4 +33,4 @@ },

"devDependencies": {
"@jimp/custom": "^0.21.3",
"@jimp/test-utils": "^0.21.3"
"@jimp/custom": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0",
"@jimp/test-utils": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0"
},

@@ -40,3 +40,3 @@ "publishConfig": {

},
"gitHead": "046ea0d26952611c74bebd7b13877eb628458aa3"
"gitHead": "a26f5b300ee88c2fadb9909dd390cb4380b32a42"
}
import { Jimp, getTestDir } from "@jimp/test-utils";
import configure from "@jimp/custom";
import expect from "@storybook/expect";

@@ -14,5 +15,5 @@ import jpeg from "../src";

image.getPixelColor(10, 10).should.be.equal(0x3f4a02ff);
image.getPixelColor(220, 190).should.be.equal(0x5d94b6ff);
image.getPixelColor(350, 130).should.be.equal(0xdf7944ff);
expect(image.getPixelColor(10, 10)).toBe(0x3f4a02ff);
expect(image.getPixelColor(220, 190)).toBe(0x5d94b6ff);
expect(image.getPixelColor(350, 130)).toBe(0xdf7944ff);
});

@@ -23,5 +24,5 @@

image.getPixelColor(10, 10).should.be.equal(0xaeb8c3ff);
image.getPixelColor(220, 190).should.be.equal(0x262b21ff);
image.getPixelColor(350, 130).should.be.equal(0x4e5d30ff);
expect(image.getPixelColor(10, 10)).toBe(0xaeb8c3ff);
expect(image.getPixelColor(220, 190)).toBe(0x262b21ff);
expect(image.getPixelColor(350, 130)).toBe(0x4e5d30ff);
});

@@ -41,4 +42,4 @@

buffer.toString().should.match(/^.{3,9}JFIF\u0000/);
expect(buffer.toString()).toMatch(/^.{3,9}JFIF\u0000/);
});
});
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