Socket
Socket
Sign inDemoInstall

@jimp/gif

Package Overview
Dependencies
Maintainers
2
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/gif - npm Package Compare versions

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

13

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

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

"scripts": {
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
"test:watch": "npm run test -- --reporter min --watch",
"test:coverage": "nyc npm run test",
"build": "npm run build:node:production && npm run build:module",

@@ -22,3 +25,3 @@ "build:watch": "npm run build:node:debug -- -- --watch --verbose",

"dependencies": {
"@jimp/utils": "^0.21.3",
"@jimp/utils": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0",
"gifwrap": "^0.9.2",

@@ -30,6 +33,10 @@ "omggif": "^1.0.9"

},
"devDependencies": {
"@jimp/custom": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0",
"@jimp/test-utils": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "046ea0d26952611c74bebd7b13877eb628458aa3"
"gitHead": "a26f5b300ee88c2fadb9909dd390cb4380b32a42"
}
import { Jimp, getTestDir } from "@jimp/test-utils";
import configure from "@jimp/custom";
import expect from "@storybook/expect";

@@ -13,3 +14,3 @@ import gif from "../src";

const image = await jimp.read(imagesDir + "/flower.gif");
image.getPixelColor(10, 10).should.be.equal(0xe5e6d9ff);
expect(image.getPixelColor(10, 10)).toBe(0xe5e6d9ff);
});

@@ -19,3 +20,3 @@

const image = await jimp.read(imagesDir + "/animated.gif");
image.getPixelColor(10, 10).should.be.equal(0xa1d2f1ff);
expect(image.getPixelColor(10, 10)).toBe(0xa1d2f1ff);
});

@@ -26,4 +27,4 @@

const buffer = await jgd.getBufferAsync("image/gif");
buffer.toString().startsWith("GIF").should.be.equal(true);
expect(buffer.toString()).toMatch(/^GIF/);
});
});
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