{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "noop", "range": [ 7, 11 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 } } }, "range": [ 7, 11 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 } } } ], "source": { "type": "Literal", "value": "lodash/noop", "raw": "'lodash/noop'", "range": [ 17, 30 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 30 } } }, "range": [ 0, 31 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 31 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "once", "range": [ 39, 43 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 11 } } }, "range": [ 39, 43 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 11 } } } ], "source": { "type": "Literal", "value": "./once", "raw": "'./once'", "range": [ 49, 57 ], "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 25 } } }, "range": [ 32, 58 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 26 } } }, { "type": "ExportDefaultDeclaration", "declaration": { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_asyncMap", "range": [ 84, 93 ], "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 33 } } }, "params": [ { "type": "Identifier", "name": "eachfn", "range": [ 94, 100 ], "loc": { "start": { "line": 4, "column": 34 }, "end": { "line": 4, "column": 40 } } }, { "type": "Identifier", "name": "arr", "range": [ 102, 105 ], "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 4, "column": 45 } } }, { "type": "Identifier", "name": "iteratee", "range": [ 107, 115 ], "loc": { "start": { "line": 4, "column": 47 }, "end": { "line": 4, "column": 55 } } }, { "type": "Identifier", "name": "callback", "range": [ 117, 125 ], "loc": { "start": { "line": 4, "column": 57 }, "end": { "line": 4, "column": 65 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "callback", "range": [ 133, 141 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 12 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "once", "range": [ 144, 148 ], "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 19 } } }, "arguments": [ { "type": "LogicalExpression", "operator": "||", "left": { "type": "Identifier", "name": "callback", "range": [ 149, 157 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 28 } } }, "right": { "type": "Identifier", "name": "noop", "range": [ 161, 165 ], "loc": { "start": { "line": 5, "column": 32 }, "end": { "line": 5, "column": 36 } } }, "range": [ 149, 165 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 36 } } } ], "range": [ 144, 166 ], "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 37 } } }, "range": [ 133, 166 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 37 } } }, "range": [ 133, 167 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 38 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "arr", "range": [ 172, 175 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 7 } } }, "right": { "type": "LogicalExpression", "operator": "||", "left": { "type": "Identifier", "name": "arr", "range": [ 178, 181 ], "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 13 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 185, 187 ], "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 19 } } }, "range": [ 178, 187 ], "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 19 } } }, "range": [ 172, 187 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 19 } } }, "range": [ 172, 188 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 20 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "results", "range": [ 197, 204 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } } }, "init": { "type": "ArrayExpression", "elements": [], "range": [ 207, 209 ], "loc": { "start": { "line": 7, "column": 18 }, "end": { "line": 7, "column": 20 } } }, "range": [ 197, 209 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 20 } } } ], "kind": "var", "range": [ 193, 210 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 21 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "counter", "range": [ 219, 226 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 15 } } }, "init": { "type": "Literal", "value": 0, "raw": "0", "range": [ 229, 230 ], "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 19 } } }, "range": [ 219, 230 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 19 } } } ], "kind": "var", "range": [ 215, 231 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 20 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "eachfn", "range": [ 237, 243 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 10 } } }, "arguments": [ { "type": "Identifier", "name": "arr", "range": [ 244, 247 ], "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 14 } } }, { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "value", "range": [ 259, 264 ], "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 31 } } }, { "type": "Identifier", "name": "_", "range": [ 266, 267 ], "loc": { "start": { "line": 10, "column": 33 }, "end": { "line": 10, "column": 34 } } }, { "type": "Identifier", "name": "callback", "range": [ 269, 277 ], "loc": { "start": { "line": 10, "column": 36 }, "end": { "line": 10, "column": 44 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "index", "range": [ 293, 298 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 17 } } }, "init": { "type": "UpdateExpression", "operator": "++", "argument": { "type": "Identifier", "name": "counter", "range": [ 301, 308 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 27 } } }, "prefix": false, "range": [ 301, 310 ], "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 29 } } }, "range": [ 293, 310 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 29 } } } ], "kind": "var", "range": [ 289, 311 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 30 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "iteratee", "range": [ 320, 328 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 16 } } }, "arguments": [ { "type": "Identifier", "name": "value", "range": [ 329, 334 ], "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 22 } } }, { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "err", "range": [ 346, 349 ], "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 37 } } }, { "type": "Identifier", "name": "v", "range": [ 351, 352 ], "loc": { "start": { "line": 12, "column": 39 }, "end": { "line": 12, "column": 40 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "results", "range": [ 368, 375 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 19 } } }, "property": { "type": "Identifier", "name": "index", "range": [ 376, 381 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 25 } } }, "range": [ 368, 382 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 26 } } }, "right": { "type": "Identifier", "name": "v", "range": [ 385, 386 ], "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 30 } } }, "range": [ 368, 386 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 30 } } }, "range": [ 368, 387 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "callback", "range": [ 400, 408 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 20 } } }, "arguments": [ { "type": "Identifier", "name": "err", "range": [ 409, 412 ], "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 24 } } } ], "range": [ 400, 413 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 25 } } }, "range": [ 400, 414 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 26 } } } ], "range": [ 354, 424 ], "loc": { "start": { "line": 12, "column": 42 }, "end": { "line": 15, "column": 9 } } }, "generator": false, "expression": false, "range": [ 336, 424 ], "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 15, "column": 9 } } } ], "range": [ 320, 425 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 15, "column": 10 } } }, "range": [ 320, 426 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 15, "column": 11 } } } ], "range": [ 279, 432 ], "loc": { "start": { "line": 10, "column": 46 }, "end": { "line": 16, "column": 5 } } }, "generator": false, "expression": false, "range": [ 249, 432 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 16, "column": 5 } } }, { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "err", "range": [ 444, 447 ], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 20 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "callback", "range": [ 459, 467 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 16 } } }, "arguments": [ { "type": "Identifier", "name": "err", "range": [ 468, 471 ], "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 20 } } }, { "type": "Identifier", "name": "results", "range": [ 473, 480 ], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 29 } } } ], "range": [ 459, 481 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 30 } } }, "range": [ 459, 482 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 31 } } } ], "range": [ 449, 488 ], "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 18, "column": 5 } } }, "generator": false, "expression": false, "range": [ 434, 488 ], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 18, "column": 5 } } } ], "range": [ 237, 489 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 18, "column": 6 } } }, "range": [ 237, 490 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 18, "column": 7 } } } ], "range": [ 127, 492 ], "loc": { "start": { "line": 4, "column": 67 }, "end": { "line": 19, "column": 1 } } }, "generator": false, "expression": false, "range": [ 75, 492 ], "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 19, "column": 1 } }, "leadingComments": [], "trailingComments": [] }, "range": [ 60, 492 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 19, "column": 1 } } } ], "sourceType": "module", "range": [ 0, 492 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 19, "column": 1 } }, "comments": [] }