@jimp/plugin-contain
Advanced tools
Comparing version 0.21.3 to 0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0
{ | ||
"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 @@ } |
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
30163
326
+ Added@jimp/utils@0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0(transitive)
- Removed@jimp/utils@0.21.3(transitive)
Updated@jimp/utils@0.21.4--canary.1163.a26f5b300ee88c2fadb9909dd390cb4380b32a42.0