UNPKG

skypager-project

Version:
1,757 lines (1,735 loc) 106 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 = 132); /******/ }) /************************************************************************/ /******/ ({ /***/ 132: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(41); /***/ }, /***/ 41: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/document-types/packageManifest.js", "ast": { "type": "File", "start": 0, "end": 458, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 22, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 458, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 22, "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": "decorate", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "testDocument", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "rules", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "name": "undefined", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_assign" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/object/assign", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_assign2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_assign" } ] } } ] }, { "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": 40 } } }, { "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", "start": 49, "end": 84, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 5, "column": 1 } }, "declarations": [ { "type": "VariableDeclarator", "start": 55, "end": 84, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 5, "column": 1 } }, "id": { "type": "Identifier", "start": 55, "end": 60, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 18 }, "identifierName": "rules" }, "name": "rules", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 55, "end": 60, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 18 }, "identifierName": "rules" }, "name": "rules", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "ArrayExpression", "start": 63, "end": 84, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 5, "column": 1 } }, "elements": [ { "type": "RegExpLiteral", "start": 67, "end": 82, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 4, "column": 17 } }, "extra": { "raw": "/package.json$/" }, "pattern": "package.json$", "flags": "" } ] }, "trailingComments": [], "leadingComments": [], "innerComments": [] } } ], "kind": "var", "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "VariableDeclaration", "start": 93, "end": 204, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 9, "column": 1 } }, "declarations": [ { "type": "VariableDeclarator", "start": 99, "end": 204, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 9, "column": 1 } }, "id": { "type": "Identifier", "start": 99, "end": 111, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 25 }, "identifierName": "testDocument" }, "name": "testDocument", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 99, "end": 111, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 25 }, "identifierName": "testDocument" }, "name": "testDocument", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "FunctionExpression", "start": 114, "end": 204, "loc": { "start": { "line": 7, "column": 28 }, "end": { "line": 9, "column": 1 } }, "id": { "type": "Identifier", "start": 99, "end": 111, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 25 }, "identifierName": "testDocument" }, "name": "testDocument", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 115, "end": 118, "loc": { "start": { "line": 7, "column": 29 }, "end": { "line": 7, "column": 32 }, "identifierName": "doc" }, "name": "doc" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "start": 127, "end": 202, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 77 } }, "left": { "type": "UnaryExpression", "start": 127, "end": 186, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 61 } }, "operator": "typeof", "prefix": true, "argument": { "type": "CallExpression", "start": 134, "end": 186, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 61 } }, "callee": { "type": "MemberExpression", "start": 134, "end": 144, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 19 } }, "object": { "type": "Identifier", "start": 134, "end": 139, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 14 }, "identifierName": "rules" }, "name": "rules" }, "property": { "type": "Identifier", "start": 140, "end": 144, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 19 }, "identifierName": "find" }, "name": "find" }, "computed": false }, "arguments": [ { "type": "FunctionExpression", "start": 145, "end": 185, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 60 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 145, "end": 149, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 24 }, "identifierName": "rule" }, "name": "rule" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 153, "end": 185, "loc": { "start": { "line": 8, "column": 28 }, "end": { "line": 8, "column": 60 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 9, "end": 17, "name": "testRule" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 162, "end": 166, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 8, "column": 41 }, "identifierName": "rule" }, "name": "rule" }, { "type": "MemberExpression", "start": 168, "end": 184, "loc": { "start": { "line": 8, "column": 43 }, "end": { "line": 8, "column": 59 } }, "object": { "type": "Identifier", "start": 168, "end": 171, "loc": { "start": { "line": 8, "column": 43 }, "end": { "line": 8, "column": 46 }, "identifierName": "doc" }, "name": "doc" }, "property": { "type": "Identifier", "start": 172, "end": 184, "loc": { "start": { "line": 8, "column": 47 }, "end": { "line": 8, "column": 59 }, "identifierName": "fileBaseName" }, "name": "fileBaseName" }, "computed": false } ] } } ], "directives": [] }, "shadow": true } ] }, "extra": { "parenthesizedArgument": false } }, "operator": "!==", "right": { "type": "StringLiteral", "start": 191, "end": 202, "loc": { "start": { "line": 8, "column": 66 }, "end": { "line": 8, "column": 77 } }, "extra": { "rawValue": "undefined", "raw": "'undefined'" }, "value": "undefined" }, "extra": { "parenthesized": true, "parenStart": 123 } } } ], "directives": [] }, "shadow": true }, "trailingComments": [], "leadingComments": [], "innerComments": [] } } ], "kind": "var", "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "VariableDeclaration", "start": 213, "end": 432, "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 19, "column": 1 } }, "declarations": [ { "type": "VariableDeclarator", "start": 219, "end": 432, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 19, "column": 1 } }, "id": { "type": "Identifier", "start": 219, "end": 227, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 }, "identifierName": "decorate" }, "name": "decorate", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 219, "end": 227, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 }, "identifierName": "decorate" }, "name": "decorate", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "FunctionExpression", "start": 230, "end": 432, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 19, "column": 1 } }, "id": { "type": "Identifier", "start": 219, "end": 227, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 }, "identifierName": "decorate" }, "name": "decorate", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 231, "end": 234, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 28 }, "identifierName": "doc" }, "name": "doc" } ], "body": { "type": "BlockStatement", "start": 239, "end": 432, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 19, "column": 1 } }, "body": [ { "type": "ReturnStatement", "start": 243, "end": 430, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 18, "column": 4 } }, "argument": { "type": "CallExpression", "start": 250, "end": 430, "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 18, "column": 4 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_assign2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 264, "end": 267, "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 26 }, "identifierName": "doc" }, "name": "doc" }, { "type": "ObjectExpression", "start": 269, "end": 429, "loc": { "start": { "line": 12, "column": 28 }, "end": { "line": 18, "column": 3 } }, "properties": [ { "type": "ObjectProperty", "key": { "type": "Identifier", "start": 275, "end": 286, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 15 }, "identifierName": "loadProject" }, "name": "loadProject" }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "loadProject" }, "params": [], "body": { "type": "BlockStatement", "start": 301, "end": 425, "loc": { "start": { "line": 13, "column": 30 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 287, "end": 294, "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 23 }, "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": 297, "end": 299, "loc": { "start": { "line": 13, "column": 26 }, "end": { "line": 13, "column": 28 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "ReturnStatement", "start": 309, "end": 419, "loc": { "start": { "line": 14, "column": 6 }, "end": { "line": 16, "column": 21 } }, "argument": { "type": "ConditionalExpression", "start": 316, "end": 419, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 16, "column": 21 } }, "test": { "type": "MemberExpression", "start": 316, "end": 327, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 24 } }, "object": { "type": "Identifier", "start": 316, "end": 319, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 16 }, "identifierName": "doc" }, "name": "doc" }, "property": { "type": "Identifier", "start": 320, "end": 327, "loc": { "start": { "line": 14, "column": 17 }, "end": { "line": 14, "column": 24 }, "identifierName": "project" }, "name": "project" }, "computed": false }, "consequent": { "type": "CallExpression", "start": 338, "end": 397, "loc": { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 338, "end": 364, "loc": { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 36 } }, "object": { "type": "MemberExpression", "start": 338, "end": 359, "loc": { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 31 } }, "object": { "type": "MemberExpression", "start": 338, "end": 349, "loc": { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 21 } }, "object": { "type": "Identifier", "start": 338, "end": 341, "loc": { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 13 }, "identifierName": "doc" }, "name": "doc" }, "property": { "type": "Identifier", "start": 342, "end": 349, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 21 }, "identifierName": "project" }, "name": "project" }, "computed": false }, "property": { "type": "Identifier", "start": 350, "end": 359, "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 31 }, "identifierName": "portfolio" }, "name": "portfolio" }, "computed": false }, "property": { "type": "Identifier", "start": 360, "end": 364, "loc": { "start": { "line": 15, "column": 32 }, "end": { "line": 15, "column": 36 }, "identifierName": "load" }, "name": "load" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 365, "end": 381, "loc": { "start": { "line": 15, "column": 37 }, "end": { "line": 15, "column": 53 } }, "object": { "type": "MemberExpression", "start": 365, "end": 373, "loc": { "start": { "line": 15, "column": 37 }, "end": { "line": 15, "column": 45 } }, "object": { "type": "Identifier", "start": 365, "end": 368, "loc": { "start": { "line": 15, "column": 37 }, "end": { "line": 15, "column": 40 }, "identifierName": "doc" }, "name": "doc" }, "property": { "type": "Identifier", "start": 369, "end": 373, "loc": { "start": { "line": 15, "column": 41 }, "end": { "line": 15, "column": 45 }, "identifierName": "file" }, "name": "file" }, "computed": false }, "property": { "type": "Identifier", "start": 374, "end": 381, "loc": { "start": { "line": 15, "column": 46 }, "end": { "line": 15, "column": 53 }, "identifierName": "dirname" }, "name": "dirname" }, "computed": false }, { "type": "ObjectExpression", "start": 383, "end": 396, "loc": { "start": { "line": 15, "column": 55 }, "end": { "line": 15, "column": 68 } }, "properties": [ { "type": "ObjectProperty", "start": 384, "end": 395, "loc": { "start": { "line": 15, "column": 56 }, "end": { "line": 15, "column": 67 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 384, "end": 388, "loc": { "start": { "line": 15, "column": 56 }, "end": { "line": 15, "column": 60 }, "identifierName": "sync" }, "name": "sync" }, "value": { "type": "BooleanLiteral", "start": 390, "end": 395, "loc": { "start": { "line": 15, "column": 62 }, "end": { "line": 15, "column": 67 } }, "value": false } } ] } ] }, "alternate": { "type": "MemberExpression", "start": 408, "end": 419, "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 21 } }, "object": { "type": "Identifier",