This commit is contained in:
arnaucode
2017-02-03 08:56:51 +01:00
parent c4b7414770
commit 112745d6fa
1585 changed files with 450241 additions and 0 deletions

1
server/node_modules/methods/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
node_modules/

20
server/node_modules/methods/History.md generated vendored Normal file
View File

@@ -0,0 +1,20 @@
1.1.0 / 2014-07-05
==================
* add CONNECT
1.0.1 / 2014-06-02
==================
* fix index.js to work with harmony transform
1.0.0 / 2014-05-08
==================
* add PURGE. Closes #9
0.1.0 / 2013-10-28
==================
* add http.METHODS support

23
server/node_modules/methods/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,23 @@
(The MIT License)
Copyright (c) 2013-2014 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

4
server/node_modules/methods/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,4 @@
# Methods
HTTP verbs that node core's parser supports.

41
server/node_modules/methods/index.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
var http = require('http');
if (http.METHODS) {
module.exports = http.METHODS.map(function(method){
return method.toLowerCase();
});
} else {
module.exports = [
'get',
'post',
'put',
'head',
'delete',
'options',
'trace',
'copy',
'lock',
'mkcol',
'move',
'purge',
'propfind',
'proppatch',
'unlock',
'report',
'mkactivity',
'checkout',
'merge',
'm-search',
'notify',
'subscribe',
'unsubscribe',
'patch',
'search',
'connect'
];
}

92
server/node_modules/methods/package.json generated vendored Normal file
View File

@@ -0,0 +1,92 @@
{
"_args": [
[
{
"raw": "methods@1.1.0",
"scope": null,
"escapedName": "methods",
"name": "methods",
"rawSpec": "1.1.0",
"spec": "1.1.0",
"type": "version"
},
"/home/nau/MEGA/CODI/githubRepos/colspace/node_modules/express"
]
],
"_from": "methods@1.1.0",
"_id": "methods@1.1.0",
"_inCache": true,
"_location": "/methods",
"_npmUser": {
"name": "jongleberry",
"email": "jonathanrichardong@gmail.com"
},
"_npmVersion": "1.4.16",
"_phantomChildren": {},
"_requested": {
"raw": "methods@1.1.0",
"scope": null,
"escapedName": "methods",
"name": "methods",
"rawSpec": "1.1.0",
"spec": "1.1.0",
"type": "version"
},
"_requiredBy": [
"/express"
],
"_resolved": "https://registry.npmjs.org/methods/-/methods-1.1.0.tgz",
"_shasum": "5dca4ee12df52ff3b056145986a8f01cbc86436f",
"_shrinkwrap": null,
"_spec": "methods@1.1.0",
"_where": "/home/nau/MEGA/CODI/githubRepos/colspace/node_modules/express",
"author": {
"name": "TJ Holowaychuk"
},
"bugs": {
"url": "https://github.com/visionmedia/node-methods/issues"
},
"dependencies": {},
"description": "HTTP methods that node supports",
"devDependencies": {
"mocha": "1.17.x"
},
"directories": {},
"dist": {
"shasum": "5dca4ee12df52ff3b056145986a8f01cbc86436f",
"tarball": "https://registry.npmjs.org/methods/-/methods-1.1.0.tgz"
},
"gitHead": "2a4dd325d18436c33356e6be19e32e08a7c877ab",
"homepage": "https://github.com/visionmedia/node-methods",
"keywords": [
"http",
"methods"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
{
"name": "jonathanong",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "jongleberry",
"email": "jonathanrichardong@gmail.com"
}
],
"name": "methods",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/node-methods.git"
},
"scripts": {
"test": "./node_modules/mocha/bin/mocha"
},
"version": "1.1.0"
}

33
server/node_modules/methods/test/methods.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
var http = require('http');
var assert = require('assert');
var methods = require('..');
describe('methods', function() {
if (http.METHODS) {
it('is a lowercased http.METHODS', function() {
var lowercased = http.METHODS.map(function(method) {
return method.toLowerCase();
});
assert.deepEqual(lowercased, methods);
});
} else {
it('contains GET, POST, PUT, and DELETE', function() {
assert.notEqual(methods.indexOf('get'), -1);
assert.notEqual(methods.indexOf('post'), -1);
assert.notEqual(methods.indexOf('put'), -1);
assert.notEqual(methods.indexOf('delete'), -1);
});
it('is all lowercase', function() {
for (var i = 0; i < methods.length; i ++) {
assert(methods[i], methods[i].toLowerCase(), methods[i] + " isn't all lowercase");
}
});
}
});