UNPKG

skypager-project

Version:
2,088 lines (2,067 loc) 189 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 = 156); /******/ }) /************************************************************************/ /******/ ({ /***/ 156: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(65); /***/ }, /***/ 65: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/middlewares/registries.js", "ast": { "type": "File", "start": 0, "end": 941, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 42, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 941, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 42, "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": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/extends", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_extends2" } ] } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 101, "end": 104, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 19 }, "identifierName": "use" }, "name": "use", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 101, "end": 104, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "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": 188, "end": 194, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 22 }, "identifierName": "attach" }, "name": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 188, "end": 194, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 22 }, "identifierName": "attach" }, "name": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 521, "end": 535, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 30 }, "identifierName": "createRegistry" }, "name": "createRegistry", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 521, "end": 535, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 30 }, "identifierName": "createRegistry" }, "name": "createRegistry", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerRegistry" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-registry", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 42 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_mapValues" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "lodash/mapValues", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 40 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_mapValues2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_mapValues" } ] } } ] }, { "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": 92, "end": 170, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 101, "end": 104, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 19 }, "identifierName": "use" }, "name": "use", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 126, "end": 170, "loc": { "start": { "line": 4, "column": 41 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 106, "end": 113, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 28 }, "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": 116, "end": 118, "loc": { "start": { "line": 4, "column": 31 }, "end": { "line": 4, "column": 33 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 120, "end": 124, "loc": { "start": { "line": 4, "column": 35 }, "end": { "line": 4, "column": 39 }, "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": 130, "end": 151, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 23 } }, "expression": { "type": "CallExpression", "start": 130, "end": 151, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 23 } }, "callee": { "type": "Identifier", "start": 130, "end": 136, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 8 }, "identifierName": "attach" }, "name": "attach" }, "arguments": [ { "type": "ThisExpression", "start": 137, "end": 141, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 13 } } }, { "type": "Identifier", "start": 143, "end": 150, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 22 }, "identifierName": "options" }, "name": "options" } ] } }, { "type": "ExpressionStatement", "start": 154, "end": 168, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 16 } }, "expression": { "type": "LogicalExpression", "start": 154, "end": 168, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 16 } }, "left": { "type": "Identifier", "start": 154, "end": 158, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 6 }, "identifierName": "next" }, "name": "next" }, "operator": "&&", "right": { "type": "CallExpression", "start": 162, "end": 168, "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 16 } }, "callee": { "type": "Identifier", "start": 162, "end": 166, "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 14 }, "identifierName": "next" }, "name": "next" }, "arguments": [] } } } ], "directives": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "FunctionDeclaration", "start": 179, "end": 503, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 23, "column": 1 } }, "id": { "type": "Identifier", "start": 188, "end": 194, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 22 }, "identifierName": "attach" }, "name": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 195, "end": 202, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 30 }, "identifierName": "project" }, "name": "project" } ], "body": { "type": "BlockStatement", "start": 219, "end": 503, "loc": { "start": { "line": 9, "column": 47 }, "end": { "line": 23, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 204, "end": 212, "loc": { "start": { "line": 9, "column": 32 }, "end": { "line": 9, "column": 40 }, "identifierName": "defaults" }, "name": "defaults", "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": 1, "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "operator": "&&", "right": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 1, "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": 1, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "alternate": { "type": "ObjectExpression", "start": 215, "end": 217, "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 45 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 223, "end": 330, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 14, "column": 4 } }, "expression": { "type": "AssignmentExpression", "start": 223, "end": 330, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 14, "column": 4 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 223, "end": 241, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "Identifier", "start": 223, "end": 230, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 10, "column": 9 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 231, "end": 241, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 20 }, "identifierName": "registries" }, "name": "registries" }, "computed": false }, "right": { "type": "CallExpression", "start": 244, "end": 330, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 14, "column": 4 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerRegistry" }, "property": { "type": "Identifier", "start": 9, "end": 15, "name": "create" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ObjectExpression", "start": 251, "end": 329, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 14, "column": 3 } }, "properties": [ { "type": "ObjectProperty", "start": 257, "end": 275, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 257, "end": 261, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 8 }, "identifierName": "name" }, "name": "name" }, "value": { "type": "StringLiteral", "start": 263, "end": 275, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 22 } }, "extra": { "rawValue": "registries", "raw": "'registries'" }, "value": "registries" } }, { "type": "ObjectProperty", "start": 281, "end": 298, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 281, "end": 285, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 8 }, "identifierName": "type" }, "name": "type" }, "value": { "type": "StringLiteral", "start": 287, "end": 298, "loc": { "start": { "line": 12, "column": 10 }, "end": { "line": 12, "column": 21 } }, "extra": { "rawValue": "Directory", "raw": "'Directory'" }, "value": "Directory" } }, { "type": "ObjectProperty", "start": 304, "end": 325, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 304, "end": 319, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 19 }, "identifierName": "silenceFailures" }, "name": "silenceFailures" }, "value": { "type": "BooleanLiteral", "start": 321, "end": 325, "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 25 } }, "value": true } } ] } ] } } }, { "type": "ExpressionStatement", "start": 334, "end": 387, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 55 } }, "expression": { "type": "AssignmentExpression", "start": 334, "end": 387, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 55 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 334, "end": 356, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 24 } }, "object": { "type": "Identifier", "start": 334, "end": 341, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 9 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 342, "end": 356, "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 24 }, "identifierName": "createRegistry" }, "name": "createRegistry" }, "computed": false }, "right": { "type": "CallExpression", "start": 359, "end": 387, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 359, "end": 378, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 46 } }, "object": { "type": "Identifier", "start": 359, "end": 373, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 41 }, "identifierName": "createRegistry" }, "name": "createRegistry" }, "property": { "type": "Identifier", "start": 374, "end": 378, "loc": { "start": { "line": 16, "column": 42 }, "end": { "line": 16, "column": 46 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 379, "end": 386, "loc": { "start": { "line": 16, "column": 47 }, "end": { "line": 16, "column": 54 }, "identifierName": "project" }, "name": "project" } ] } } }, { "type": "ExpressionStatement", "start": 391, "end": 483, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 20, "column": 4 } }, "expression": { "type": "CallExpression", "start": 391, "end": 483, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 20, "column": 4 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_mapValues2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 401, "end": 409, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 20 }, "identifierName": "defaults" }, "name": "defaults" }, { "type": "FunctionExpression", "start": 411, "end": 482, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 20, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 435, "end": 482, "loc": { "start": { "line": 18, "column": 46 }, "end": { "line": 20, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 412, "end": 419, "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 30 }, "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": 422, "end": 424, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 35 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 426, "end": 430, "loc": { "start": { "line": 18, "column": 37 }, "end": { "line": 18, "column": 41 }, "identifierName": "name" }, "name": "name", "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": 441, "end": 478, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 41 } }, "expression": { "type": "CallExpression", "start": 441, "end": 478, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 41 } }, "callee": { "type": "MemberExpression", "start": 441, "end": 463, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 26 } }, "object": { "type": "Identifier", "start": 441, "end": 448, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 449, "end": 463, "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 26 }, "identifierName": "createRegistry" }, "name": "createRegistry" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 464, "end": 468, "loc": { "start": { "line": 19, "column": 27 }, "end": { "line": 19, "column": 31 }, "identifierName": "name" }, "name": "name" }, { "type": "Identifier", "start": 470, "end": 477, "loc": { "start": { "line": 19, "column": 33 }, "end": { "line": 19, "column": 40 }, "identifierName": "options" }, "name": "options" } ] } } ], "directives": [] }, "shadow": true } ] } }, { "type": "ReturnStatement", "start": 487, "end": 501, "loc": { "start": { "line": 22, "column": 2 }, "end": { "line": 22, "column": 16 } }, "argument": { "type": "Identifier", "start": 494, "end": 501, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 16 }, "identifierName": "project" }, "name": "project" } } ], "directives": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "FunctionDeclaration", "start": 512, "end": 940, "loc": { "start": { "line": 25, "column": 7 }, "end": { "line": 41, "column": 1 } }, "id": { "type": "Identifier", "start": 521, "end": 535, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 30 }, "identifierName": "createRegistry" }, "name": "c