Comparing version 0.7.0 to 0.7.1
@@ -8,7 +8,5 @@ /* Config file used during tests | ||
*/ | ||
var cfg = { host: "localhost" | ||
, port: "5984" | ||
var cfg = { host: "nodejsbug.iriscouch.com" | ||
, port: "80" | ||
, ssl: false // Not yet | ||
, user: "admin" | ||
, pass: "admin" | ||
}; | ||
@@ -15,0 +13,0 @@ |
106
error.js
var STATUS_CODES = { '100': 'Continue' | ||
,'101': 'Switching Protocols' | ||
,'102': 'Processing' | ||
,'200': 'OK' | ||
,'201': 'Created' | ||
,'202': 'Accepted' | ||
,'203': 'Non-Authoritative Information' | ||
,'204': 'No Content' | ||
,'205': 'Reset Content' | ||
,'206': 'Partial Content' | ||
,'207': 'Multi-Status' | ||
,'300': 'Multiple Choices' | ||
,'301': 'Moved Permanently' | ||
,'302': 'Moved Temporarily' | ||
,'303': 'See Other' | ||
,'304': 'Not Modified' | ||
,'305': 'Use Proxy' | ||
,'307': 'Temporary Redirect' | ||
,'400': 'Bad Request' | ||
,'401': 'Unauthorized' | ||
,'402': 'Payment Required' | ||
,'403': 'Forbidden' | ||
,'404': 'Not Found' | ||
,'405': 'Method Not Allowed' | ||
,'406': 'Not Acceptable' | ||
,'407': 'Proxy Authentication Required' | ||
,'408': 'Request Time-out' | ||
,'409': 'Conflict' | ||
,'410': 'Gone' | ||
,'411': 'Length Required' | ||
,'412': 'Precondition Failed' | ||
,'413': 'Request Entity Too Large' | ||
,'414': 'Request-URI Too Large' | ||
,'415': 'Unsupported Media Type' | ||
,'416': 'Requested Range Not Satisfiable' | ||
,'417': 'Expectation Failed' | ||
,'418': 'I\'m a teapot' | ||
,'422': 'Unprocessable Entity' | ||
,'423': 'Locked' | ||
,'424': 'Failed Dependency' | ||
,'425': 'Unordered Collection' | ||
,'426': 'Upgrade Required' | ||
,'500': 'Internal Server Error' | ||
,'501': 'Not Implemented' | ||
,'502': 'Bad Gateway' | ||
,'503': 'Service Unavailable' | ||
,'504': 'Gateway Time-out' | ||
,'505': 'HTTP Version not supported' | ||
,'506': 'Variant Also Negotiates' | ||
,'507': 'Insufficient Storage' | ||
,'509': 'Bandwidth Limit Exceeded' | ||
,'510': 'Not Extended' | ||
, '101': 'Switching Protocols' | ||
, '102': 'Processing' | ||
, '200': 'OK' | ||
, '201': 'Created' | ||
, '202': 'Accepted' | ||
, '203': 'Non-Authoritative Information' | ||
, '204': 'No Content' | ||
, '205': 'Reset Content' | ||
, '206': 'Partial Content' | ||
, '207': 'Multi-Status' | ||
, '300': 'Multiple Choices' | ||
, '301': 'Moved Permanently' | ||
, '302': 'Moved Temporarily' | ||
, '303': 'See Other' | ||
, '304': 'Not Modified' | ||
, '305': 'Use Proxy' | ||
, '307': 'Temporary Redirect' | ||
, '400': 'Bad Request' | ||
, '401': 'Unauthorized' | ||
, '402': 'Payment Required' | ||
, '403': 'Forbidden' | ||
, '404': 'Not Found' | ||
, '405': 'Method Not Allowed' | ||
, '406': 'Not Acceptable' | ||
, '407': 'Proxy Authentication Required' | ||
, '408': 'Request Time-out' | ||
, '409': 'Conflict' | ||
, '410': 'Gone' | ||
, '411': 'Length Required' | ||
, '412': 'Precondition Failed' | ||
, '413': 'Request Entity Too Large' | ||
, '414': 'Request-URI Too Large' | ||
, '415': 'Unsupported Media Type' | ||
, '416': 'Requested Range Not Satisfiable' | ||
, '417': 'Expectation Failed' | ||
, '418': 'I\'m a teapot' | ||
, '422': 'Unprocessable Entity' | ||
, '423': 'Locked' | ||
, '424': 'Failed Dependency' | ||
, '425': 'Unordered Collection' | ||
, '426': 'Upgrade Required' | ||
, '500': 'Internal Server Error' | ||
, '501': 'Not Implemented' | ||
, '502': 'Bad Gateway' | ||
, '503': 'Service Unavailable' | ||
, '504': 'Gateway Time-out' | ||
, '505': 'HTTP Version not supported' | ||
, '506': 'Variant Also Negotiates' | ||
, '507': 'Insufficient Storage' | ||
, '509': 'Bandwidth Limit Exceeded' | ||
, '510': 'Not Extended' | ||
}; | ||
@@ -101,3 +101,3 @@ /* | ||
exports.request = function (e,c,r,h) { return gen_err('request',e,c,r,h);}; | ||
exports.couch = function (e,c,r,h) { return gen_err('couch',e,c,r,h); }; | ||
exports.request = function (e,c,r,s) { return gen_err('request',e,c,r,s);}; | ||
exports.couch = function (e,c,r,s) { return gen_err('couch',e,c,r,s); }; |
{ "name": "nano" | ||
, "description": "minimalistic couchdb driver for node.js" | ||
, "homepage": "http://github.com/dscape/nano" | ||
, "version": "0.7.0" | ||
, "version": "0.7.1" | ||
, "author": "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)" | ||
@@ -9,4 +9,5 @@ , "keywords": ["couchdb", "data", "request", "json", "nosql", "micro", "nano"] | ||
, "devDependencies": { "async": "~0.1.9", "vows": "~0.5.10" } | ||
, "scripts": { "test": "./tests/run" } | ||
, "main": "./nano.js" | ||
, "engines" : { "node": ">=0.3.6" } | ||
} |
@@ -9,6 +9,6 @@ # Install | ||
# Alter the config to match your preferences | ||
vi cfg/tests.js | ||
vi ./tests/cfg/tests.js | ||
# Run | ||
./run | ||
./tests/run |
Sorry, the diff of this file is not supported yet
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
61909
1478