mirror of
https://github.com/danbulant/pngjs
synced 2026-07-05 19:20:38 +00:00
Backporting to 0.10
* Backporting to 0.10 for Meteor. * Still use zlib if possible. * Updated README. * Try Travis CI for 0.10.
This commit is contained in:
parent
3c121291e8
commit
e1c1022162
5 changed files with 13 additions and 2 deletions
|
|
@ -2,5 +2,6 @@ language: node_js
|
||||||
after_success:
|
after_success:
|
||||||
- test $TRAVIS_NODE_VERSION = '4.3' && npm run coverage && npm install coveralls@2 && npm run coveralls
|
- test $TRAVIS_NODE_VERSION = '4.3' && npm run coverage && npm install coveralls@2 && npm run coveralls
|
||||||
node_js:
|
node_js:
|
||||||
|
- "0.10"
|
||||||
- "0.12"
|
- "0.12"
|
||||||
- "4.1"
|
- "4.1"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Requirements
|
||||||
============
|
============
|
||||||
|
|
||||||
* Async - Node.js 0.10 / 0.12 / IO.js
|
* Async - Node.js 0.10 / 0.12 / IO.js
|
||||||
* Sync - Node.js 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)
|
||||||
|
|
||||||
Comparison Table
|
Comparison Table
|
||||||
================
|
================
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var zlib = require('zlib');
|
var zlib = require('zlib');
|
||||||
|
if (!zlib.deflateSync) {
|
||||||
|
// Backwards compatibility with 0.10.
|
||||||
|
zlib = require('node-zlib-backport');
|
||||||
|
}
|
||||||
var constants = require('./constants');
|
var constants = require('./constants');
|
||||||
var Packer = require('./packer');
|
var Packer = require('./packer');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
var zlib = require('zlib');
|
var zlib = require('zlib');
|
||||||
|
if (!zlib.inflateSync) {
|
||||||
|
// Backwards compatibility with 0.10.
|
||||||
|
zlib = require('node-zlib-backport');
|
||||||
|
}
|
||||||
var SyncReader = require('./sync-reader');
|
var SyncReader = require('./sync-reader');
|
||||||
var FilterSync = require('./filter-parse-sync');
|
var FilterSync = require('./filter-parse-sync');
|
||||||
var Parser = require('./parser');
|
var Parser = require('./parser');
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,9 @@
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/lukeapage/pngjs2/issues"
|
"url": "https://github.com/lukeapage/pngjs2/issues"
|
||||||
},
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"node-zlib-backport": "^0.11.15"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"buffer-equal": "1.0.0",
|
"buffer-equal": "1.0.0",
|
||||||
"connect": "^3.4.0",
|
"connect": "^3.4.0",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue