UNPKG

skypager-project

Version:
2,127 lines (2,105 loc) 132 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 155); /******/ }) /************************************************************************/ /******/ ({ /***/ 155: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(64); /***/ }, /***/ 64: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/middlewares/process-runner.js", "ast": { "type": "File", "start": 0, "end": 714, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 28, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 714, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 28, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Object" }, "property": { "type": "Identifier", "name": "defineProperty" }, "computed": false }, "arguments": [ { "type": "Identifier", "name": "exports" }, { "type": "StringLiteral", "extra": { "rawValue": "__esModule", "raw": "\"__esModule\"" }, "value": "__esModule" }, { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "value" }, "value": { "type": "BooleanLiteral", "value": true } } ] } ] } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 69, "end": 72, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 19 }, "identifierName": "use" }, "name": "use", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 69, "end": 72, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 19 }, "identifierName": "use" }, "name": "use", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 158, "end": 164, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 22 }, "identifierName": "attach" }, "name": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 158, "end": 164, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 22 }, "identifierName": "attach" }, "name": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerProcessRunner" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-process-runner", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 51 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerProcessRunner2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_skypagerProcessRunner" } ] } } ] }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "name": "obj" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "Identifier", "name": "obj" }, "operator": "&&", "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "obj" }, "property": { "type": "Identifier", "name": "__esModule" }, "computed": false } }, "consequent": { "type": "Identifier", "name": "obj" }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "default" }, "value": { "type": "Identifier", "name": "obj" } } ] } } } ], "directives": [] }, "extra": { "parenthesized": true, "parenStart": 3 } }, { "type": "FunctionDeclaration", "start": 60, "end": 120, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 6, "column": 1 } }, "id": { "type": "Identifier", "start": 69, "end": 72, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 19 }, "identifierName": "use" }, "name": "use", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 93, "end": 120, "loc": { "start": { "line": 3, "column": 40 }, "end": { "line": 6, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 73, "end": 80, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 27 }, "identifierName": "options" }, "name": "options", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "length" }, "computed": false }, "operator": ">", "right": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "operator": "&&", "right": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "operator": "!==", "right": { "type": "Identifier", "name": "undefined" } } }, "consequent": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "alternate": { "type": "ObjectExpression", "start": 83, "end": 85, "loc": { "start": { "line": 3, "column": 30 }, "end": { "line": 3, "column": 32 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 87, "end": 91, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 38 }, "identifierName": "next" }, "name": "next", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 1, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 97, "end": 109, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 4, "column": 14 } }, "expression": { "type": "CallExpression", "start": 97, "end": 109, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 4, "column": 14 } }, "callee": { "type": "Identifier", "start": 97, "end": 103, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 4, "column": 8 }, "identifierName": "attach" }, "name": "attach" }, "arguments": [ { "type": "ThisExpression", "start": 104, "end": 108, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 13 } } } ] } }, { "type": "ExpressionStatement", "start": 112, "end": 118, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 8 } }, "expression": { "type": "CallExpression", "start": 112, "end": 118, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 8 } }, "callee": { "type": "Identifier", "start": 112, "end": 116, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 6 }, "identifierName": "next" }, "name": "next" }, "arguments": [] } } ], "directives": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "default", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 137, "end": 140, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 18 }, "identifierName": "use" }, "name": "use", "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "FunctionDeclaration", "start": 149, "end": 454, "loc": { "start": { "line": 10, "column": 7 }, "end": { "line": 20, "column": 1 } }, "id": { "type": "Identifier", "start": 158, "end": 164, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 22 }, "identifierName": "attach" }, "name": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 165, "end": 172, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 30 }, "identifierName": "project" }, "name": "project" } ], "body": { "type": "BlockStatement", "start": 174, "end": 454, "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 20, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_project$get" }, "init": { "type": "CallExpression", "start": 203, "end": 249, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 73 } }, "callee": { "type": "MemberExpression", "start": 203, "end": 214, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 38 } }, "object": { "type": "Identifier", "start": 203, "end": 210, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 34 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 211, "end": 214, "loc": { "start": { "line": 11, "column": 35 }, "end": { "line": 11, "column": 38 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 215, "end": 227, "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 11, "column": 51 } }, "extra": { "rawValue": "paths.logs", "raw": "'paths.logs'" }, "value": "paths.logs" }, { "type": "CallExpression", "start": 229, "end": 248, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 72 } }, "callee": { "type": "MemberExpression", "start": 229, "end": 241, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 65 } }, "object": { "type": "Identifier", "start": 229, "end": 236, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 60 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 237, "end": 241, "loc": { "start": { "line": 11, "column": 61 }, "end": { "line": 11, "column": 65 }, "identifierName": "join" }, "name": "join" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 242, "end": 247, "loc": { "start": { "line": 11, "column": 66 }, "end": { "line": 11, "column": 71 } }, "extra": { "rawValue": "log", "raw": "'log'" }, "value": "log" } ] } ] } } ], "leadingComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 186, "end": 198, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 22 }, "identifierName": "outputFolder" }, "name": "outputFolder" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_project$get" }, "property": { "type": "Identifier", "start": 186, "end": 198, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 22 }, "identifierName": "outputFolder" }, "name": "outputFolder" }, "computed": false } } ], "trailingComments": [] }, { "type": "ExpressionStatement", "start": 253, "end": 349, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 15, "column": 4 } }, "expression": { "type": "CallExpression", "start": 253, "end": 349, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 15, "column": 4 } }, "callee": { "type": "MemberExpression", "start": 253, "end": 265, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 13, "column": 14 } }, "object": { "type": "Identifier", "start": 253, "end": 260, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 13, "column": 9 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 261, "end": 265, "loc": { "start": { "line": 13, "column": 10 }, "end": { "line": 13, "column": 14 }, "identifierName": "lazy" }, "name": "lazy" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 266, "end": 281, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 30 } }, "extra": { "rawValue": "processRunner", "raw": "'processRunner'" }, "value": "processRunner" }, { "type": "FunctionExpression", "start": 283, "end": 348, "loc": { "start": { "line": 13, "column": 32 }, "end": { "line": 15, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "NewExpression", "start": 295, "end": 344, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 53 } }, "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerProcessRunner2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "FunctionExpression", "start": 313, "end": 325, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 34 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 314, "end": 317, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 26 }, "identifierName": "cmd" }, "name": "cmd" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "Identifier", "start": 322, "end": 325, "loc": { "start": { "line": 14, "column": 31 }, "end": { "line": 14, "column": 34 }, "identifierName": "cmd" }, "name": "cmd" } } ], "directives": [] }, "shadow": true }, { "type": "ObjectExpression", "start": 327, "end": 343, "loc": { "start": { "line": 14, "column": 36 }, "end": { "line": 14, "column": 52 } }, "properties": [ { "type": "ObjectProperty", "start": 329, "end": 341, "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 50 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 329, "end": 341, "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 50 }, "identifierName": "outputFolder" }, "name": "outputFolder" }, "value": { "type": "Identifier", "start": 329, "end": 341, "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 50 }, "identifierName": "outputFolder" }, "name": "outputFolder" }, "extra": { "shorthand": true } } ] } ], "extra": { "parenthesized": true, "parenStart": 289 } } } ], "directives": [] }, "shadow": true } ] } }, { "type": "ExpressionStatement", "start": 353, "end": 434, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 83 } }, "expression": { "type": "CallExpression", "start": 353, "end": 434, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 353, "end": 365, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 14 } }, "object": { "type": "Identifier", "start": 353, "end": 360, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 9 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 361, "end": 365, "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 14 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 366, "end": 388, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 37 } }, "extra": { "rawValue": "captureCommandOutput", "raw": "'captureCommandOutput'" }, "value": "captureCommandOutput" }, { "type": "CallExpression", "start": 390, "end": 433, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 82 } }, "callee": { "type": "MemberExpression", "start": 390, "end": 415, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 64 } }, "object": { "type": "Identifier", "start": 390, "end": 410, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 59 }, "identifierName": "captureCommandOutput" }, "name": "captureCommandOutput" }, "property": { "type": "Identifier", "start": 411, "end": 415, "loc": { "start": { "line": 17, "column": 60 }, "end": { "line": 17, "column": 64 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 416, "end": 423, "loc": { "start": { "line": 17, "column": 65 }, "end": { "line": 17, "column": 72 }, "identifierName": "project" }, "name": "project" }, { "type": "Identifier", "start": 425, "end": 432, "loc": { "start": { "line": 17, "column": 74 }, "end": { "line": 17, "column": 81 }, "identifierName": "project" }, "name": "project" } ] } ] } }, { "type": "ReturnStatement", "start": 438, "end": 452, "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 19, "column": 16 } }, "argument": { "type": "Identifier", "start": 445, "end": 452, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 16 }, "identifierName": "project" }, "name": "project" } } ], "directives": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "FunctionDeclaration", "start": 456, "end": 713, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 27, "column": 1 } }, "id": { "type": "Identifier", "start": 465, "end": 485, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 29 }, "identifierName": "captureCommandOutput" }, "name": "captureCommandOutput" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 486, "end": 493, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 37 }, "identifierName": "project" }, "name": "project" }, { "type": "Identifier", "start": 495, "end": 502, "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 46 }, "identifierName": "command" }, "name": "command" }, { "type": "Identifier", "start": 504, "end": 511, "loc": { "start": { "line": 22, "column": 48 }, "end": { "line": 22, "column": 55 }, "identifierName": "options" }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 513, "end": 713, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 27, "column": 1 } }, "body": [ { "type": "ReturnStatement", "start": 517, "end": 711, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 26, "column": 4 } }, "argument": { "type": "CallExpression", "start": 524, "end": 711, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 26, "column": 4 } }, "callee": { "type": "MemberExpression", "start": 524, "end": 607, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 24, "column": 7 } }, "object": { "type": "CallExpression", "start": 524, "end": 599, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 84 } }, "callee": { "type": "CallExpression", "start": 524, "end": 581, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 524, "end": 545, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 30 } }, "object": { "type": "Identifier", "start": 524, "end": 531, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 16 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 532, "end": 545, "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 30 }, "identifierName": "processRunner" }, "name": "processRunner" }, "computed": false }, "arguments": [ { "type": "ConditionalExpression", "start": 546, "end": 580, "loc": { "start": { "line": 23, "column": 31 }, "end": { "line": 23, "column": 65 } }, "test": { "type": "MemberExpression", "start": 546, "end": 559, "loc": { "start": { "line": 23, "column": 31 }, "end": { "line": 23, "column": 44 } }, "object": { "type": "Identifier", "start": 546, "end": 553, "loc": { "start": { "line": 23, "column": 31 }, "end": { "line": 23, "column": 38 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 554, "end": 559, "loc": { "start": { "line": 23, "column": 39 }, "end": { "line": 23, "column": 44 }, "identifierName": "async" }, "name": "async" }, "computed": false }, "consequent": { "type": "StringLiteral", "start": 562, "end": 572, "loc": { "start": { "line": 23, "column": 47 }, "end": { "line": 23, "column": 57 } }, "extra": { "rawValue": "runAsync", "raw": "'runAsync'" }, "value": "runAsync" }, "alternate": { "type": "StringLiteral", "start": 575, "end": 580, "loc": { "start": { "line": 23, "column": 60 }, "end": { "line": 23, "column": 65 } }, "extra": { "rawValue": "run", "raw": "'run'" }, "value": "run" } } ] }, "arguments": [ { "type": "Identifier", "start": 582, "end": 589, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 74 }, "identifierName": "command" }, "name": "command" }, { "type": "Identifier", "start": 591, "end": 598, "loc": { "start": { "line": 23, "column": 76 }, "end": { "line": 23, "column": 83 }, "identifierName": "options" }, "name": "options" } ] }, "property": { "type": "Identifier", "start": 603, "end": 607, "loc": { "start": { "line": 24, "column": 3 }, "end": { "line": 24, "column": 7 }, "identifierName": "then" }, "name": "then" }, "computed": false }, "arguments": [ { "type": "FunctionExpression", "start": 608, "end": 710, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 26, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 608, "end": 614, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 14 }, "identifierName": "report" }, "name": "report" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "start": 624, "end": 706, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 86 } }, "test": { "type": "MemberExpression", "start": 624, "end": 641, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 21 } }, "object": { "type": "Identifier", "start": 624, "end": 630, "loc": { "start": { "line": 25, "column": 4 },