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

rocky

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rocky - npm Package Compare versions

Comparing version 0.3.13 to 0.3.14

test/streaming.js

4

lib/middleware/response-body.js

@@ -161,5 +161,3 @@ const zlib = require('zlib')

function inflate(body) {
var raw = zlibProxy(zlib.gunzipSync, body)
if (raw !== body) raw.toString()
return raw
return zlibProxy(zlib.gunzipSync, body)
}

@@ -166,0 +164,0 @@

@@ -60,2 +60,6 @@ const router = require('router')

Rocky.prototype.routeAll = function () {
return this.all('/*')
}
Rocky.prototype.route = function (method, path) {

@@ -62,0 +66,0 @@ var route = new Route(path)

{
"name": "rocky",
"version": "0.3.13",
"version": "0.3.14",
"description": "Full-featured, pluggable and middleware-oriented HTTP proxy supporting traffic replay and intercept",

@@ -5,0 +5,0 @@ "repository": "h2non/rocky",

@@ -5,6 +5,6 @@ # rocky [![Build Status](https://api.travis-ci.org/h2non/rocky.svg?branch=master&style=flat)](https://travis-ci.org/h2non/rocky) [![Code Climate](https://codeclimate.com/github/h2non/rocky/badges/gpa.svg)](https://codeclimate.com/github/h2non/rocky) [![NPM](https://img.shields.io/npm/v/rocky.svg)](https://www.npmjs.org/package/rocky)

**Full-featured**, **pluggable** and **middleware-oriented** **HTTP/S** and **WebSocket proxy** with powerful built-in features such as versatile **routing layer**, **traffic interceptor and replay** to multiple backends, traffic **balancer**, traffic **retry/backoff**, **hierarchical configuration**, among [other features](#features).
**Full-featured**, **pluggable** and **middleware-oriented** **HTTP/S** with powerful built-in features such as versatile **routing layer**, **traffic interceptor and replay** to multiple backends, traffic **balancer**, traffic **retry/backoff**, **hierarchical configuration**, among [other features](#features).
Built for [node.js](http://nodejs.org)/[io.js](https://iojs.org).
Compatible [connect](https://github.com/senchalabs/connect)/[express](http://expressjs.com).
Compatible with [connect](https://github.com/senchalabs/connect)/[express](http://expressjs.com).

@@ -662,4 +662,12 @@ **rocky** can be fluently used [programmatically](#programmatic-api) or via [command-line](#command-line) interface. It has a modular pluggable design, making it pretty simple to extend and augment through its featured middleware layer.

#### route#query([ params | parseFn ])
#### rocky#routeAll()
Return: [`Route`](#routepath)
Route all the incoming traffic to the default target.
This is a shortcut to `rocky#all('/*')`.
**Note**: you must call this method only when you already defined other routes.
#### rocky#query([ params | parseFn ])
Parse and expose the query params in `http.IncomingMessage` object via `req.query = Object`.

@@ -666,0 +674,0 @@

Sorry, the diff of this file is not supported yet

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