koa-json
Advanced tools
Comparing version 1.0.0 to 1.0.1
1.0.1 / 2014-05-03 | ||
================== | ||
* fix param-based pretty formatting | ||
1.0.0 / 2014-05-02 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -29,3 +29,3 @@ | ||
// query | ||
var hasParam = param && this.query[param]; | ||
var hasParam = param && this.query.hasOwnProperty(param); | ||
@@ -32,0 +32,0 @@ // pretty |
{ | ||
"name": "koa-json", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": "koajs/json", | ||
@@ -5,0 +5,0 @@ "description": "pretty (non-compressed) json response middleware", |
@@ -32,4 +32,4 @@ | ||
.get('/?pretty') | ||
.expect('{"foo":"bar"}', done); | ||
.expect('{\n "foo": "bar"\n}', done); | ||
}) | ||
}) |
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
5222
0