skypager-project
Version:
skypager project framework
1,688 lines (1,666 loc) • 895 kB
JavaScript
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 = 165);
/******/ })
/************************************************************************/
/******/ ({
/***/ 165:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(74);
/***/ },
/***/ 74:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/project.spec.js",
"ast": {
"type": "File",
"start": 0,
"end": 3956,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 116,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3956,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 116,
"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": 1991,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 52,
"column": 2
}
},
"expression": {
"type": "CallExpression",
"start": 26,
"end": 1991,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 52,
"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": 53,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 27
}
},
"extra": {
"rawValue": "Skypager Project",
"raw": "'Skypager Project'"
},
"value": "Skypager Project"
},
{
"type": "FunctionExpression",
"start": 55,
"end": 1990,
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 52,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 67,
"end": 1990,
"loc": {
"start": {
"line": 3,
"column": 41
},
"end": {
"line": 52,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 71,
"end": 207,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 10,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 71,
"end": 207,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 10,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 71,
"end": 77,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 8
},
"identifierName": "before"
},
"name": "before"
},
"arguments": [
{
"type": "FunctionExpression",
"start": 78,
"end": 206,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 10,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 89,
"end": 206,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 10,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 95,
"end": 202,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 99,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 21
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 100,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 100,
"end": 104,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 105,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 114,
"end": 202,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 122,
"end": 196,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 8,
"column": 8
}
},
"expression": {
"type": "AssignmentExpression",
"start": 122,
"end": 196,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 8,
"column": 8
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 122,
"end": 134,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 122,
"end": 126,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 127,
"end": 134,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 18
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 137,
"end": 196,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 8,
"column": 8
}
},
"callee": {
"type": "MemberExpression",
"start": 137,
"end": 150,
"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": 146,
"end": 150,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 34
},
"identifierName": "load"
},
"name": "load"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 151,
"end": 164,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 151,
"end": 162,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 151,
"end": 158,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 42
},
"identifierName": "process"
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 159,
"end": 162,
"loc": {
"start": {
"line": 6,
"column": 43
},
"end": {
"line": 6,
"column": 46
},
"identifierName": "cwd"
},
"name": "cwd"
},
"computed": false
},
"arguments": []
},
{
"type": "ObjectExpression",
"start": 166,
"end": 195,
"loc": {
"start": {
"line": 6,
"column": 50
},
"end": {
"line": 8,
"column": 7
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 176,
"end": 187,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 176,
"end": 180,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
},
"identifierName": "sync"
},
"name": "sync"
},
"value": {
"type": "BooleanLiteral",
"start": 182,
"end": 187,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 19
}
},
"value": false
}
}
]
}
]
}
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 211,
"end": 297,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 14,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 211,
"end": 297,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 14,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 211,
"end": 213,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 4
},
"identifierName": "it"
},
"name": "it"
},
"arguments": [
{
"type": "StringLiteral",
"start": 214,
"end": 234,
"loc": {
"start": {
"line": 12,
"column": 5
},
"end": {
"line": 12,
"column": 25
}
},
"extra": {
"rawValue": "has an instance id",
"raw": "'has an instance id'"
},
"value": "has an instance id"
},
{
"type": "FunctionExpression",
"start": 236,
"end": 296,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 14,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 247,
"end": 296,
"loc": {
"start": {
"line": 12,
"column": 38
},
"end": {
"line": 14,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 253,
"end": 292,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 43
}
},
"expression": {
"type": "CallExpression",
"start": 253,
"end": 292,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 253,
"end": 286,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 253,
"end": 277,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 253,
"end": 272,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 23
}
},
"object": {
"type": "MemberExpression",
"start": 253,
"end": 265,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 253,
"end": 257,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 258,
"end": 265,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 16
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 266,
"end": 272,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 23
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 273,
"end": 277,
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 28
},
"identifierName": "have"
},
"name": "have"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 278,
"end": 286,
"loc": {
"start": {
"line": 13,
"column": 29
},
"end": {
"line": 13,
"column": 37
},
"identifierName": "property"
},
"name": "property"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 287,
"end": 291,
"loc": {
"start": {
"line": 13,
"column": 38
},
"end": {
"line": 13,
"column": 42
}
},
"extra": {
"rawValue": "id",
"raw": "'id'"
},
"value": "id"
}
]
}
}
],
"directives": []
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 301,
"end": 521,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 20,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 301,
"end": 521,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 20,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 301,
"end": 303,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 4
},
"identifierName": "it"
},
"name": "it"
},
"arguments": [
{
"type": "StringLiteral",
"start": 304,
"end": 340,
"loc": {
"start": {
"line": 16,
"column": 5
},
"end": {
"line": 16,
"column": 41
}
},
"extra": {
"rawValue": "Can load collections synchronously",
"raw": "'Can load collections synchronously'"
},
"value": "Can load collections synchronously"
},
{
"type": "FunctionExpression",
"start": 342,
"end": 520,
"loc": {
"start": {
"line": 16,
"column": 43
},
"end": {
"line": 20,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 353,
"end": 520,
"loc": {
"start": {
"line": 16,
"column": 54
},
"end": {
"line": 20,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 359,
"end": 406,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 51
}
},
"expression": {
"type": "CallExpression",
"start": 359,
"end": 406,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 359,
"end": 392,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 359,
"end": 383,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 359,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 23
}
},
"object": {
"type": "MemberExpression",
"start": 359,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 359,
"end": 363,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 364,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 16
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 372,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 17
},
"end": {
"line": 17,
"column": 23
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 379,
"end": 383,
"loc": {
"start": {
"line": 17,
"column": 24
},
"end": {
"line": 17,
"column": 28
},
"identifierName": "have"
},
"name": "have"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 384,
"end": 392,
"loc": {
"start": {
"line": 17,
"column": 29
},
"end": {
"line": 17,
"column": 37
},
"identifierName": "property"
},
"name": "property"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 393,
"end": 405,
"loc": {
"start": {
"line": 17,
"column": 38
},
"end": {
"line": 17,
"column": 50
}
},
"extra": {
"rawValue": "collection",
"raw": "'collection'"
},
"value": "collection"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 411,
"end": 473,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 66
}
},
"expression": {
"type": "CallExpression",
"start": 411,
"end": 473,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 411,
"end": 464,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 57
}
},
"object": {
"type": "MemberExpression",
"start": 411,
"end": 461,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 54
}
},
"object": {
"type": "MemberExpression",
"start": 411,
"end": 458,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 51
}
},
"object": {
"type": "CallExpression",
"start": 411,
"end": 453,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 411,
"end": 444,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 411,
"end": 435,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 411,
"end": 430,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 23
}
},
"object": {
"type": "MemberExpression",
"start": 411,
"end": 423,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 411,
"end": 415,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 416,
"end": 423,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 16
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 424,
"end": 430,
"loc": {
"start": {
"line": 18,
"column": 17
},
"end": {
"line": 18,
"column": 23
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 431,
"end": 435,
"loc": {
"start": {
"line": 18,
"column": 24
},
"end": {
"line": 18,
"column": 28
},
"identifierName": "have"
},
"name": "have"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 436,
"end": 444,
"loc": {
"start": {
"line": 18,
"column": 29
},
"end": {
"line": 18,
"column": 37
},
"identifierName": "property"
},
"name": "property"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 445,
"end": 452,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 45
}
},
"extra": {
"rawValue": "files",
"raw": "'files'"
},
"value": "files"
}
]
},
"property": {
"type": "Identifier",
"start": 454,
"end": 458,
"loc": {
"start": {
"line": 18,
"column": 47
},