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

accepts

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accepts - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

9

HISTORY.md

@@ -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 @@ ==================

10

package.json
{
"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 @@

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