@jimp/plugin-cover
Advanced tools
Comparing version 0.21.3 to 0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25408
280
+ Added@jimp/utils@0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0(transitive)
- Removed@jimp/utils@0.21.3(transitive)
Updated@jimp/utils@0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0