UNPKG

skypager-project

Version:
1,652 lines (1,634 loc) 224 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 = 97); /******/ }) /************************************************************************/ /******/ ({ /***/ 6: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/cache.js", "ast": { "type": "File", "start": 0, "end": 727, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 44, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 727, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 44, "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", "name": "Cache", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "name": "undefined", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_map" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/map", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_map2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_map" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/classCallCheck", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_classCallCheck2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/createClass", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_createClass2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerUtil" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-util", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 52 } } }, { "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": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 67, "end": 72, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 18 }, "identifierName": "Cache" }, "name": "Cache", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 67, "end": 72, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 18 }, "identifierName": "Cache" }, "name": "Cache", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "Cache" }, "params": [ { "type": "Identifier", "start": 89, "end": 93, "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 18 }, "identifierName": "init" }, "name": "init" } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_this", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "ThisExpression" } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_classCallCheck3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ThisExpression" }, { "type": "Identifier", "name": "Cache" } ] } }, { "type": "ExpressionStatement", "start": 101, "end": 153, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 56 } }, "expression": { "type": "CallExpression", "start": 101, "end": 153, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 56 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 9, "end": 21, "name": "hideProperty" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ThisExpression", "start": 106, "end": 110, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 13 } } }, { "type": "StringLiteral", "start": 112, "end": 118, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 21 } }, "extra": { "rawValue": "hide", "raw": "'hide'" }, "value": "hide" }, { "type": "FunctionExpression", "start": 120, "end": 152, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 55 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ForStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_len", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "length" }, "computed": false } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 124, "end": 128, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 31 }, "identifierName": "args" }, "name": "args", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "Array" }, "arguments": [ { "type": "Identifier", "name": "_len", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_key", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] } } ], "kind": "var" }, "test": { "type": "BinaryExpression", "left": { "type": "Identifier", "name": "_key", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "operator": "<", "right": { "type": "Identifier", "name": "_len", "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "_key", "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 124, "end": 128, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 31 }, "identifierName": "args" }, "name": "args", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "_key", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "_key", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true } } } ], "directives": [] } }, { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 133, "end": 152, "loc": { "start": { "line": 5, "column": 36 }, "end": { "line": 5, "column": 55 } }, "callee": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 9, "end": 21, "name": "hideProperty" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "apply" }, "computed": false }, "arguments": [ { "type": "Identifier", "name": "undefined" }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ArrayExpression", "elements": [ { "type": "Identifier", "name": "_this", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] }, "property": { "type": "Identifier", "name": "concat" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 147, "end": 151, "loc": { "start": { "line": 5, "column": 50 }, "end": { "line": 5, "column": 54 }, "identifierName": "args" }, "name": "args" } ] } ] } } ], "directives": [] }, "shadow": true } ] } }, { "type": "ExpressionStatement", "start": 159, "end": 175, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 20 } }, "expression": { "type": "CallExpression", "start": 159, "end": 175, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 20 } }, "callee": { "type": "MemberExpression", "start": 159, "end": 169, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 14 } }, "object": { "type": "ThisExpression", "start": 159, "end": 163, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 8 } } }, "property": { "type": "Identifier", "start": 164, "end": 169, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 }, "identifierName": "clear" }, "name": "clear" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 170, "end": 174, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 7, "column": 19 }, "identifierName": "init" }, "name": "init" } ] } }, { "type": "ExpressionStatement", "start": 180, "end": 222, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 46 } }, "expression": { "type": "AssignmentExpression", "start": 180, "end": 222, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 46 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 180, "end": 190, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 14 } }, "object": { "type": "ThisExpression", "start": 180, "end": 184, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 8 } } }, "property": { "type": "Identifier", "start": 185, "end": 190, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 14 }, "identifierName": "write" }, "name": "write" }, "computed": false }, "right": { "type": "FunctionExpression", "start": 193, "end": 222, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 46 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 194, "end": 195, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 19 }, "identifierName": "k" }, "name": "k" }, { "type": "Identifier", "start": 196, "end": 197, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 21 }, "identifierName": "v" }, "name": "v" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 202, "end": 222, "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 202, "end": 219, "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 43 } }, "object": { "type": "CallExpression", "start": 202, "end": 215, "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 202, "end": 210, "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 34 } }, "object": { "type": "Identifier", "name": "_this", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 207, "end": 210, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 34 }, "identifierName": "set" }, "name": "set" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 211, "end": 212, "loc": { "start": { "line": 8, "column": 35 }, "end": { "line": 8, "column": 36 }, "identifierName": "k" }, "name": "k" }, { "type": "Identifier", "start": 213, "end": 214, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 8, "column": 38 }, "identifierName": "v" }, "name": "v" } ] }, "property": { "type": "Identifier", "start": 216, "end": 219, "loc": { "start": { "line": 8, "column": 40 }, "end": { "line": 8, "column": 43 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 220, "end": 221, "loc": { "start": { "line": 8, "column": 44 }, "end": { "line": 8, "column": 45 }, "identifierName": "k" }, "name": "k" } ] } } ], "directives": [] }, "shadow": true } } } ], "directives": [], "start": 95, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 9, "column": 3 } }, "end": 226, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "async": false, "start": 77, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 9, "column": 3 } }, "end": 226, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_createClass3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "Cache" }, { "type": "ArrayExpression", "elements": [ { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "key" }, "value": { "type": "StringLiteral", "value": "fetch" }, "computed": false, "shorthand": false, "decorators": null }, { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "value" }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "fetch" }, "params": [ { "type": "Identifier", "start": 237, "end": 238, "loc": { "start": { "line": 11, "column": 9 }, "end": { "line": 11, "column": 10 }, "identifierName": "k" }, "name": "k" }, { "type": "Identifier", "start": 240, "end": 252, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 24 }, "identifierName": "defaultValue" }, "name": "defaultValue" } ], "body": { "type": "BlockStatement", "start": 254, "end": 438, "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 18, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 260, "end": 434, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 17, "column": 5 } }, "test": { "type": "CallExpression", "start": 264, "end": 275, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } }, "callee": { "type": "MemberExpression", "start": 264, "end": 272, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 16 } }, "object": { "type": "ThisExpression", "start": 264, "end": 268, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 269, "end": 272, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 16 }, "identifierName": "has" }, "name": "has" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 273, "end": 274, "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 18