Socket
Socket
Sign inDemoInstall

@jimp/plugin-cover

Package Overview
Dependencies
Maintainers
2
Versions
242
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-cover - npm Package Compare versions

Comparing version 0.21.3 to 0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0

18

package.json
{
"name": "@jimp/plugin-cover",
"version": "0.21.3",
"version": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0",
"description": "cover 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.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0"
},

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

"devDependencies": {
"@jimp/custom": "^0.21.3",
"@jimp/plugin-crop": "^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.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0",
"@jimp/plugin-crop": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0",
"@jimp/plugin-resize": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0",
"@jimp/plugin-scale": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0",
"@jimp/test-utils": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0"
},

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

},
"gitHead": "046ea0d26952611c74bebd7b13877eb628458aa3"
"gitHead": "6a6ae39e83bd731ccd25120a160a75b32273f9bd"
}

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

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

@@ -118,12 +119,4 @@ const jimp = configure({ plugins: [resize, scale, crop, cover] }, Jimp);

it("cover aligned to " + align, () => {
vertical
.clone()
.cover(4, 4, a)
.getJGDSync()
.should.be.sameJGD(jgdCoverV, "Vertical image");
horizontal
.clone()
.cover(4, 4, a)
.getJGDSync()
.should.be.sameJGD(jgdCoverH, "Horizontal image");
expectToBeJGD(vertical.clone().cover(4, 4, a).getJGDSync(), jgdCoverV);
expectToBeJGD(horizontal.clone().cover(4, 4, a).getJGDSync(), jgdCoverH);
});

@@ -130,0 +123,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