UNPKG

awv3

Version:
1,304 lines (1,303 loc) 137 kB
{ "type": "Program", "start": 0, "end": 1077, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 33, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 40, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 40 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 16, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 16 } }, "local": { "type": "Identifier", "start": 7, "end": 16, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 16 } }, "name": "jsonpatch" } } ], "importKind": "value", "source": { "type": "Literal", "start": 22, "end": 39, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 39 } }, "value": "fast-json-patch", "rawValue": "fast-json-patch", "raw": "'fast-json-patch'" } }, { "type": "ImportDeclaration", "start": 41, "end": 90, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 49 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 48, "end": 56, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 15 } }, "local": { "type": "Identifier", "start": 48, "end": 56, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 15 } }, "name": "SocketIO" } } ], "importKind": "value", "source": { "type": "Literal", "start": 62, "end": 89, "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 48 } }, "value": "../communication/socketio", "rawValue": "../communication/socketio", "raw": "'../communication/socketio'" } }, { "type": "ExportDefaultDeclaration", "start": 92, "end": 1076, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 32, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 107, "end": 1076, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 32, "column": 1 } }, "id": null, "superClass": { "type": "Identifier", "start": 121, "end": 129, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 37 } }, "name": "SocketIO" }, "body": { "type": "ClassBody", "start": 130, "end": 1076, "loc": { "start": { "line": 4, "column": 38 }, "end": { "line": 32, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 136, "end": 1074, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 31, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 136, "end": 147, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 147, "end": 1074, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 31, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 148, "end": 176, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 44 } }, "operator": "=", "left": { "type": "Identifier", "start": 148, "end": 153, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 21 } }, "name": "types" }, "right": { "type": "ArrayExpression", "start": 156, "end": 176, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 44 } }, "elements": [ { "type": "Literal", "start": 157, "end": 164, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 32 } }, "value": "patch", "rawValue": "patch", "raw": "'patch'" }, { "type": "Literal", "start": 166, "end": 175, "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 5, "column": 43 } }, "value": "message", "rawValue": "message", "raw": "'message'" } ] } } ], "body": { "type": "BlockStatement", "start": 178, "end": 1074, "loc": { "start": { "line": 5, "column": 46 }, "end": { "line": 31, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 188, "end": 228, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 48 } }, "expression": { "type": "CallExpression", "start": 188, "end": 227, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 47 } }, "callee": { "type": "Super", "start": 188, "end": 193, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 13 } } }, "arguments": [ { "type": "ObjectExpression", "start": 194, "end": 226, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 46 } }, "properties": [ { "type": "Property", "start": 196, "end": 207, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 196, "end": 201, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 21 } }, "name": "debug" }, "value": { "type": "Literal", "start": 203, "end": 207, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 27 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 209, "end": 224, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 44 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 209, "end": 220, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 40 } }, "name": "credentials" }, "value": { "type": "ArrayExpression", "start": 222, "end": 224, "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 44 } }, "elements": [] }, "kind": "init" } ] } ] } }, { "type": "ExpressionStatement", "start": 238, "end": 257, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 27 } }, "expression": { "type": "AssignmentExpression", "start": 238, "end": 256, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 238, "end": 251, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 21 } }, "object": { "type": "ThisExpression", "start": 238, "end": 242, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 243, "end": 251, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 21 } }, "name": "messages" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 254, "end": 256, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 26 } }, "elements": [] } } }, { "type": "ExpressionStatement", "start": 266, "end": 571, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 18, "column": 10 } }, "expression": { "type": "AssignmentExpression", "start": 266, "end": 570, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 18, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 266, "end": 276, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 18 } }, "object": { "type": "ThisExpression", "start": 266, "end": 270, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 271, "end": 276, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 18 } }, "name": "state" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 279, "end": 570, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 18, "column": 9 } }, "properties": [ { "type": "Property", "start": 293, "end": 307, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 26 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 293, "end": 297, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 16 } }, "name": "type" }, "value": { "type": "Literal", "start": 299, "end": 307, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 26 } }, "value": "system", "rawValue": "system", "raw": "'system'" }, "kind": "init" }, { "type": "Property", "start": 321, "end": 332, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 321, "end": 326, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 17 } }, "name": "alive" }, "value": { "type": "Literal", "start": 328, "end": 332, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 23 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 346, "end": 356, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 346, "end": 352, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 18 } }, "name": "errors" }, "value": { "type": "ArrayExpression", "start": 354, "end": 356, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 22 } }, "elements": [] }, "kind": "init" }, { "type": "Property", "start": 370, "end": 461, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 103 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 370, "end": 377, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 19 } }, "name": "options" }, "value": { "type": "ObjectExpression", "start": 379, "end": 461, "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 103 } }, "properties": [ { "type": "Property", "start": 381, "end": 397, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 39 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 381, "end": 391, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 33 } }, "name": "publicport" }, "value": { "type": "Literal", "start": 393, "end": 397, "loc": { "start": { "line": 13, "column": 35 }, "end": { "line": 13, "column": 39 } }, "value": 9000, "rawValue": 9000, "raw": "9000" }, "kind": "init" }, { "type": "Property", "start": 399, "end": 416, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 58 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 399, "end": 410, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 52 } }, "name": "privateport" }, "value": { "type": "Literal", "start": 412, "end": 416, "loc": { "start": { "line": 13, "column": 54 }, "end": { "line": 13, "column": 58 } }, "value": 8080, "rawValue": 8080, "raw": "8080" }, "kind": "init" }, { "type": "Property", "start": 418, "end": 430, "loc": { "start": { "line": 13, "column": 60 }, "end": { "line": 13, "column": 72 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 418, "end": 424, "loc": { "start": { "line": 13, "column": 60 }, "end": { "line": 13, "column": 66 } }, "name": "binary" }, "value": { "type": "Literal", "start": 426, "end": 430, "loc": { "start": { "line": 13, "column": 68 }, "end": { "line": 13, "column": 72 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 432, "end": 445, "loc": { "start": { "line": 13, "column": 74 }, "end": { "line": 13, "column": 87 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 432, "end": 438, "loc": { "start": { "line": 13, "column": 74 }, "end": { "line": 13, "column": 80 } }, "name": "stdout" }, "value": { "type": "Literal", "start": 440, "end": 445, "loc": { "start": { "line": 13, "column": 82 }, "end": { "line": 13, "column": 87 } }, "value": false, "rawValue": false, "raw": "false" }, "kind": "init" }, { "type": "Property", "start": 447, "end": 459, "loc": { "start": { "line": 13, "column": 89 }, "end": { "line": 13, "column": 101 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 447, "end": 456, "loc": { "start": { "line": 13, "column": 89 }, "end": { "line": 13, "column": 98 } }, "name": "instances" }, "value": { "type": "Literal", "start": 458, "end": 459, "loc": { "start": { "line": 13, "column": 100 }, "end": { "line": 13, "column": 101 } }, "value": 1, "rawValue": 1, "raw": "1" }, "kind": "init" } ] }, "kind": "init" }, { "type": "Property", "start": 475, "end": 484, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 475, "end": 480, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 17 } }, "name": "tasks" }, "value": { "type": "ArrayExpression", "start": 482, "end": 484, "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 21 } }, "elements": [] }, "kind": "init" }, { "type": "Property", "start": 498, "end": 507, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 498, "end": 503, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 17 } }, "name": "users" }, "value": { "type": "ArrayExpression", "start": 505, "end": 507, "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 21 } }, "elements": [] }, "kind": "init" }, { "type": "Property", "start": 521, "end": 534, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16,