UNPKG

skypager-project

Version:
1,665 lines (1,643 loc) 227 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 = 167); /******/ }) /************************************************************************/ /******/ ({ /***/ 167: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(76); /***/ }, /***/ 76: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/routing.spec.js", "ast": { "type": "File", "start": 0, "end": 1281, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 46, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1281, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 46, "column": 0 } }, "sourceType": "module", "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": ".", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 24 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_" } ] } } ] }, { "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": "ExpressionStatement", "start": 26, "end": 1280, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 45, "column": 2 } }, "expression": { "type": "CallExpression", "start": 26, "end": 1280, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 45, "column": 2 } }, "callee": { "type": "Identifier", "start": 26, "end": 34, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 8 }, "identifierName": "describe" }, "name": "describe" }, "arguments": [ { "type": "StringLiteral", "start": 35, "end": 52, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 26 } }, "extra": { "rawValue": "Defining Routes", "raw": "'Defining Routes'" }, "value": "Defining Routes" }, { "type": "FunctionExpression", "start": 54, "end": 1279, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 45, "column": 1 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 66, "end": 1279, "loc": { "start": { "line": 3, "column": 40 }, "end": { "line": 45, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 70, "end": 206, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 10, "column": 4 } }, "expression": { "type": "CallExpression", "start": 70, "end": 206, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 10, "column": 4 } }, "callee": { "type": "Identifier", "start": 70, "end": 76, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 4, "column": 8 }, "identifierName": "before" }, "name": "before" }, "arguments": [ { "type": "FunctionExpression", "start": 77, "end": 205, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 10, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 88, "end": 205, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 10, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 94, "end": 201, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 9, "column": 5 } }, "test": { "type": "UnaryExpression", "start": 98, "end": 111, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 21 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 99, "end": 111, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 21 } }, "object": { "type": "ThisExpression", "start": 99, "end": 103, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 13 } } }, "property": { "type": "Identifier", "start": 104, "end": 111, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 5, "column": 21 }, "identifierName": "project" }, "name": "project" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 113, "end": 201, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 9, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 121, "end": 195, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 8, "column": 8 } }, "expression": { "type": "AssignmentExpression", "start": 121, "end": 195, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 8, "column": 8 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 121, "end": 133, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 18 } }, "object": { "type": "ThisExpression", "start": 121, "end": 125, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 10 } } }, "property": { "type": "Identifier", "start": 126, "end": 133, "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 18 }, "identifierName": "project" }, "name": "project" }, "computed": false }, "right": { "type": "CallExpression", "start": 136, "end": 195, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 8, "column": 8 } }, "callee": { "type": "MemberExpression", "start": 136, "end": 149, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 34 } }, "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 145, "end": 149, "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 6, "column": 34 }, "identifierName": "load" }, "name": "load" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 150, "end": 163, "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 6, "column": 48 } }, "callee": { "type": "MemberExpression", "start": 150, "end": 161, "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 6, "column": 46 } }, "object": { "type": "Identifier", "start": 150, "end": 157, "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 6, "column": 42 }, "identifierName": "process" }, "name": "process" }, "property": { "type": "Identifier", "start": 158, "end": 161, "loc": { "start": { "line": 6, "column": 43 }, "end": { "line": 6, "column": 46 }, "identifierName": "cwd" }, "name": "cwd" }, "computed": false }, "arguments": [] }, { "type": "ObjectExpression", "start": 165, "end": 194, "loc": { "start": { "line": 6, "column": 50 }, "end": { "line": 8, "column": 7 } }, "properties": [ { "type": "ObjectProperty", "start": 175, "end": 186, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 175, "end": 179, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 }, "identifierName": "sync" }, "name": "sync" }, "value": { "type": "BooleanLiteral", "start": 181, "end": 186, "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 19 } }, "value": false } } ] } ] } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] } }, { "type": "ExpressionStatement", "start": 210, "end": 586, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 22, "column": 4 } }, "expression": { "type": "CallExpression", "start": 210, "end": 586, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 22, "column": 4 } }, "callee": { "type": "Identifier", "start": 210, "end": 212, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 4 }, "identifierName": "it" }, "name": "it" }, "arguments": [ { "type": "StringLiteral", "start": 213, "end": 266, "loc": { "start": { "line": 12, "column": 5 }, "end": { "line": 12, "column": 58 } }, "extra": { "rawValue": "creates an interface function for a group of routes", "raw": "'creates an interface function for a group of routes'" }, "value": "creates an interface function for a group of routes" }, { "type": "FunctionExpression", "start": 268, "end": 585, "loc": { "start": { "line": 12, "column": 60 }, "end": { "line": 22, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 279, "end": 585, "loc": { "start": { "line": 12, "column": 71 }, "end": { "line": 22, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 285, "end": 430, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 16, "column": 6 } }, "declarations": [ { "type": "VariableDeclarator", "start": 291, "end": 430, "loc": { "start": { "line": 13, "column": 10 }, "end": { "line": 16, "column": 6 } }, "id": { "type": "Identifier", "start": 291, "end": 296, "loc": { "start": { "line": 13, "column": 10 }, "end": { "line": 13, "column": 15 }, "identifierName": "iface" }, "name": "iface" }, "init": { "type": "CallExpression", "start": 299, "end": 430, "loc": { "start": { "line": 13, "column": 18 }, "end": { "line": 16, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 299, "end": 326, "loc": { "start": { "line": 13, "column": 18 }, "end": { "line": 13, "column": 45 } }, "object": { "type": "MemberExpression", "start": 299, "end": 311, "loc": { "start": { "line": 13, "column": 18 }, "end": { "line": 13, "column": 30 } }, "object": { "type": "ThisExpression", "start": 299, "end": 303, "loc": { "start": { "line": 13, "column": 18 }, "end": { "line": 13, "column": 22 } } }, "property": { "type": "Identifier", "start": 304, "end": 311, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 30 }, "identifierName": "project" }, "name": "project" }, "computed": false }, "property": { "type": "Identifier", "start": 312, "end": 326, "loc": { "start": { "line": 13, "column": 31 }, "end": { "line": 13, "column": 45 }, "identifierName": "createRouteMap" }, "name": "createRouteMap" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 327, "end": 336, "loc": { "start": { "line": 13, "column": 46 }, "end": { "line": 13, "column": 55 } }, "extra": { "rawValue": "helpers", "raw": "'helpers'" }, "value": "helpers" }, { "type": "ObjectExpression", "start": 338, "end": 429, "loc": { "start": { "line": 13, "column": 57 }, "end": { "line": 16, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 346, "end": 381, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 41 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 346, "end": 358, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 14, "column": 18 }, "identifierName": "projectTypes" }, "name": "projectTypes" }, "value": { "type": "StringLiteral", "start": 360, "end": 381, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 41 } }, "extra": { "rawValue": "src/project-types/*", "raw": "'src/project-types/*'" }, "value": "src/project-types/*" } }, { "type": "ObjectProperty", "start": 389, "end": 421, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "column": 38 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 389, "end": 400, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "column": 17 }, "identifierName": "middlewares" }, "name": "middlewares" }, "value": { "type": "StringLiteral", "start": 402, "end": 421, "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 38 } }, "extra": { "rawValue": "src/middlewares/*", "raw": "'src/middlewares/*'" }, "value": "src/middlewares/*" } } ] } ] } } ], "kind": "var" }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 444, "end": 456, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 24 }, "identifierName": "projectTypes" }, "name": "projectTypes" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 474, "end": 479, "loc": { "start": { "line": 18, "column": 42 }, "end": { "line": 18, "column": 47 }, "identifierName": "iface" }, "name": "iface" }, "property": { "type": "Identifier", "start": 444, "end": 456, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 24 }, "identifierName": "projectTypes" }, "name": "projectTypes" }, "computed": false } } ], "leadingComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 458, "end": 469, "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 37 }, "identifierName": "middlewares" }, "name": "middlewares" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 474, "end": 479, "loc": { "start": { "line": 18, "column": 42 }, "end": { "line": 18, "column": 47 }, "identifierName": "iface" }, "name": "iface" }, "property": { "type": "Identifier", "start": 458, "end": 469, "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 37 }, "identifierName": "middlewares" }, "name": "middlewares" }, "computed": false } } ], "trailingComments": [] }, { "type": "ExpressionStatement", "start": 485, "end": 531, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 50 } }, "expression": { "type": "CallExpression", "start": 485, "end": 531, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 485, "end": 518, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 37 } }, "object": { "type": "MemberExpression", "start": 485, "end": 509, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 28 } }, "object": { "type": "MemberExpression", "start": 485, "end": 504, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 23 } }, "object": { "type": "Identifier", "start": 485, "end": 497, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 16 }, "identifierName": "projectTypes" }, "name": "projectTypes" }, "property": { "type": "Identifier", "start": 498, "end": 504, "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 23 }, "identifierName": "should" }, "name": "should" }, "computed": false }, "property": { "type": "Identifier", "start": 505, "end": 509, "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 28 }, "identifierName": "have" }, "name": "have" }, "computed": false }, "property": { "type": "Identifier", "start": 510, "end": 518, "loc": { "start": { "line": 20, "column": 29 }, "end": { "line": 20, "column": 37 }, "identifierName": "property" }, "name": "property" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 519, "end": 527, "loc": { "start": { "line": 20, "column": 38 }, "end": { "line": 20, "column": 46 } }, "extra": { "rawValue": "length", "raw": "'length'" }, "value": "length" }, { "type": "NumericLiteral", "start": 529, "end": 530, "loc": { "start": { "line": 20, "column": 48 }, "end": { "line": 20, "column": 49 } }, "extra": { "rawValue": 5, "raw": "5" }, "value": 5 } ] } }, { "type": "ExpressionStatement", "start": 536, "end": 581, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 49 } }, "expression": { "type": "CallExpression", "start": 536, "end": 581, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 536, "end": 568, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 36 } }, "object": { "type": "MemberExpression", "start": 536, "end": 559, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 27 } }, "object": { "type": "MemberExpression", "start": 536, "end": 554, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 22 } }, "object": { "type": "Identifier", "start": 536, "end": 547, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 15 }, "identifierName": "middlewares" }, "name": "middlewares" }, "property": { "type": "Identifier", "start": 548, "end": 554, "loc": { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 22 }, "identifierName": "should" }, "name": "should" }, "computed": false }, "property": { "type": "Identifier", "start": 555, "end": 559, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 27 }, "identifierName": "have" }, "name": "have" }, "computed": false }, "property": { "type": "Identifier", "start": 560, "end": 568, "loc": { "start": { "line": 21,