Socket
Socket
Sign inDemoInstall

koa-json

Package Overview
Dependencies
1
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

History.md
1.0.1 / 2014-05-03
==================
* fix param-based pretty formatting
1.0.0 / 2014-05-02

@@ -3,0 +8,0 @@ ==================

2

index.js

@@ -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);
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc