mirror of
https://github.com/danbulant/pngjs
synced 2026-06-19 06:21:13 +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:
|
||||
- test $TRAVIS_NODE_VERSION = '4.3' && npm run coverage && npm install coveralls@2 && npm run coveralls
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.12"
|
||||
- "4.1"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Requirements
|
|||
============
|
||||
|
||||
* 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
|
||||
================
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var zlib = require('zlib');
|
||||
if (!zlib.deflateSync) {
|
||||
// Backwards compatibility with 0.10.
|
||||
zlib = require('node-zlib-backport');
|
||||
}
|
||||
var constants = require('./constants');
|
||||
var Packer = require('./packer');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
|
||||
var zlib = require('zlib');
|
||||
if (!zlib.inflateSync) {
|
||||
// Backwards compatibility with 0.10.
|
||||
zlib = require('node-zlib-backport');
|
||||
}
|
||||
var SyncReader = require('./sync-reader');
|
||||
var FilterSync = require('./filter-parse-sync');
|
||||
var Parser = require('./parser');
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/lukeapage/pngjs2/issues"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-zlib-backport": "^0.11.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"buffer-equal": "1.0.0",
|
||||
"connect": "^3.4.0",
|
||||
|
|
|
|||
Loading…
Reference in a new issue