UNPKG

awv3

Version:
1,457 lines (1,456 loc) 258 kB
{ "type": "Program", "start": 0, "end": 2555, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 91, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 36, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "local": { "type": "Identifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "name": "Events" } } ], "importKind": "value", "source": { "type": "Literal", "start": 19, "end": 35, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 35 } }, "value": "../core/events", "rawValue": "../core/events", "raw": "'../core/events'" } }, { "type": "ExportDefaultDeclaration", "start": 40, "end": 2325, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 80, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 55, "end": 2325, "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 80, "column": 1 } }, "id": { "type": "Identifier", "start": 61, "end": 67, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 27 } }, "name": "Plugin" }, "superClass": { "type": "Identifier", "start": 76, "end": 82, "loc": { "start": { "line": 3, "column": 36 }, "end": { "line": 3, "column": 42 } }, "name": "Events" }, "body": { "type": "ClassBody", "start": 83, "end": 2325, "loc": { "start": { "line": 3, "column": 43 }, "end": { "line": 80, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 90, "end": 318, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 13, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 90, "end": 101, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 101, "end": 318, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 13, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 102, "end": 114, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 28 } }, "operator": "=", "left": { "type": "Identifier", "start": 102, "end": 109, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 23 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 112, "end": 114, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 28 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 116, "end": 318, "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 13, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 127, "end": 135, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 16 } }, "expression": { "type": "CallExpression", "start": 127, "end": 134, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 15 } }, "callee": { "type": "Super", "start": 127, "end": 132, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 147, "end": 169, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 147, "end": 168, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 147, "end": 160, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 21 } }, "object": { "type": "ThisExpression", "start": 147, "end": 151, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 } } }, "property": { "type": "Identifier", "start": 152, "end": 160, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 21 } }, "name": "_enabled" }, "computed": false }, "right": { "type": "Literal", "start": 163, "end": 168, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 29 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 179, "end": 199, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 179, "end": 198, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 179, "end": 191, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 20 } }, "object": { "type": "ThisExpression", "start": 179, "end": 183, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 184, "end": 191, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 20 } }, "name": "_socket" }, "computed": false }, "right": { "type": "Literal", "start": 194, "end": 198, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 27 } }, "value": null, "rawValue": null, "raw": "null" } } }, { "type": "ExpressionStatement", "start": 211, "end": 226, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 23 } }, "expression": { "type": "AssignmentExpression", "start": 211, "end": 225, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 211, "end": 220, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 17 } }, "object": { "type": "ThisExpression", "start": 211, "end": 215, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 216, "end": 220, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 17 } }, "name": "data" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 223, "end": 225, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 22 } }, "properties": [] } } }, { "type": "ExpressionStatement", "start": 236, "end": 259, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 236, "end": 258, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 236, "end": 248, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 20 } }, "object": { "type": "ThisExpression", "start": 236, "end": 240, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 241, "end": 248, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 20 } }, "name": "options" }, "computed": false }, "right": { "type": "Identifier", "start": 251, "end": 258, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 30 } }, "name": "options" } } }, { "type": "ExpressionStatement", "start": 269, "end": 311, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 50 } }, "expression": { "type": "AssignmentExpression", "start": 269, "end": 310, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 49 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 269, "end": 280, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } }, "object": { "type": "ThisExpression", "start": 269, "end": 273, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 274, "end": 280, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 19 } }, "name": "socket" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 283, "end": 310, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 49 } }, "left": { "type": "Literal", "start": 283, "end": 287, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 26 } }, "value": null, "rawValue": null, "raw": "null" }, "operator": "||", "right": { "type": "MemberExpression", "start": 291, "end": 310, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 49 } }, "object": { "type": "MemberExpression", "start": 291, "end": 303, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 42 } }, "object": { "type": "ThisExpression", "start": 291, "end": 295, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 34 } } }, "property": { "type": "Identifier", "start": 296, "end": 303, "loc": { "start": { "line": 12, "column": 35 }, "end": { "line": 12, "column": 42 } }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 304, "end": 310, "loc": { "start": { "line": 12, "column": 43 }, "end": { "line": 12, "column": 49 } }, "name": "socket" }, "computed": false } } } } ], "trailingComments": null }, "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " Toast: removes itself after a ahwile, depends on the application", "start": 326, "end": 393, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 71 } }, "range": [ 326, 393 ] } ] }, { "type": "MethodDefinition", "start": 399, "end": 532, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 19, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 399, "end": 411, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 16 } }, "name": "requestToast", "leadingComments": null }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 411, "end": 532, "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 19, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 412, "end": 419, "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 24 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 421, "end": 532, "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 19, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 432, "end": 468, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 44 } }, "expression": { "type": "AssignmentExpression", "start": 432, "end": 467, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 43 } }, "operator": "=", "left": { "type": "Identifier", "start": 432, "end": 439, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 15 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 442, "end": 467, "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 43 } }, "properties": [ { "type": "Property", "start": 444, "end": 453, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 29 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 444, "end": 449, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 25 } }, "name": "value" }, "value": { "type": "Literal", "start": 451, "end": 453, "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 29 } }, "value": "", "rawValue": "", "raw": "''" }, "kind": "init" }, { "type": "SpreadProperty", "start": 455, "end": 465, "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 41 } }, "argument": { "type": "Identifier", "start": 458, "end": 465, "loc": { "start": { "line": 17, "column": 34 }, "end": { "line": 17, "column": 41 } }, "name": "options" } } ] } } }, { "type": "ExpressionStatement", "start": 478, "end": 525, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 55 } }, "expression": { "type": "CallExpression", "start": 478, "end": 524, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 54 } }, "callee": { "type": "MemberExpression", "start": 478, "end": 487, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 17 } }, "object": { "type": "ThisExpression", "start": 478, "end": 482, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 483, "end": 487, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 17 } }, "name": "emit" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 488, "end": 514, "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 44 } }, "object": { "type": "MemberExpression", "start": 488, "end": 501, "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 31 } }, "object": { "type": "Identifier", "start": 488, "end": 494, "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 24 } }, "name": "Plugin" }, "property": { "type": "Identifier", "start": 495, "end": 501, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 31 } }, "name": "Events" }, "computed": false }, "property": { "type": "Identifier", "start": 502, "end": 514, "loc": { "start": { "line": 18, "column": 32 }, "end": { "line": 18, "column": 44 } }, "name": "RequestToast" }, "computed": false }, { "type": "Identifier", "start": 516, "end": 523, "loc": { "start": { "line": 18, "column": 46 }, "end": { "line": 18, "column": 53 } }, "name": "options" } ] } } ], "trailingComments": null }, "trailingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Toast: removes itself after a ahwile, depends on the application", "start": 326, "end": 393, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 71 } }, "range": [ 326, 393 ] } ], "trailingComments": [ { "type": "CommentLine", "value": " Label: resolve to remove", "start": 540, "end": 567, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 31 } }, "range": [ 540, 567 ] } ] }, { "type": "MethodDefinition", "start": 573, "end": 839, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 28, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 573, "end": 585, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 16 } }, "name": "requestLabel", "leadingComments": null }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 585, "end": 839, "loc": { "start": { "line": 22, "column": 16 }, "end": { "line": 28, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 586, "end": 593, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 24 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 595, "end": 839, "loc": { "start": { "line": 22, "column": 26 },