Socket
Socket
Sign inDemoInstall

@jimp/png

Package Overview
Dependencies
33
Maintainers
2
Versions
220
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

8

package.json
{
"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);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc