Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pngjs

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pngjs - npm Package Compare versions

Comparing version 2.3.1 to 3.0.0

2

lib/chunkstream.js

@@ -100,3 +100,3 @@ 'use strict';

this.emit('error',
new Error('There are some read requests waitng on finished stream')
new Error('There are some read requests waiting on finished stream')
);

@@ -103,0 +103,0 @@ }

@@ -5,11 +5,2 @@ 'use strict';

var zlib = require('zlib');
if (!zlib.deflateSync) {
// Backwards compatibility with 0.10.
try {
zlib = require('node-zlib-backport');
}
catch(ex) {
hasSyncZlib = false;
}
}
var constants = require('./constants');

@@ -21,3 +12,3 @@ var Packer = require('./packer');

if (!hasSyncZlib) {
throw new Error('To use the sync capability of this library in old node versions, please also add a dependency on node-zlb-backport');
throw new Error('To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0');
}

@@ -24,0 +15,0 @@

@@ -5,11 +5,2 @@ 'use strict';

var zlib = require('zlib');
if (!zlib.deflateSync) {
// Backwards compatibility with 0.10.
try {
zlib = require('node-zlib-backport');
}
catch(ex) {
hasSyncZlib = false;
}
}
var SyncReader = require('./sync-reader');

@@ -25,3 +16,3 @@ var FilterSync = require('./filter-parse-sync');

if (!hasSyncZlib) {
throw new Error('To use the sync capability of this library in old node versions, please also add a dependency on node-zlb-backport');
throw new Error('To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0');
}

@@ -28,0 +19,0 @@

{
"name": "pngjs",
"version": "2.3.1",
"version": "3.0.0",
"description": "PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.",

@@ -30,4 +30,3 @@ "contributors": [

"engines": {
"node": ">=0.10.0",
"iojs": ">= 1.0.0"
"node": ">=4.0.0"
},

@@ -57,3 +56,3 @@ "main": "./lib/png.js",

"eslint": "^2.5.0",
"istanbul": "^0.4.1",
"istanbul": "^0.4.4",
"phantomjs-prebuilt": "^2.1.7",

@@ -60,0 +59,0 @@ "serve-static": "^1.10.0",

@@ -25,4 +25,3 @@ [![Build Status](https://travis-ci.org/lukeapage/pngjs.svg?branch=master)](https://travis-ci.org/lukeapage/pngjs) [![Build status](https://ci.appveyor.com/api/projects/status/tb8418jql1trkntd/branch/master?svg=true)](https://ci.appveyor.com/project/lukeapage/pngjs2/branch/master) [![Coverage Status](https://coveralls.io/repos/lukeapage/pngjs2/badge.svg?branch=master&service=github)](https://coveralls.io/github/lukeapage/pngjs2?branch=master) [![npm version](https://badge.fury.io/js/pngjs.svg)](http://badge.fury.io/js/pngjs)

* Async - Node.js 0.10 / 0.12 / IO.js
* Sync - Node.js 0.12 / IO.js (0.10 with [node-zlib-backport](https://www.npmjs.com/package/node-zlib-backport) dependency)
* Node.js v4 (use older v2.3.0 for 0.10/0.12/iojs support)

@@ -272,2 +271,5 @@ Comparison Table

### 3.0.0 - 03/08/2016
- Drop support for node below v4 and iojs. Pin to 2.3.0 to use with old, unsupported or patched node versions.
### 2.3.0 - 22/04/2016

@@ -274,0 +276,0 @@ - Support for sync in node 0.10

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