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

network-constants

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

network-constants - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

2

bower.json
{
"name": "network-constants.js",
"version": "0.10.0",
"version": "0.11.0",
"description": "a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD",

@@ -5,0 +5,0 @@ "keywords": [

@@ -120,2 +120,6 @@ // if node.js : use amdefine (add it with npm)

'response_headers' : {
'Location': undefined // Used in redirection, or when a new resource has been created.
},
'content_types': {

@@ -122,0 +126,0 @@ 'application' : {

{
"name": "network-constants",
"version": "0.10.0",
"version": "0.11.0",
"description": "a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD",

@@ -5,0 +5,0 @@ "keywords": "network, constants, http, protocol, browser, server",

@@ -18,5 +18,5 @@ network-constants.js

Just a bunch of network (only HTTP for now) constants for js programs.
A clean declaration of network constants (only HTTP for now) for js programs.
Useful when developing network programs or if you want to use HTTP semantics.
Useful when developing network programs or if you want to use HTTP semantics (REST API).

@@ -31,2 +31,10 @@ Works in node.js + browser, AMD.

Interesting reads :
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
http://www.codeshttp.com/ (us / french)
http://benramsey.com/blog/2009/02/http-status-100-continue-corrections/
http://benramsey.com/blog/2008/04/http-status-201-created-vs-202-accepted/
http://benramsey.com/blog/2008/05/http-status-204-no-content-and-205-reset-content/
http://benramsey.com/blog/2008/05/206-partial-content-and-range-requests/
http://benramsey.com/blog/2009/11/post-vs-put/

@@ -37,2 +45,4 @@ Usage

```javascript
if (typeof define !== 'function') { var define = require('amdefine')(module); } // node only
define(

@@ -60,2 +70,3 @@ [

in the 'spec' folder. See also readme.txt in the 'test_runner' folder.
Browser : open test_runner/mocha.html
Node : `npm test`
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