UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,325 lines (1,324 loc) 144 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 18, 24 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 27, 34 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 35, 41 ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 27 } } } ], "range": [ 27, 42 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 28 } } }, "range": [ 18, 42 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 28 } } } ], "kind": "var", "range": [ 14, 43 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 48, 50 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 53, 60 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 61, 80 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 36 } } } ], "range": [ 53, 81 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 37 } } }, "range": [ 48, 81 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 37 } } } ], "kind": "var", "range": [ 44, 82 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "ScalarObservable_1", "range": [ 87, 105 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 22 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 108, 115 ], "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 32 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/observable/ScalarObservable", "raw": "'../../dist/cjs/observable/ScalarObservable'", "range": [ 116, 160 ], "loc": { "start": { "line": 4, "column": 33 }, "end": { "line": 4, "column": 77 } } } ], "range": [ 108, 161 ], "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 78 } } }, "range": [ 87, 161 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 78 } } } ], "kind": "var", "range": [ 83, 162 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 79 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 163, 171 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "ScalarObservable", "raw": "'ScalarObservable'", "range": [ 172, 190 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 27 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 210, 212 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should create expose a value property", "raw": "'should create expose a value property'", "range": [ 213, 252 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 46 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "s", "range": [ 280, 281 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 13 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "ScalarObservable_1", "range": [ 288, 306 ], "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 38 } } }, "property": { "type": "Identifier", "name": "ScalarObservable", "range": [ 307, 323 ], "loc": { "start": { "line": 7, "column": 39 }, "end": { "line": 7, "column": 55 } } }, "range": [ 288, 323 ], "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 55 } } }, "arguments": [ { "type": "Literal", "value": 1, "raw": "1", "range": [ 324, 325 ], "loc": { "start": { "line": 7, "column": 56 }, "end": { "line": 7, "column": 57 } } } ], "range": [ 284, 326 ], "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 58 } } }, "range": [ 280, 326 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 58 } } } ], "kind": "var", "range": [ 276, 327 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 59 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 336, 342 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 343, 349 ], "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 21 } } }, "range": [ 336, 349 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 21 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "s", "range": [ 350, 351 ], "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 23 } } }, "property": { "type": "Identifier", "name": "value", "range": [ 352, 357 ], "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 29 } } }, "range": [ 350, 357 ], "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 29 } } } ], "range": [ 336, 358 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 30 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 359, 361 ], "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 33 } } }, "range": [ 336, 361 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 33 } } }, "property": { "type": "Identifier", "name": "equal", "range": [ 362, 367 ], "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 39 } } }, "range": [ 336, 367 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 39 } } }, "arguments": [ { "type": "Literal", "value": 1, "raw": "1", "range": [ 368, 369 ], "loc": { "start": { "line": 8, "column": 40 }, "end": { "line": 8, "column": 41 } } } ], "range": [ 336, 370 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 42 } } }, "range": [ 336, 371 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 43 } } } ], "range": [ 266, 377 ], "loc": { "start": { "line": 6, "column": 60 }, "end": { "line": 9, "column": 5 } } }, "generator": false, "expression": false, "range": [ 254, 377 ], "loc": { "start": { "line": 6, "column": 48 }, "end": { "line": 9, "column": 5 } } } ], "range": [ 210, 378 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 9, "column": 6 } }, "_esdocTestId": 138, "_esdocTestName": "it138" }, "range": [ 210, 379 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 9, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 384, 386 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should create ScalarObservable via static create function", "raw": "'should create ScalarObservable via static create function'", "range": [ 387, 446 ], "loc": { "start": { "line": 10, "column": 7 }, "end": { "line": 10, "column": 66 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "s", "range": [ 474, 475 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 13 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "ScalarObservable_1", "range": [ 482, 500 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 38 } } }, "property": { "type": "Identifier", "name": "ScalarObservable", "range": [ 501, 517 ], "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 11, "column": 55 } } }, "range": [ 482, 517 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 55 } } }, "arguments": [ { "type": "Literal", "value": 1, "raw": "1", "range": [ 518, 519 ], "loc": { "start": { "line": 11, "column": 56 }, "end": { "line": 11, "column": 57 } } } ], "range": [ 478, 520 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 58 } } }, "range": [ 474, 520 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 58 } } } ], "kind": "var", "range": [ 470, 521 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 59 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "r", "range": [ 534, 535 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "ScalarObservable_1", "range": [ 538, 556 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 34 } } }, "property": { "type": "Identifier", "name": "ScalarObservable", "range": [ 557, 573 ], "loc": { "start": { "line": 12, "column": 35 }, "end": { "line": 12, "column": 51 } } }, "range": [ 538, 573 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 51 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 574, 580 ], "loc": { "start": { "line": 12, "column": 52 }, "end": { "line": 12, "column": 58 } } }, "range": [ 538, 580 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 58 } } }, "arguments": [ { "type": "Literal", "value": 1, "raw": "1", "range": [ 581, 582 ], "loc": { "start": { "line": 12, "column": 59 }, "end": { "line": 12, "column": 60 } } } ], "range": [ 538, 583 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 61 } } }, "range": [ 534, 583 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 61 } } } ], "kind": "var", "range": [ 530, 584 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 62 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": {