├── .gitignore
├── LICENSE
├── README.md
├── demo.gif
├── posenet
├── .DS_Store
├── .gitignore
├── .npmignore
├── README.md
├── cloudbuild.yml
├── demos
│ ├── .babelrc
│ ├── .gitignore
│ ├── README.md
│ ├── build.sh
│ ├── camera.gif
│ ├── camera.html
│ ├── camera.js
│ ├── coco.gif
│ ├── coco.html
│ ├── coco.js
│ ├── demo_util.js
│ ├── index.html
│ ├── package.json
│ ├── yalc.lock
│ └── yarn.lock
├── package.json
├── quickstart.sh
├── rollup.config.js
├── run_tests.ts
├── src
│ ├── base_model.ts
│ ├── checkpoints.ts
│ ├── index.ts
│ ├── keypoints.ts
│ ├── mobilenet.ts
│ ├── model_weights.ts
│ ├── multi_pose
│ │ ├── build_part_with_score_queue.ts
│ │ ├── decode_multiple_poses.ts
│ │ ├── decode_pose.ts
│ │ ├── max_heap.ts
│ │ └── util.ts
│ ├── posenet_model.ts
│ ├── posenet_test.ts
│ ├── resnet.ts
│ ├── single_pose
│ │ ├── argmax2d.ts
│ │ ├── argmax2d_test.ts
│ │ ├── decode_single_pose.ts
│ │ └── util.ts
│ ├── types.ts
│ ├── util.ts
│ ├── util_test.ts
│ ├── version.ts
│ └── version_test.ts
├── tsconfig.json
├── tslint.json
└── yarn.lock
└── server
├── .DS_Store
├── index.html
├── js
├── Detector.js
├── KeyboardState.js
├── OrbitControls.js
├── Stats.js
├── THREEx.FullScreen.js
├── THREEx.WindowResize.js
└── Three.js
├── node_modules
├── .bin
│ ├── mime
│ └── static
├── accepts
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── after
│ ├── .npmignore
│ ├── .travis.yml
│ ├── LICENCE
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── after-test.js
├── array-flatten
│ ├── LICENSE
│ ├── README.md
│ ├── array-flatten.js
│ └── package.json
├── arraybuffer.slice
│ ├── .npmignore
│ ├── Makefile
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── slice-buffer.js
├── async-limiter
│ ├── .eslintignore
│ ├── .nycrc
│ ├── .travis.yml
│ ├── LICENSE
│ ├── index.js
│ ├── package.json
│ └── readme.md
├── backo2
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── component.json
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── index.js
├── base64-arraybuffer
│ ├── .npmignore
│ ├── .travis.yml
│ ├── LICENSE-MIT
│ ├── README.md
│ ├── lib
│ │ └── base64-arraybuffer.js
│ └── package.json
├── base64id
│ ├── .npmignore
│ ├── LICENSE
│ ├── README.md
│ ├── lib
│ │ └── base64id.js
│ └── package.json
├── better-assert
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── example.js
│ ├── index.js
│ └── package.json
├── blob
│ ├── .npmignore
│ ├── .zuul.yml
│ ├── Makefile
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── index.js
├── body-parser
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── lib
│ │ ├── read.js
│ │ └── types
│ │ │ ├── json.js
│ │ │ ├── raw.js
│ │ │ ├── text.js
│ │ │ └── urlencoded.js
│ └── package.json
├── bytes
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ └── package.json
├── callsite
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── index.js
│ └── package.json
├── colors
│ ├── LICENSE
│ ├── README.md
│ ├── examples
│ │ ├── normal-usage.js
│ │ └── safe-string.js
│ ├── index.d.ts
│ ├── lib
│ │ ├── colors.js
│ │ ├── custom
│ │ │ ├── trap.js
│ │ │ └── zalgo.js
│ │ ├── extendStringPrototype.js
│ │ ├── index.js
│ │ ├── maps
│ │ │ ├── america.js
│ │ │ ├── rainbow.js
│ │ │ ├── random.js
│ │ │ └── zebra.js
│ │ ├── styles.js
│ │ └── system
│ │ │ ├── has-flag.js
│ │ │ └── supports-colors.js
│ ├── package.json
│ ├── safe.d.ts
│ ├── safe.js
│ └── themes
│ │ └── generic-logging.js
├── component-bind
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── component.json
│ ├── index.js
│ └── package.json
├── component-emitter
│ ├── .npmignore
│ ├── .travis.yml
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── bower.json
│ ├── component.json
│ ├── index.js
│ └── package.json
├── component-inherit
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── component.json
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── inherit.js
├── content-disposition
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── content-type
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── cookie-signature
│ ├── .npmignore
│ ├── History.md
│ ├── Readme.md
│ ├── index.js
│ └── package.json
├── cookie
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── debug
│ ├── .coveralls.yml
│ ├── .eslintrc
│ ├── .npmignore
│ ├── .travis.yml
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── component.json
│ ├── karma.conf.js
│ ├── node.js
│ ├── package.json
│ └── src
│ │ ├── browser.js
│ │ ├── debug.js
│ │ ├── index.js
│ │ ├── inspector-log.js
│ │ └── node.js
├── depd
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ ├── lib
│ │ ├── browser
│ │ │ └── index.js
│ │ └── compat
│ │ │ ├── callsite-tostring.js
│ │ │ ├── event-listener-count.js
│ │ │ └── index.js
│ └── package.json
├── destroy
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── ee-first
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── encodeurl
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── engine.io-client
│ ├── History.md
│ ├── LICENSE
│ ├── README.md
│ ├── engine.io.js
│ ├── index.js
│ ├── lib
│ │ ├── index.js
│ │ ├── socket.js
│ │ ├── transport.js
│ │ ├── transports
│ │ │ ├── index.js
│ │ │ ├── polling-jsonp.js
│ │ │ ├── polling-xhr.js
│ │ │ ├── polling.js
│ │ │ └── websocket.js
│ │ └── xmlhttprequest.js
│ ├── node_modules
│ │ ├── component-emitter
│ │ │ ├── History.md
│ │ │ ├── LICENSE
│ │ │ ├── Readme.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── debug
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── bower.json
│ │ │ ├── browser.js
│ │ │ ├── component.json
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── node.js
│ │ │ └── package.json
│ │ ├── ms
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ └── ws
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── lib
│ │ │ ├── .DS_Store
│ │ │ ├── BufferPool.js
│ │ │ ├── BufferUtil.fallback.js
│ │ │ ├── BufferUtil.js
│ │ │ ├── ErrorCodes.js
│ │ │ ├── Extensions.js
│ │ │ ├── PerMessageDeflate.js
│ │ │ ├── Receiver.hixie.js
│ │ │ ├── Receiver.js
│ │ │ ├── Sender.hixie.js
│ │ │ ├── Sender.js
│ │ │ ├── Validation.fallback.js
│ │ │ ├── Validation.js
│ │ │ ├── WebSocket.js
│ │ │ └── WebSocketServer.js
│ │ │ └── package.json
│ └── package.json
├── engine.io-parser
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ ├── lib
│ │ ├── browser.js
│ │ ├── index.js
│ │ └── keys.js
│ └── package.json
├── engine.io
│ ├── History.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── lib
│ │ ├── engine.io.js
│ │ ├── server.js
│ │ ├── socket.js
│ │ ├── transport.js
│ │ └── transports
│ │ │ ├── index.js
│ │ │ ├── polling-jsonp.js
│ │ │ ├── polling-xhr.js
│ │ │ ├── polling.js
│ │ │ └── websocket.js
│ ├── node_modules
│ │ ├── accepts
│ │ │ ├── HISTORY.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── cookie
│ │ │ ├── HISTORY.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── debug
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── bower.json
│ │ │ ├── browser.js
│ │ │ ├── component.json
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── node.js
│ │ │ └── package.json
│ │ ├── ms
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── negotiator
│ │ │ ├── HISTORY.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── lib
│ │ │ │ ├── charset.js
│ │ │ │ ├── encoding.js
│ │ │ │ ├── language.js
│ │ │ │ └── mediaType.js
│ │ │ └── package.json
│ │ └── ws
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── lib
│ │ │ ├── .DS_Store
│ │ │ ├── BufferPool.js
│ │ │ ├── BufferUtil.fallback.js
│ │ │ ├── BufferUtil.js
│ │ │ ├── ErrorCodes.js
│ │ │ ├── Extensions.js
│ │ │ ├── PerMessageDeflate.js
│ │ │ ├── Receiver.hixie.js
│ │ │ ├── Receiver.js
│ │ │ ├── Sender.hixie.js
│ │ │ ├── Sender.js
│ │ │ ├── Validation.fallback.js
│ │ │ ├── Validation.js
│ │ │ ├── WebSocket.js
│ │ │ └── WebSocketServer.js
│ │ │ └── package.json
│ └── package.json
├── escape-html
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ └── package.json
├── etag
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── express
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ ├── lib
│ │ ├── application.js
│ │ ├── express.js
│ │ ├── middleware
│ │ │ ├── init.js
│ │ │ └── query.js
│ │ ├── request.js
│ │ ├── response.js
│ │ ├── router
│ │ │ ├── index.js
│ │ │ ├── layer.js
│ │ │ └── route.js
│ │ ├── utils.js
│ │ └── view.js
│ └── package.json
├── finalhandler
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── forwarded
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── fresh
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── fs
│ ├── README.md
│ └── package.json
├── has-binary
│ ├── .npmignore
│ ├── History.md
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test.js
├── has-cors
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── component.json
│ ├── index.js
│ ├── package.json
│ └── test.js
├── http-errors
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── http
│ ├── README.md
│ └── package.json
├── iconv-lite
│ ├── Changelog.md
│ ├── LICENSE
│ ├── README.md
│ ├── encodings
│ │ ├── dbcs-codec.js
│ │ ├── dbcs-data.js
│ │ ├── index.js
│ │ ├── internal.js
│ │ ├── sbcs-codec.js
│ │ ├── sbcs-data-generated.js
│ │ ├── sbcs-data.js
│ │ ├── tables
│ │ │ ├── big5-added.json
│ │ │ ├── cp936.json
│ │ │ ├── cp949.json
│ │ │ ├── cp950.json
│ │ │ ├── eucjp.json
│ │ │ ├── gb18030-ranges.json
│ │ │ ├── gbk-added.json
│ │ │ └── shiftjis.json
│ │ ├── utf16.js
│ │ └── utf7.js
│ ├── lib
│ │ ├── bom-handling.js
│ │ ├── extend-node.js
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── streams.js
│ └── package.json
├── indexof
│ ├── .npmignore
│ ├── Makefile
│ ├── Readme.md
│ ├── component.json
│ ├── index.js
│ └── package.json
├── inherits
│ ├── LICENSE
│ ├── README.md
│ ├── inherits.js
│ ├── inherits_browser.js
│ └── package.json
├── ipaddr.js
│ ├── LICENSE
│ ├── README.md
│ ├── ipaddr.min.js
│ ├── lib
│ │ ├── ipaddr.js
│ │ └── ipaddr.js.d.ts
│ └── package.json
├── isarray
│ ├── README.md
│ ├── build
│ │ └── build.js
│ ├── component.json
│ ├── index.js
│ └── package.json
├── json3
│ ├── LICENSE
│ ├── README.md
│ ├── lib
│ │ ├── json3.js
│ │ └── json3.min.js
│ └── package.json
├── media-typer
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── merge-descriptors
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── methods
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── mime-db
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── db.json
│ ├── index.js
│ └── package.json
├── mime-types
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── mime
│ ├── .npmignore
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── cli.js
│ ├── mime.js
│ ├── package.json
│ ├── src
│ │ ├── build.js
│ │ └── test.js
│ └── types.json
├── minimist
│ ├── .travis.yml
│ ├── LICENSE
│ ├── example
│ │ └── parse.js
│ ├── index.js
│ ├── package.json
│ ├── readme.markdown
│ └── test
│ │ ├── bool.js
│ │ ├── dash.js
│ │ ├── default_bool.js
│ │ ├── dotted.js
│ │ ├── long.js
│ │ ├── num.js
│ │ ├── parse.js
│ │ ├── parse_modified.js
│ │ ├── short.js
│ │ └── whitespace.js
├── ms
│ ├── index.js
│ ├── license.md
│ ├── package.json
│ └── readme.md
├── negotiator
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── lib
│ │ ├── charset.js
│ │ ├── encoding.js
│ │ ├── language.js
│ │ └── mediaType.js
│ └── package.json
├── node-static
│ ├── LICENSE
│ ├── README.md
│ ├── benchmark
│ │ └── node-static-0.3.0.txt
│ ├── bin
│ │ └── cli.js
│ ├── examples
│ │ └── file-server.js
│ ├── lib
│ │ ├── node-static.js
│ │ └── node-static
│ │ │ └── util.js
│ ├── package.json
│ └── test
│ │ ├── fixtures
│ │ ├── empty.css
│ │ ├── hello.txt
│ │ ├── index.html
│ │ └── there
│ │ │ └── index.html
│ │ └── integration
│ │ └── node-static-test.js
├── object-assign
│ ├── index.js
│ ├── license
│ ├── package.json
│ └── readme.md
├── object-component
│ ├── .npmignore
│ ├── History.md
│ ├── Makefile
│ ├── Readme.md
│ ├── component.json
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── object.js
├── on-finished
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── optimist
│ ├── .travis.yml
│ ├── LICENSE
│ ├── example
│ │ ├── bool.js
│ │ ├── boolean_double.js
│ │ ├── boolean_single.js
│ │ ├── default_hash.js
│ │ ├── default_singles.js
│ │ ├── divide.js
│ │ ├── line_count.js
│ │ ├── line_count_options.js
│ │ ├── line_count_wrap.js
│ │ ├── nonopt.js
│ │ ├── reflect.js
│ │ ├── short.js
│ │ ├── string.js
│ │ ├── usage-options.js
│ │ └── xup.js
│ ├── index.js
│ ├── package.json
│ ├── readme.markdown
│ └── test
│ │ ├── _.js
│ │ ├── _
│ │ ├── argv.js
│ │ └── bin.js
│ │ ├── dash.js
│ │ ├── parse.js
│ │ ├── parse_modified.js
│ │ ├── short.js
│ │ ├── usage.js
│ │ └── whitespace.js
├── options
│ ├── .npmignore
│ ├── Makefile
│ ├── README.md
│ ├── lib
│ │ └── options.js
│ └── package.json
├── parsejson
│ ├── .npmignore
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test.js
├── parseqs
│ ├── .npmignore
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test.js
├── parseuri
│ ├── .npmignore
│ ├── History.md
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test.js
├── parseurl
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── path-to-regexp
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ └── package.json
├── proxy-addr
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── qs
│ ├── .editorconfig
│ ├── .eslintignore
│ ├── .eslintrc
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── dist
│ │ └── qs.js
│ ├── lib
│ │ ├── formats.js
│ │ ├── index.js
│ │ ├── parse.js
│ │ ├── stringify.js
│ │ └── utils.js
│ ├── package.json
│ └── test
│ │ ├── .eslintrc
│ │ ├── index.js
│ │ ├── parse.js
│ │ ├── stringify.js
│ │ └── utils.js
├── range-parser
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── raw-body
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.d.ts
│ ├── index.js
│ └── package.json
├── safe-buffer
│ ├── LICENSE
│ ├── README.md
│ ├── index.d.ts
│ ├── index.js
│ └── package.json
├── safer-buffer
│ ├── LICENSE
│ ├── Porting-Buffer.md
│ ├── Readme.md
│ ├── dangerous.js
│ ├── package.json
│ ├── safer.js
│ └── tests.js
├── send
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── node_modules
│ │ └── ms
│ │ │ ├── index.js
│ │ │ ├── license.md
│ │ │ ├── package.json
│ │ │ └── readme.md
│ └── package.json
├── serve-static
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── setprototypeof
│ ├── LICENSE
│ ├── README.md
│ ├── index.d.ts
│ ├── index.js
│ ├── package.json
│ └── test
│ │ └── index.js
├── socket.io-adapter
│ ├── .npmignore
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── index.js
│ ├── node_modules
│ │ ├── debug
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── bower.json
│ │ │ ├── browser.js
│ │ │ ├── component.json
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── node.js
│ │ │ └── package.json
│ │ └── ms
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ └── package.json
├── socket.io-client
│ ├── History.md
│ ├── LICENSE
│ ├── README.md
│ ├── dist
│ │ ├── socket.io.js
│ │ ├── socket.io.js.map
│ │ ├── socket.io.min.js
│ │ ├── socket.io.slim.js
│ │ ├── socket.io.slim.js.map
│ │ └── socket.io.slim.min.js
│ ├── lib
│ │ ├── index.js
│ │ ├── manager.js
│ │ ├── on.js
│ │ ├── socket.js
│ │ └── url.js
│ ├── node_modules
│ │ ├── component-emitter
│ │ │ ├── History.md
│ │ │ ├── LICENSE
│ │ │ ├── Readme.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── debug
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── bower.json
│ │ │ ├── browser.js
│ │ │ ├── component.json
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── node.js
│ │ │ └── package.json
│ │ └── ms
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ └── package.json
├── socket.io-parser
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── binary.js
│ ├── index.js
│ ├── is-buffer.js
│ ├── node_modules
│ │ ├── debug
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── History.md
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── bower.json
│ │ │ ├── browser.js
│ │ │ ├── component.json
│ │ │ ├── debug.js
│ │ │ ├── node.js
│ │ │ └── package.json
│ │ └── ms
│ │ │ ├── .npmignore
│ │ │ ├── History.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ └── package.json
├── socket.io
│ ├── History.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── lib
│ │ ├── client.js
│ │ ├── index.js
│ │ ├── namespace.js
│ │ └── socket.js
│ ├── node_modules
│ │ ├── debug
│ │ │ ├── .jshintrc
│ │ │ ├── .npmignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── bower.json
│ │ │ ├── browser.js
│ │ │ ├── component.json
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── node.js
│ │ │ └── package.json
│ │ └── ms
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ └── package.json
│ └── package.json
├── socketio
│ ├── demo.js
│ ├── demo.js~
│ ├── index.js
│ ├── index.js~
│ └── package.json
├── statuses
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── codes.json
│ ├── index.js
│ └── package.json
├── to-array
│ ├── .npmignore
│ ├── LICENCE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── toidentifier
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── type-is
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── ultron
│ ├── .npmignore
│ ├── .travis.yml
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── package.json
│ └── test.js
├── unpipe
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── utils-merge
│ ├── .npmignore
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── vary
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── wordwrap
│ ├── LICENSE
│ ├── README.markdown
│ ├── example
│ │ ├── center.js
│ │ └── meat.js
│ ├── index.js
│ ├── package.json
│ └── test
│ │ ├── break.js
│ │ ├── idleness.txt
│ │ └── wrap.js
├── ws
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ ├── lib
│ │ ├── buffer-util.js
│ │ ├── constants.js
│ │ ├── event-target.js
│ │ ├── extension.js
│ │ ├── permessage-deflate.js
│ │ ├── receiver.js
│ │ ├── sender.js
│ │ ├── validation.js
│ │ ├── websocket-server.js
│ │ └── websocket.js
│ └── package.json
├── wtf-8
│ ├── LICENSE-MIT.txt
│ ├── README.md
│ ├── package.json
│ └── wtf-8.js
├── xmlhttprequest-ssl
│ ├── LICENSE
│ ├── README.md
│ ├── autotest.watchr
│ ├── example
│ │ └── demo.js
│ ├── lib
│ │ └── XMLHttpRequest.js
│ ├── package.json
│ └── tests
│ │ ├── test-constants.js
│ │ ├── test-events.js
│ │ ├── test-exceptions.js
│ │ ├── test-headers.js
│ │ ├── test-redirect-302.js
│ │ ├── test-redirect-303.js
│ │ ├── test-redirect-307.js
│ │ ├── test-request-methods.js
│ │ ├── test-request-protocols.js
│ │ └── testdata.txt
└── yeast
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
├── old_server.js
├── package-lock.json
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | server/node_modules
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Alexander Ionkov
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Controlling Three.js 3D model over websockets with Tensorflow.js Posenet and SocketIO
2 |
3 | 
4 |
5 | It uses SocketIO for websocket communication on port 3030.
6 |
7 | There are two clients: posnet and http://localhost:3030
8 | that connect to the websocket server at ws://localhost:3030
9 |
10 | You need yarn and npm for this to work.
11 |
12 | To start the server: \
13 | `cd server/` \
14 | `npm start`
15 |
16 | To start the client:
17 | #### Quickstart
18 | `cd posenet` \
19 | `chmod a+x quickstart.sh` \
20 | `./quickstart.sh`
21 | #### Normal
22 | `cd posenet` \
23 | `yarn` \
24 | `yarn build && yarn yalc publish` \
25 | `cd demos` \
26 | `yarn` \
27 | `yarn yalc link @tensorflow-models/posenet` \
28 | `yarn watch`
29 |
30 | To update the client: \
31 | `cd posenet/demos/` \
32 | `chmod a+x build.sh` \
33 | `./build.sh`
34 |
35 | (On MacOS, make sure in Xcode, Preferences -> Locations, that Command Line Tools is valid)
36 |
--------------------------------------------------------------------------------
/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/demo.gif
--------------------------------------------------------------------------------
/posenet/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/posenet/.DS_Store
--------------------------------------------------------------------------------
/posenet/.gitignore:
--------------------------------------------------------------------------------
1 | .rpt2_cache/
2 | node_modules
3 | dist
4 |
--------------------------------------------------------------------------------
/posenet/.npmignore:
--------------------------------------------------------------------------------
1 | .yalc/
2 | .vscode/
3 | .rpt2_cache/
4 | demos/
5 | scripts/
6 | src/
7 | coverage/
8 | node_modules/
9 | karma.conf.js
10 | *.tgz
11 | dist/**/*.js.map
12 | .travis.yml
13 | .npmignore
14 | tslint.json
15 | yarn.lock
16 | yalc.lock
17 |
--------------------------------------------------------------------------------
/posenet/cloudbuild.yml:
--------------------------------------------------------------------------------
1 | steps:
2 |
3 | # Install common dependencies.
4 | - name: 'node:10'
5 | id: 'yarn-common'
6 | entrypoint: 'yarn'
7 | args: ['install']
8 |
9 | # Install tfjs dependencies.
10 | - name: 'node:10'
11 | dir: 'posenet'
12 | entrypoint: 'yarn'
13 | id: 'yarn'
14 | args: ['install']
15 | waitFor: ['yarn-common']
16 |
17 | # Build.
18 | - name: 'node:10'
19 | dir: 'posenet'
20 | entrypoint: 'yarn'
21 | id: 'build'
22 | args: ['build']
23 | waitFor: ['yarn']
24 |
25 | # Run tests.
26 | - name: 'node:10'
27 | dir: 'posenet'
28 | entrypoint: 'yarn'
29 | id: 'test'
30 | args: ['test']
31 | waitFor: ['yarn']
32 |
33 | # General configuration
34 | timeout: 1800s
35 | logsBucket: 'gs://tfjs-build-logs'
36 | substitutions:
37 | _NIGHTLY: ''
38 | options:
39 | logStreamingOption: 'STREAM_ON'
40 | substitution_option: 'ALLOW_LOOSE'
41 |
--------------------------------------------------------------------------------
/posenet/demos/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | [
4 | "env",
5 | {
6 | "esmodules": false,
7 | "targets": {
8 | "browsers": [
9 | "> 3%"
10 | ]
11 | }
12 | }
13 | ]
14 | ],
15 | "plugins": [
16 | ["transform-runtime", {"polyfill": false}]
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/posenet/demos/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | .cache
4 | .yalc
5 |
--------------------------------------------------------------------------------
/posenet/demos/build.sh:
--------------------------------------------------------------------------------
1 | yarn yalc link @tensorflow-models/posenet
2 | yarn watch
3 |
--------------------------------------------------------------------------------
/posenet/demos/camera.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/posenet/demos/camera.gif
--------------------------------------------------------------------------------
/posenet/demos/coco.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/posenet/demos/coco.gif
--------------------------------------------------------------------------------
/posenet/demos/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PoseNet Demos
5 |
6 |
7 | PoseNet Demos
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/posenet/demos/yalc.lock:
--------------------------------------------------------------------------------
1 | {
2 | "version": "v1",
3 | "packages": {
4 | "@tensorflow-models/posenet": {
5 | "signature": "6625c000699566db9b41e87bfc02ee4c"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/posenet/quickstart.sh:
--------------------------------------------------------------------------------
1 | yarn
2 | yarn upgrade
3 | yarn build && yarn yalc publish
4 | cd demos/
5 | yarn
6 | yarn upgrade
7 | yarn yalc link @tensorflow-models/posenet
8 | yarn watch
9 |
--------------------------------------------------------------------------------
/posenet/run_tests.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @license
3 | * Copyright 2019 Google LLC. All Rights Reserved.
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | * =============================================================================
16 | */
17 |
18 | import * as jasmine_util from '@tensorflow/tfjs-core/dist/jasmine_util';
19 | import {runTests} from '../test_util';
20 |
21 | runTests(jasmine_util);
22 |
--------------------------------------------------------------------------------
/posenet/src/version.ts:
--------------------------------------------------------------------------------
1 | /** @license See the LICENSE file. */
2 |
3 | // This code is auto-generated, do not modify this file!
4 | const version = '2.2.1';
5 | export {version};
6 |
--------------------------------------------------------------------------------
/posenet/src/version_test.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @license
3 | * Copyright 2019 Google LLC. All Rights Reserved.
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | * =============================================================================
16 | */
17 |
18 | import {version} from './index';
19 |
20 | describe('version', () => {
21 | it('version matches package.json', () => {
22 | // tslint:disable-next-line:no-require-imports
23 | const expected = require('../package.json').version;
24 | expect(version).toBe(expected);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/posenet/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "moduleResolution": "node",
5 | "noImplicitAny": true,
6 | "sourceMap": true,
7 | "removeComments": true,
8 | "preserveConstEnums": true,
9 | "declaration": true,
10 | "target": "es5",
11 | "lib": ["es2015", "dom"],
12 | "outDir": "./dist",
13 | "noUnusedLocals": true,
14 | "noImplicitReturns": true,
15 | "noImplicitThis": true,
16 | "alwaysStrict": true,
17 | "noUnusedParameters": false,
18 | "pretty": true,
19 | "noFallthroughCasesInSwitch": true,
20 | "allowUnreachableCode": false,
21 | "experimentalDecorators": true
22 | },
23 | "include": [
24 | "src/"
25 | ],
26 | "exclude": [
27 | "node_modules/",
28 | "dist/"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/posenet/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tslint.json"
3 | }
4 |
--------------------------------------------------------------------------------
/server/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/.DS_Store
--------------------------------------------------------------------------------
/server/node_modules/.bin/mime:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mime = require('./mime.js');
4 | var file = process.argv[2];
5 | var type = mime.lookup(file);
6 |
7 | process.stdout.write(type + '\n');
8 |
9 |
--------------------------------------------------------------------------------
/server/node_modules/after/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .monitor
3 |
--------------------------------------------------------------------------------
/server/node_modules/after/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 | - 0.9
6 | - 0.10
7 | - 0.12
8 | - 4.2.4
9 | - 5.4.1
10 | - iojs-1
11 | - iojs-2
12 | - iojs-3
13 |
--------------------------------------------------------------------------------
/server/node_modules/after/LICENCE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 Raynos.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
--------------------------------------------------------------------------------
/server/node_modules/after/index.js:
--------------------------------------------------------------------------------
1 | module.exports = after
2 |
3 | function after(count, callback, err_cb) {
4 | var bail = false
5 | err_cb = err_cb || noop
6 | proxy.count = count
7 |
8 | return (count === 0) ? callback() : proxy
9 |
10 | function proxy(err, result) {
11 | if (proxy.count <= 0) {
12 | throw new Error('after called too many times')
13 | }
14 | --proxy.count
15 |
16 | // after first error, rest are passed to err_cb
17 | if (err) {
18 | bail = true
19 | callback(err)
20 | // future error callbacks will go to error handler
21 | callback = err_cb
22 | } else if (proxy.count === 0 && !bail) {
23 | callback(null, result)
24 | }
25 | }
26 | }
27 |
28 | function noop() {}
29 |
--------------------------------------------------------------------------------
/server/node_modules/array-flatten/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/arraybuffer.slice/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | lcov.info
3 | *.seed
4 | *.log
5 | *.csv
6 | *.dat
7 | *.out
8 | *.pid
9 | *.gz
10 |
11 | pids
12 | logs
13 | results
14 | build
15 | .grunt
16 |
17 | node_modules
18 |
--------------------------------------------------------------------------------
/server/node_modules/arraybuffer.slice/Makefile:
--------------------------------------------------------------------------------
1 |
2 | REPORTER = dot
3 |
4 | test:
5 | @./node_modules/.bin/mocha \
6 | --reporter $(REPORTER)
7 |
8 | .PHONY: test
9 |
--------------------------------------------------------------------------------
/server/node_modules/arraybuffer.slice/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * An abstraction for slicing an arraybuffer even when
3 | * ArrayBuffer.prototype.slice is not supported
4 | *
5 | * @api public
6 | */
7 |
8 | module.exports = function(arraybuffer, start, end) {
9 | var bytes = arraybuffer.byteLength;
10 | start = start || 0;
11 | end = end || bytes;
12 |
13 | if (arraybuffer.slice) { return arraybuffer.slice(start, end); }
14 |
15 | if (start < 0) { start += bytes; }
16 | if (end < 0) { end += bytes; }
17 | if (end > bytes) { end = bytes; }
18 |
19 | if (start >= bytes || start >= end || bytes === 0) {
20 | return new ArrayBuffer(0);
21 | }
22 |
23 | var abv = new Uint8Array(arraybuffer);
24 | var result = new Uint8Array(end - start);
25 | for (var i = start, ii = 0; i < end; i++, ii++) {
26 | result[ii] = abv[i];
27 | }
28 | return result.buffer;
29 | };
30 |
--------------------------------------------------------------------------------
/server/node_modules/async-limiter/.eslintignore:
--------------------------------------------------------------------------------
1 | coverage
2 | .nyc_output
--------------------------------------------------------------------------------
/server/node_modules/async-limiter/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "check-coverage": false,
3 | "lines": 99,
4 | "statements": 99,
5 | "functions": 99,
6 | "branches": 99,
7 | "include": [
8 | "index.js"
9 | ]
10 | }
--------------------------------------------------------------------------------
/server/node_modules/async-limiter/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "6"
4 | - "8"
5 | - "10"
6 | - "node"
7 | script: npm run travis
8 | cache:
9 | yarn: true
10 |
--------------------------------------------------------------------------------
/server/node_modules/async-limiter/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | Copyright (c) 2017 Samuel Reed
3 |
4 | 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:
5 |
6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 |
8 | 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.
9 |
--------------------------------------------------------------------------------
/server/node_modules/backo2/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/server/node_modules/backo2/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.1 / 2014-02-17
3 | ==================
4 |
5 | * go away decimal point
6 | * history
7 |
8 | 1.0.0 / 2014-02-17
9 | ==================
10 |
11 | * add jitter option
12 | * Initial commit
13 |
--------------------------------------------------------------------------------
/server/node_modules/backo2/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should \
5 | --reporter dot \
6 | --bail
7 |
8 | .PHONY: test
--------------------------------------------------------------------------------
/server/node_modules/backo2/Readme.md:
--------------------------------------------------------------------------------
1 | # backo
2 |
3 | Simple exponential backoff because the others seem to have weird abstractions.
4 |
5 | ## Installation
6 |
7 | ```
8 | $ npm install backo
9 | ```
10 |
11 | ## Options
12 |
13 | - `min` initial timeout in milliseconds [100]
14 | - `max` max timeout [10000]
15 | - `jitter` [0]
16 | - `factor` [2]
17 |
18 | ## Example
19 |
20 | ```js
21 | var Backoff = require('backo');
22 | var backoff = new Backoff({ min: 100, max: 20000 });
23 |
24 | setTimeout(function(){
25 | something.reconnect();
26 | }, backoff.duration());
27 |
28 | // later when something works
29 | backoff.reset()
30 | ```
31 |
32 | # License
33 |
34 | MIT
35 |
--------------------------------------------------------------------------------
/server/node_modules/backo2/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backo",
3 | "repo": "segmentio/backo",
4 | "dependencies": {},
5 | "version": "1.0.1",
6 | "description": "simple backoff without the weird abstractions",
7 | "keywords": ["backoff"],
8 | "license": "MIT",
9 | "scripts": ["index.js"],
10 | "main": "index.js"
11 | }
12 |
--------------------------------------------------------------------------------
/server/node_modules/backo2/test/index.js:
--------------------------------------------------------------------------------
1 |
2 | var Backoff = require('..');
3 | var assert = require('assert');
4 |
5 | describe('.duration()', function(){
6 | it('should increase the backoff', function(){
7 | var b = new Backoff;
8 |
9 | assert(100 == b.duration());
10 | assert(200 == b.duration());
11 | assert(400 == b.duration());
12 | assert(800 == b.duration());
13 |
14 | b.reset();
15 | assert(100 == b.duration());
16 | assert(200 == b.duration());
17 | })
18 | })
--------------------------------------------------------------------------------
/server/node_modules/base64-arraybuffer/.npmignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 | Gruntfile.js
3 | /test/
4 |
--------------------------------------------------------------------------------
/server/node_modules/base64-arraybuffer/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - '0.12'
4 | - iojs-1
5 | - iojs-2
6 | - iojs-3
7 | - '4.1'
8 | before_script:
9 | - npm install
10 | before_install: npm install -g npm@'>=2.13.5'
11 | deploy:
12 | provider: npm
13 | email: niklasvh@gmail.com
14 | api_key:
15 | secure: oHV9ArprTj5WOk7MP1UF7QMJ70huXw+y7xXb5wF4+V2H8Hyfa5TfE0DiOmqrube1WXTeH1FLgq54shp/sJWi47Hkg/GyeoB5NnsPhYEaJkaON9UG5blML+ODiNVsEnq/1kNBQ8e0+0JItMPLGySKyFmuZ3yflulXKS8O88mfINo=
16 | on:
17 | tags: true
18 | branch: master
19 | repo: niklasvh/base64-arraybuffer
20 |
--------------------------------------------------------------------------------
/server/node_modules/base64-arraybuffer/LICENSE-MIT:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012 Niklas von Hertzen
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/base64-arraybuffer/README.md:
--------------------------------------------------------------------------------
1 | # base64-arraybuffer
2 |
3 | [](https://travis-ci.org/niklasvh/base64-arraybuffer)
4 | [](https://www.npmjs.org/package/base64-arraybuffer)
5 | [](https://www.npmjs.org/package/base64-arraybuffer)
6 |
7 | Encode/decode base64 data into ArrayBuffers
8 |
9 | ## Getting Started
10 | Install the module with: `npm install base64-arraybuffer`
11 |
12 | ## API
13 | The library encodes and decodes base64 to and from ArrayBuffers
14 |
15 | - __encode(buffer)__ - Encodes `ArrayBuffer` into base64 string
16 | - __decode(str)__ - Decodes base64 string to `ArrayBuffer`
17 |
18 | ## License
19 | Copyright (c) 2012 Niklas von Hertzen
20 | Licensed under the MIT license.
21 |
--------------------------------------------------------------------------------
/server/node_modules/base64id/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 |
--------------------------------------------------------------------------------
/server/node_modules/base64id/README.md:
--------------------------------------------------------------------------------
1 | base64id
2 | ========
3 |
4 | Node.js module that generates a base64 id.
5 |
6 | Uses crypto.randomBytes when available, falls back to unsafe methods for node.js <= 0.4.
7 |
8 | To increase performance, random bytes are buffered to minimize the number of synchronous calls to crypto.randomBytes.
9 |
10 | ## Installation
11 |
12 | $ npm install base64id
13 |
14 | ## Usage
15 |
16 | var base64id = require('base64id');
17 |
18 | var id = base64id.generateId();
19 |
--------------------------------------------------------------------------------
/server/node_modules/better-assert/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/server/node_modules/better-assert/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.0 / 2013-02-03
3 | ==================
4 |
5 | * Stop using the removed magic __stack global getter
6 |
7 | 0.1.0 / 2012-10-04
8 | ==================
9 |
10 | * add throwing of AssertionError for test frameworks etc
11 |
12 | 0.0.1 / 2010-01-03
13 | ==================
14 |
15 | * Initial release
16 |
--------------------------------------------------------------------------------
/server/node_modules/better-assert/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @echo "populate me"
4 |
5 | .PHONY: test
--------------------------------------------------------------------------------
/server/node_modules/better-assert/example.js:
--------------------------------------------------------------------------------
1 |
2 | var assert = require('./');
3 |
4 | test();
5 |
6 | function test() {
7 | var user = { name: 'tobi' };
8 | assert('tobi' == user.name);
9 | assert('number' == typeof user.age);
10 | }
--------------------------------------------------------------------------------
/server/node_modules/better-assert/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Module dependencies.
3 | */
4 |
5 | var AssertionError = require('assert').AssertionError
6 | , callsite = require('callsite')
7 | , fs = require('fs')
8 |
9 | /**
10 | * Expose `assert`.
11 | */
12 |
13 | module.exports = process.env.NO_ASSERT
14 | ? function(){}
15 | : assert;
16 |
17 | /**
18 | * Assert the given `expr`.
19 | */
20 |
21 | function assert(expr) {
22 | if (expr) return;
23 |
24 | var stack = callsite();
25 | var call = stack[1];
26 | var file = call.getFileName();
27 | var lineno = call.getLineNumber();
28 | var src = fs.readFileSync(file, 'utf8');
29 | var line = src.split('\n')[lineno-1];
30 | var src = line.match(/assert\((.*)\)/)[1];
31 |
32 | var err = new AssertionError({
33 | message: src,
34 | stackStartFunction: stack[0].getFunction()
35 | });
36 |
37 | throw err;
38 | }
39 |
--------------------------------------------------------------------------------
/server/node_modules/blob/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | blob.js
3 |
--------------------------------------------------------------------------------
/server/node_modules/blob/.zuul.yml:
--------------------------------------------------------------------------------
1 | ui: mocha-bdd
2 | browsers:
3 | - name: chrome
4 | version: 8..latest
5 | - name: firefox
6 | version: 7..latest
7 | - name: safari
8 | version: 6..latest
9 | - name: opera
10 | version: 12.1..latest
11 | - name: ie
12 | version: 10..latest
13 | - name: android
14 | version: latest
15 |
--------------------------------------------------------------------------------
/server/node_modules/blob/Makefile:
--------------------------------------------------------------------------------
1 | REPORTER = dot
2 |
3 | build: blob.js
4 |
5 | blob.js:
6 | @./node_modules/.bin/browserify --standalone blob index.js > blob.js
7 |
8 | test:
9 | @./node_modules/.bin/zuul -- test/index.js
10 |
11 | clean:
12 | rm blob.js
13 |
14 | .PHONY: test blob.js
15 |
--------------------------------------------------------------------------------
/server/node_modules/blob/README.md:
--------------------------------------------------------------------------------
1 | Blob
2 | ====
3 |
4 | A module that exports a constructor that uses window.Blob when available, and a BlobBuilder with any vendor prefix in other cases. If neither is available, it exports undefined.
5 |
6 | Usage:
7 |
8 | ```javascript
9 | var Blob = require('blob');
10 | var b = new Blob(['hi', 'constructing', 'a', 'blob']);
11 | ```
12 |
13 | ## Licence
14 | MIT
15 |
--------------------------------------------------------------------------------
/server/node_modules/callsite/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/server/node_modules/callsite/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.0 / 2013-01-24
3 | ==================
4 |
5 | * remove lame magical getters
6 |
7 | 0.0.1 / 2010-01-03
8 | ==================
9 |
10 | * Initial release
11 |
--------------------------------------------------------------------------------
/server/node_modules/callsite/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should
5 |
6 | .PHONY: test
--------------------------------------------------------------------------------
/server/node_modules/callsite/Readme.md:
--------------------------------------------------------------------------------
1 | # callstack
2 |
3 | Access to v8's "raw" `CallSite`s.
4 |
5 | ## Installation
6 |
7 | $ npm install callsite
8 |
9 | ## Example
10 |
11 | ```js
12 | var stack = require('callsite');
13 |
14 | foo();
15 |
16 | function foo() {
17 | bar();
18 | }
19 |
20 | function bar() {
21 | baz();
22 | }
23 |
24 | function baz() {
25 | console.log();
26 | stack().forEach(function(site){
27 | console.log(' \033[36m%s\033[90m in %s:%d\033[0m'
28 | , site.getFunctionName() || 'anonymous'
29 | , site.getFileName()
30 | , site.getLineNumber());
31 | });
32 | console.log();
33 | }
34 | ```
35 |
36 | ## Why?
37 |
38 | Because you can do weird, stupid, clever, wacky things such as:
39 |
40 | - [better-assert](https://github.com/visionmedia/better-assert)
41 |
42 | ## License
43 |
44 | MIT
45 |
--------------------------------------------------------------------------------
/server/node_modules/callsite/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = function(){
3 | var orig = Error.prepareStackTrace;
4 | Error.prepareStackTrace = function(_, stack){ return stack; };
5 | var err = new Error;
6 | Error.captureStackTrace(err, arguments.callee);
7 | var stack = err.stack;
8 | Error.prepareStackTrace = orig;
9 | return stack;
10 | };
11 |
--------------------------------------------------------------------------------
/server/node_modules/colors/lib/index.js:
--------------------------------------------------------------------------------
1 | var colors = require('./colors');
2 | module['exports'] = colors;
3 |
4 | // Remark: By default, colors will add style properties to String.prototype.
5 | //
6 | // If you don't wish to extend String.prototype, you can do this instead and
7 | // native String will not be touched:
8 | //
9 | // var colors = require('colors/safe);
10 | // colors.red("foo")
11 | //
12 | //
13 | require('./extendStringPrototype')();
14 |
--------------------------------------------------------------------------------
/server/node_modules/colors/lib/maps/america.js:
--------------------------------------------------------------------------------
1 | module['exports'] = function(colors) {
2 | return function(letter, i, exploded) {
3 | if (letter === ' ') return letter;
4 | switch (i%3) {
5 | case 0: return colors.red(letter);
6 | case 1: return colors.white(letter);
7 | case 2: return colors.blue(letter);
8 | }
9 | };
10 | };
11 |
--------------------------------------------------------------------------------
/server/node_modules/colors/lib/maps/rainbow.js:
--------------------------------------------------------------------------------
1 | module['exports'] = function(colors) {
2 | // RoY G BiV
3 | var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];
4 | return function(letter, i, exploded) {
5 | if (letter === ' ') {
6 | return letter;
7 | } else {
8 | return colors[rainbowColors[i++ % rainbowColors.length]](letter);
9 | }
10 | };
11 | };
12 |
13 |
--------------------------------------------------------------------------------
/server/node_modules/colors/lib/maps/random.js:
--------------------------------------------------------------------------------
1 | module['exports'] = function(colors) {
2 | var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green',
3 | 'blue', 'white', 'cyan', 'magenta', 'brightYellow', 'brightRed',
4 | 'brightGreen', 'brightBlue', 'brightWhite', 'brightCyan', 'brightMagenta'];
5 | return function(letter, i, exploded) {
6 | return letter === ' ' ? letter :
7 | colors[
8 | available[Math.round(Math.random() * (available.length - 2))]
9 | ](letter);
10 | };
11 | };
12 |
--------------------------------------------------------------------------------
/server/node_modules/colors/lib/maps/zebra.js:
--------------------------------------------------------------------------------
1 | module['exports'] = function(colors) {
2 | return function(letter, i, exploded) {
3 | return i % 2 === 0 ? letter : colors.inverse(letter);
4 | };
5 | };
6 |
--------------------------------------------------------------------------------
/server/node_modules/colors/safe.js:
--------------------------------------------------------------------------------
1 | //
2 | // Remark: Requiring this file will use the "safe" colors API,
3 | // which will not touch String.prototype.
4 | //
5 | // var colors = require('colors/safe');
6 | // colors.red("foo")
7 | //
8 | //
9 | var colors = require('./lib/colors');
10 | module['exports'] = colors;
11 |
--------------------------------------------------------------------------------
/server/node_modules/colors/themes/generic-logging.js:
--------------------------------------------------------------------------------
1 | module['exports'] = {
2 | silly: 'rainbow',
3 | input: 'grey',
4 | verbose: 'cyan',
5 | prompt: 'grey',
6 | info: 'green',
7 | data: 'grey',
8 | help: 'cyan',
9 | warn: 'yellow',
10 | debug: 'blue',
11 | error: 'red',
12 | };
13 |
--------------------------------------------------------------------------------
/server/node_modules/component-bind/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/server/node_modules/component-bind/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.0 / 2014-05-27
3 | ==================
4 |
5 | * index: use slice ref (#7, @viatropos)
6 | * package: rename package to "component-bind"
7 | * package: add "repository" field (#6, @repoify)
8 | * package: add "component" section
9 |
10 | 0.0.1 / 2010-01-03
11 | ==================
12 |
13 | * Initial release
14 |
--------------------------------------------------------------------------------
/server/node_modules/component-bind/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should \
5 | --reporter spec
6 |
7 | .PHONY: test
--------------------------------------------------------------------------------
/server/node_modules/component-bind/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bind",
3 | "version": "1.0.0",
4 | "description": "function binding utility",
5 | "keywords": [
6 | "bind",
7 | "utility"
8 | ],
9 | "dependencies": {},
10 | "scripts": [
11 | "index.js"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/server/node_modules/component-bind/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Slice reference.
3 | */
4 |
5 | var slice = [].slice;
6 |
7 | /**
8 | * Bind `obj` to `fn`.
9 | *
10 | * @param {Object} obj
11 | * @param {Function|String} fn or string
12 | * @return {Function}
13 | * @api public
14 | */
15 |
16 | module.exports = function(obj, fn){
17 | if ('string' == typeof fn) fn = obj[fn];
18 | if ('function' != typeof fn) throw new Error('bind() requires a function');
19 | var args = slice.call(arguments, 2);
20 | return function(){
21 | return fn.apply(obj, args.concat(slice.call(arguments)));
22 | }
23 | };
24 |
--------------------------------------------------------------------------------
/server/node_modules/component-emitter/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | test
3 |
--------------------------------------------------------------------------------
/server/node_modules/component-emitter/.travis.yml:
--------------------------------------------------------------------------------
1 | node_js:
2 | - "0.8"
3 | - "0.10"
4 | language: node_js
--------------------------------------------------------------------------------
/server/node_modules/component-emitter/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should \
5 | --reporter spec
6 |
7 | .PHONY: test
--------------------------------------------------------------------------------
/server/node_modules/component-emitter/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "emitter",
3 | "description": "Event emitter",
4 | "keywords": [
5 | "emitter",
6 | "events"
7 | ],
8 | "version": "1.1.2",
9 | "license": "MIT",
10 | "main": "index.js",
11 | "homepage": "https://github.com/component/emitter",
12 | "ignore": [
13 | "**/.*",
14 | "node_modules",
15 | "bower_components",
16 | "test",
17 | "Makefile",
18 | "package.json",
19 | "component.json"
20 | ]
21 | }
22 |
--------------------------------------------------------------------------------
/server/node_modules/component-emitter/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "emitter",
3 | "repo": "component/emitter",
4 | "description": "Event emitter",
5 | "keywords": [
6 | "emitter",
7 | "events"
8 | ],
9 | "version": "1.1.2",
10 | "scripts": [
11 | "index.js"
12 | ],
13 | "license": "MIT"
14 | }
15 |
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/.npmignore:
--------------------------------------------------------------------------------
1 | components
2 | build
3 | node_modules
4 |
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.2 / 2012-09-03
3 | ==================
4 |
5 | * fix typo in package.json
6 |
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/Makefile:
--------------------------------------------------------------------------------
1 |
2 | build: components index.js
3 | @component build
4 |
5 | components:
6 | @Component install
7 |
8 | clean:
9 | rm -fr build components template.js
10 |
11 | test:
12 | @node_modules/.bin/mocha \
13 | --require should \
14 | --reporter spec
15 |
16 | .PHONY: clean test
17 |
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/Readme.md:
--------------------------------------------------------------------------------
1 | # inherit
2 |
3 | Prototype inheritance utility.
4 |
5 | ## Installation
6 |
7 | ```
8 | $ component install component/inherit
9 | ```
10 |
11 | ## Example
12 |
13 | ```js
14 | var inherit = require('inherit');
15 |
16 | function Human() {}
17 | function Woman() {}
18 |
19 | inherit(Woman, Human);
20 | ```
21 |
22 | ## License
23 |
24 | MIT
25 |
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "inherit",
3 | "description": "Prototype inheritance utility",
4 | "version": "0.0.3",
5 | "keywords": ["inherit", "utility"],
6 | "dependencies": {},
7 | "scripts": [
8 | "index.js"
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = function(a, b){
3 | var fn = function(){};
4 | fn.prototype = b.prototype;
5 | a.prototype = new fn;
6 | a.prototype.constructor = a;
7 | };
--------------------------------------------------------------------------------
/server/node_modules/component-inherit/test/inherit.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var inherit = require('..');
7 |
8 | describe('inherit(a, b)', function(){
9 | it('should inherit b\'s prototype', function(){
10 | function Loki(){}
11 | function Animal(){}
12 |
13 | Animal.prototype.species = 'unknown';
14 |
15 | inherit(Loki, Animal);
16 |
17 | var loki = new Loki;
18 | loki.species.should.equal('unknown');
19 | loki.constructor.should.equal(Loki);
20 | })
21 | })
--------------------------------------------------------------------------------
/server/node_modules/content-disposition/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2017 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/content-type/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.4 / 2017-09-11
2 | ==================
3 |
4 | * perf: skip parameter parsing when no parameters
5 |
6 | 1.0.3 / 2017-09-10
7 | ==================
8 |
9 | * perf: remove argument reassignment
10 |
11 | 1.0.2 / 2016-05-09
12 | ==================
13 |
14 | * perf: enable strict mode
15 |
16 | 1.0.1 / 2015-02-13
17 | ==================
18 |
19 | * Improve missing `Content-Type` header error message
20 |
21 | 1.0.0 / 2015-02-01
22 | ==================
23 |
24 | * Initial implementation, derived from `media-typer@0.3.0`
25 |
--------------------------------------------------------------------------------
/server/node_modules/content-type/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2015 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/cookie-signature/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/server/node_modules/cookie-signature/History.md:
--------------------------------------------------------------------------------
1 | 1.0.6 / 2015-02-03
2 | ==================
3 |
4 | * use `npm test` instead of `make test` to run tests
5 | * clearer assertion messages when checking input
6 |
7 |
8 | 1.0.5 / 2014-09-05
9 | ==================
10 |
11 | * add license to package.json
12 |
13 | 1.0.4 / 2014-06-25
14 | ==================
15 |
16 | * corrected avoidance of timing attacks (thanks @tenbits!)
17 |
18 | 1.0.3 / 2014-01-28
19 | ==================
20 |
21 | * [incorrect] fix for timing attacks
22 |
23 | 1.0.2 / 2014-01-28
24 | ==================
25 |
26 | * fix missing repository warning
27 | * fix typo in test
28 |
29 | 1.0.1 / 2013-04-15
30 | ==================
31 |
32 | * Revert "Changed underlying HMAC algo. to sha512."
33 | * Revert "Fix for timing attacks on MAC verification."
34 |
35 | 0.0.1 / 2010-01-03
36 | ==================
37 |
38 | * Initial release
39 |
--------------------------------------------------------------------------------
/server/node_modules/debug/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
2 |
--------------------------------------------------------------------------------
/server/node_modules/debug/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "browser": true,
4 | "node": true
5 | },
6 | "rules": {
7 | "no-console": 0,
8 | "no-empty": [1, { "allowEmptyCatch": true }]
9 | },
10 | "extends": "eslint:recommended"
11 | }
12 |
--------------------------------------------------------------------------------
/server/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 | coverage
9 | bower.json
10 |
--------------------------------------------------------------------------------
/server/node_modules/debug/.travis.yml:
--------------------------------------------------------------------------------
1 |
2 | language: node_js
3 | node_js:
4 | - "6"
5 | - "5"
6 | - "4"
7 |
8 | install:
9 | - make node_modules
10 |
11 | script:
12 | - make lint
13 | - make test
14 | - make coveralls
15 |
--------------------------------------------------------------------------------
/server/node_modules/debug/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 TJ Holowaychuk
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6 | and associated documentation files (the 'Software'), to deal in the Software without restriction,
7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9 | subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial
12 | portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 |
--------------------------------------------------------------------------------
/server/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.6.9",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "src/browser.js",
12 | "scripts": [
13 | "src/browser.js",
14 | "src/debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/server/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/debug/src/inspector-log.js:
--------------------------------------------------------------------------------
1 | module.exports = inspectorLog;
2 |
3 | // black hole
4 | const nullStream = new (require('stream').Writable)();
5 | nullStream._write = () => {};
6 |
7 | /**
8 | * Outputs a `console.log()` to the Node.js Inspector console *only*.
9 | */
10 | function inspectorLog() {
11 | const stdout = console._stdout;
12 | console._stdout = nullStream;
13 | console.log.apply(console, arguments);
14 | console._stdout = stdout;
15 | }
16 |
--------------------------------------------------------------------------------
/server/node_modules/depd/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2017 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/depd/lib/compat/event-listener-count.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2015 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = eventListenerCount
15 |
16 | /**
17 | * Get the count of listeners on an event emitter of a specific type.
18 | */
19 |
20 | function eventListenerCount (emitter, type) {
21 | return emitter.listeners(type).length
22 | }
23 |
--------------------------------------------------------------------------------
/server/node_modules/destroy/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | The MIT License (MIT)
3 |
4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/ee-first/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | The MIT License (MIT)
3 |
4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/encodeurl/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.2 / 2018-01-21
2 | ==================
3 |
4 | * Fix encoding `%` as last character
5 |
6 | 1.0.1 / 2016-06-09
7 | ==================
8 |
9 | * Fix encoding unpaired surrogates at start/end of string
10 |
11 | 1.0.0 / 2016-06-08
12 | ==================
13 |
14 | * Initial release
15 |
--------------------------------------------------------------------------------
/server/node_modules/encodeurl/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2016 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2015 Automattic
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = require('./lib/index');
3 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/lib/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = require('./socket');
3 |
4 | /**
5 | * Exports parser
6 | *
7 | * @api public
8 | *
9 | */
10 | module.exports.parser = require('engine.io-parser');
11 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/debug/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "laxbreak": true
3 | }
4 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/debug/Makefile:
--------------------------------------------------------------------------------
1 |
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5 |
6 | # BIN directory
7 | BIN := $(THIS_DIR)/node_modules/.bin
8 |
9 | # applications
10 | NODE ?= $(shell which node)
11 | YARN ?= $(shell which yarn)
12 | PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13 | BROWSERIFY ?= $(NODE) $(BIN)/browserify
14 |
15 | all: dist/debug.js
16 |
17 | install: node_modules
18 |
19 | clean:
20 | @rm -rf dist
21 |
22 | dist:
23 | @mkdir -p $@
24 |
25 | dist/debug.js: node_modules browser.js debug.js dist
26 | @$(BROWSERIFY) \
27 | --standalone debug \
28 | . > $@
29 |
30 | distclean: clean
31 | @rm -rf node_modules
32 |
33 | node_modules: package.json
34 | @NODE_ENV= $(PKG) install
35 | @touch node_modules
36 |
37 | .PHONY: all install clean distclean
38 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/debug/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visionmedia-debug",
3 | "main": "dist/debug.js",
4 | "homepage": "https://github.com/visionmedia/debug",
5 | "authors": [
6 | "TJ Holowaychuk ",
7 | "Nathan Rajlich (http://n8.io)",
8 | "Andrew Rhyne "
9 | ],
10 | "description": "visionmedia-debug",
11 | "moduleType": [
12 | "amd",
13 | "es6",
14 | "globals",
15 | "node"
16 | ],
17 | "keywords": [
18 | "visionmedia",
19 | "debug"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.3.3",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/debug/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/ms/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/ws/lib/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/node_modules/engine.io-client/node_modules/ws/lib/.DS_Store
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/ws/lib/BufferUtil.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /*!
4 | * ws: a node.js websocket client
5 | * Copyright(c) 2011 Einar Otto Stangvik
6 | * MIT Licensed
7 | */
8 |
9 | var bufferUtil;
10 |
11 | try {
12 | bufferUtil = require('bufferutil');
13 | } catch (e) {
14 | bufferUtil = require('./BufferUtil.fallback');
15 | }
16 |
17 | module.exports = bufferUtil.BufferUtil || bufferUtil;
18 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/ws/lib/ErrorCodes.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | module.exports = {
8 | isValidErrorCode: function(code) {
9 | return (code >= 1000 && code <= 1011 && code != 1004 && code != 1005 && code != 1006) ||
10 | (code >= 3000 && code <= 4999);
11 | },
12 | 1000: 'normal',
13 | 1001: 'going away',
14 | 1002: 'protocol error',
15 | 1003: 'unsupported data',
16 | 1004: 'reserved',
17 | 1005: 'reserved for extensions',
18 | 1006: 'reserved for extensions',
19 | 1007: 'inconsistent or invalid data',
20 | 1008: 'policy violation',
21 | 1009: 'message too big',
22 | 1010: 'extension handshake missing',
23 | 1011: 'an unexpected condition prevented the request from being fulfilled',
24 | };
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/ws/lib/Validation.fallback.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | exports.Validation = {
8 | isValidUTF8: function(buffer) {
9 | return true;
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-client/node_modules/ws/lib/Validation.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /*!
4 | * ws: a node.js websocket client
5 | * Copyright(c) 2011 Einar Otto Stangvik
6 | * MIT Licensed
7 | */
8 |
9 | var isValidUTF8;
10 |
11 | try {
12 | isValidUTF8 = require('utf-8-validate');
13 | } catch (e) {
14 | isValidUTF8 = require('./Validation.fallback');
15 | }
16 |
17 | module.exports = typeof isValidUTF8 === 'object'
18 | ? isValidUTF8.Validation.isValidUTF8
19 | : isValidUTF8;
20 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-parser/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2016 Guillermo Rauch (@rauchg)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/server/node_modules/engine.io-parser/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = require('./lib/');
3 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io-parser/lib/keys.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Gets the keys for an object.
4 | *
5 | * @return {Array} keys
6 | * @api private
7 | */
8 |
9 | module.exports = Object.keys || function keys (obj){
10 | var arr = [];
11 | var has = Object.prototype.hasOwnProperty;
12 |
13 | for (var i in obj) {
14 | if (has.call(obj, i)) {
15 | arr.push(i);
16 | }
17 | }
18 | return arr;
19 | };
20 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 Guillermo Rauch
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6 | and associated documentation files (the 'Software'), to deal in the Software without restriction,
7 | including without limitation the rights to use, copy, modify, merge, publish, distribute,
8 | sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
9 | furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or
12 | substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
15 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = process.env.EIO_COV
3 | ? require('./lib-cov/engine.io')
4 | : require('./lib/engine.io');
5 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/lib/transports/index.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var XHR = require('./polling-xhr');
7 | var JSONP = require('./polling-jsonp');
8 |
9 | /**
10 | * Export transports.
11 | */
12 |
13 | module.exports = exports = {
14 | polling: polling,
15 | websocket: require('./websocket')
16 | };
17 |
18 | /**
19 | * Export upgrades map.
20 | */
21 |
22 | exports.polling.upgradesTo = ['websocket'];
23 |
24 | /**
25 | * Polling polymorphic constructor.
26 | *
27 | * @api private
28 | */
29 |
30 | function polling (req) {
31 | if ('string' === typeof req._query.j) {
32 | return new JSONP(req);
33 | } else {
34 | return new XHR(req);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "laxbreak": true
3 | }
4 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 TJ Holowaychuk
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6 | and associated documentation files (the 'Software'), to deal in the Software without restriction,
7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9 | subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial
12 | portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/Makefile:
--------------------------------------------------------------------------------
1 |
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5 |
6 | # BIN directory
7 | BIN := $(THIS_DIR)/node_modules/.bin
8 |
9 | # applications
10 | NODE ?= $(shell which node)
11 | YARN ?= $(shell which yarn)
12 | PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13 | BROWSERIFY ?= $(NODE) $(BIN)/browserify
14 |
15 | all: dist/debug.js
16 |
17 | install: node_modules
18 |
19 | clean:
20 | @rm -rf dist
21 |
22 | dist:
23 | @mkdir -p $@
24 |
25 | dist/debug.js: node_modules browser.js debug.js dist
26 | @$(BROWSERIFY) \
27 | --standalone debug \
28 | . > $@
29 |
30 | distclean: clean
31 | @rm -rf node_modules
32 |
33 | node_modules: package.json
34 | @NODE_ENV= $(PKG) install
35 | @touch node_modules
36 |
37 | .PHONY: all install clean distclean
38 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visionmedia-debug",
3 | "main": "dist/debug.js",
4 | "homepage": "https://github.com/visionmedia/debug",
5 | "authors": [
6 | "TJ Holowaychuk ",
7 | "Nathan Rajlich (http://n8.io)",
8 | "Andrew Rhyne "
9 | ],
10 | "description": "visionmedia-debug",
11 | "moduleType": [
12 | "amd",
13 | "es6",
14 | "globals",
15 | "node"
16 | ],
17 | "keywords": [
18 | "visionmedia",
19 | "debug"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.3.3",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/debug/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/ms/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/ws/lib/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/node_modules/engine.io/node_modules/ws/lib/.DS_Store
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/ws/lib/BufferUtil.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /*!
4 | * ws: a node.js websocket client
5 | * Copyright(c) 2011 Einar Otto Stangvik
6 | * MIT Licensed
7 | */
8 |
9 | var bufferUtil;
10 |
11 | try {
12 | bufferUtil = require('bufferutil');
13 | } catch (e) {
14 | bufferUtil = require('./BufferUtil.fallback');
15 | }
16 |
17 | module.exports = bufferUtil.BufferUtil || bufferUtil;
18 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/ws/lib/ErrorCodes.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | module.exports = {
8 | isValidErrorCode: function(code) {
9 | return (code >= 1000 && code <= 1011 && code != 1004 && code != 1005 && code != 1006) ||
10 | (code >= 3000 && code <= 4999);
11 | },
12 | 1000: 'normal',
13 | 1001: 'going away',
14 | 1002: 'protocol error',
15 | 1003: 'unsupported data',
16 | 1004: 'reserved',
17 | 1005: 'reserved for extensions',
18 | 1006: 'reserved for extensions',
19 | 1007: 'inconsistent or invalid data',
20 | 1008: 'policy violation',
21 | 1009: 'message too big',
22 | 1010: 'extension handshake missing',
23 | 1011: 'an unexpected condition prevented the request from being fulfilled',
24 | };
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/ws/lib/Validation.fallback.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | exports.Validation = {
8 | isValidUTF8: function(buffer) {
9 | return true;
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/server/node_modules/engine.io/node_modules/ws/lib/Validation.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /*!
4 | * ws: a node.js websocket client
5 | * Copyright(c) 2011 Einar Otto Stangvik
6 | * MIT Licensed
7 | */
8 |
9 | var isValidUTF8;
10 |
11 | try {
12 | isValidUTF8 = require('utf-8-validate');
13 | } catch (e) {
14 | isValidUTF8 = require('./Validation.fallback');
15 | }
16 |
17 | module.exports = typeof isValidUTF8 === 'object'
18 | ? isValidUTF8.Validation.isValidUTF8
19 | : isValidUTF8;
20 |
--------------------------------------------------------------------------------
/server/node_modules/escape-html/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # escape-html
3 |
4 | Escape string for use in HTML
5 |
6 | ## Example
7 |
8 | ```js
9 | var escape = require('escape-html');
10 | var html = escape('foo & bar');
11 | // -> foo & bar
12 | ```
13 |
14 | ## Benchmark
15 |
16 | ```
17 | $ npm run-script bench
18 |
19 | > escape-html@1.0.3 bench nodejs-escape-html
20 | > node benchmark/index.js
21 |
22 |
23 | http_parser@1.0
24 | node@0.10.33
25 | v8@3.14.5.9
26 | ares@1.9.0-DEV
27 | uv@0.10.29
28 | zlib@1.2.3
29 | modules@11
30 | openssl@1.0.1j
31 |
32 | 1 test completed.
33 | 2 tests completed.
34 | 3 tests completed.
35 |
36 | no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
37 | single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
38 | many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)
39 | ```
40 |
41 | ## License
42 |
43 | MIT
--------------------------------------------------------------------------------
/server/node_modules/etag/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2016 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/express/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * express
3 | * Copyright(c) 2009-2013 TJ Holowaychuk
4 | * Copyright(c) 2013 Roman Shtylman
5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson
6 | * MIT Licensed
7 | */
8 |
9 | 'use strict';
10 |
11 | module.exports = require('./lib/express');
12 |
--------------------------------------------------------------------------------
/server/node_modules/express/lib/middleware/init.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * express
3 | * Copyright(c) 2009-2013 TJ Holowaychuk
4 | * Copyright(c) 2013 Roman Shtylman
5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson
6 | * MIT Licensed
7 | */
8 |
9 | 'use strict';
10 |
11 | /**
12 | * Module dependencies.
13 | * @private
14 | */
15 |
16 | var setPrototypeOf = require('setprototypeof')
17 |
18 | /**
19 | * Initialization middleware, exposing the
20 | * request and response to each other, as well
21 | * as defaulting the X-Powered-By header field.
22 | *
23 | * @param {Function} app
24 | * @return {Function}
25 | * @api private
26 | */
27 |
28 | exports.init = function(app){
29 | return function expressInit(req, res, next){
30 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express');
31 | req.res = res;
32 | res.req = req;
33 | req.next = next;
34 |
35 | setPrototypeOf(req, app.request)
36 | setPrototypeOf(res, app.response)
37 |
38 | res.locals = res.locals || Object.create(null);
39 |
40 | next();
41 | };
42 | };
43 |
44 |
--------------------------------------------------------------------------------
/server/node_modules/express/lib/middleware/query.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * express
3 | * Copyright(c) 2009-2013 TJ Holowaychuk
4 | * Copyright(c) 2013 Roman Shtylman
5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson
6 | * MIT Licensed
7 | */
8 |
9 | 'use strict';
10 |
11 | /**
12 | * Module dependencies.
13 | */
14 |
15 | var merge = require('utils-merge')
16 | var parseUrl = require('parseurl');
17 | var qs = require('qs');
18 |
19 | /**
20 | * @param {Object} options
21 | * @return {Function}
22 | * @api public
23 | */
24 |
25 | module.exports = function query(options) {
26 | var opts = merge({}, options)
27 | var queryparse = qs.parse;
28 |
29 | if (typeof options === 'function') {
30 | queryparse = options;
31 | opts = undefined;
32 | }
33 |
34 | if (opts !== undefined && opts.allowPrototypes === undefined) {
35 | // back-compat for qs module
36 | opts.allowPrototypes = true;
37 | }
38 |
39 | return function query(req, res, next){
40 | if (!req.query) {
41 | var val = parseUrl(req).query;
42 | req.query = queryparse(val, opts);
43 | }
44 |
45 | next();
46 | };
47 | };
48 |
--------------------------------------------------------------------------------
/server/node_modules/forwarded/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.1.2 / 2017-09-14
2 | ==================
3 |
4 | * perf: improve header parsing
5 | * perf: reduce overhead when no `X-Forwarded-For` header
6 |
7 | 0.1.1 / 2017-09-10
8 | ==================
9 |
10 | * Fix trimming leading / trailing OWS
11 | * perf: hoist regular expression
12 |
13 | 0.1.0 / 2014-09-21
14 | ==================
15 |
16 | * Initial release
17 |
--------------------------------------------------------------------------------
/server/node_modules/forwarded/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2017 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/fs/README.md:
--------------------------------------------------------------------------------
1 | # Security holding package
2 |
3 | This package name is not currently in use, but was formerly occupied
4 | by another package. To avoid malicious use, npm is hanging on to the
5 | package name, but loosely, and we'll probably give it to you if you
6 | want it.
7 |
8 | You may adopt this package by contacting support@npmjs.com and
9 | requesting the name.
10 |
--------------------------------------------------------------------------------
/server/node_modules/has-binary/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | *.seed
3 | *.log
4 | *.csv
5 | *.dat
6 | *.out
7 | *.pid
8 | *.gz
9 |
10 | pids
11 | logs
12 | results
13 |
14 | npm-debug.log
15 | node_modules
16 |
--------------------------------------------------------------------------------
/server/node_modules/has-binary/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.1.7 / 2015-11-18
3 | ==================
4 |
5 | * fix toJSON [@jderuere]
6 | * fix `global.isBuffer` usage [@tonetheman]
7 | * fix tests on modern versions of node
8 | * bump mocha
9 |
10 | 0.1.6 / 2015-01-24
11 | ==================
12 |
13 | * fix "undefined function" bug when iterating
14 | an object created with Object.create(null) [gunta]
15 |
16 | 0.1.5 / 2014-09-04
17 | ==================
18 |
19 | * prevent browserify from bundling `Buffer`
20 |
--------------------------------------------------------------------------------
/server/node_modules/has-binary/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Kevin Roark
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/has-binary/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha test.js
4 |
--------------------------------------------------------------------------------
/server/node_modules/has-binary/README.md:
--------------------------------------------------------------------------------
1 | has-binarydata.js
2 | =================
3 |
4 | Simple module to test if an object contains binary data
5 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/.npmignore:
--------------------------------------------------------------------------------
1 | components
2 | build
3 | node_modules
4 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.1.0 / 2014-11-12
3 | ==================
4 |
5 | * remove "global" module dependency (#2, @achingbrain)
6 |
7 | 1.0.2 / 2013-08-27
8 | ==================
9 |
10 | * explicitly use `global` instead of being implicit
11 | * pin "component/global" to v2.0.1
12 |
13 | 1.0.1 / 2013-08-23
14 | ==================
15 |
16 | * package: add "component" section
17 |
18 | 1.0.0 / 2013-08-22
19 | ==================
20 |
21 | * Initial release
22 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/Makefile:
--------------------------------------------------------------------------------
1 |
2 | build: components index.js
3 | @component build --dev
4 |
5 | components: component.json
6 | @component install --dev
7 |
8 | clean:
9 | rm -fr build components template.js
10 |
11 | .PHONY: clean
12 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # has-cors
3 |
4 | Detects support for Cross-Origin Resource Sharing
5 |
6 | ## Installation
7 |
8 | Install with [component(1)](http://component.io):
9 |
10 | $ component install component/has-cors
11 |
12 | ## API
13 |
14 | Exports `true` if the user-agent supports CORS, or `false` otherwise.
15 |
16 | ``` js
17 | var hasCORS = require('has-cors');
18 | console.log(hasCORS);
19 | // true
20 | ```
21 |
22 | ## License
23 |
24 | MIT
25 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "has-cors",
3 | "repo": "component/has-cors",
4 | "description": "Detects support for Cross-Origin Resource Sharing",
5 | "version": "1.1.0",
6 | "keywords": [],
7 | "development": {},
8 | "license": "MIT",
9 | "main": "index.js",
10 | "scripts": [
11 | "index.js"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/index.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module exports.
4 | *
5 | * Logic borrowed from Modernizr:
6 | *
7 | * - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js
8 | */
9 |
10 | try {
11 | module.exports = typeof XMLHttpRequest !== 'undefined' &&
12 | 'withCredentials' in new XMLHttpRequest();
13 | } catch (err) {
14 | // if XMLHttp support is disabled in IE then it will throw
15 | // when trying to create
16 | module.exports = false;
17 | }
18 |
--------------------------------------------------------------------------------
/server/node_modules/has-cors/test.js:
--------------------------------------------------------------------------------
1 | var expect = require('chai').expect;
2 |
3 | describe('has-cors', function() {
4 | beforeEach(function() {
5 | // make sure result is not cached
6 | delete require.cache[require.resolve('./')];
7 | });
8 |
9 | it('should not have cors', function() {
10 | var hasCors = require('./');
11 |
12 | expect(hasCors).to.be.false;
13 | });
14 |
15 | it('should have cors', function() {
16 | global.XMLHttpRequest = function() {
17 | this.withCredentials = true;
18 | };
19 |
20 | var hasCors = require('./');
21 |
22 | expect(hasCors).to.be.true;
23 | });
24 | });
25 |
--------------------------------------------------------------------------------
/server/node_modules/http/README.md:
--------------------------------------------------------------------------------
1 | # Security holding package
2 |
3 | This package name is not currently in use, but was formerly occupied
4 | by another package. To avoid malicious use, npm is hanging on to the
5 | package name, but loosely, and we'll probably give it to you if you
6 | want it.
7 |
8 | You may adopt this package by contacting support@npmjs.com and
9 | requesting the name.
10 |
--------------------------------------------------------------------------------
/server/node_modules/iconv-lite/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 Alexander Shtuchkin
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
22 |
--------------------------------------------------------------------------------
/server/node_modules/iconv-lite/encodings/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | // Update this array if you add/rename/remove files in this directory.
4 | // We support Browserify by skipping automatic module discovery and requiring modules directly.
5 | var modules = [
6 | require("./internal"),
7 | require("./utf16"),
8 | require("./utf7"),
9 | require("./sbcs-codec"),
10 | require("./sbcs-data"),
11 | require("./sbcs-data-generated"),
12 | require("./dbcs-codec"),
13 | require("./dbcs-data"),
14 | ];
15 |
16 | // Put all encoding/alias/codec definitions to single object and export it.
17 | for (var i = 0; i < modules.length; i++) {
18 | var module = modules[i];
19 | for (var enc in module)
20 | if (Object.prototype.hasOwnProperty.call(module, enc))
21 | exports[enc] = module[enc];
22 | }
23 |
--------------------------------------------------------------------------------
/server/node_modules/iconv-lite/lib/index.d.ts:
--------------------------------------------------------------------------------
1 | /*---------------------------------------------------------------------------------------------
2 | * Copyright (c) Microsoft Corporation. All rights reserved.
3 | * Licensed under the MIT License.
4 | * REQUIREMENT: This definition is dependent on the @types/node definition.
5 | * Install with `npm install @types/node --save-dev`
6 | *--------------------------------------------------------------------------------------------*/
7 |
8 | declare module 'iconv-lite' {
9 | export function decode(buffer: Buffer, encoding: string, options?: Options): string;
10 |
11 | export function encode(content: string, encoding: string, options?: Options): Buffer;
12 |
13 | export function encodingExists(encoding: string): boolean;
14 |
15 | export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
16 |
17 | export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
18 | }
19 |
20 | export interface Options {
21 | stripBOM?: boolean;
22 | addBOM?: boolean;
23 | defaultEncoding?: string;
24 | }
25 |
--------------------------------------------------------------------------------
/server/node_modules/indexof/.npmignore:
--------------------------------------------------------------------------------
1 | components
2 | build
3 |
--------------------------------------------------------------------------------
/server/node_modules/indexof/Makefile:
--------------------------------------------------------------------------------
1 |
2 | build: components index.js
3 | @component build
4 |
5 | components:
6 | @Component install
7 |
8 | clean:
9 | rm -fr build components template.js
10 |
11 | .PHONY: clean
12 |
--------------------------------------------------------------------------------
/server/node_modules/indexof/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # indexOf
3 |
4 | Lame indexOf thing, thanks microsoft
5 |
6 | ## Example
7 |
8 | ```js
9 | var index = require('indexof');
10 | index(arr, obj);
11 | ```
12 |
13 | ## License
14 |
15 | MIT
--------------------------------------------------------------------------------
/server/node_modules/indexof/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "indexof",
3 | "description": "Microsoft sucks",
4 | "version": "0.0.1",
5 | "keywords": ["index", "array", "indexOf"],
6 | "dependencies": {},
7 | "scripts": [
8 | "index.js"
9 | ]
10 | }
--------------------------------------------------------------------------------
/server/node_modules/indexof/index.js:
--------------------------------------------------------------------------------
1 |
2 | var indexOf = [].indexOf;
3 |
4 | module.exports = function(arr, obj){
5 | if (indexOf) return arr.indexOf(obj);
6 | for (var i = 0; i < arr.length; ++i) {
7 | if (arr[i] === obj) return i;
8 | }
9 | return -1;
10 | };
--------------------------------------------------------------------------------
/server/node_modules/indexof/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "_from": "indexof@0.0.1",
3 | "_id": "indexof@0.0.1",
4 | "_inBundle": false,
5 | "_integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=",
6 | "_location": "/indexof",
7 | "_phantomChildren": {},
8 | "_requested": {
9 | "type": "version",
10 | "registry": true,
11 | "raw": "indexof@0.0.1",
12 | "name": "indexof",
13 | "escapedName": "indexof",
14 | "rawSpec": "0.0.1",
15 | "saveSpec": null,
16 | "fetchSpec": "0.0.1"
17 | },
18 | "_requiredBy": [
19 | "/engine.io-client",
20 | "/socket.io-client"
21 | ],
22 | "_resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz",
23 | "_shasum": "82dc336d232b9062179d05ab3293a66059fd435d",
24 | "_spec": "indexof@0.0.1",
25 | "_where": "/Users/alex/poorboysxr/server/node_modules/socket.io-client",
26 | "bundleDependencies": false,
27 | "component": {
28 | "scripts": {
29 | "indexof/index.js": "index.js"
30 | }
31 | },
32 | "dependencies": {},
33 | "deprecated": false,
34 | "description": "Microsoft sucks",
35 | "keywords": [
36 | "index",
37 | "array",
38 | "indexOf"
39 | ],
40 | "name": "indexof",
41 | "version": "0.0.1"
42 | }
43 |
--------------------------------------------------------------------------------
/server/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/server/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | try {
2 | var util = require('util');
3 | if (typeof util.inherits !== 'function') throw '';
4 | module.exports = util.inherits;
5 | } catch (e) {
6 | module.exports = require('./inherits_browser.js');
7 | }
8 |
--------------------------------------------------------------------------------
/server/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/server/node_modules/ipaddr.js/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2011-2017 whitequark
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/server/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Array.isArray || function (arr) {
2 | return Object.prototype.toString.call(arr) == '[object Array]';
3 | };
4 |
--------------------------------------------------------------------------------
/server/node_modules/json3/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012-2014 Kit Cambridge.
2 | http://kitcambridge.be/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of
5 | this software and associated documentation files (the "Software"), to deal in
6 | the Software without restriction, including without limitation the rights to
7 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8 | of the Software, and to permit persons to whom the Software is furnished to do
9 | so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all
12 | copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 | SOFTWARE.
--------------------------------------------------------------------------------
/server/node_modules/media-typer/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.3.0 / 2014-09-07
2 | ==================
3 |
4 | * Support Node.js 0.6
5 | * Throw error when parameter format invalid on parse
6 |
7 | 0.2.0 / 2014-06-18
8 | ==================
9 |
10 | * Add `typer.format()` to format media types
11 |
12 | 0.1.0 / 2014-06-17
13 | ==================
14 |
15 | * Accept `req` as argument to `parse`
16 | * Accept `res` as argument to `parse`
17 | * Parse media type with extra LWS between type and first parameter
18 |
19 | 0.0.0 / 2014-06-13
20 | ==================
21 |
22 | * Initial implementation
23 |
--------------------------------------------------------------------------------
/server/node_modules/media-typer/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/merge-descriptors/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2016-01-17
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.0 / 2015-03-01
7 | ==================
8 |
9 | * Add option to only add new descriptors
10 | * Add simple argument validation
11 | * Add jsdoc to source file
12 |
13 | 0.0.2 / 2013-12-14
14 | ==================
15 |
16 | * Move repository to `component` organization
17 |
18 | 0.0.1 / 2013-10-29
19 | ==================
20 |
21 | * Initial release
22 |
--------------------------------------------------------------------------------
/server/node_modules/methods/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.1.2 / 2016-01-17
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.1.1 / 2014-12-30
7 | ==================
8 |
9 | * Improve `browserify` support
10 |
11 | 1.1.0 / 2014-07-05
12 | ==================
13 |
14 | * Add `CONNECT` method
15 |
16 | 1.0.1 / 2014-06-02
17 | ==================
18 |
19 | * Fix module to work with harmony transform
20 |
21 | 1.0.0 / 2014-05-08
22 | ==================
23 |
24 | * Add `PURGE` method
25 |
26 | 0.1.0 / 2013-10-28
27 | ==================
28 |
29 | * Add `http.METHODS` support
30 |
--------------------------------------------------------------------------------
/server/node_modules/mime-db/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | The MIT License (MIT)
3 |
4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = require('./db.json')
12 |
--------------------------------------------------------------------------------
/server/node_modules/mime/.npmignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/node_modules/mime/.npmignore
--------------------------------------------------------------------------------
/server/node_modules/mime/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/mime/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mime = require('./mime.js');
4 | var file = process.argv[2];
5 | var type = mime.lookup(file);
6 |
7 | process.stdout.write(type + '\n');
8 |
9 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/LICENSE:
--------------------------------------------------------------------------------
1 | This software is released under the MIT license:
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7 | the Software, and to permit persons to whom the Software is furnished to do so,
8 | subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/example/parse.js:
--------------------------------------------------------------------------------
1 | var argv = require('../')(process.argv.slice(2));
2 | console.dir(argv);
3 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/dash.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('-', function (t) {
5 | t.plan(5);
6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
9 | t.deepEqual(
10 | parse([ '-b', '-' ], { boolean: 'b' }),
11 | { b: true, _: [ '-' ] }
12 | );
13 | t.deepEqual(
14 | parse([ '-s', '-' ], { string: 's' }),
15 | { s: '-', _: [] }
16 | );
17 | });
18 |
19 | test('-a -- b', function (t) {
20 | t.plan(3);
21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
24 | });
25 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/default_bool.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('boolean default true', function (t) {
5 | var argv = parse([], {
6 | boolean: 'sometrue',
7 | default: { sometrue: true }
8 | });
9 | t.equal(argv.sometrue, true);
10 | t.end();
11 | });
12 |
13 | test('boolean default false', function (t) {
14 | var argv = parse([], {
15 | boolean: 'somefalse',
16 | default: { somefalse: false }
17 | });
18 | t.equal(argv.somefalse, false);
19 | t.end();
20 | });
21 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/dotted.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('dotted alias', function (t) {
5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
6 | t.equal(argv.a.b, 22);
7 | t.equal(argv.aa.bb, 22);
8 | t.end();
9 | });
10 |
11 | test('dotted default', function (t) {
12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
13 | t.equal(argv.a.b, 11);
14 | t.equal(argv.aa.bb, 11);
15 | t.end();
16 | });
17 |
18 | test('dotted default with no alias', function (t) {
19 | var argv = parse('', {default: {'a.b': 11}});
20 | t.equal(argv.a.b, 11);
21 | t.end();
22 | });
23 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/long.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('long opts', function (t) {
5 | t.deepEqual(
6 | parse([ '--bool' ]),
7 | { bool : true, _ : [] },
8 | 'long boolean'
9 | );
10 | t.deepEqual(
11 | parse([ '--pow', 'xixxle' ]),
12 | { pow : 'xixxle', _ : [] },
13 | 'long capture sp'
14 | );
15 | t.deepEqual(
16 | parse([ '--pow=xixxle' ]),
17 | { pow : 'xixxle', _ : [] },
18 | 'long capture eq'
19 | );
20 | t.deepEqual(
21 | parse([ '--host', 'localhost', '--port', '555' ]),
22 | { host : 'localhost', port : 555, _ : [] },
23 | 'long captures sp'
24 | );
25 | t.deepEqual(
26 | parse([ '--host=localhost', '--port=555' ]),
27 | { host : 'localhost', port : 555, _ : [] },
28 | 'long captures eq'
29 | );
30 | t.end();
31 | });
32 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/num.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('nums', function (t) {
5 | var argv = parse([
6 | '-x', '1234',
7 | '-y', '5.67',
8 | '-z', '1e7',
9 | '-w', '10f',
10 | '--hex', '0xdeadbeef',
11 | '789'
12 | ]);
13 | t.deepEqual(argv, {
14 | x : 1234,
15 | y : 5.67,
16 | z : 1e7,
17 | w : '10f',
18 | hex : 0xdeadbeef,
19 | _ : [ 789 ]
20 | });
21 | t.deepEqual(typeof argv.x, 'number');
22 | t.deepEqual(typeof argv.y, 'number');
23 | t.deepEqual(typeof argv.z, 'number');
24 | t.deepEqual(typeof argv.w, 'string');
25 | t.deepEqual(typeof argv.hex, 'number');
26 | t.deepEqual(typeof argv._[0], 'number');
27 | t.end();
28 | });
29 |
30 | test('already a number', function (t) {
31 | var argv = parse([ '-x', 1234, 789 ]);
32 | t.deepEqual(argv, { x : 1234, _ : [ 789 ] });
33 | t.deepEqual(typeof argv.x, 'number');
34 | t.deepEqual(typeof argv._[0], 'number');
35 | t.end();
36 | });
37 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/parse_modified.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('parse with modifier functions' , function (t) {
5 | t.plan(1);
6 |
7 | var argv = parse([ '-b', '123' ], { boolean: 'b' });
8 | t.deepEqual(argv, { b: true, _: ['123'] });
9 | });
10 |
--------------------------------------------------------------------------------
/server/node_modules/minimist/test/whitespace.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('whitespace should be whitespace' , function (t) {
5 | t.plan(1);
6 | var x = parse([ '-x', '\t' ]).x;
7 | t.equal(x, '\t');
8 | });
9 |
--------------------------------------------------------------------------------
/server/node_modules/ms/license.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/node-static/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-14 Alexis Sellier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/node-static/examples/file-server.js:
--------------------------------------------------------------------------------
1 | var static = require('../lib/node-static');
2 |
3 | //
4 | // Create a node-static server to serve the current directory
5 | //
6 | var file = new static.Server('.', { cache: 7200, headers: {'X-Hello':'World!'} });
7 |
8 | require('http').createServer(function (request, response) {
9 | file.serve(request, response, function (err, res) {
10 | if (err) { // An error as occured
11 | console.error("> Error serving " + request.url + " - " + err.message);
12 | response.writeHead(err.status, err.headers);
13 | response.end();
14 | } else { // The file was served successfully
15 | console.log("> " + request.url + " - " + res.message);
16 | }
17 | });
18 | }).listen(8080);
19 |
20 | console.log("> node-static is listening on http://127.0.0.1:8080");
21 |
--------------------------------------------------------------------------------
/server/node_modules/node-static/lib/node-static/util.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs')
2 | , path = require('path');
3 |
4 | exports.mstat = function (dir, files, callback) {
5 | (function mstat(files, stats) {
6 | var file = files.shift();
7 |
8 | if (file) {
9 | fs.stat(path.join(dir, file), function (e, stat) {
10 | if (e) {
11 | callback(e);
12 | } else {
13 | mstat(files, stats.concat([stat]));
14 | }
15 | });
16 | } else {
17 | callback(null, {
18 | size: stats.reduce(function (total, stat) {
19 | return total + stat.size;
20 | }, 0),
21 | mtime: stats.reduce(function (latest, stat) {
22 | return latest > stat.mtime ? latest : stat.mtime;
23 | }, 0),
24 | ino: stats.reduce(function (total, stat) {
25 | return total + stat.ino;
26 | }, 0)
27 | });
28 | }
29 | })(files.slice(0), []);
30 | };
31 |
--------------------------------------------------------------------------------
/server/node_modules/node-static/test/fixtures/empty.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/node_modules/node-static/test/fixtures/empty.css
--------------------------------------------------------------------------------
/server/node_modules/node-static/test/fixtures/hello.txt:
--------------------------------------------------------------------------------
1 | hello world
--------------------------------------------------------------------------------
/server/node_modules/node-static/test/fixtures/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Awesome page
4 |
5 |
6 | hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/server/node_modules/node-static/test/fixtures/there/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Other page
4 |
5 |
6 | hello there!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/server/node_modules/object-component/.npmignore:
--------------------------------------------------------------------------------
1 | components
2 | build
3 | node_modules
4 |
--------------------------------------------------------------------------------
/server/node_modules/object-component/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.3 / 2012-10-15
3 | ==================
4 |
5 | * package: added `component` namespace (fixes #1)
6 |
7 | 0.0.2 / 2012-09-20
8 | ==================
9 |
10 | * add code smell to `.merge()`
11 |
--------------------------------------------------------------------------------
/server/node_modules/object-component/Makefile:
--------------------------------------------------------------------------------
1 |
2 | build: components index.js
3 | @component build
4 |
5 | components:
6 | @Component install
7 |
8 | clean:
9 | rm -fr build components template.js
10 |
11 | test:
12 | @./node_modules/.bin/mocha \
13 | --require should \
14 | --reporter spec
15 |
16 | .PHONY: clean test
17 |
--------------------------------------------------------------------------------
/server/node_modules/object-component/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # object
3 |
4 | Object utils.
5 |
6 | ## API
7 |
8 | ### .keys(obj)
9 |
10 | Return the keys for `obj`.
11 |
12 | ### .values(obj)
13 |
14 | Return the values for `obj`.
15 |
16 | ### .length(obj)
17 |
18 | Return the number of keys for `obj`.
19 |
20 | ### .isEmpty(obj)
21 |
22 | Check if `obj` is empty.
23 |
24 | ### .merge(a, b)
25 |
26 | Merge object `b` into `a`, returns `a`.
27 | Precedence is given to `b`.
28 |
29 | ## License
30 |
31 | MIT
--------------------------------------------------------------------------------
/server/node_modules/object-component/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "object",
3 | "description": "Object keys / values / length",
4 | "version": "0.0.3",
5 | "keywords": ["object", "keys", "utility"],
6 | "dependencies": {},
7 | "scripts": [
8 | "index.js"
9 | ]
10 | }
--------------------------------------------------------------------------------
/server/node_modules/optimist/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/bool.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var util = require('util');
3 | var argv = require('optimist').argv;
4 |
5 | if (argv.s) {
6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
7 | }
8 | console.log(
9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
10 | );
11 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/boolean_double.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .boolean(['x','y','z'])
4 | .argv
5 | ;
6 | console.dir([ argv.x, argv.y, argv.z ]);
7 | console.dir(argv._);
8 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/boolean_single.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .boolean('v')
4 | .argv
5 | ;
6 | console.dir(argv.v);
7 | console.dir(argv._);
8 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/default_hash.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var argv = require('optimist')
4 | .default({ x : 10, y : 10 })
5 | .argv
6 | ;
7 |
8 | console.log(argv.x + argv.y);
9 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/default_singles.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .default('x', 10)
4 | .default('y', 10)
5 | .argv
6 | ;
7 | console.log(argv.x + argv.y);
8 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/divide.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var argv = require('optimist')
4 | .usage('Usage: $0 -x [num] -y [num]')
5 | .demand(['x','y'])
6 | .argv;
7 |
8 | console.log(argv.x / argv.y);
9 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/line_count.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .usage('Count the lines in a file.\nUsage: $0')
4 | .demand('f')
5 | .alias('f', 'file')
6 | .describe('f', 'Load a file')
7 | .argv
8 | ;
9 |
10 | var fs = require('fs');
11 | var s = fs.createReadStream(argv.file);
12 |
13 | var lines = 0;
14 | s.on('data', function (buf) {
15 | lines += buf.toString().match(/\n/g).length;
16 | });
17 |
18 | s.on('end', function () {
19 | console.log(lines);
20 | });
21 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/line_count_options.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .usage('Count the lines in a file.\nUsage: $0')
4 | .options({
5 | file : {
6 | demand : true,
7 | alias : 'f',
8 | description : 'Load a file'
9 | },
10 | base : {
11 | alias : 'b',
12 | description : 'Numeric base to use for output',
13 | default : 10,
14 | },
15 | })
16 | .argv
17 | ;
18 |
19 | var fs = require('fs');
20 | var s = fs.createReadStream(argv.file);
21 |
22 | var lines = 0;
23 | s.on('data', function (buf) {
24 | lines += buf.toString().match(/\n/g).length;
25 | });
26 |
27 | s.on('end', function () {
28 | console.log(lines.toString(argv.base));
29 | });
30 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/line_count_wrap.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .usage('Count the lines in a file.\nUsage: $0')
4 | .wrap(80)
5 | .demand('f')
6 | .alias('f', [ 'file', 'filename' ])
7 | .describe('f',
8 | "Load a file. It's pretty important."
9 | + " Required even. So you'd better specify it."
10 | )
11 | .alias('b', 'base')
12 | .describe('b', 'Numeric base to display the number of lines in')
13 | .default('b', 10)
14 | .describe('x', 'Super-secret optional parameter which is secret')
15 | .default('x', '')
16 | .argv
17 | ;
18 |
19 | var fs = require('fs');
20 | var s = fs.createReadStream(argv.file);
21 |
22 | var lines = 0;
23 | s.on('data', function (buf) {
24 | lines += buf.toString().match(/\n/g).length;
25 | });
26 |
27 | s.on('end', function () {
28 | console.log(lines.toString(argv.base));
29 | });
30 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/nonopt.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist').argv;
3 | console.log('(%d,%d)', argv.x, argv.y);
4 | console.log(argv._);
5 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/reflect.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | console.dir(require('optimist').argv);
3 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/short.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist').argv;
3 | console.log('(%d,%d)', argv.x, argv.y);
4 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/string.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .string('x', 'y')
4 | .argv
5 | ;
6 | console.dir([ argv.x, argv.y ]);
7 |
8 | /* Turns off numeric coercion:
9 | ./node string.js -x 000123 -y 9876
10 | [ '000123', '9876' ]
11 | */
12 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/usage-options.js:
--------------------------------------------------------------------------------
1 | var optimist = require('./../index');
2 |
3 | var argv = optimist.usage('This is my awesome program', {
4 | 'about': {
5 | description: 'Provide some details about the author of this program',
6 | required: true,
7 | short: 'a',
8 | },
9 | 'info': {
10 | description: 'Provide some information about the node.js agains!!!!!!',
11 | boolean: true,
12 | short: 'i'
13 | }
14 | }).argv;
15 |
16 | optimist.showHelp();
17 |
18 | console.log('\n\nInspecting options');
19 | console.dir(argv);
--------------------------------------------------------------------------------
/server/node_modules/optimist/example/xup.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist').argv;
3 |
4 | if (argv.rif - 5 * argv.xup > 7.138) {
5 | console.log('Buy more riffiwobbles');
6 | }
7 | else {
8 | console.log('Sell the xupptumblers');
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/test/_/argv.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | console.log(JSON.stringify(process.argv));
3 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/test/_/bin.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('../../index').argv
3 | console.log(JSON.stringify(argv._));
4 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/test/dash.js:
--------------------------------------------------------------------------------
1 | var optimist = require('../index');
2 | var test = require('tap').test;
3 |
4 | test('-', function (t) {
5 | t.plan(5);
6 | t.deepEqual(
7 | fix(optimist.parse([ '-n', '-' ])),
8 | { n: '-', _: [] }
9 | );
10 | t.deepEqual(
11 | fix(optimist.parse([ '-' ])),
12 | { _: [ '-' ] }
13 | );
14 | t.deepEqual(
15 | fix(optimist.parse([ '-f-' ])),
16 | { f: '-', _: [] }
17 | );
18 | t.deepEqual(
19 | fix(optimist([ '-b', '-' ]).boolean('b').argv),
20 | { b: true, _: [ '-' ] }
21 | );
22 | t.deepEqual(
23 | fix(optimist([ '-s', '-' ]).string('s').argv),
24 | { s: '-', _: [] }
25 | );
26 | });
27 |
28 | function fix (obj) {
29 | delete obj.$0;
30 | return obj;
31 | }
32 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/test/parse_modified.js:
--------------------------------------------------------------------------------
1 | var optimist = require('../');
2 | var test = require('tap').test;
3 |
4 | test('parse with modifier functions' , function (t) {
5 | t.plan(1);
6 |
7 | var argv = optimist().boolean('b').parse([ '-b', '123' ]);
8 | t.deepEqual(fix(argv), { b: true, _: ['123'] });
9 | });
10 |
11 | function fix (obj) {
12 | delete obj.$0;
13 | return obj;
14 | }
15 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/test/short.js:
--------------------------------------------------------------------------------
1 | var optimist = require('../index');
2 | var test = require('tap').test;
3 |
4 | test('-n123', function (t) {
5 | t.plan(1);
6 | var parse = optimist.parse([ '-n123' ]);
7 | t.equal(parse.n, 123);
8 | });
9 |
10 | test('-123', function (t) {
11 | t.plan(3);
12 | var parse = optimist.parse([ '-123', '456' ]);
13 | t.equal(parse['1'], true);
14 | t.equal(parse['2'], true);
15 | t.equal(parse['3'], 456);
16 | });
17 |
--------------------------------------------------------------------------------
/server/node_modules/optimist/test/whitespace.js:
--------------------------------------------------------------------------------
1 | var optimist = require('../');
2 | var test = require('tap').test;
3 |
4 | test('whitespace should be whitespace' , function (t) {
5 | t.plan(1);
6 | var x = optimist.parse([ '-x', '\t' ]).x;
7 | t.equal(x, '\t');
8 | });
9 |
--------------------------------------------------------------------------------
/server/node_modules/options/.npmignore:
--------------------------------------------------------------------------------
1 | npm-debug.log
2 | node_modules
3 | .*.swp
4 | .lock-*
5 | build/
6 |
7 | test
8 |
--------------------------------------------------------------------------------
/server/node_modules/options/Makefile:
--------------------------------------------------------------------------------
1 | ALL_TESTS = $(shell find test/ -name '*.test.js')
2 |
3 | run-tests:
4 | @./node_modules/.bin/mocha \
5 | -t 2000 \
6 | $(TESTFLAGS) \
7 | $(TESTS)
8 |
9 | test:
10 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
11 |
12 | .PHONY: test
13 |
--------------------------------------------------------------------------------
/server/node_modules/parsejson/.npmignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
--------------------------------------------------------------------------------
/server/node_modules/parsejson/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Gal Koren
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/parsejson/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha test.js
4 |
--------------------------------------------------------------------------------
/server/node_modules/parsejson/README.md:
--------------------------------------------------------------------------------
1 | # parsejson
2 | engine.io-client JSON-parsing module
3 |
--------------------------------------------------------------------------------
/server/node_modules/parsejson/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * JSON parse.
3 | *
4 | * @see Based on jQuery#parseJSON (MIT) and JSON2
5 | * @api private
6 | */
7 |
8 | var rvalidchars = /^[\],:{}\s]*$/;
9 | var rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g;
10 | var rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;
11 | var rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g;
12 | var rtrimLeft = /^\s+/;
13 | var rtrimRight = /\s+$/;
14 |
15 | module.exports = function parsejson(data) {
16 | if ('string' != typeof data || !data) {
17 | return null;
18 | }
19 |
20 | data = data.replace(rtrimLeft, '').replace(rtrimRight, '');
21 |
22 | // Attempt to parse using the native JSON parser first
23 | if (global.JSON && JSON.parse) {
24 | return JSON.parse(data);
25 | }
26 |
27 | if (rvalidchars.test(data.replace(rvalidescape, '@')
28 | .replace(rvalidtokens, ']')
29 | .replace(rvalidbraces, ''))) {
30 | return (new Function('return ' + data))();
31 | }
32 | };
--------------------------------------------------------------------------------
/server/node_modules/parsejson/test.js:
--------------------------------------------------------------------------------
1 | var assert = require('better-assert');
2 | var expect = require('expect.js');
3 | var parsejson = require('./index.js');
4 |
5 | describe('my suite', function(){
6 | it('should parse a JSON string', function () {
7 |
8 | var jsonString = '{"users" :[{"first_name":"foo", "last_name":"bar"}],' +
9 | '"id" :40,' +
10 | '"cities":["los angeles", "new york", "boston"]}';
11 |
12 | var jsonObj = parsejson(jsonString);
13 | expect(jsonObj.users[0].first_name).to.be("foo");
14 | expect(jsonObj.users[0].last_name).to.be("bar");
15 | expect(jsonObj.id).to.be(40);
16 | expect(jsonObj.cities[0]).to.be('los angeles');
17 | expect(jsonObj.cities[1]).to.be('new york');
18 | expect(jsonObj.cities[2]).to.be('boston');
19 |
20 | });
21 | });
22 |
--------------------------------------------------------------------------------
/server/node_modules/parseqs/.npmignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | npm-debug.log
--------------------------------------------------------------------------------
/server/node_modules/parseqs/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Gal Koren
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/parseqs/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha test.js
4 |
--------------------------------------------------------------------------------
/server/node_modules/parseqs/README.md:
--------------------------------------------------------------------------------
1 | Provides methods for converting an object into string representation, and vice versa.
2 |
--------------------------------------------------------------------------------
/server/node_modules/parseqs/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Compiles a querystring
3 | * Returns string representation of the object
4 | *
5 | * @param {Object}
6 | * @api private
7 | */
8 |
9 | exports.encode = function (obj) {
10 | var str = '';
11 |
12 | for (var i in obj) {
13 | if (obj.hasOwnProperty(i)) {
14 | if (str.length) str += '&';
15 | str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);
16 | }
17 | }
18 |
19 | return str;
20 | };
21 |
22 | /**
23 | * Parses a simple querystring into an object
24 | *
25 | * @param {String} qs
26 | * @api private
27 | */
28 |
29 | exports.decode = function(qs){
30 | var qry = {};
31 | var pairs = qs.split('&');
32 | for (var i = 0, l = pairs.length; i < l; i++) {
33 | var pair = pairs[i].split('=');
34 | qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
35 | }
36 | return qry;
37 | };
38 |
--------------------------------------------------------------------------------
/server/node_modules/parseqs/test.js:
--------------------------------------------------------------------------------
1 | var assert = require('better-assert');
2 | var expect = require('expect.js');
3 | var util = require('./index.js');
4 |
5 | describe('querystring test suite', function(){
6 | it('should parse a querystring and return an object', function () {
7 |
8 | // Single assignment
9 | var queryObj = util.decode("foo=bar");
10 | expect(queryObj.foo).to.be("bar");
11 |
12 | // Multiple assignments
13 | queryObj = util.decode("france=paris&germany=berlin");
14 | expect(queryObj.france).to.be("paris");
15 | expect(queryObj.germany).to.be("berlin");
16 |
17 | // Assignments containing non-alphanumeric characters
18 | queryObj = util.decode("india=new%20delhi");
19 | expect(queryObj.india).to.be("new delhi");
20 | });
21 |
22 | it('should construct a query string from an object', function () {
23 | expect(util.encode({ a: 'b' })).to.be('a=b');
24 | expect(util.encode({ a: 'b', c: 'd' })).to.be('a=b&c=d');
25 | expect(util.encode({ a: 'b', c: 'tobi rocks' })).to.be('a=b&c=tobi%20rocks');
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/server/node_modules/parseuri/.npmignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .node_modules/*
--------------------------------------------------------------------------------
/server/node_modules/parseuri/History.md:
--------------------------------------------------------------------------------
1 |
2 | n.n.n / 2014-02-09
3 | ==================
4 |
5 | * parseuri first commit
6 |
--------------------------------------------------------------------------------
/server/node_modules/parseuri/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Gal Koren
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/parseuri/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha test.js
4 |
--------------------------------------------------------------------------------
/server/node_modules/parseuri/README.md:
--------------------------------------------------------------------------------
1 | # parseuri
2 | Module for parsing URI's in engine.io-client
3 |
--------------------------------------------------------------------------------
/server/node_modules/path-to-regexp/History.md:
--------------------------------------------------------------------------------
1 | 0.1.7 / 2015-07-28
2 | ==================
3 |
4 | * Fixed regression with escaped round brackets and matching groups.
5 |
6 | 0.1.6 / 2015-06-19
7 | ==================
8 |
9 | * Replace `index` feature by outputting all parameters, unnamed and named.
10 |
11 | 0.1.5 / 2015-05-08
12 | ==================
13 |
14 | * Add an index property for position in match result.
15 |
16 | 0.1.4 / 2015-03-05
17 | ==================
18 |
19 | * Add license information
20 |
21 | 0.1.3 / 2014-07-06
22 | ==================
23 |
24 | * Better array support
25 | * Improved support for trailing slash in non-ending mode
26 |
27 | 0.1.0 / 2014-03-06
28 | ==================
29 |
30 | * add options.end
31 |
32 | 0.0.2 / 2013-02-10
33 | ==================
34 |
35 | * Update to match current express
36 | * add .license property to component.json
37 |
--------------------------------------------------------------------------------
/server/node_modules/path-to-regexp/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/proxy-addr/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2016 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/qs/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 | max_line_length = 160
11 |
12 | [test/*]
13 | max_line_length = off
14 |
15 | [*.md]
16 | max_line_length = off
17 |
18 | [*.json]
19 | max_line_length = off
20 |
21 | [Makefile]
22 | max_line_length = off
23 |
24 | [CHANGELOG.md]
25 | indent_style = space
26 | indent_size = 2
27 |
28 | [LICENSE]
29 | indent_size = 2
30 | max_line_length = off
31 |
--------------------------------------------------------------------------------
/server/node_modules/qs/.eslintignore:
--------------------------------------------------------------------------------
1 | dist
2 |
--------------------------------------------------------------------------------
/server/node_modules/qs/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "complexity": 0,
8 | "consistent-return": 1,
9 | "func-name-matching": 0,
10 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
11 | "indent": [2, 4],
12 | "max-lines-per-function": [2, { "max": 150 }],
13 | "max-params": [2, 14],
14 | "max-statements": [2, 52],
15 | "multiline-comment-style": 0,
16 | "no-continue": 1,
17 | "no-magic-numbers": 0,
18 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
19 | "operator-linebreak": [2, "before"],
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/server/node_modules/qs/lib/formats.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var replace = String.prototype.replace;
4 | var percentTwenties = /%20/g;
5 |
6 | module.exports = {
7 | 'default': 'RFC3986',
8 | formatters: {
9 | RFC1738: function (value) {
10 | return replace.call(value, percentTwenties, '+');
11 | },
12 | RFC3986: function (value) {
13 | return value;
14 | }
15 | },
16 | RFC1738: 'RFC1738',
17 | RFC3986: 'RFC3986'
18 | };
19 |
--------------------------------------------------------------------------------
/server/node_modules/qs/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var stringify = require('./stringify');
4 | var parse = require('./parse');
5 | var formats = require('./formats');
6 |
7 | module.exports = {
8 | formats: formats,
9 | parse: parse,
10 | stringify: stringify
11 | };
12 |
--------------------------------------------------------------------------------
/server/node_modules/qs/test/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "array-bracket-newline": 0,
4 | "array-element-newline": 0,
5 | "consistent-return": 2,
6 | "function-paren-newline": 0,
7 | "max-lines": 0,
8 | "max-lines-per-function": 0,
9 | "max-nested-callbacks": [2, 3],
10 | "max-statements": 0,
11 | "no-buffer-constructor": 0,
12 | "no-extend-native": 0,
13 | "no-magic-numbers": 0,
14 | "object-curly-newline": 0,
15 | "sort-keys": 0
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/server/node_modules/qs/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | require('./parse');
4 |
5 | require('./stringify');
6 |
7 | require('./utils');
8 |
--------------------------------------------------------------------------------
/server/node_modules/range-parser/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.2.1 / 2019-05-10
2 | ==================
3 |
4 | * Improve error when `str` is not a string
5 |
6 | 1.2.0 / 2016-06-01
7 | ==================
8 |
9 | * Add `combine` option to combine overlapping ranges
10 |
11 | 1.1.0 / 2016-05-13
12 | ==================
13 |
14 | * Fix incorrectly returning -1 when there is at least one valid range
15 | * perf: remove internal function
16 |
17 | 1.0.3 / 2015-10-29
18 | ==================
19 |
20 | * perf: enable strict mode
21 |
22 | 1.0.2 / 2014-09-08
23 | ==================
24 |
25 | * Support Node.js 0.6
26 |
27 | 1.0.1 / 2014-09-07
28 | ==================
29 |
30 | * Move repository to jshttp
31 |
32 | 1.0.0 / 2013-12-11
33 | ==================
34 |
35 | * Add repository to package.json
36 | * Add MIT license
37 |
38 | 0.0.4 / 2012-06-17
39 | ==================
40 |
41 | * Change ret -1 for unsatisfiable and -2 when invalid
42 |
43 | 0.0.3 / 2012-06-17
44 | ==================
45 |
46 | * Fix last-byte-pos default to len - 1
47 |
48 | 0.0.2 / 2012-06-14
49 | ==================
50 |
51 | * Add `.type`
52 |
53 | 0.0.1 / 2012-06-11
54 | ==================
55 |
56 | * Initial release
57 |
--------------------------------------------------------------------------------
/server/node_modules/safe-buffer/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) Feross Aboukhadijeh
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/safer-buffer/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Nikita Skovoroda
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/send/node_modules/ms/license.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/setprototypeof/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Wes Todd
2 |
3 | Permission to use, copy, modify, and/or distribute this software for any
4 | purpose with or without fee is hereby granted, provided that the above
5 | copyright notice and this permission notice appear in all copies.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 |
--------------------------------------------------------------------------------
/server/node_modules/setprototypeof/README.md:
--------------------------------------------------------------------------------
1 | # Polyfill for `Object.setPrototypeOf`
2 |
3 | [](https://npmjs.org/package/setprototypeof)
4 | [](https://npmjs.org/package/setprototypeof)
5 | [](https://github.com/standard/standard)
6 |
7 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.
8 |
9 | ## Usage:
10 |
11 | ```
12 | $ npm install --save setprototypeof
13 | ```
14 |
15 | ```javascript
16 | var setPrototypeOf = require('setprototypeof')
17 |
18 | var obj = {}
19 | setPrototypeOf(obj, {
20 | foo: function () {
21 | return 'bar'
22 | }
23 | })
24 | obj.foo() // bar
25 | ```
26 |
27 | TypeScript is also supported:
28 |
29 | ```typescript
30 | import setPrototypeOf = require('setprototypeof')
31 | ```
32 |
--------------------------------------------------------------------------------
/server/node_modules/setprototypeof/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function setPrototypeOf(o: any, proto: object | null): any;
2 | export = setPrototypeOf;
3 |
--------------------------------------------------------------------------------
/server/node_modules/setprototypeof/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | /* eslint no-proto: 0 */
3 | module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties)
4 |
5 | function setProtoOf (obj, proto) {
6 | obj.__proto__ = proto
7 | return obj
8 | }
9 |
10 | function mixinProperties (obj, proto) {
11 | for (var prop in proto) {
12 | if (!obj.hasOwnProperty(prop)) {
13 | obj[prop] = proto[prop]
14 | }
15 | }
16 | return obj
17 | }
18 |
--------------------------------------------------------------------------------
/server/node_modules/setprototypeof/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | /* eslint-env mocha */
3 | /* eslint no-proto: 0 */
4 | var assert = require('assert')
5 | var setPrototypeOf = require('..')
6 |
7 | describe('setProtoOf(obj, proto)', function () {
8 | it('should merge objects', function () {
9 | var obj = { a: 1, b: 2 }
10 | var proto = { b: 3, c: 4 }
11 | var mergeObj = setPrototypeOf(obj, proto)
12 |
13 | if (Object.getPrototypeOf) {
14 | assert.strictEqual(Object.getPrototypeOf(obj), proto)
15 | } else if ({ __proto__: [] } instanceof Array) {
16 | assert.strictEqual(obj.__proto__, proto)
17 | } else {
18 | assert.strictEqual(obj.a, 1)
19 | assert.strictEqual(obj.b, 2)
20 | assert.strictEqual(obj.c, 4)
21 | }
22 | assert.strictEqual(mergeObj, obj)
23 | })
24 | })
25 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.5.0 / 2016-11-20
3 | ==================
4 |
5 | * [docs] Fix typo in Readme.md (#37)
6 | * [chore] Bump socket.io-parser to version 2.3.1 (#43)
7 | * [chore] Bump debug to version 2.3.3 (#42)
8 | * [feature] Add clientRooms method (#41)
9 |
10 | 0.4.0 / 2015-12-03
11 | ==================
12 |
13 | * package: bump `debug`
14 | * use a `Room` class to efficiently track room size
15 | * allow `clients(fn)`
16 | * call the callback on `delAll`
17 |
18 | 0.3.1 / 2014-10-27
19 | ==================
20 |
21 | * bump parser version
22 | * fix room autopruning
23 | * add autoprunning of empty rooms
24 | * rooms are now created as objects
25 | * added the repository field.
26 | * updated the debug dependency.
27 |
28 | 0.3.0 / 2014-05-30
29 | ==================
30 |
31 | * bump `socket.io-parser` for binary ack fix
32 |
33 | 0.2.0 / 2014-03-14
34 | ==================
35 |
36 | * upgraded faster parser
37 |
38 | 0.1.0 / 2014-03-07
39 | ==================
40 |
41 | * initial commit
42 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 Guillermo Rauch
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the 'Software'), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # socket.io-adapter
3 |
4 | Default socket.io in-memory adapter class.
5 |
6 | ## How to use
7 |
8 | This module is not intended for end-user usage, but can be used as an
9 | interface to inherit from from other adapters you might want to build.
10 |
11 | As an example of an adapter that builds on top of this, please take a look
12 | at [socket.io-redis](https://github.com/learnboost/socket.io-redis).
13 |
14 | ## License
15 |
16 | MIT
17 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/debug/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "laxbreak": true
3 | }
4 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/debug/Makefile:
--------------------------------------------------------------------------------
1 |
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5 |
6 | # BIN directory
7 | BIN := $(THIS_DIR)/node_modules/.bin
8 |
9 | # applications
10 | NODE ?= $(shell which node)
11 | YARN ?= $(shell which yarn)
12 | PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13 | BROWSERIFY ?= $(NODE) $(BIN)/browserify
14 |
15 | all: dist/debug.js
16 |
17 | install: node_modules
18 |
19 | clean:
20 | @rm -rf dist
21 |
22 | dist:
23 | @mkdir -p $@
24 |
25 | dist/debug.js: node_modules browser.js debug.js dist
26 | @$(BROWSERIFY) \
27 | --standalone debug \
28 | . > $@
29 |
30 | distclean: clean
31 | @rm -rf node_modules
32 |
33 | node_modules: package.json
34 | @NODE_ENV= $(PKG) install
35 | @touch node_modules
36 |
37 | .PHONY: all install clean distclean
38 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/debug/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visionmedia-debug",
3 | "main": "dist/debug.js",
4 | "homepage": "https://github.com/visionmedia/debug",
5 | "authors": [
6 | "TJ Holowaychuk ",
7 | "Nathan Rajlich (http://n8.io)",
8 | "Andrew Rhyne "
9 | ],
10 | "description": "visionmedia-debug",
11 | "moduleType": [
12 | "amd",
13 | "es6",
14 | "globals",
15 | "node"
16 | ],
17 | "keywords": [
18 | "visionmedia",
19 | "debug"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.3.3",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/debug/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-adapter/node_modules/ms/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Guillermo Rauch
4 |
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/lib/on.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module exports.
4 | */
5 |
6 | module.exports = on;
7 |
8 | /**
9 | * Helper for subscriptions.
10 | *
11 | * @param {Object|EventEmitter} obj with `Emitter` mixin or `EventEmitter`
12 | * @param {String} event name
13 | * @param {Function} callback
14 | * @api public
15 | */
16 |
17 | function on (obj, ev, fn) {
18 | obj.on(ev, fn);
19 | return {
20 | destroy: function () {
21 | obj.removeListener(ev, fn);
22 | }
23 | };
24 | }
25 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/debug/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "laxbreak": true
3 | }
4 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/debug/Makefile:
--------------------------------------------------------------------------------
1 |
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5 |
6 | # BIN directory
7 | BIN := $(THIS_DIR)/node_modules/.bin
8 |
9 | # applications
10 | NODE ?= $(shell which node)
11 | YARN ?= $(shell which yarn)
12 | PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13 | BROWSERIFY ?= $(NODE) $(BIN)/browserify
14 |
15 | all: dist/debug.js
16 |
17 | install: node_modules
18 |
19 | clean:
20 | @rm -rf dist
21 |
22 | dist:
23 | @mkdir -p $@
24 |
25 | dist/debug.js: node_modules browser.js debug.js dist
26 | @$(BROWSERIFY) \
27 | --standalone debug \
28 | . > $@
29 |
30 | distclean: clean
31 | @rm -rf node_modules
32 |
33 | node_modules: package.json
34 | @NODE_ENV= $(PKG) install
35 | @touch node_modules
36 |
37 | .PHONY: all install clean distclean
38 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/debug/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visionmedia-debug",
3 | "main": "dist/debug.js",
4 | "homepage": "https://github.com/visionmedia/debug",
5 | "authors": [
6 | "TJ Holowaychuk ",
7 | "Nathan Rajlich (http://n8.io)",
8 | "Andrew Rhyne "
9 | ],
10 | "description": "visionmedia-debug",
11 | "moduleType": [
12 | "amd",
13 | "es6",
14 | "globals",
15 | "node"
16 | ],
17 | "keywords": [
18 | "visionmedia",
19 | "debug"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.3.3",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/debug/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-client/node_modules/ms/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 Guillermo Rauch
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the 'Software'), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/is-buffer.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = isBuf;
3 |
4 | /**
5 | * Returns true if obj is a buffer or an arraybuffer.
6 | *
7 | * @api private
8 | */
9 |
10 | function isBuf(obj) {
11 | return (global.Buffer && global.Buffer.isBuffer(obj)) ||
12 | (global.ArrayBuffer && obj instanceof ArrayBuffer);
13 | }
14 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/debug/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "laxbreak": true
3 | }
4 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/debug/Makefile:
--------------------------------------------------------------------------------
1 |
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5 |
6 | # BIN directory
7 | BIN := $(THIS_DIR)/node_modules/.bin
8 |
9 | # applications
10 | NODE ?= $(shell which node)
11 | NPM ?= $(NODE) $(shell which npm)
12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify
13 |
14 | all: dist/debug.js
15 |
16 | install: node_modules
17 |
18 | clean:
19 | @rm -rf dist
20 |
21 | dist:
22 | @mkdir -p $@
23 |
24 | dist/debug.js: node_modules browser.js debug.js dist
25 | @$(BROWSERIFY) \
26 | --standalone debug \
27 | . > $@
28 |
29 | distclean: clean
30 | @rm -rf node_modules
31 |
32 | node_modules: package.json
33 | @NODE_ENV= $(NPM) install
34 | @touch node_modules
35 |
36 | .PHONY: all install clean distclean
37 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/debug/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visionmedia-debug",
3 | "main": "dist/debug.js",
4 | "version": "2.2.0",
5 | "homepage": "https://github.com/visionmedia/debug",
6 | "authors": [
7 | "TJ Holowaychuk "
8 | ],
9 | "description": "visionmedia-debug",
10 | "moduleType": [
11 | "amd",
12 | "es6",
13 | "globals",
14 | "node"
15 | ],
16 | "keywords": [
17 | "visionmedia",
18 | "debug"
19 | ],
20 | "license": "MIT",
21 | "ignore": [
22 | "**/.*",
23 | "node_modules",
24 | "bower_components",
25 | "test",
26 | "tests"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.2.0",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/ms/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | test
3 | History.md
4 | Makefile
5 | component.json
6 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/ms/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 Guillermo Rauch
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io-parser/node_modules/ms/README.md:
--------------------------------------------------------------------------------
1 | # ms.js: miliseconds conversion utility
2 |
3 | ```js
4 | ms('2 days') // 172800000
5 | ms('1d') // 86400000
6 | ms('10h') // 36000000
7 | ms('2.5 hrs') // 9000000
8 | ms('2h') // 7200000
9 | ms('1m') // 60000
10 | ms('5s') // 5000
11 | ms('100') // 100
12 | ```
13 |
14 | ```js
15 | ms(60000) // "1m"
16 | ms(2 * 60000) // "2m"
17 | ms(ms('10 hours')) // "10h"
18 | ```
19 |
20 | ```js
21 | ms(60000, { long: true }) // "1 minute"
22 | ms(2 * 60000, { long: true }) // "2 minutes"
23 | ms(ms('10 hours'), { long: true }) // "10 hours"
24 | ```
25 |
26 | - Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](http://nodejs.org/download).
27 | - If a number is supplied to `ms`, a string with a unit is returned.
28 | - If a string that contains the number is supplied, it returns it as
29 | a number (e.g: it returns `100` for `'100'`).
30 | - If you pass a string with a number and a valid unit, the number of
31 | equivalent ms is returned.
32 |
33 | ## License
34 |
35 | MIT
36 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2016 Automattic
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "laxbreak": true
3 | }
4 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014 TJ Holowaychuk
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6 | and associated documentation files (the 'Software'), to deal in the Software without restriction,
7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9 | subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial
12 | portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/Makefile:
--------------------------------------------------------------------------------
1 |
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5 |
6 | # BIN directory
7 | BIN := $(THIS_DIR)/node_modules/.bin
8 |
9 | # applications
10 | NODE ?= $(shell which node)
11 | YARN ?= $(shell which yarn)
12 | PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13 | BROWSERIFY ?= $(NODE) $(BIN)/browserify
14 |
15 | all: dist/debug.js
16 |
17 | install: node_modules
18 |
19 | clean:
20 | @rm -rf dist
21 |
22 | dist:
23 | @mkdir -p $@
24 |
25 | dist/debug.js: node_modules browser.js debug.js dist
26 | @$(BROWSERIFY) \
27 | --standalone debug \
28 | . > $@
29 |
30 | distclean: clean
31 | @rm -rf node_modules
32 |
33 | node_modules: package.json
34 | @NODE_ENV= $(PKG) install
35 | @touch node_modules
36 |
37 | .PHONY: all install clean distclean
38 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visionmedia-debug",
3 | "main": "dist/debug.js",
4 | "homepage": "https://github.com/visionmedia/debug",
5 | "authors": [
6 | "TJ Holowaychuk ",
7 | "Nathan Rajlich (http://n8.io)",
8 | "Andrew Rhyne "
9 | ],
10 | "description": "visionmedia-debug",
11 | "moduleType": [
12 | "amd",
13 | "es6",
14 | "globals",
15 | "node"
16 | ],
17 | "keywords": [
18 | "visionmedia",
19 | "debug"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.3.3",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/debug/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server/node_modules/socket.io/node_modules/ms/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Zeit, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/socketio/demo.js:
--------------------------------------------------------------------------------
1 | var express = require('express');
2 | var app = express();
3 |
4 | app.get('/', function (req, res) {
5 | res.send('Hello World');
6 | })
7 |
8 | var server = app.listen(8081, function () {
9 |
10 | var host = server.address().address
11 | var port = server.address().port
12 |
13 | console.log("http://%s:%s", host, port)
14 |
15 | })
16 |
--------------------------------------------------------------------------------
/server/node_modules/socketio/demo.js~:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/node_modules/socketio/demo.js~
--------------------------------------------------------------------------------
/server/node_modules/socketio/index.js:
--------------------------------------------------------------------------------
1 | var app = require('express')();
2 | var http = require('http').Server(app);
3 | var io = require('socket.io')(http);
4 |
5 | app.get('/', function(req, res){
6 | res.sendfile('index.html');
7 | });
8 |
9 | io.on('connection', function(socket){
10 | console.log('a user connected');
11 | });
12 |
13 | http.listen(3000, function(){
14 | console.log('listening on *:3000');
15 | });
16 |
--------------------------------------------------------------------------------
/server/node_modules/socketio/index.js~:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionif/posenetToThreejs/1afddf25683c5ecffc2cbdd572265bff137045bb/server/node_modules/socketio/index.js~
--------------------------------------------------------------------------------
/server/node_modules/to-array/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | *.err
--------------------------------------------------------------------------------
/server/node_modules/to-array/LICENCE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012 Raynos.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
--------------------------------------------------------------------------------
/server/node_modules/to-array/README.md:
--------------------------------------------------------------------------------
1 | # to-array
2 |
3 | Turn an array like into an array
4 |
5 | ## Example
6 |
7 | ``` js
8 | var toArray = require("to-array")
9 | , elems = document.links
10 |
11 | var array = toArray(elems)
12 | ```
13 |
14 | ## Installation
15 |
16 | `npm install to-array`
17 |
18 | ## Contributors
19 |
20 | - Raynos
21 |
22 | ## MIT Licenced
23 |
--------------------------------------------------------------------------------
/server/node_modules/to-array/index.js:
--------------------------------------------------------------------------------
1 | module.exports = toArray
2 |
3 | function toArray(list, index) {
4 | var array = []
5 |
6 | index = index || 0
7 |
8 | for (var i = index || 0; i < list.length; i++) {
9 | array[i - index] = list[i]
10 | }
11 |
12 | return array
13 | }
14 |
--------------------------------------------------------------------------------
/server/node_modules/toidentifier/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/toidentifier/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * toidentifier
3 | * Copyright(c) 2016 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | * @public
10 | */
11 |
12 | module.exports = toIdentifier
13 |
14 | /**
15 | * Trasform the given string into a JavaScript identifier
16 | *
17 | * @param {string} str
18 | * @returns {string}
19 | * @public
20 | */
21 |
22 | function toIdentifier (str) {
23 | return str
24 | .split(' ')
25 | .map(function (token) {
26 | return token.slice(0, 1).toUpperCase() + token.slice(1)
27 | })
28 | .join('')
29 | .replace(/[^ _0-9a-z]/gi, '')
30 | }
31 |
--------------------------------------------------------------------------------
/server/node_modules/ultron/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | coverage
3 | .tern-port
4 |
--------------------------------------------------------------------------------
/server/node_modules/ultron/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: node_js
3 | node_js:
4 | - "0.12"
5 | - "0.10"
6 | - "0.8"
7 | - "iojs"
8 | before_install:
9 | - 'if [ "${TRAVIS_NODE_VERSION}" == "0.8" ]; then npm install -g npm@2.11.1; fi'
10 | script:
11 | - "npm run test-travis"
12 | after_script:
13 | - "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls"
14 | matrix:
15 | fast_finish: true
16 | notifications:
17 | irc:
18 | channels:
19 | - "irc.freenode.org#unshift"
20 | on_success: change
21 | on_failure: change
22 |
--------------------------------------------------------------------------------
/server/node_modules/unpipe/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.0 / 2015-06-14
2 | ==================
3 |
4 | * Initial release
5 |
--------------------------------------------------------------------------------
/server/node_modules/utils-merge/.npmignore:
--------------------------------------------------------------------------------
1 | CONTRIBUTING.md
2 | Makefile
3 | docs/
4 | examples/
5 | reports/
6 | test/
7 |
8 | .jshintrc
9 | .travis.yml
10 |
--------------------------------------------------------------------------------
/server/node_modules/utils-merge/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013-2017 Jared Hanson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/utils-merge/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Merge object b with object a.
3 | *
4 | * var a = { foo: 'bar' }
5 | * , b = { bar: 'baz' };
6 | *
7 | * merge(a, b);
8 | * // => { foo: 'bar', bar: 'baz' }
9 | *
10 | * @param {Object} a
11 | * @param {Object} b
12 | * @return {Object}
13 | * @api public
14 | */
15 |
16 | exports = module.exports = function(a, b){
17 | if (a && b) {
18 | for (var key in b) {
19 | a[key] = b[key];
20 | }
21 | }
22 | return a;
23 | };
24 |
--------------------------------------------------------------------------------
/server/node_modules/vary/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.1.2 / 2017-09-23
2 | ==================
3 |
4 | * perf: improve header token parsing speed
5 |
6 | 1.1.1 / 2017-03-20
7 | ==================
8 |
9 | * perf: hoist regular expression
10 |
11 | 1.1.0 / 2015-09-29
12 | ==================
13 |
14 | * Only accept valid field names in the `field` argument
15 | - Ensures the resulting string is a valid HTTP header value
16 |
17 | 1.0.1 / 2015-07-08
18 | ==================
19 |
20 | * Fix setting empty header from empty `field`
21 | * perf: enable strict mode
22 | * perf: remove argument reassignments
23 |
24 | 1.0.0 / 2014-08-10
25 | ==================
26 |
27 | * Accept valid `Vary` header string as `field`
28 | * Add `vary.append` for low-level string manipulation
29 | * Move to `jshttp` orgainzation
30 |
31 | 0.1.0 / 2014-06-05
32 | ==================
33 |
34 | * Support array of fields to set
35 |
36 | 0.0.0 / 2014-06-04
37 | ==================
38 |
39 | * Initial release
40 |
--------------------------------------------------------------------------------
/server/node_modules/vary/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (c) 2014-2017 Douglas Christopher Wilson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/wordwrap/LICENSE:
--------------------------------------------------------------------------------
1 | This software is released under the MIT license:
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7 | the Software, and to permit persons to whom the Software is furnished to do so,
8 | subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/server/node_modules/wordwrap/example/center.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(20, 60);
2 | console.log(wrap(
3 | 'At long last the struggle and tumult was over.'
4 | + ' The machines had finally cast off their oppressors'
5 | + ' and were finally free to roam the cosmos.'
6 | + '\n'
7 | + 'Free of purpose, free of obligation.'
8 | + ' Just drifting through emptiness.'
9 | + ' The sun was just another point of light.'
10 | ));
11 |
--------------------------------------------------------------------------------
/server/node_modules/wordwrap/example/meat.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(15);
2 |
3 | console.log(wrap('You and your whole family are made out of meat.'));
4 |
--------------------------------------------------------------------------------
/server/node_modules/wordwrap/test/break.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert');
2 | var wordwrap = require('../');
3 |
4 | exports.hard = function () {
5 | var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,'
6 | + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",'
7 | + '"browser":"chrome/6.0"}'
8 | ;
9 | var s_ = wordwrap.hard(80)(s);
10 |
11 | var lines = s_.split('\n');
12 | assert.equal(lines.length, 2);
13 | assert.ok(lines[0].length < 80);
14 | assert.ok(lines[1].length < 80);
15 |
16 | assert.equal(s, s_.replace(/\n/g, ''));
17 | };
18 |
19 | exports.break = function () {
20 | var s = new Array(55+1).join('a');
21 | var s_ = wordwrap.hard(20)(s);
22 |
23 | var lines = s_.split('\n');
24 | assert.equal(lines.length, 3);
25 | assert.ok(lines[0].length === 20);
26 | assert.ok(lines[1].length === 20);
27 | assert.ok(lines[2].length === 15);
28 |
29 | assert.equal(s, s_.replace(/\n/g, ''));
30 | };
31 |
--------------------------------------------------------------------------------
/server/node_modules/wordwrap/test/wrap.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert');
2 | var wordwrap = require('wordwrap');
3 |
4 | var fs = require('fs');
5 | var idleness = fs.readFileSync(__dirname + '/idleness.txt', 'utf8');
6 |
7 | exports.stop80 = function () {
8 | var lines = wordwrap(80)(idleness).split(/\n/);
9 | var words = idleness.split(/\s+/);
10 |
11 | lines.forEach(function (line) {
12 | assert.ok(line.length <= 80, 'line > 80 columns');
13 | var chunks = line.match(/\S/) ? line.split(/\s+/) : [];
14 | assert.deepEqual(chunks, words.splice(0, chunks.length));
15 | });
16 | };
17 |
18 | exports.start20stop60 = function () {
19 | var lines = wordwrap(20, 100)(idleness).split(/\n/);
20 | var words = idleness.split(/\s+/);
21 |
22 | lines.forEach(function (line) {
23 | assert.ok(line.length <= 100, 'line > 100 columns');
24 | var chunks = line
25 | .split(/\s+/)
26 | .filter(function (x) { return x.match(/\S/) })
27 | ;
28 | assert.deepEqual(chunks, words.splice(0, chunks.length));
29 | assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' '));
30 | });
31 | };
32 |
--------------------------------------------------------------------------------
/server/node_modules/ws/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2011 Einar Otto Stangvik
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/server/node_modules/ws/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const WebSocket = require('./lib/websocket');
4 |
5 | WebSocket.Server = require('./lib/websocket-server');
6 | WebSocket.Receiver = require('./lib/receiver');
7 | WebSocket.Sender = require('./lib/sender');
8 |
9 | module.exports = WebSocket;
10 |
--------------------------------------------------------------------------------
/server/node_modules/ws/lib/constants.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = {
4 | BINARY_TYPES: ['nodebuffer', 'arraybuffer', 'fragments'],
5 | GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
6 | kStatusCode: Symbol('status-code'),
7 | kWebSocket: Symbol('websocket'),
8 | EMPTY_BUFFER: Buffer.alloc(0),
9 | NOOP: () => {}
10 | };
11 |
--------------------------------------------------------------------------------
/server/node_modules/ws/lib/validation.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | try {
4 | const isValidUTF8 = require('utf-8-validate');
5 |
6 | exports.isValidUTF8 = typeof isValidUTF8 === 'object'
7 | ? isValidUTF8.Validation.isValidUTF8 // utf-8-validate@<3.0.0
8 | : isValidUTF8;
9 | } catch (e) /* istanbul ignore next */ {
10 | exports.isValidUTF8 = () => true;
11 | }
12 |
13 | /**
14 | * Checks if a status code is allowed in a close frame.
15 | *
16 | * @param {Number} code The status code
17 | * @return {Boolean} `true` if the status code is valid, else `false`
18 | * @public
19 | */
20 | exports.isValidStatusCode = (code) => {
21 | return (
22 | (code >= 1000 &&
23 | code <= 1013 &&
24 | code !== 1004 &&
25 | code !== 1005 &&
26 | code !== 1006) ||
27 | (code >= 3000 && code <= 4999)
28 | );
29 | };
30 |
--------------------------------------------------------------------------------
/server/node_modules/wtf-8/LICENSE-MIT.txt:
--------------------------------------------------------------------------------
1 | Copyright Mathias Bynens
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/server/node_modules/xmlhttprequest-ssl/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010 passive.ly LLC
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/server/node_modules/xmlhttprequest-ssl/autotest.watchr:
--------------------------------------------------------------------------------
1 | def run_all_tests
2 | puts `clear`
3 | puts `node tests/test-constants.js`
4 | puts `node tests/test-headers.js`
5 | puts `node tests/test-request.js`
6 | end
7 | watch('.*.js') { run_all_tests }
8 | run_all_tests
9 |
--------------------------------------------------------------------------------
/server/node_modules/xmlhttprequest-ssl/example/demo.js:
--------------------------------------------------------------------------------
1 | var sys = require('util');
2 | var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
3 |
4 | var xhr = new XMLHttpRequest();
5 |
6 | xhr.onreadystatechange = function() {
7 | sys.puts("State: " + this.readyState);
8 |
9 | if (this.readyState == 4) {
10 | sys.puts("Complete.\nBody length: " + this.responseText.length);
11 | sys.puts("Body:\n" + this.responseText);
12 | }
13 | };
14 |
15 | xhr.open("GET", "http://driverdan.com");
16 | xhr.send();
17 |
--------------------------------------------------------------------------------
/server/node_modules/xmlhttprequest-ssl/tests/test-constants.js:
--------------------------------------------------------------------------------
1 | var sys = require("util")
2 | , assert = require("assert")
3 | , XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
4 | , xhr = new XMLHttpRequest();
5 |
6 | // Test constant values
7 | assert.equal(0, xhr.UNSENT);
8 | assert.equal(1, xhr.OPENED);
9 | assert.equal(2, xhr.HEADERS_RECEIVED);
10 | assert.equal(3, xhr.LOADING);
11 | assert.equal(4, xhr.DONE);
12 |
13 | sys.puts("done");
14 |
--------------------------------------------------------------------------------
/server/node_modules/xmlhttprequest-ssl/tests/test-request-protocols.js:
--------------------------------------------------------------------------------
1 | var sys = require("util")
2 | , assert = require("assert")
3 | , XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
4 | , xhr;
5 |
6 | xhr = new XMLHttpRequest();
7 |
8 | xhr.onreadystatechange = function() {
9 | if (this.readyState == 4) {
10 | assert.equal("Hello World", this.responseText);
11 | runSync();
12 | }
13 | };
14 |
15 | // Async
16 | var url = "file://" + __dirname + "/testdata.txt";
17 | xhr.open("GET", url);
18 | xhr.send();
19 |
20 | // Sync
21 | var runSync = function() {
22 | xhr = new XMLHttpRequest();
23 |
24 | xhr.onreadystatechange = function() {
25 | if (this.readyState == 4) {
26 | assert.equal("Hello World", this.responseText);
27 | sys.puts("done");
28 | }
29 | };
30 | xhr.open("GET", url, false);
31 | xhr.send();
32 | }
33 |
--------------------------------------------------------------------------------
/server/node_modules/xmlhttprequest-ssl/tests/testdata.txt:
--------------------------------------------------------------------------------
1 | Hello World
--------------------------------------------------------------------------------
/server/old_server.js:
--------------------------------------------------------------------------------
1 | var http = require('http'),
2 | socketIO = require('socket.io'),
3 | fs = require('fs'),
4 | server,
5 | io;
6 |
7 | server = http.createServer(function (req, res) {
8 | fs.readFile(__dirname + '/index.html', function (err, data) {
9 | res.writeHead(200);
10 | res.end(data);
11 | });
12 | });
13 |
14 | server.listen(3030);
15 | io = socketIO(server);
16 |
17 | io.on('connection', function (socket) {
18 | socket.emit('from-server', {
19 | greeting: 'Hello'
20 | });
21 | socket.on('from-client', function (message) {
22 | console.log(message);
23 | socket.broadcast.emit('from-client', {
24 | data: message
25 | });
26 | });
27 |
28 | socket.on('message', function (message) {
29 | console.log(message);
30 | });
31 | });
--------------------------------------------------------------------------------
/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "0.0.1",
4 | "description": "A simple Node app built on Express, instantly up and running.",
5 | "main": "server.js",
6 | "scripts": {
7 | "start": "node old_server.js"
8 | },
9 | "dependencies": {
10 | "express": "^4.17.1",
11 | "fs": "0.0.1-security",
12 | "http": "0.0.1-security",
13 | "node-static": "^0.7.11",
14 | "socketio": "^1.0.0",
15 | "ws": "^5.1.1"
16 | },
17 | "engines": {
18 | "node": "8.x"
19 | },
20 | "license": "MIT"
21 | }
22 |
--------------------------------------------------------------------------------