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

@jimp/plugin-contain

Package Overview
Dependencies
Maintainers
2
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-contain - npm Package Compare versions

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

18

package.json
{
"name": "@jimp/plugin-contain",
"version": "0.21.3",
"version": "0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0",
"description": "contain an image.",

@@ -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"
},

@@ -35,7 +35,7 @@ "peerDependencies": {

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

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

},
"gitHead": "046ea0d26952611c74bebd7b13877eb628458aa3"
"gitHead": "a26f5b300ee88c2fadb9909dd390cb4380b32a42"
}

@@ -8,2 +8,3 @@ import { Jimp, mkJGD, hasOwnProp } from "@jimp/test-utils";

import contain from "../src";
import { expectToBeJGD } from "@jimp/test-utils/src";

@@ -118,12 +119,10 @@ const jimp = configure({ plugins: [scale, resize, blit, contain] }, Jimp);

it("contain aligned to " + align, () => {
vertical
.clone()
.contain(6, 6, a)
.getJGDSync()
.should.be.sameJGD(jgdContainV, "Vertical image");
horizontal
.clone()
.contain(6, 6, a)
.getJGDSync()
.should.be.sameJGD(jgdContainH, "Horizontal image");
expectToBeJGD(
vertical.clone().contain(6, 6, a).getJGDSync(),
jgdContainV
);
expectToBeJGD(
horizontal.clone().contain(6, 6, a).getJGDSync(),
jgdContainH
);
});

@@ -130,0 +129,0 @@ }

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