nodejs with express server, leapmotion for movement control, and threejs for 3d render

This commit is contained in:
idoctnef
2016-05-30 18:14:08 +02:00
parent e2aeac1bae
commit 52b63ee33a
893 changed files with 127726 additions and 0 deletions

1
node_modules/fresh/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
test

7
node_modules/fresh/Makefile generated vendored Normal file
View File

@@ -0,0 +1,7 @@
test:
@./node_modules/.bin/mocha \
--reporter spec \
--require should
.PHONY: test

32
node_modules/fresh/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,32 @@
# node-fresh
HTTP response freshness testing
## fresh(req, res)
Check freshness of `req` and `res` headers.
When the cache is "fresh" __true__ is returned,
otherwise __false__ is returned to indicate that
the cache is now stale.
## Example:
```js
var req = { 'if-none-match': 'tobi' };
var res = { 'etag': 'luna' };
fresh(req, res);
// => false
var req = { 'if-none-match': 'tobi' };
var res = { 'etag': 'tobi' };
fresh(req, res);
// => true
```
## Installation
```
$ npm install fresh
```

49
node_modules/fresh/index.js generated vendored Normal file
View File

@@ -0,0 +1,49 @@
/**
* Expose `fresh()`.
*/
module.exports = fresh;
/**
* Check freshness of `req` and `res` headers.
*
* When the cache is "fresh" __true__ is returned,
* otherwise __false__ is returned to indicate that
* the cache is now stale.
*
* @param {Object} req
* @param {Object} res
* @return {Boolean}
* @api public
*/
function fresh(req, res) {
// defaults
var etagMatches = true;
var notModified = true;
// fields
var modifiedSince = req['if-modified-since'];
var noneMatch = req['if-none-match'];
var lastModified = res['last-modified'];
var etag = res['etag'];
// unconditional request
if (!modifiedSince && !noneMatch) return false;
// parse if-none-match
if (noneMatch) noneMatch = noneMatch.split(/ *, */);
// if-none-match
if (noneMatch) etagMatches = ~noneMatch.indexOf(etag) || '*' == noneMatch[0];
// if-modified-since
if (modifiedSince) {
modifiedSince = new Date(modifiedSince);
lastModified = new Date(lastModified);
notModified = lastModified <= modifiedSince;
}
return !! (etagMatches && notModified);
}

71
node_modules/fresh/package.json generated vendored Normal file
View File

@@ -0,0 +1,71 @@
{
"_args": [
[
"fresh@0.1.0",
"C:\\Users\\esanvin\\Desktop\\multi\\NodeServer\\node_modules\\express"
]
],
"_defaultsLoaded": true,
"_engineSupported": true,
"_from": "fresh@0.1.0",
"_id": "fresh@0.1.0",
"_inCache": true,
"_installable": true,
"_location": "/fresh",
"_nodeVersion": "v0.6.19",
"_npmUser": {
"email": "tj@vision-media.ca",
"name": "tjholowaychuk"
},
"_npmVersion": "1.1.24",
"_phantomChildren": {},
"_requested": {
"name": "fresh",
"raw": "fresh@0.1.0",
"rawSpec": "0.1.0",
"scope": null,
"spec": "0.1.0",
"type": "version"
},
"_requiredBy": [
"/connect",
"/connect/send",
"/express",
"/send"
],
"_resolved": "https://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz",
"_shasum": "03e4b0178424e4c2d5d19a54d8814cdc97934850",
"_shrinkwrap": null,
"_spec": "fresh@0.1.0",
"_where": "C:\\Users\\esanvin\\Desktop\\multi\\NodeServer\\node_modules\\express",
"author": {
"email": "tj@vision-media.ca",
"name": "TJ Holowaychuk",
"url": "http://tjholowaychuk.com"
},
"dependencies": {},
"description": "HTTP response freshness testing",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "03e4b0178424e4c2d5d19a54d8814cdc97934850",
"tarball": "http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz"
},
"engines": {
"node": "*"
},
"main": "index.js",
"maintainers": [
{
"email": "tj@vision-media.ca",
"name": "tjholowaychuk"
}
],
"name": "fresh",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"version": "0.1.0"
}