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

55
node_modules/object-keys/.jscs.json generated vendored Normal file
View File

@@ -0,0 +1,55 @@
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
"disallowSpaceAfterKeywords": [],
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideParentheses": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"requireSpaceAfterPrefixUnaryOperators": [],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforePostfixUnaryOperators": [],
"disallowSpaceBeforeBinaryOperators": [],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowSpaceAfterBinaryOperators": [],
"disallowImplicitTypeConversion": ["binary", "string"],
"disallowKeywords": ["with", "eval"],
"validateLineBreaks": "LF",
"requireKeywordsOnNewLine": [],
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"disallowTrailingWhitespace": true,
"excludeFiles": ["node_modules/**", "vendor/**"],
"disallowMultipleLineStrings": true,
"additionalRules": []
}

2
node_modules/object-keys/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,2 @@
test/*

18
node_modules/object-keys/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,18 @@
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.9"
- "0.8"
- "0.6"
- "0.4"
before_install:
- '[ "${TRAVIS_NODE_VERSION}" == "0.6" ] || npm install -g npm@~1.4.6'
matrix:
fast_finish: true
allow_failures:
- node_js: "0.11"
- node_js: "0.9"
- node_js: "0.6"
- node_js: "0.4"

151
node_modules/object-keys/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,151 @@
1.0.0 / 2014-08-26
=================
* v1.0.0
0.6.1 / 2014-08-25
=================
* v0.6.1
* Updating dependencies (tape, covert, is)
* Update badges in readme
* Use separate var statements
0.6.0 / 2014-04-23
=================
* v0.6.0
* Updating dependencies (tape, covert)
* Make sure boxed primitives, and arguments objects, work properly in ES3 browsers
* Improve test matrix: test all node versions, but only latest two stables are a failure
* Remove internal foreach shim.
0.5.1 / 2014-03-09
=================
* 0.5.1
* Updating dependencies (tape, covert, is)
* Removing forEach from the module (but keeping it in tests)
0.5.0 / 2014-01-30
=================
* 0.5.0
* Explicitly returning the shim, instead of returning native Object.keys when present
* Adding a changelog.
* Cleaning up IIFE wrapping
* Testing on node 0.4 through 0.11
0.4.0 / 2013-08-14
==================
* v0.4.0
* In Chrome 4-10 and Safari 4, typeof (new RegExp) === 'function'
* If it's a string, make sure to use charAt instead of brackets.
* Only use Function#call if necessary.
* Making sure the context tests actually run.
* Better function detection
* Adding the android browser
* Fixing testling files
* Updating tape
* Removing the "is" dependency.
* Making an isArguments shim.
* Adding a local forEach shim and tests.
* Updating paths.
* Moving the shim test.
* v0.3.0
0.3.0 / 2013-05-18
==================
* README tweak.
* Fixing constructor enum issue. Fixes [#5](https://github.com/ljharb/object-keys/issues/5).
* Adding a test for [#5](https://github.com/ljharb/object-keys/issues/5)
* Updating readme.
* Updating dependencies.
* Giving credit to lodash.
* Make sure that a prototype's constructor property is not enumerable. Fixes [#3](https://github.com/ljharb/object-keys/issues/3).
* Adding additional tests to handle arguments objects, and to skip "prototype" in functions. Fixes [#2](https://github.com/ljharb/object-keys/issues/2).
* Fixing a typo on this test for [#3](https://github.com/ljharb/object-keys/issues/3).
* Adding node 0.10 to travis.
* Adding an IE < 9 test per [#3](https://github.com/ljharb/object-keys/issues/3)
* Adding an iOS 5 mobile Safari test per [#2](https://github.com/ljharb/object-keys/issues/2)
* Moving "indexof" and "is" to be dev dependencies.
* Making sure the shim works with functions.
* Flattening the tests.
0.2.0 / 2013-05-10
==================
* v0.2.0
* Object.keys should work with arrays.
0.1.8 / 2013-05-10
==================
* v0.1.8
* Upgrading dependencies.
* Using a simpler check.
* Fixing a bug in hasDontEnumBug browsers.
* Using the newest tape!
* Fixing this error test.
* "undefined" is probably a reserved word in ES3.
* Better test message.
0.1.7 / 2013-04-17
==================
* Upgrading "is" once more.
* The key "null" is breaking some browsers.
0.1.6 / 2013-04-17
==================
* v0.1.6
* Upgrading "is"
0.1.5 / 2013-04-14
==================
* Bumping version.
* Adding more testling browsers.
* Updating "is"
0.1.4 / 2013-04-08
==================
* Using "is" instead of "is-extended".
0.1.3 / 2013-04-07
==================
* Using "foreach" instead of my own shim.
* Removing "tap"; I'll just wait for "tape" to fix its node 0.10 bug.
0.1.2 / 2013-04-03
==================
* Adding dependency status; moving links to an index at the bottom.
* Upgrading is-extended; version 0.1.2
* Adding an npm version badge.
0.1.1 / 2013-04-01
==================
* Adding Travis CI.
* Bumping the version.
* Adding indexOf since IE sucks.
* Adding a forEach shim since older browsers don't have Array#forEach.
* Upgrading tape - 0.3.2 uses Array#map
* Using explicit end instead of plan.
* Can't test with Array.isArray in older browsers.
* Using is-extended.
* Fixing testling files.
* JSHint/JSLint-ing.
* Removing an unused object.
* Using strict mode.
0.1.0 / 2013-03-30
==================
* Changing the exports should have meant a higher version bump.
* Oops, fixing the repo URL.
* Adding more tests.
* 0.0.2
* Merge branch 'export_one_thing'; closes [#1](https://github.com/ljharb/object-keys/issues/1)
* Move shim export to a separate file.

21
node_modules/object-keys/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (C) 2013 Jordan Harband
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.

76
node_modules/object-keys/README.md generated vendored Normal file
View File

@@ -0,0 +1,76 @@
#object-keys <sup>[![Version Badge][2]][1]</sup>
[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][13]][1]
[![browser support][9]][10]
An Object.keys shim. Invoke its "shim" method to shim Object.keys if it is unavailable.
Most common usage:
```js
var keys = Object.keys || require('object-keys');
```
## Example
```js
var keys = require('object-keys');
var assert = require('assert');
var obj = {
a: true,
b: true,
c: true
};
assert.deepEqual(keys(obj), ['a', 'b', 'c']);
```
```js
var keys = require('object-keys');
var assert = require('assert');
/* when Object.keys is not present */
delete Object.keys;
var shimmedKeys = keys.shim();
assert.equal(shimmedKeys, keys);
assert.deepEqual(Object.keys(obj), keys(obj));
```
```js
var keys = require('object-keys');
var assert = require('assert');
/* when Object.keys is present */
var shimmedKeys = keys.shim();
assert.equal(shimmedKeys, Object.keys);
assert.deepEqual(Object.keys(obj), keys(obj));
```
## Source
Implementation taken directly from [es5-shim][11], with modifications, including from [lodash][12].
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/object-keys
[2]: http://vb.teelaun.ch/ljharb/object-keys.svg
[3]: https://travis-ci.org/ljharb/object-keys.svg
[4]: https://travis-ci.org/ljharb/object-keys
[5]: https://david-dm.org/ljharb/object-keys.svg
[6]: https://david-dm.org/ljharb/object-keys
[7]: https://david-dm.org/ljharb/object-keys/dev-status.svg
[8]: https://david-dm.org/ljharb/object-keys#info=devDependencies
[9]: https://ci.testling.com/ljharb/object-keys.png
[10]: https://ci.testling.com/ljharb/object-keys
[11]: https://github.com/es-shims/es5-shim/blob/master/es5-shim.js#L542-589
[12]: https://github.com/bestiejs/lodash
[13]: https://nodei.co/npm/object-keys.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/object-keys.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/object-keys.svg
[downloads-url]: http://npm-stat.com/charts.html?package=object-keys

70
node_modules/object-keys/index.js generated vendored Normal file
View File

@@ -0,0 +1,70 @@
"use strict";
// modified from https://github.com/es-shims/es5-shim
var has = Object.prototype.hasOwnProperty;
var toString = Object.prototype.toString;
var isArgs = require('./isArguments');
var hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString');
var hasProtoEnumBug = (function () {}).propertyIsEnumerable('prototype');
var dontEnums = [
"toString",
"toLocaleString",
"valueOf",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"constructor"
];
var keysShim = function keys(object) {
var isObject = object !== null && typeof object === 'object';
var isFunction = toString.call(object) === '[object Function]';
var isArguments = isArgs(object);
var isString = isObject && toString.call(object) === '[object String]';
var theKeys = [];
if (!isObject && !isFunction && !isArguments) {
throw new TypeError("Object.keys called on a non-object");
}
var skipProto = hasProtoEnumBug && isFunction;
if (isString && object.length > 0 && !has.call(object, 0)) {
for (var i = 0; i < object.length; ++i) {
theKeys.push(String(i));
}
}
if (isArguments && object.length > 0) {
for (var j = 0; j < object.length; ++j) {
theKeys.push(String(j));
}
} else {
for (var name in object) {
if (!(skipProto && name === 'prototype') && has.call(object, name)) {
theKeys.push(String(name));
}
}
}
if (hasDontEnumBug) {
var ctor = object.constructor;
var skipConstructor = ctor && ctor.prototype === object;
for (var j = 0; j < dontEnums.length; ++j) {
if (!(skipConstructor && dontEnums[j] === 'constructor') && has.call(object, dontEnums[j])) {
theKeys.push(dontEnums[j]);
}
}
}
return theKeys;
};
keysShim.shim = function shimObjectKeys() {
if (!Object.keys) {
Object.keys = keysShim;
}
return Object.keys || keysShim;
};
module.exports = keysShim;

18
node_modules/object-keys/isArguments.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
"use strict";
var toString = Object.prototype.toString;
module.exports = function isArguments(value) {
var str = toString.call(value);
var isArguments = str === '[object Arguments]';
if (!isArguments) {
isArguments = str !== '[object Array]'
&& value !== null
&& typeof value === 'object'
&& typeof value.length === 'number'
&& value.length >= 0
&& toString.call(value.callee) === '[object Function]';
}
return isArguments;
};

107
node_modules/object-keys/package.json generated vendored Normal file
View File

@@ -0,0 +1,107 @@
{
"_args": [
[
"object-keys@1.0.1",
"C:\\Users\\esanvin\\Desktop\\multi\\NodeServer\\node_modules\\socket.io-adapter"
]
],
"_from": "object-keys@1.0.1",
"_id": "object-keys@1.0.1",
"_inCache": true,
"_installable": true,
"_location": "/object-keys",
"_npmUser": {
"email": "ljharb@gmail.com",
"name": "ljharb"
},
"_npmVersion": "1.4.23",
"_phantomChildren": {},
"_requested": {
"name": "object-keys",
"raw": "object-keys@1.0.1",
"rawSpec": "1.0.1",
"scope": null,
"spec": "1.0.1",
"type": "version"
},
"_requiredBy": [
"/socket.io-adapter"
],
"_resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.1.tgz",
"_shasum": "55802e85842c26bbb5ebbc157abf3be302569ba8",
"_shrinkwrap": null,
"_spec": "object-keys@1.0.1",
"_where": "C:\\Users\\esanvin\\Desktop\\multi\\NodeServer\\node_modules\\socket.io-adapter",
"author": {
"name": "Jordan Harband"
},
"bugs": {
"url": "https://github.com/ljharb/object-keys/issues"
},
"dependencies": {},
"description": "An Object.keys replacement, in case Object.keys is not available. From https://github.com/es-shims/es5-shim",
"devDependencies": {
"covert": "~1.0.0",
"foreach": "~2.0.4",
"indexof": "~0.0.1",
"is": "~2.0.1",
"jscs": "~1.6.1",
"tape": "~2.14.0"
},
"directories": {},
"dist": {
"shasum": "55802e85842c26bbb5ebbc157abf3be302569ba8",
"tarball": "http://registry.npmjs.org/object-keys/-/object-keys-1.0.1.tgz"
},
"engines": {
"node": ">= 0.4"
},
"gitHead": "2ecbaaa0405c2f03e8b669ccf4b70376318a8f8b",
"homepage": "https://github.com/ljharb/object-keys",
"keywords": [
"Object.keys",
"keys",
"ES5",
"shim"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"email": "ljharb@gmail.com",
"name": "ljharb"
}
],
"name": "object-keys",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/ljharb/object-keys.git"
},
"scripts": {
"coverage": "covert test/*.js",
"coverage-quiet": "covert test/*.js --quiet",
"lint": "jscs test/*.js *.js",
"test": "npm run lint && node test/index.js"
},
"testling": {
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
],
"files": "test/index.js"
},
"version": "1.0.1"
}