@jimp/png
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "@jimp/png", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Default Jimp png encoder/decoder.", | ||
@@ -30,4 +30,4 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@jimp/custom": "^0.5.0", | ||
"@jimp/test-utils": "^0.5.0" | ||
"@jimp/custom": "^0.5.1", | ||
"@jimp/test-utils": "^0.5.1" | ||
}, | ||
@@ -37,3 +37,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "fbbe0b7da5a9dcf8da35e2dfb2e8265ca850435c" | ||
"gitHead": "b23ab92550336eed5d4ac422564c7c63ea280c73" | ||
} |
/* eslint-disable no-control-regex */ | ||
import fs from 'fs'; | ||
import { Jimp, getTestDir } from '@jimp/test-utils'; | ||
@@ -92,6 +91,10 @@ import configure from '@jimp/custom'; | ||
const expected = fs.readFileSync(imagesDir + '/options.png'); | ||
const expected = await jimp.read(imagesDir + '/options.png'); | ||
const expectedBuffer = await expected | ||
.deflateStrategy(0) | ||
.colorType(0) | ||
.getBufferAsync(Jimp.MIME_PNG); | ||
image.should.be.deepEqual(expected); | ||
image.should.be.deepEqual(expectedBuffer); | ||
}); | ||
}); |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
254518
475
1