Comparing version 1.2.3 to 1.2.4
@@ -0,1 +1,10 @@ | ||
1.2.4 / 2015-02-14 | ||
================== | ||
* Support Node.js 0.6 | ||
* deps: mime-types@~2.0.9 | ||
- deps: mime-db@~1.7.0 | ||
* deps: negotiator@0.5.1 | ||
- Fix preference sorting to be stable for long acceptable lists | ||
1.2.3 / 2015-01-31 | ||
@@ -2,0 +11,0 @@ ================== |
{ | ||
"name": "accepts", | ||
"description": "Higher-level content negotiation", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -9,8 +9,8 @@ "license": "MIT", | ||
"dependencies": { | ||
"mime-types": "~2.0.8", | ||
"negotiator": "0.5.0" | ||
"mime-types": "~2.0.9", | ||
"negotiator": "0.5.1" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.5", | ||
"mocha": "~2.1.0" | ||
"mocha": "~1.21.5" | ||
}, | ||
@@ -23,3 +23,3 @@ "files": [ | ||
"engines": { | ||
"node": ">= 0.8" | ||
"node": ">= 0.6" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
@@ -97,17 +97,17 @@ # accepts | ||
case 'json': | ||
req.setHeader('Content-Type', 'application/json') | ||
req.write('{"hello":"world!"}') | ||
res.setHeader('Content-Type', 'application/json') | ||
res.write('{"hello":"world!"}') | ||
break | ||
case 'html': | ||
req.setHeader('Content-Type', 'text/html') | ||
req.write('<b>hello, world!</b>') | ||
res.setHeader('Content-Type', 'text/html') | ||
res.write('<b>hello, world!</b>') | ||
break | ||
default: | ||
// the fallback is text/plain, so no need to specify it above | ||
req.setHeader('Content-Type', 'text/plain') | ||
req.write('hello, world!') | ||
res.setHeader('Content-Type', 'text/plain') | ||
res.write('hello, world!') | ||
break | ||
} | ||
req.end() | ||
res.end() | ||
} | ||
@@ -114,0 +114,0 @@ |
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
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
11950
+ Addednegotiator@0.5.1(transitive)
- Removednegotiator@0.5.0(transitive)
Updatedmime-types@~2.0.9
Updatednegotiator@0.5.1