UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,030 lines 29.6 kB
{ "type": "Program", "body": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "root", "range": [ 112, 116 ], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 15 } } }, "init": { "type": "LogicalExpression", "operator": "||", "left": { "type": "LogicalExpression", "operator": "||", "left": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "BinaryExpression", "operator": "==", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "Identifier", "name": "window", "range": [ 127, 133 ], "loc": { "start": { "line": 6, "column": 26 }, "end": { "line": 6, "column": 32 } } }, "prefix": true, "range": [ 120, 133 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 32 } } }, "right": { "type": "Literal", "value": "object", "raw": "'object'", "range": [ 137, 145 ], "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 6, "column": 44 } } }, "range": [ 120, 145 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 44 } } }, "right": { "type": "BinaryExpression", "operator": "===", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "window", "range": [ 149, 155 ], "loc": { "start": { "line": 6, "column": 48 }, "end": { "line": 6, "column": 54 } } }, "property": { "type": "Identifier", "name": "window", "range": [ 156, 162 ], "loc": { "start": { "line": 6, "column": 55 }, "end": { "line": 6, "column": 61 } } }, "range": [ 149, 162 ], "loc": { "start": { "line": 6, "column": 48 }, "end": { "line": 6, "column": 61 } } }, "right": { "type": "Identifier", "name": "window", "range": [ 167, 173 ], "loc": { "start": { "line": 6, "column": 66 }, "end": { "line": 6, "column": 72 } } }, "range": [ 149, 173 ], "loc": { "start": { "line": 6, "column": 48 }, "end": { "line": 6, "column": 72 } } }, "range": [ 120, 173 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 72 } } }, "right": { "type": "Identifier", "name": "window", "range": [ 177, 183 ], "loc": { "start": { "line": 6, "column": 76 }, "end": { "line": 6, "column": 82 } } }, "range": [ 120, 183 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 82 } } }, "right": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "BinaryExpression", "operator": "==", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "Identifier", "name": "self", "range": [ 198, 202 ], "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 18 } } }, "prefix": true, "range": [ 191, 202 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 18 } } }, "right": { "type": "Literal", "value": "object", "raw": "'object'", "range": [ 206, 214 ], "loc": { "start": { "line": 7, "column": 22 }, "end": { "line": 7, "column": 30 } } }, "range": [ 191, 214 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 30 } } }, "right": { "type": "BinaryExpression", "operator": "===", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "self", "range": [ 218, 222 ], "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 7, "column": 38 } } }, "property": { "type": "Identifier", "name": "self", "range": [ 223, 227 ], "loc": { "start": { "line": 7, "column": 39 }, "end": { "line": 7, "column": 43 } } }, "range": [ 218, 227 ], "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 7, "column": 43 } } }, "right": { "type": "Identifier", "name": "self", "range": [ 232, 236 ], "loc": { "start": { "line": 7, "column": 48 }, "end": { "line": 7, "column": 52 } } }, "range": [ 218, 236 ], "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 7, "column": 52 } } }, "range": [ 191, 236 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 52 } } }, "right": { "type": "Identifier", "name": "self", "range": [ 240, 244 ], "loc": { "start": { "line": 7, "column": 56 }, "end": { "line": 7, "column": 60 } } }, "range": [ 191, 244 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 60 } } }, "range": [ 120, 244 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 7, "column": 60 } } }, "right": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "BinaryExpression", "operator": "==", "left": { "type": "UnaryExpression", "operator": "typeof", "argument": { "type": "Identifier", "name": "global", "range": [ 259, 265 ], "loc": { "start": { "line": 8, "column": 14 }, "end": { "line": 8, "column": 20 } } }, "prefix": true, "range": [ 252, 265 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 20 } } }, "right": { "type": "Literal", "value": "object", "raw": "'object'", "range": [ 269, 277 ], "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 32 } } }, "range": [ 252, 277 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 32 } } }, "right": { "type": "BinaryExpression", "operator": "===", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "global", "range": [ 281, 287 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 42 } } }, "property": { "type": "Identifier", "name": "global", "range": [ 288, 294 ], "loc": { "start": { "line": 8, "column": 43 }, "end": { "line": 8, "column": 49 } } }, "range": [ 281, 294 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 49 } } }, "right": { "type": "Identifier", "name": "global", "range": [ 299, 305 ], "loc": { "start": { "line": 8, "column": 54 }, "end": { "line": 8, "column": 60 } } }, "range": [ 281, 305 ], "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 60 } } }, "range": [ 252, 305 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 60 } } }, "right": { "type": "Identifier", "name": "global", "range": [ 309, 315 ], "loc": { "start": { "line": 8, "column": 64 }, "end": { "line": 8, "column": 70 } } }, "range": [ 252, 315 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 70 } } }, "range": [ 120, 315 ], "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 8, "column": 70 } } }, "range": [ 112, 316 ], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 8, "column": 71 } } } ], "kind": "var", "range": [ 108, 317 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 8, "column": 72 } }, "leadingComments": [ { "type": "Block", "value": "*\n * window: browser in DOM main thread\n * self: browser in WebWorker\n * global: Node.js/other\n ", "range": [ 0, 100 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } } ], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 101, 317 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 72 } }, "leadingComments": [ { "type": "Block", "value": "*\n * window: browser in DOM main thread\n * self: browser in WebWorker\n * global: Node.js/other\n ", "range": [ 0, 100 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } } ] }, { "type": "IfStatement", "test": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "root", "range": [ 323, 327 ], "loc": { "start": { "line": 9, "column": 5 }, "end": { "line": 9, "column": 9 } } }, "prefix": true, "range": [ 322, 327 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 9 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ThrowStatement", "argument": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Error", "range": [ 345, 350 ], "loc": { "start": { "line": 10, "column": 14 }, "end": { "line": 10, "column": 19 } } }, "arguments": [ { "type": "Literal", "value": "RxJS could not find any global context (window, self, global)", "raw": "'RxJS could not find any global context (window, self, global)'", "range": [ 351, 414 ], "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 83 } } } ], "range": [ 341, 415 ], "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 84 } } }, "range": [ 335, 416 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 85 } } } ], "range": [ 329, 418 ], "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 11, "column": 1 } } }, "alternate": null, "range": [ 318, 418 ], "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 11, "column": 1 } }, "trailingComments": [ { "type": "Line", "value": "# sourceMappingURL=root.js.map", "range": [ 419, 451 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 32 } } } ] } ], "sourceType": "module", "range": [ 101, 418 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 11, "column": 1 } }, "comments": [ { "type": "Block", "value": "*\n * window: browser in DOM main thread\n * self: browser in WebWorker\n * global: Node.js/other\n ", "range": [ 0, 100 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } }, { "type": "Line", "value": "# sourceMappingURL=root.js.map", "range": [ 419, 451 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 32 } } } ] }