Comparing version 3.0.3 to 3.1.0
@@ -144,2 +144,5 @@ /* | ||
} | ||
if (typeof tester === 'function') { | ||
return !!tester(testee); | ||
} | ||
if (isUrl) { | ||
@@ -146,0 +149,0 @@ return getUrlTester(tester)(testee); |
{ | ||
"name": "hoxy", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"author": "Greg Reimer <gregreimer@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Web-hacking proxy API for node", |
# Hoxy | ||
An HTTP hacking tool for JavaScript programmers. Please see the [documentation page](http://greim.github.io/hoxy/) for more info. | ||
An HTTP hacking tool for JavaScript programmers. | ||
## Full Documentation | ||
http://greim.github.io/hoxy/ | ||
## Example | ||
```js | ||
@@ -9,6 +15,14 @@ var hoxy = require('hoxy'); | ||
proxy.intercept({ | ||
// intercept during the response phase | ||
phase: 'response', | ||
// only intercept html pages | ||
mimeType: 'text/html', | ||
// expose the response body as a cheerio object | ||
// (cheerio is a jQuery clone) | ||
as: '$' | ||
}, function(req, resp) { | ||
resp.$('title').text('Unicorns!'); | ||
@@ -19,3 +33,3 @@ // all page titles will now say "Unicorns!" | ||
# Version 3.0 | ||
## Version 3.0 | ||
@@ -31,4 +45,5 @@ Hoxy has released version 3.0. | ||
# Release notes: | ||
## Release notes: | ||
* **3.1.0** Filtering options now accept functions. | ||
* **3.0.3** Fixed `Cycle#serve()` breakage on Windows. | ||
@@ -35,0 +50,0 @@ * **3.0.2** Fix for a Windows EADDRNOTAVAIL error. |
79334
2125
79