UNPKG

awv3

Version:
1,292 lines (1,291 loc) 250 kB
{ "type": "File", "start": 0, "end": 1062, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 33, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1062, "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 }, "identifierName": "jsonpatch" }, "name": "jsonpatch" } } ], "source": { "type": "StringLiteral", "start": 22, "end": 39, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 39 } }, "extra": { "rawValue": "fast-json-patch", "raw": "'fast-json-patch'" }, "value": "fast-json-patch" } }, { "type": "ImportDeclaration", "start": 41, "end": 75, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 34 } }, "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 }, "identifierName": "SocketIO" }, "name": "SocketIO" } } ], "source": { "type": "StringLiteral", "start": 62, "end": 74, "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 33 } }, "extra": { "rawValue": "./socketio", "raw": "'./socketio'" }, "value": "./socketio" } }, { "type": "ExportDefaultDeclaration", "start": 77, "end": 1061, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 32, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 92, "end": 1061, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 32, "column": 1 } }, "id": null, "superClass": { "type": "Identifier", "start": 106, "end": 114, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 37 }, "identifierName": "SocketIO" }, "name": "SocketIO" }, "body": { "type": "ClassBody", "start": 115, "end": 1061, "loc": { "start": { "line": 4, "column": 38 }, "end": { "line": 32, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 121, "end": 1059, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 31, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 121, "end": 132, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 133, "end": 161, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 44 } }, "left": { "type": "Identifier", "start": 133, "end": 138, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 21 }, "identifierName": "types" }, "name": "types" }, "right": { "type": "ArrayExpression", "start": 141, "end": 161, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 44 } }, "elements": [ { "type": "StringLiteral", "start": 142, "end": 149, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 32 } }, "extra": { "rawValue": "patch", "raw": "'patch'" }, "value": "patch" }, { "type": "StringLiteral", "start": 151, "end": 160, "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 5, "column": 43 } }, "extra": { "rawValue": "message", "raw": "'message'" }, "value": "message" } ] } } ], "body": { "type": "BlockStatement", "start": 163, "end": 1059, "loc": { "start": { "line": 5, "column": 46 }, "end": { "line": 31, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 173, "end": 213, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 48 } }, "expression": { "type": "CallExpression", "start": 173, "end": 212, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 47 } }, "callee": { "type": "Super", "start": 173, "end": 178, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 13 } } }, "arguments": [ { "type": "ObjectExpression", "start": 179, "end": 211, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 46 } }, "properties": [ { "type": "ObjectProperty", "start": 181, "end": 192, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 181, "end": 186, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 21 }, "identifierName": "debug" }, "name": "debug" }, "value": { "type": "BooleanLiteral", "start": 188, "end": 192, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 6, "column": 27 } }, "value": true } }, { "type": "ObjectProperty", "start": 194, "end": 209, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 44 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 194, "end": 205, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 40 }, "identifierName": "credentials" }, "name": "credentials" }, "value": { "type": "ArrayExpression", "start": 207, "end": 209, "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 44 } }, "elements": [] } } ] } ] } }, { "type": "ExpressionStatement", "start": 223, "end": 242, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 27 } }, "expression": { "type": "AssignmentExpression", "start": 223, "end": 241, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 223, "end": 236, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 21 } }, "object": { "type": "ThisExpression", "start": 223, "end": 227, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 228, "end": 236, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 21 }, "identifierName": "messages" }, "name": "messages" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 239, "end": 241, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 26 } }, "elements": [] } } }, { "type": "ExpressionStatement", "start": 251, "end": 556, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 18, "column": 10 } }, "expression": { "type": "AssignmentExpression", "start": 251, "end": 555, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 18, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 251, "end": 261, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 18 } }, "object": { "type": "ThisExpression", "start": 251, "end": 255, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 256, "end": 261, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 18 }, "identifierName": "state" }, "name": "state" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 264, "end": 555, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 18, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 278, "end": 292, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 26 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 278, "end": 282, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 16 }, "identifierName": "type" }, "name": "type" }, "value": { "type": "StringLiteral", "start": 284, "end": 292, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 26 } }, "extra": { "rawValue": "system", "raw": "'system'" }, "value": "system" } }, { "type": "ObjectProperty", "start": 306, "end": 317, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 306, "end": 311, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 17 }, "identifierName": "alive" }, "name": "alive" }, "value": { "type": "BooleanLiteral", "start": 313, "end": 317, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 23 } }, "value": true } }, { "type": "ObjectProperty", "start": 331, "end": 341, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 331, "end": 337, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 18 }, "identifierName": "errors" }, "name": "errors" }, "value": { "type": "ArrayExpression", "start": 339, "end": 341, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 22 } }, "elements": [] } }, { "type": "ObjectProperty", "start": 355, "end": 446, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 103 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 355, "end": 362, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 19 }, "identifierName": "options" }, "name": "options" }, "value": { "type": "ObjectExpression", "start": 364, "end": 446, "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 103 } }, "properties": [ { "type": "ObjectProperty", "start": 366, "end": 382, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 39 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 366, "end": 376, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 33 }, "identifierName": "publicport" }, "name": "publicport" }, "value": { "type": "NumericLiteral", "start": 378, "end": 382, "loc": { "start": { "line": 13, "column": 35 }, "end": { "line": 13, "column": 39 } }, "extra": { "rawValue": 9000, "raw": "9000" }, "value": 9000 } }, { "type": "ObjectProperty", "start": 384, "end": 401, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 58 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 384, "end": 395, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 52 }, "identifierName": "privateport" }, "name": "privateport" }, "value": { "type": "NumericLiteral", "start": 397, "end": 401, "loc": { "start": { "line": 13, "column": 54 }, "end": { "line": 13, "column": 58 } }, "extra": { "rawValue": 8080, "raw": "8080" }, "value": 8080 } }, { "type": "ObjectProperty", "start": 403, "end": 415, "loc": { "start": { "line": 13, "column": 60 }, "end": { "line": 13, "column": 72 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 403, "end": 409, "loc": { "start": { "line": 13, "column": 60 }, "end": { "line": 13, "column": 66 }, "identifierName": "binary" }, "name": "binary" }, "value": { "type": "BooleanLiteral", "start": 411, "end": 415, "loc": { "start": { "line": 13, "column": 68 }, "end": { "line": 13, "column": 72 } }, "value": true } }, { "type": "ObjectProperty", "start": 417, "end": 430, "loc": { "start": { "line": 13, "column": 74 }, "end": { "line": 13, "column": 87 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 417, "end": 423, "loc": { "start": { "line": 13, "column": 74 }, "end": { "line": 13, "column": 80 }, "identifierName": "stdout" }, "name": "stdout" }, "value": { "type": "BooleanLiteral", "start": 425, "end": 430, "loc": { "start": { "line": 13, "column": 82 }, "end": { "line": 13, "column": 87 } }, "value": false } }, { "type": "ObjectProperty", "start": 432, "end": 444, "loc": { "start": { "line": 13, "column": 89 }, "end": { "line": 13, "column": 101 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 432, "end": 441, "loc": { "start": { "line": 13, "column": 89 }, "end": { "line": 13, "column": 98 }, "identifierName": "instances" }, "name": "instances" }, "value": { "type": "NumericLiteral", "start": 443, "end": 444, "loc": { "start": { "line": 13, "column": 100 }, "end": { "line": 13, "column": 101 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } ] } }, { "type": "ObjectProperty", "start": 460, "end": 469, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 460, "end": 465, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 17 }, "identifierName": "tasks" }, "name": "tasks" }, "value": { "type": "ArrayExpression", "start": 467, "end": 469, "loc": { "start": { "line": 14, "column": 19 }, "end": { "line": 14, "column": 21 } }, "elements": [] } }, { "type": "ObjectProperty", "start": 483, "end": 492, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 483, "end": 488, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 17 }, "identifierName": "users" }, "name": "users" }, "value": { "type": "ArrayExpression", "start": 490, "end": 492,