skypager-project
Version:
skypager project framework
1,586 lines (1,564 loc) • 184 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 = 176);
/******/ })
/************************************************************************/
/******/ ({
/***/ 176:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(85);
/***/ },
/***/ 85:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/tree.spec.js",
"ast": {
"type": "File",
"start": 0,
"end": 707,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 31,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 707,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 31,
"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": 706,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 30,
"column": 2
}
},
"expression": {
"type": "CallExpression",
"start": 26,
"end": 706,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 30,
"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": 51,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 25
}
},
"extra": {
"rawValue": "Document Trees",
"raw": "'Document Trees'"
},
"value": "Document Trees"
},
{
"type": "FunctionExpression",
"start": 53,
"end": 705,
"loc": {
"start": {
"line": 3,
"column": 27
},
"end": {
"line": 30,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 64,
"end": 705,
"loc": {
"start": {
"line": 3,
"column": 38
},
"end": {
"line": 30,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 68,
"end": 204,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 10,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 68,
"end": 204,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 10,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 68,
"end": 74,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 8
},
"identifierName": "before"
},
"name": "before"
},
"arguments": [
{
"type": "FunctionExpression",
"start": 75,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 10,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 86,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 10,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 92,
"end": 199,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 96,
"end": 109,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 21
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 97,
"end": 109,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 97,
"end": 101,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 102,
"end": 109,
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 111,
"end": 199,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 119,
"end": 193,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 8,
"column": 8
}
},
"expression": {
"type": "AssignmentExpression",
"start": 119,
"end": 193,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 8,
"column": 8
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 119,
"end": 131,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 119,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 124,
"end": 131,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 18
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 134,
"end": 193,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 8,
"column": 8
}
},
"callee": {
"type": "MemberExpression",
"start": 134,
"end": 147,
"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": 143,
"end": 147,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 34
},
"identifierName": "load"
},
"name": "load"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 148,
"end": 161,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 148,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 148,
"end": 155,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 42
},
"identifierName": "process"
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 156,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 43
},
"end": {
"line": 6,
"column": 46
},
"identifierName": "cwd"
},
"name": "cwd"
},
"computed": false
},
"arguments": []
},
{
"type": "ObjectExpression",
"start": 163,
"end": 192,
"loc": {
"start": {
"line": 6,
"column": 50
},
"end": {
"line": 8,
"column": 7
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 173,
"end": 184,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 173,
"end": 177,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
},
"identifierName": "sync"
},
"name": "sync"
},
"value": {
"type": "BooleanLiteral",
"start": 179,
"end": 184,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 19
}
},
"value": false
}
}
]
}
]
}
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 208,
"end": 702,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 28,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 208,
"end": 702,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 28,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 208,
"end": 210,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 4
},
"identifierName": "it"
},
"name": "it"
},
"arguments": [
{
"type": "StringLiteral",
"start": 211,
"end": 249,
"loc": {
"start": {
"line": 12,
"column": 5
},
"end": {
"line": 12,
"column": 43
}
},
"extra": {
"rawValue": "creates an object tree from the docs",
"raw": "'creates an object tree from the docs'"
},
"value": "creates an object tree from the docs"
},
{
"type": "FunctionExpression",
"start": 251,
"end": 701,
"loc": {
"start": {
"line": 12,
"column": 45
},
"end": {
"line": 28,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 262,
"end": 701,
"loc": {
"start": {
"line": 12,
"column": 56
},
"end": {
"line": 28,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 268,
"end": 307,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 43
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 274,
"end": 307,
"loc": {
"start": {
"line": 13,
"column": 10
},
"end": {
"line": 13,
"column": 43
}
},
"id": {
"type": "Identifier",
"start": 274,
"end": 278,
"loc": {
"start": {
"line": 13,
"column": 10
},
"end": {
"line": 13,
"column": 14
},
"identifierName": "tree"
},
"name": "tree"
},
"init": {
"type": "MemberExpression",
"start": 281,
"end": 307,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 281,
"end": 293,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 281,
"end": 285,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"start": 286,
"end": 293,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 29
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 294,
"end": 307,
"loc": {
"start": {
"line": 13,
"column": 30
},
"end": {
"line": 13,
"column": 43
},
"identifierName": "documentsTree"
},
"name": "documentsTree"
},
"computed": false
}
}
],
"kind": "var"
},
{
"type": "ExpressionStatement",
"start": 313,
"end": 340,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 313,
"end": 340,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 313,
"end": 330,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 21
}
},
"object": {
"type": "MemberExpression",
"start": 313,
"end": 327,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 18
}
},
"object": {
"type": "MemberExpression",
"start": 313,
"end": 324,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 313,
"end": 317,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 8
},
"identifierName": "tree"
},
"name": "tree"
},
"property": {
"type": "Identifier",
"start": 318,
"end": 324,
"loc": {
"start": {
"line": 15,
"column": 9
},
"end": {
"line": 15,
"column": 15
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 325,
"end": 327,
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 18
},
"identifierName": "be"
},
"name": "be"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 328,
"end": 330,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 15,
"column": 21
},
"identifierName": "an"
},
"name": "an"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 331,
"end": 339,
"loc": {
"start": {
"line": 15,
"column": 22
},
"end": {
"line": 15,
"column": 30
}
},
"extra": {
"rawValue": "object",
"raw": "'object'"
},
"value": "object"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 346,
"end": 520,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 21,
"column": 43
}
},
"expression": {
"type": "CallExpression",
"start": 346,
"end": 520,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 21,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 346,
"end": 503,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 21,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 494,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 21,
"column": 17
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 492,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 21,
"column": 15
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 488,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 21,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 346,
"end": 476,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 20,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 346,
"end": 466,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 20,
"column": 17
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 463,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 20,
"column": 14
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 460,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 20,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 346,
"end": 448,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 346,
"end": 433,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 424,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 17
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 422,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 15
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 418,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 346,
"end": 406,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 18,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 346,
"end": 396,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 18,
"column": 17
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 393,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 18,
"column": 14
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 390,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 18,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 346,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 346,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 362,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 346,
"end": 357,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 346,
"end": 350,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 8
},
"identifierName": "tree"
},
"name": "tree"
},
"property": {
"type": "Identifier",
"start": 351,
"end": 357,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 15
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 358,
"end": 362,
"loc": {
"start": {
"line": 17,
"column": 16
},