Comparing version 1.0.1 to 1.0.2
@@ -7,2 +7,6 @@ | ||
function inflate(stream, options) { | ||
if (!stream) { | ||
throw new TypeError('argument stream is required') | ||
} | ||
options = options || {} | ||
@@ -26,3 +30,6 @@ | ||
// no not pass-through encoding | ||
delete options.encoding | ||
return stream.pipe(zlib.Unzip(options)) | ||
} |
{ | ||
"name": "inflation", | ||
"description": "Easily unzip an HTTP stream", | ||
"version": "1.0.1", | ||
"author": { | ||
"name": "Jonathan Ong", | ||
"email": "me@jongleberry.com", | ||
"url": "http://jongleberry.com", | ||
"twitter": "https://twitter.com/jongleberry" | ||
}, | ||
"version": "1.0.2", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
"license": "MIT", | ||
@@ -19,3 +14,17 @@ "repository": "stream-utils/inflation", | ||
"gunzip" | ||
] | ||
], | ||
"devDependencies": { | ||
"istanbul": "0.2.10", | ||
"mocha": "~1.20.1", | ||
"readable-stream": "~1.0.27", | ||
"should": "4.0.4" | ||
}, | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha --reporter spec --bail test/", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/", | ||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/" | ||
} | ||
} |
@@ -0,6 +1,9 @@ | ||
# inflation | ||
# Inflation | ||
[![NPM version](https://badge.fury.io/js/inflation.svg)](http://badge.fury.io/js/inflation) | ||
[![Build Status](https://travis-ci.org/stream-utils/inflation.svg?branch=master)](https://travis-ci.org/stream-utils/inflation) | ||
[![Coverage Status](https://img.shields.io/coveralls/stream-utils/inflation.svg?branch=master)](https://coveralls.io/r/stream-utils/inflation) | ||
Automatically unzip an HTTP stream. | ||
Useful when used with [raw-body](https://github.com/stream-utils/raw-body) or [write-to](https://github.com/stream-utils/write-to). | ||
Useful when used with [inflation](https://github.com/stream-utils/inflation) or [write-to](https://github.com/stream-utils/write-to). | ||
@@ -11,3 +14,3 @@ ## Example | ||
var inflate = require('inflation') | ||
var raw = require('raw-body') | ||
var raw = require('inflation') | ||
@@ -14,0 +17,0 @@ http.createServer(function (req, res) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3565
6
25
29
4
1