Comparing version 0.1.6 to 0.1.7
@@ -28,3 +28,4 @@ var Base = require('./base.js'); | ||
zlib.deflate(this.text, function (err, data) { | ||
if (err) throw new Error('there was a problem deflating the text:' + err); | ||
if (err) | ||
return callback(new Error('there was a problem deflating the text:' + err)); | ||
this.compressedText = data; | ||
@@ -53,5 +54,5 @@ output = this._startOutput(data); | ||
+ 1 // compressionMethod | ||
+ (Buffer(this.languageTag).length + 1) | ||
+ (Buffer(this.translatedKeyword).length + 1) | ||
+ (this.compressed ? this.compressedText.length : Buffer(this.text).length) | ||
+ (Buffer(this.languageTag||'').length + 1) | ||
+ (Buffer(this.translatedKeyword||'').length + 1) | ||
+ (this.compressed ? this.compressedText.length : Buffer(this.text||'').length) | ||
); | ||
@@ -61,2 +62,2 @@ }; | ||
module.exports = InternationalText; | ||
module.exports = InternationalText; |
@@ -5,3 +5,3 @@ { | ||
"description": "Streaming PNG encoder/decoder, compatible with latest PNG extensions (PNGEXT 1.4.0)", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"homepage": "https://github.com/brianloveswords/streampng", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -229,4 +229,4 @@ # streampng [![Build Status](https://secure.travis-ci.org/brianloveswords/streampng.png?branch=master)](http://travis-ci.org/brianloveswords/streampng) | ||
- `IHDR.INDEXED_COLOUR` | ||
- `IHDR.GREYSCALE_ALPHA` | ||
- `IHDR.TRUECOLOUR_ALPHA` | ||
- `IHDR.GREYSCALE_ALPHA` | ||
- `IHDR.TRUECOLOUR_ALPHA` | ||
- `bitDepth`: The following values are valid depending on colour type: | ||
@@ -518,7 +518,5 @@ - greyscale: `[1, 2, 4, 8 ,16]` | ||
viewing. | ||
- `sTER.DIVERGING_FUSE`: left-eye image appears at the left and the | ||
right-eye image appears at the right, suitable for divergent | ||
(wall-eyed) free viewing. | ||
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1024112
2475
1
521