UNPKG

skypager-project

Version:
1,530 lines (1,509 loc) 164 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 = 123); /******/ }) /************************************************************************/ /******/ ({ /***/ 123: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(32); /***/ }, /***/ 32: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/contexts.js", "ast": { "type": "File", "start": 0, "end": 803, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 20, "column": 1 } }, "program": { "type": "Program", "start": 0, "end": 803, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 20, "column": 1 } }, "sourceType": "module", "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_promise" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/promise", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_promise2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_promise" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_properties" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-util/lib/properties", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 53 } } }, { "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": 55, "end": 803, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 20, "column": 1 } }, "expression": { "type": "AssignmentExpression", "start": 55, "end": 803, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 20, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 55, "end": 69, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 14 } }, "object": { "type": "Identifier", "start": 55, "end": 61, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 }, "identifierName": "module" }, "name": "module" }, "property": { "type": "Identifier", "start": 62, "end": 69, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 }, "identifierName": "exports" }, "name": "exports" }, "computed": false }, "right": { "type": "FunctionExpression", "start": 72, "end": 803, "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 20, "column": 1 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 83, "end": 803, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 20, "column": 1 } }, "body": [ { "type": "ReturnStatement", "start": 87, "end": 800, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 18, "column": 4 } }, "argument": { "type": "NewExpression", "start": 94, "end": 800, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 18, "column": 4 } }, "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_promise2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "FunctionExpression", "start": 106, "end": 799, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 18, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 107, "end": 114, "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 29 }, "identifierName": "resolve" }, "name": "resolve" }, { "type": "Identifier", "start": 115, "end": 121, "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 4, "column": 36 }, "identifierName": "reject" }, "name": "reject" } ], "body": { "type": "BlockStatement", "start": 126, "end": 799, "loc": { "start": { "line": 4, "column": 41 }, "end": { "line": 18, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 133, "end": 793, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 17, "column": 6 } }, "expression": { "type": "CallExpression", "start": 133, "end": 793, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 17, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 133, "end": 147, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 18 } }, "object": { "type": "Identifier", "start": 133, "end": 140, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 11 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 141, "end": 147, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 18 }, "identifierName": "ensure" }, "name": "ensure" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 148, "end": 150, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 21 } }, "elements": [] }, { "type": "FunctionExpression", "start": 152, "end": 792, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 17, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 163, "end": 792, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 171, "end": 190, "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 25 } }, "declarations": [ { "type": "VariableDeclarator", "start": 177, "end": 190, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 25 } }, "id": { "type": "Identifier", "start": 177, "end": 185, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 20 }, "identifierName": "contexts" }, "name": "contexts" }, "init": { "type": "ObjectExpression", "start": 188, "end": 190, "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 7, "column": 25 } }, "properties": [] } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 198, "end": 283, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 91 } }, "expression": { "type": "CallExpression", "start": 198, "end": 283, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 91 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_properties" }, "property": { "type": "Identifier", "start": 9, "end": 15, "name": "getter" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 205, "end": 213, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 21 }, "identifierName": "contexts" }, "name": "contexts" }, { "type": "StringLiteral", "start": 215, "end": 224, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 32 } }, "extra": { "rawValue": "helpers", "raw": "'helpers'" }, "value": "helpers" }, { "type": "FunctionExpression", "start": 226, "end": 276, "loc": { "start": { "line": 9, "column": 34 }, "end": { "line": 9, "column": 84 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 232, "end": 276, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 84 } }, "callee": { "type": "MemberExpression", "start": 232, "end": 247, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 55 } }, "object": { "type": "Identifier", "start": 232, "end": 239, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 47 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 240, "end": 247, "loc": { "start": { "line": 9, "column": 48 }, "end": { "line": 9, "column": 55 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 248, "end": 259, "loc": { "start": { "line": 9, "column": 56 }, "end": { "line": 9, "column": 67 } }, "extra": { "rawValue": "./helpers", "raw": "'./helpers'" }, "value": "./helpers" }, { "type": "BooleanLiteral", "start": 261, "end": 266, "loc": { "start": { "line": 9, "column": 69 }, "end": { "line": 9, "column": 74 } }, "value": false }, { "type": "RegExpLiteral", "start": 268, "end": 275, "loc": { "start": { "line": 9, "column": 76 }, "end": { "line": 9, "column": 83 } }, "extra": { "raw": "/\\.js$/" }, "pattern": "\\.js$", "flags": "" } ] } } ], "directives": [] }, "shadow": true }, { "type": "BooleanLiteral", "start": 278, "end": 282, "loc": { "start": { "line": 9, "column": 86 }, "end": { "line": 9, "column": 90 } }, "value": true } ] } }, { "type": "ExpressionStatement", "start": 290, "end": 388, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 104 } }, "expression": { "type": "CallExpression", "start": 290, "end": 388, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 104 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_properties" }, "property": { "type": "Identifier", "start": 9, "end": 15, "name": "getter" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 297, "end": 305, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 21 }, "identifierName": "contexts" }, "name": "contexts" }, { "type": "StringLiteral", "start": 307, "end": 322, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 38 } }, "extra": { "rawValue": "documentTypes", "raw": "'documentTypes'" }, "value": "documentTypes" }, { "type": "FunctionExpression", "start": 324, "end": 381, "loc": { "start": { "line": 10, "column": 40 }, "end": { "line": 10, "column": 97 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 330, "end": 381, "loc": { "start": { "line": 10, "column": 46 }, "end": { "line": 10, "column": 97 } }, "callee": { "type": "MemberExpression", "start": 330, "end": 345, "loc": { "start": { "line": 10, "column": 46 }, "end": { "line": 10, "column": 61 } }, "object": { "type": "Identifier", "start": 330, "end": 337, "loc": { "start": { "line": 10, "column": 46 }, "end": { "line": 10, "column": 53 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 338, "end": 345, "loc": { "start": { "line": 10, "column": 54 }, "end": { "line": 10, "column": 61 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 346, "end": 364, "loc": { "start": { "line": 10, "column": 62 }, "end": { "line": 10, "column": 80 } }, "extra": { "rawValue": "./document-types", "raw": "'./document-types'" }, "value": "./document-types" }, { "type": "BooleanLiteral", "start": 366, "end": 371, "loc": { "start": { "line": 10, "column": 82 }, "end": { "line": 10, "column": 87 } }, "value": false }, { "type": "RegExpLiteral", "start": 373, "end": 380, "loc": { "start": { "line": 10, "column": 89 }, "end": { "line": 10, "column": 96 } }, "extra": { "raw": "/\\.js$/" }, "pattern": "\\.js$", "flags": "" } ] } } ], "directives": [] }, "shadow": true }, { "type": "BooleanLiteral", "start": 383, "end": 387, "loc": { "start": { "line": 10, "column": 99 }, "end": { "line": 10, "column": 103 } }, "value": true } ] } }, { "type": "ExpressionStatement", "start": 395, "end": 478, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 89 } }, "expression": { "type": "CallExpression", "start": 395, "end": 478, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 89 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_properties" }, "property": { "type": "Identifier", "start": 9, "end": 15, "name": "getter" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 402, "end": 410, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 }, "identifierName": "contexts" }, "name": "contexts" }, { "type": "StringLiteral", "start": 412, "end": 423, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 34 } }, "extra": { "rawValue": "importers", "raw": "'importers'" }, "value": "importers" }, { "type": "FunctionExpression", "start": 425, "end": 477, "loc": { "start": { "line": 11, "column": 36 }, "end": { "line": 11, "column": 88 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 431, "end": 477, "loc": { "start": { "line": 11, "column": 42 }, "end": { "line": 11, "column": 88 } }, "callee": { "type": "MemberExpression", "start": 431, "end": 446, "loc": { "start": { "line": 11, "column": 42 }, "end": { "line": 11, "column": 57 } }, "object": { "type": "Identifier", "start": 431, "end": 438, "loc": { "start": { "line": 11, "column": 42 }, "end": { "line": 11, "column": 49 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 439, "end": 446, "loc": { "start": { "line": 11, "column": 50 }, "end": { "line": 11, "column": 57 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 447, "end": 460, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 71 } }, "extra": { "rawValue": "./importers", "raw": "'./importers'" }, "value": "./importers" }, { "type": "BooleanLiteral", "start": 462, "end": 467, "loc": { "start": { "line": 11, "column": 73 }, "end": { "line": 11, "column": 78 } }, "value": false }, { "type": "RegExpLiteral", "start": 469, "end": 476, "loc": { "start": { "line": 11, "column": 80 }, "end": { "line": 11, "column": 87 } }, "extra": { "raw": "/\\.js$/" }, "pattern": "\\.js$", "flags": "" } ] } } ], "directives": [] }, "shadow": true } ] } }, { "type": "ExpressionStatement", "start": 485, "end": 574, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 95 } }, "expression": { "type": "CallExpression", "start": 485, "end": 574, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 95 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_properties" }, "property": { "type": "Identifier", "start": 9, "end": 15, "name": "getter" }, "computed": false } ], "trailingComments": [], "leadingComments