Running...
18 |
19 |
20 |
21 |
22 |
25 |
26 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/test-tokenizer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | > 1;
3 | var c = 8 >>> 1;
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue34.js:
--------------------------------------------------------------------------------
1 | var a = {};
2 | a["this"] = 1;
3 | a["that"] = 2;
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue4.js:
--------------------------------------------------------------------------------
1 | var a = 2e3;
2 | var b = 2e-3;
3 | var c = 2e-5;
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue48.js:
--------------------------------------------------------------------------------
1 | var s, i; s = ''; i = 0;
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue50.js:
--------------------------------------------------------------------------------
1 | function bar(a) {
2 | try {
3 | foo();
4 | } catch(e) {
5 | alert("Exception caught (foo not defined)");
6 | }
7 | alert(a); // 10 in FF, "[object Error]" in IE
8 | }
9 | bar(10);
10 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue53.js:
--------------------------------------------------------------------------------
1 | x = (y, z)
2 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue54.1.js:
--------------------------------------------------------------------------------
1 | foo.toString();
2 | a.toString(16);
3 | b.toString.call(c);
4 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue68.js:
--------------------------------------------------------------------------------
1 | function f() {
2 | if (a) return;
3 | g();
4 | function g(){}
5 | };
6 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue69.js:
--------------------------------------------------------------------------------
1 | [(a,b)]
2 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/issue9.js:
--------------------------------------------------------------------------------
1 | var a = {
2 | a: 1,
3 | b: 2, // <-- trailing comma
4 | };
5 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/mangle.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var x = function fun(a, fun, b) {
3 | return fun;
4 | };
5 | }());
6 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/null_string.js:
--------------------------------------------------------------------------------
1 | var nullString = "\0"
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/strict-equals.js:
--------------------------------------------------------------------------------
1 | typeof a === 'string'
2 | b + "" !== c + ""
3 | d < e === f < g
4 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/var.js:
--------------------------------------------------------------------------------
1 | // var declarations after each other should be combined
2 | var a = 1;
3 | var b = 2;
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/whitespace.js:
--------------------------------------------------------------------------------
1 | function id(a) {
2 | // Form-Feed
3 | // Vertical Tab
4 | // No-Break Space
5 | // Mongolian Vowel Separator
6 | // En quad
7 | // Em quad
8 | // En space
9 | // Em space
10 | // Three-Per-Em Space
11 | // Four-Per-Em Space
12 | // Six-Per-Em Space
13 | // Figure Space
14 | // Punctuation Space
15 | // Thin Space
16 | // Hair Space
17 | // Narrow No-Break Space
18 | // Medium Mathematical Space
19 | // Ideographic Space
20 | return a;
21 | }
22 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/with.js:
--------------------------------------------------------------------------------
1 | with({}) {
2 | };
3 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/269.js:
--------------------------------------------------------------------------------
1 | var jsp = require("uglify-js").parser;
2 | var pro = require("uglify-js").uglify;
3 |
4 | var test_code = "var JSON;JSON||(JSON={});";
5 |
6 | var ast = jsp.parse(test_code, false, false);
7 | var nonembed_token_code = pro.gen_code(ast);
8 | ast = jsp.parse(test_code, false, true);
9 | var embed_token_code = pro.gen_code(ast);
10 |
11 | console.log("original: " + test_code);
12 | console.log("no token: " + nonembed_token_code);
13 | console.log(" token: " + embed_token_code);
14 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/embed-tokens.js:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env node
2 |
3 | global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util");
4 | var fs = require("fs");
5 | var uglify = require("uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js
6 | jsp = uglify.parser,
7 | pro = uglify.uglify;
8 |
9 | var code = fs.readFileSync("embed-tokens.js", "utf8").replace(/^#.*$/mg, "");
10 | var ast = jsp.parse(code, null, true);
11 |
12 | // trololo
13 | function fooBar() {}
14 |
15 | console.log(sys.inspect(ast, null, null));
16 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/goto.js:
--------------------------------------------------------------------------------
1 | function unique(arqw) {
2 | var a = [], i, j
3 | outer: for (i = 0; i < arqw.length; i++) {
4 | for (j = 0; j < a.length; j++) {
5 | if (a[j] == arqw[i]) {
6 | continue outer
7 | }
8 | }
9 | a[a.length] = arqw[i]
10 | }
11 | return a
12 | }
13 |
14 |
15 | function unique(arqw) {
16 | var crap = [], i, j
17 | outer: for (i = 0; i < arqw.length; i++) {
18 | for (j = 0; j < crap.length; j++) {
19 | if (crap[j] == arqw[i]) {
20 | continue outer
21 | }
22 | }
23 | crap[crap.length] = arqw[i]
24 | }
25 | return crap
26 | }
27 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/goto2.js:
--------------------------------------------------------------------------------
1 | function q(qooo) {
2 | var a;
3 | foo: for(;;) {
4 | a++;
5 | if (something) break foo;
6 | return qooo;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/hoist.js:
--------------------------------------------------------------------------------
1 | function foo(arg1, arg2, arg3, arg4, arg5, arg6) {
2 | var a = 5;
3 | {
4 | var d = 10, mak = 20, buz = 30;
5 | var q = buz * 2;
6 | }
7 | if (moo) {
8 | var a, b, c;
9 | }
10 | for (var arg1 = 0, d = 20; arg1 < 10; ++arg1)
11 | console.log(arg3);
12 | for (var i in mak) {}
13 | for (j in d) {}
14 | var d;
15 |
16 | function test() {
17 |
18 | };
19 |
20 | //test();
21 |
22 | (function moo(first, second){
23 | console.log(first);
24 | })(1);
25 |
26 | (function moo(first, second){
27 | console.log(moo());
28 | })(1);
29 | }
30 |
31 |
32 | var foo;
33 | var bar;
34 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/liftvars.js:
--------------------------------------------------------------------------------
1 | var UNUSED_VAR1 = 19;
2 |
3 | function main() {
4 | var unused_var2 = 20;
5 | alert(100);
6 | }
7 |
8 | main();
9 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/test.js:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env node
2 |
3 | global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util");
4 | var fs = require("fs");
5 | var uglify = require("uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js
6 | jsp = uglify.parser,
7 | pro = uglify.uglify;
8 |
9 | var code = fs.readFileSync("hoist.js", "utf8");
10 | var ast = jsp.parse(code);
11 |
12 | ast = pro.ast_lift_variables(ast);
13 |
14 | var w = pro.ast_walker();
15 | ast = w.with_walkers({
16 | "function": function() {
17 | var node = w.dive(this); // walk depth first
18 | console.log(pro.gen_code(node, { beautify: true }));
19 | return node;
20 | },
21 | "name": function(name) {
22 | return [ this[0], "X" ];
23 | }
24 | }, function(){
25 | return w.walk(ast);
26 | });
27 |
28 | console.log(pro.gen_code(ast, {
29 | beautify: true
30 | }));
31 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/uglify-js.js:
--------------------------------------------------------------------------------
1 | //convienence function(src, [options]);
2 | function uglify(orig_code, options){
3 | options || (options = {});
4 | var jsp = uglify.parser;
5 | var pro = uglify.uglify;
6 |
7 | var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST
8 | ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names
9 | ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations
10 | var final_code = pro.gen_code(ast, options.gen_options); // compressed code here
11 | return final_code;
12 | };
13 |
14 | uglify.parser = require("./lib/parse-js");
15 | uglify.uglify = require("./lib/process");
16 |
17 | module.exports = uglify
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/.npmignore:
--------------------------------------------------------------------------------
1 | npm-debug.log
2 | node_modules
3 | .*.swp
4 | .lock-*
5 | build
6 |
7 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.4
4 | - 0.6
5 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/Makefile:
--------------------------------------------------------------------------------
1 | ALL_TESTS = $(shell find test/ -name '*.test.js')
2 | ALL_INTEGRATION = $(shell find test/ -name '*.integration.js')
3 |
4 | all:
5 | node-gyp configure build
6 |
7 | clean:
8 | node-gyp clean
9 |
10 | run-tests:
11 | @./node_modules/.bin/mocha \
12 | -t 2000 \
13 | $(TESTFLAGS) \
14 | $(TESTS)
15 |
16 | run-integrationtests:
17 | @./node_modules/.bin/mocha \
18 | -t 5000 \
19 | $(TESTFLAGS) \
20 | $(TESTS)
21 |
22 | test:
23 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
24 |
25 | integrationtest:
26 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_INTEGRATION)" run-integrationtests
27 |
28 | benchmark:
29 | @node bench/sender.benchmark.js
30 | @node bench/parser.benchmark.js
31 |
32 | autobahn:
33 | @NODE_PATH=lib node test/autobahn.js
34 |
35 | autobahn-server:
36 | @NODE_PATH=lib node test/autobahn-server.js
37 |
38 | .PHONY: test
39 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/binding.gyp:
--------------------------------------------------------------------------------
1 | {
2 | 'targets': [
3 | {
4 | 'target_name': 'validation',
5 | 'cflags': [ '-O3' ],
6 | 'sources': [ 'src/validation.cc' ]
7 | },
8 | {
9 | 'target_name': 'bufferutil',
10 | 'cflags': [ '-O3' ],
11 | 'sources': [ 'src/bufferutil.cc' ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/examples/fileapi/.npmignore:
--------------------------------------------------------------------------------
1 | uploaded
2 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/examples/fileapi/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "",
3 | "name": "fileapi",
4 | "version": "0.0.0",
5 | "repository": {
6 | "type": "git",
7 | "url": "git://github.com/einaros/ws.git"
8 | },
9 | "engines": {
10 | "node": "~0.6.8"
11 | },
12 | "dependencies": {
13 | "express": "latest",
14 | "ansi": "https://github.com/einaros/ansi.js/tarball/master"
15 | },
16 | "devDependencies": {},
17 | "optionalDependencies": {}
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/examples/fileapi/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 |
16 | This example will upload an entire directory tree to the node.js server via a fast and persistent WebSocket connection.
17 | Note that the example is Chrome only for now.
18 |
19 | Upload status:
20 | Please select a directory to upload.
21 |
22 |
23 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/examples/serverstats/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "",
3 | "name": "serverstats",
4 | "version": "0.0.0",
5 | "repository": {
6 | "type": "git",
7 | "url": "git://github.com/einaros/ws.git"
8 | },
9 | "engines": {
10 | "node": "~0.6.8"
11 | },
12 | "dependencies": {
13 | "express": "latest"
14 | },
15 | "devDependencies": {},
16 | "optionalDependencies": {}
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/examples/serverstats/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
25 |
26 |
27 | Server Stats
28 | RSS:
29 | Heap total:
30 | Heap used:
31 |
32 |
33 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/examples/serverstats/server.js:
--------------------------------------------------------------------------------
1 | var WebSocketServer = require('../../').Server
2 | , http = require('http')
3 | , express = require('express')
4 | , app = express.createServer();
5 |
6 | app.use(express.static(__dirname + '/public'));
7 |
8 | var wss = new WebSocketServer({server: app});
9 | wss.on('connection', function(ws) {
10 | var id = setInterval(function() {
11 | ws.send(JSON.stringify(process.memoryUsage()));
12 | }, 100);
13 | console.log('started client interval');
14 | ws.on('close', function() {
15 | console.log('stopping client interval');
16 | clearInterval(id);
17 | })
18 | });
19 |
20 | app.listen(8080);
21 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | module.exports = require('./lib/WebSocket');
8 | module.exports.Server = require('./lib/WebSocketServer');
9 | module.exports.Sender = require('./lib/Sender');
10 | module.exports.Receiver = require('./lib/Receiver');
11 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/lib/BufferUtil.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | try {
8 | module.exports = require('../build/Release/bufferutil');
9 | } catch (e) { try {
10 | module.exports = require('../build/default/bufferutil');
11 | } catch (e) { try {
12 | module.exports = require('./BufferUtilWindows');
13 | } catch (e) {
14 | console.error('bufferutil.node seems to not have been built. Run npm install.');
15 | throw e;
16 | }}}
17 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.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 | };
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/lib/Validation.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | try {
8 | module.exports = require('../build/Release/validation');
9 | } catch (e) { try {
10 | module.exports = require('../build/default/validation');
11 | } catch (e) { try {
12 | module.exports = require('./ValidationWindows');
13 | } catch (e) {
14 | console.error('validation.node seems to not have been built. Run npm install.');
15 | throw e;
16 | }}}
17 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/lib/ValidationWindows.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ws: a node.js websocket client
3 | * Copyright(c) 2011 Einar Otto Stangvik
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Windows Compatibility
9 | */
10 |
11 | module.exports.Validation = {
12 | isValidUTF8: function(buffer) {
13 | return true;
14 | }
15 | };
16 |
17 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/commander/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/commander/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.4
4 | - 0.6
5 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/commander/Makefile:
--------------------------------------------------------------------------------
1 |
2 | TESTS = $(shell find test/test.*.js)
3 |
4 | test:
5 | @./test/run $(TESTS)
6 |
7 | .PHONY: test
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/commander/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = require('./lib/commander');
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/commander/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "commander",
3 | "version": "0.5.2",
4 | "description": "the complete solution for node.js command-line programs",
5 | "keywords": [
6 | "command",
7 | "option",
8 | "parser",
9 | "prompt",
10 | "stdin"
11 | ],
12 | "author": {
13 | "name": "TJ Holowaychuk",
14 | "email": "tj@vision-media.ca"
15 | },
16 | "repository": {
17 | "type": "git",
18 | "url": "git://github.com/visionmedia/commander.js.git"
19 | },
20 | "dependencies": {},
21 | "devDependencies": {
22 | "should": ">= 0.0.1"
23 | },
24 | "scripts": {
25 | "test": "make test"
26 | },
27 | "main": "index",
28 | "engines": {
29 | "node": ">= 0.4.x < 0.8.0"
30 | },
31 | "_id": "commander@0.5.2",
32 | "optionalDependencies": {},
33 | "_engineSupported": true,
34 | "_npmVersion": "1.1.21",
35 | "_nodeVersion": "v0.6.18",
36 | "_defaultsLoaded": true,
37 | "_from": "commander@0.5.x"
38 | }
39 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/options/.npmignore:
--------------------------------------------------------------------------------
1 | npm-debug.log
2 | node_modules
3 | .*.swp
4 | .lock-*
5 | build/
6 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/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 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/options/README.md:
--------------------------------------------------------------------------------
1 | # options.js #
2 |
3 | A very light-weight in-code option parsers for node.js.
4 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/options/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": {
3 | "name": "Einar Otto Stangvik",
4 | "email": "einaros@gmail.com",
5 | "url": "http://2x.io"
6 | },
7 | "name": "options",
8 | "description": "A very light-weight in-code option parsers for node.js.",
9 | "version": "0.0.3",
10 | "repository": {
11 | "type": "git",
12 | "url": "git://github.com/einaros/options.js.git"
13 | },
14 | "main": "lib/options",
15 | "scripts": {
16 | "test": "make test"
17 | },
18 | "engines": {
19 | "node": ">=0.4.0"
20 | },
21 | "dependencies": {},
22 | "devDependencies": {
23 | "mocha": "latest",
24 | "expect.js": "latest"
25 | },
26 | "_id": "options@0.0.3",
27 | "optionalDependencies": {},
28 | "_engineSupported": true,
29 | "_npmVersion": "1.1.21",
30 | "_nodeVersion": "v0.6.18",
31 | "_defaultsLoaded": true,
32 | "_from": "options@latest"
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/node_modules/options/test/fixtures/test.conf:
--------------------------------------------------------------------------------
1 | {
2 | "a": "foobar",
3 | "b": false
4 | }
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": {
3 | "name": "Einar Otto Stangvik",
4 | "email": "einaros@gmail.com",
5 | "url": "http://2x.io"
6 | },
7 | "name": "ws",
8 | "description": "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date against RFC-6455",
9 | "version": "0.4.15",
10 | "repository": {
11 | "type": "git",
12 | "url": "git://github.com/einaros/ws.git"
13 | },
14 | "bin": {
15 | "wscat": "./bin/wscat"
16 | },
17 | "scripts": {
18 | "test": "make test",
19 | "install": "node install.js"
20 | },
21 | "engines": {
22 | "node": ">=0.4.0"
23 | },
24 | "config": {
25 | "native": false
26 | },
27 | "dependencies": {
28 | "commander": "0.5.x",
29 | "options": "latest"
30 | },
31 | "devDependencies": {
32 | "mocha": "0.8.x",
33 | "should": "0.4.2",
34 | "expect.js": "0.1.2",
35 | "benchmark": "0.3.x",
36 | "tinycolor": "0.x",
37 | "ansi": "latest"
38 | },
39 | "_id": "ws@0.4.15",
40 | "optionalDependencies": {},
41 | "_engineSupported": true,
42 | "_npmVersion": "1.1.21",
43 | "_nodeVersion": "v0.6.18",
44 | "_defaultsLoaded": true,
45 | "_from": "ws@0.4.x"
46 | }
47 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/test/Sender.test.js:
--------------------------------------------------------------------------------
1 | var Sender = require('../lib/Sender');
2 | require('should');
3 |
4 | describe('Sender', function() {
5 | describe('#frameAndSend', function() {
6 | it('does not modify a masked binary buffer', function() {
7 | var sender = new Sender({ write: function() {} });
8 | var buf = new Buffer([1, 2, 3, 4, 5]);
9 | sender.frameAndSend(2, buf, true, true);
10 | buf[0].should.eql(1);
11 | buf[1].should.eql(2);
12 | buf[2].should.eql(3);
13 | buf[3].should.eql(4);
14 | buf[4].should.eql(5);
15 | });
16 |
17 | it('does not modify a masked text buffer', function() {
18 | var sender = new Sender({ write: function() {} });
19 | var text = 'hi there';
20 | sender.frameAndSend(1, text, true, true);
21 | text.should.eql('hi there');
22 | });
23 | });
24 | });
25 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/test/WebSocket.integration.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert')
2 | , WebSocket = require('../')
3 | , server = require('./testserver');
4 |
5 | var port = 20000;
6 |
7 | function getArrayBuffer(buf) {
8 | var l = buf.length;
9 | var arrayBuf = new ArrayBuffer(l);
10 | for (var i = 0; i < l; ++i) {
11 | arrayBuf[i] = buf[i];
12 | }
13 | return arrayBuf;
14 | }
15 |
16 | function areArraysEqual(x, y) {
17 | if (x.length != y.length) return false;
18 | for (var i = 0, l = x.length; i < l; ++i) {
19 | if (x[i] !== y[i]) return false;
20 | }
21 | return true;
22 | }
23 |
24 | describe('WebSocket', function() {
25 | it('communicates successfully with echo service', function(done) {
26 | var ws = new WebSocket('ws://echo.websocket.org', {protocolVersion: 8, origin: 'http://websocket.org'});
27 | var str = Date.now().toString();
28 | var dataReceived = false;
29 | ws.on('open', function() {
30 | ws.send(str, {mask: true});
31 | });
32 | ws.on('close', function() {
33 | assert.equal(true, dataReceived);
34 | done();
35 | });
36 | ws.on('message', function(data, flags) {
37 | assert.equal(str, data);
38 | ws.terminate();
39 | dataReceived = true;
40 | });
41 | });
42 | });
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/test/autobahn-server.js:
--------------------------------------------------------------------------------
1 | var WebSocketServer = require('../').Server;
2 |
3 | process.on('uncaughtException', function(err) {
4 | console.log('Caught exception: ', err, err.stack);
5 | });
6 |
7 | process.on('SIGINT', function () {
8 | try {
9 | console.log('Updating reports and shutting down');
10 | var ws = new WebSocket('ws://localhost:9001/updateReports?agent=ws');
11 | ws.on('close', function() {
12 | process.exit();
13 | });
14 | }
15 | catch(e) {
16 | process.exit();
17 | }
18 | });
19 |
20 | var wss = new WebSocketServer({port: 8181});
21 | wss.on('connection', function(ws) {
22 | console.log('new connection');
23 | ws.on('message', function(data, flags) {
24 | ws.send(flags.buffer, {binary: flags.binary === true});
25 | });
26 | ws.on('error', function() {
27 | console.log('error', arguments);
28 | });
29 | });
30 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/test/fixtures/certificate.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIICATCCAWoCCQDPufXH86n2QzANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJu
3 | bzETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0
4 | cyBQdHkgTHRkMB4XDTEyMDEwMTE0NDQwMFoXDTIwMDMxOTE0NDQwMFowRTELMAkG
5 | A1UEBhMCbm8xEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0
6 | IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAtrQ7
7 | +r//2iV/B6F+4boH0XqFn7alcV9lpjvAmwRXNKnxAoa0f97AjYPGNLKrjpkNXXhB
8 | JROIdbRbZnCNeC5fzX1a+JCo7KStzBXuGSZr27TtFmcV4H+9gIRIcNHtZmJLnxbJ
9 | sIhkGR8yVYdmJZe4eT5ldk1zoB1adgPF1hZhCBMCAwEAATANBgkqhkiG9w0BAQUF
10 | AAOBgQCeWBEHYJ4mCB5McwSSUox0T+/mJ4W48L/ZUE4LtRhHasU9hiW92xZkTa7E
11 | QLcoJKQiWfiLX2ysAro0NX4+V8iqLziMqvswnPzz5nezaOLE/9U/QvH3l8qqNkXu
12 | rNbsW1h/IO6FV8avWFYVFoutUwOaZ809k7iMh2F2JMgXQ5EymQ==
13 | -----END CERTIFICATE-----
14 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/test/fixtures/key.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICXAIBAAKBgQC2tDv6v//aJX8HoX7hugfReoWftqVxX2WmO8CbBFc0qfEChrR/
3 | 3sCNg8Y0squOmQ1deEElE4h1tFtmcI14Ll/NfVr4kKjspK3MFe4ZJmvbtO0WZxXg
4 | f72AhEhw0e1mYkufFsmwiGQZHzJVh2Yll7h5PmV2TXOgHVp2A8XWFmEIEwIDAQAB
5 | AoGAAlVY8sHi/aE+9xT77twWX3mGHV0SzdjfDnly40fx6S1Gc7bOtVdd9DC7pk6l
6 | 3ENeJVR02IlgU8iC5lMHq4JEHPE272jtPrLlrpWLTGmHEqoVFv9AITPqUDLhB9Kk
7 | Hjl7h8NYBKbr2JHKICr3DIPKOT+RnXVb1PD4EORbJ3ooYmkCQQDfknUnVxPgxUGs
8 | ouABw1WJIOVgcCY/IFt4Ihf6VWTsxBgzTJKxn3HtgvE0oqTH7V480XoH0QxHhjLq
9 | DrgobWU9AkEA0TRJ8/ouXGnFEPAXjWr9GdPQRZ1Use2MrFjneH2+Sxc0CmYtwwqL
10 | Kr5kS6mqJrxprJeluSjBd+3/ElxURrEXjwJAUvmlN1OPEhXDmRHd92mKnlkyKEeX
11 | OkiFCiIFKih1S5Y/sRJTQ0781nyJjtJqO7UyC3pnQu1oFEePL+UEniRztQJAMfav
12 | AtnpYKDSM+1jcp7uu9BemYGtzKDTTAYfoiNF42EzSJiGrWJDQn4eLgPjY0T0aAf/
13 | yGz3Z9ErbhMm/Ysl+QJBAL4kBxRT8gM4ByJw4sdOvSeCCANFq8fhbgm8pGWlCPb5
14 | JGmX3/GHFM8x2tbWMGpyZP1DLtiNEFz7eCGktWK5rqE=
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/test/fixtures/request.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE REQUEST-----
2 | MIIBhDCB7gIBADBFMQswCQYDVQQGEwJubzETMBEGA1UECAwKU29tZS1TdGF0ZTEh
3 | MB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEB
4 | AQUAA4GNADCBiQKBgQC2tDv6v//aJX8HoX7hugfReoWftqVxX2WmO8CbBFc0qfEC
5 | hrR/3sCNg8Y0squOmQ1deEElE4h1tFtmcI14Ll/NfVr4kKjspK3MFe4ZJmvbtO0W
6 | ZxXgf72AhEhw0e1mYkufFsmwiGQZHzJVh2Yll7h5PmV2TXOgHVp2A8XWFmEIEwID
7 | AQABoAAwDQYJKoZIhvcNAQEFBQADgYEAjsUXEARgfxZNkMjuUcudgU2w4JXS0gGI
8 | JQ0U1LmU0vMDSKwqndMlvCbKzEgPbJnGJDI8D4MeINCJHa5Ceyb8c+jaJYUcCabl
9 | lQW5Psn3+eWp8ncKlIycDRj1Qk615XuXtV0fhkrgQM2ZCm9LaQ1O1Gd/CzLihLjF
10 | W0MmgMKMMRk=
11 | -----END CERTIFICATE REQUEST-----
12 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/README.md:
--------------------------------------------------------------------------------
1 | # node-XMLHttpRequest #
2 |
3 | node-XMLHttpRequest is arapper for the built-in http client to emulate the browser XMLHttpRequest object.
4 |
5 | This can be used with JS designed for browsers to improve reuse of code and allow the use of existing libraries.
6 |
7 | ## Usage ##
8 | Here's how to include the module in your project and use as the browser-based XHR object.
9 |
10 | var XMLHttpRequest = require("XMLHttpRequest").XMLHttpRequest;
11 | var xhr = new XMLHttpRequest();
12 |
13 | Refer to W3C specs for XHR methods.
14 |
15 | ## TODO ##
16 |
17 | * Add basic authentication
18 | * Additional unit tests
19 | * Possibly move from http to tcp for more flexibility
20 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/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 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/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 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "xmlhttprequest",
3 | "description": "XMLHttpRequest for Node",
4 | "version": "1.2.2",
5 | "author": {
6 | "name": "Dan DeFelippi"
7 | },
8 | "licenses": [
9 | {
10 | "type": "MIT",
11 | "url": "http://creativecommons.org/licenses/MIT/"
12 | }
13 | ],
14 | "repository": {
15 | "type": "git",
16 | "url": "git://github.com/driverdan/node-XMLHttpRequest.git"
17 | },
18 | "engine": [
19 | "node >=0.4.0"
20 | ],
21 | "main": "./XMLHttpRequest.js",
22 | "_id": "xmlhttprequest@1.2.2",
23 | "dependencies": {},
24 | "devDependencies": {},
25 | "optionalDependencies": {},
26 | "engines": {
27 | "node": "*"
28 | },
29 | "_engineSupported": true,
30 | "_npmVersion": "1.1.21",
31 | "_nodeVersion": "v0.6.18",
32 | "_defaultsLoaded": true,
33 | "_from": "xmlhttprequest@1.2.2"
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/tests/test-constants.js:
--------------------------------------------------------------------------------
1 | var sys = require("util")
2 | ,assert = require("assert")
3 | ,XMLHttpRequest = require("../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 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/tests/test-headers.js:
--------------------------------------------------------------------------------
1 | var sys = require("util")
2 | ,assert = require("assert")
3 | ,XMLHttpRequest = require("../XMLHttpRequest").XMLHttpRequest
4 | ,xhr = new XMLHttpRequest()
5 | ,http = require("http");
6 |
7 | // Test server
8 | var server = http.createServer(function (req, res) {
9 | // Test setRequestHeader
10 | assert.equal("Foobar", req.headers["x-test"]);
11 |
12 | var body = "Hello World";
13 | res.writeHead(200, {
14 | "Content-Type": "text/plain",
15 | "Content-Length": Buffer.byteLength(body)
16 | });
17 | res.write("Hello World");
18 | res.end();
19 |
20 | this.close();
21 | }).listen(8000);
22 |
23 | xhr.onreadystatechange = function() {
24 | if (this.readyState == 4) {
25 | // Test getAllResponseHeaders()
26 | var headers = "content-type: text/plain\r\ncontent-length: 11\r\nconnection: close";
27 | assert.equal(headers, this.getAllResponseHeaders());
28 |
29 | sys.puts("done");
30 | }
31 | };
32 |
33 | xhr.open("GET", "http://localhost:8000/");
34 | xhr.setRequestHeader("X-Test", "Foobar");
35 | xhr.send();
36 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/test/io.test.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * socket.io-node
4 | * Copyright(c) 2011 LearnBoost
5 | * MIT Licensed
6 | */
7 |
8 | (function (module, io, should) {
9 |
10 | module.exports = {
11 |
12 | 'client version number': function () {
13 | io.version.should().match(/([0-9]+)\.([0-9]+)\.([0-9]+)/);
14 | },
15 |
16 | 'socket.io protocol version': function () {
17 | io.protocol.should().be.a('number');
18 | io.protocol.toString().should().match(/^\d+$/);
19 | },
20 |
21 | 'socket.io available transports': function () {
22 | (io.transports.length > 0).should().be_true;
23 | }
24 |
25 | };
26 |
27 | })(
28 | 'undefined' == typeof module ? module = {} : module
29 | , 'undefined' == typeof io ? require('socket.io-client') : io
30 | , 'undefined' == typeof should ? require('should') : should
31 | );
32 |
--------------------------------------------------------------------------------
/node_modules/socket.io/node_modules/socket.io-client/test/worker.js:
--------------------------------------------------------------------------------
1 | importScripts('/socket.io/socket.io.js');
2 |
3 | self.onmessage = function (ev) {
4 | var url = ev.data
5 | , socket = io.connect(url);
6 |
7 | socket.on('done', function () {
8 | self.postMessage('done!');
9 | });
10 |
11 | socket.on('connect_failed', function () {
12 | self.postMessage('connect failed');
13 | });
14 |
15 | socket.on('error', function () {
16 | self.postMessage('error');
17 | });
18 |
19 | socket.send('woot');
20 | }
21 |
--------------------------------------------------------------------------------