skypager-project
Version:
skypager project framework
1,655 lines (1,637 loc) • 446 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 = 99);
/******/ })
/************************************************************************/
/******/ ({
/***/ 8:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/collection/index.spec.js",
"ast": {
"type": "File",
"start": 0,
"end": 2382,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 83,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2382,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 83,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_toConsumableArray2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/helpers/toConsumableArray",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_toConsumableArray3"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_toConsumableArray2"
}
]
}
}
]
},
{
"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": 26
}
}
},
{
"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": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_path"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "path",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 27
}
}
},
{
"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": 56,
"end": 2381,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 82,
"column": 2
}
},
"expression": {
"type": "CallExpression",
"start": 56,
"end": 2381,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 82,
"column": 2
}
},
"callee": {
"type": "Identifier",
"start": 56,
"end": 64,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 8
},
"identifierName": "describe"
},
"name": "describe"
},
"arguments": [
{
"type": "StringLiteral",
"start": 65,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 39
}
},
"extra": {
"rawValue": "Skypager Document Collection",
"raw": "'Skypager Document Collection'"
},
"value": "Skypager Document Collection"
},
{
"type": "FunctionExpression",
"start": 97,
"end": 2380,
"loc": {
"start": {
"line": 4,
"column": 41
},
"end": {
"line": 82,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 108,
"end": 2380,
"loc": {
"start": {
"line": 4,
"column": 52
},
"end": {
"line": 82,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 112,
"end": 401,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 13,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 112,
"end": 401,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 13,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 112,
"end": 114,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 4
},
"identifierName": "it"
},
"name": "it"
},
"arguments": [
{
"type": "StringLiteral",
"start": 115,
"end": 135,
"loc": {
"start": {
"line": 5,
"column": 5
},
"end": {
"line": 5,
"column": 25
}
},
"extra": {
"rawValue": "has an instance id",
"raw": "'has an instance id'"
},
"value": "has an instance id"
},
{
"type": "FunctionExpression",
"start": 137,
"end": 400,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 13,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 148,
"end": 400,
"loc": {
"start": {
"line": 5,
"column": 38
},
"end": {
"line": 13,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 154,
"end": 291,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 9,
"column": 6
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 160,
"end": 291,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 9,
"column": 6
}
},
"id": {
"type": "Identifier",
"start": 160,
"end": 174,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 24
},
"identifierName": "docsCollection"
},
"name": "docsCollection"
},
"init": {
"type": "NewExpression",
"start": 177,
"end": 291,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 9,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "ObjectExpression",
"start": 192,
"end": 290,
"loc": {
"start": {
"line": 6,
"column": 42
},
"end": {
"line": 9,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 200,
"end": 217,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 23
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 200,
"end": 204,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 10
},
"identifierName": "type"
},
"name": "type"
},
"value": {
"type": "StringLiteral",
"start": 206,
"end": 217,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 23
}
},
"extra": {
"rawValue": "documents",
"raw": "'documents'"
},
"value": "documents"
}
},
{
"type": "ObjectProperty",
"start": 225,
"end": 282,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 63
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 225,
"end": 228,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 9
},
"identifierName": "cwd"
},
"name": "cwd"
},
"value": {
"type": "CallExpression",
"start": 230,
"end": 282,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 63
}
},
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_path"
},
"property": {
"type": "Identifier",
"start": 36,
"end": 40,
"name": "join"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "CallExpression",
"start": 235,
"end": 248,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 235,
"end": 246,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 235,
"end": 242,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 23
},
"identifierName": "process"
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 243,
"end": 246,
"loc": {
"start": {
"line": 8,
"column": 24
},
"end": {
"line": 8,
"column": 27
},
"identifierName": "cwd"
},
"name": "cwd"
},
"computed": false
},
"arguments": []
},
{
"type": "StringLiteral",
"start": 250,
"end": 256,
"loc": {
"start": {
"line": 8,
"column": 31
},
"end": {
"line": 8,
"column": 37
}
},
"extra": {
"rawValue": "test",
"raw": "'test'"
},
"value": "test"
},
{
"type": "StringLiteral",
"start": 258,
"end": 268,
"loc": {
"start": {
"line": 8,
"column": 39
},
"end": {
"line": 8,
"column": 49
}
},
"extra": {
"rawValue": "fixtures",
"raw": "'fixtures'"
},
"value": "fixtures"
},
{
"type": "StringLiteral",
"start": 270,
"end": 281,
"loc": {
"start": {
"line": 8,
"column": 51
},
"end": {
"line": 8,
"column": 62
}
},
"extra": {
"rawValue": "testcases",
"raw": "'testcases'"
},
"value": "testcases"
}
]
}
}
]
}
]
}
}
],
"kind": "var"
},
{
"type": "ExpressionStatement",
"start": 297,
"end": 346,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 53
}
},
"expression": {
"type": "CallExpression",
"start": 297,
"end": 346,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 297,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 39
}
},
"object": {
"type": "MemberExpression",
"start": 297,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 297,
"end": 318,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 297,
"end": 311,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 18
},
"identifierName": "docsCollection"
},
"name": "docsCollection"
},
"property": {
"type": "Identifier",
"start": 312,
"end": 318,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 25
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 319,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 11,
"column": 30
},
"identifierName": "have"
},
"name": "have"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 324,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 39
},
"identifierName": "property"
},
"name": "property"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 333,
"end": 345,
"loc": {
"start": {
"line": 11,
"column": 40
},
"end": {
"line": 11,
"column": 52
}
},
"extra": {
"rawValue": "instanceId",
"raw": "'instanceId'"
},
"value": "instanceId"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 351,
"end": 396,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 49
}
},
"expression": {
"type": "CallExpression",
"start": 351,
"end": 396,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 351,
"end": 386,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 39
}
},
"object": {
"type": "MemberExpression",
"start": 351,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 351,
"end": 372,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 351,
"end": 365,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 18
},
"identifierName": "docsCollection"
},
"name": "docsCollection"
},
"property": {
"type": "Identifier",
"start": 366,
"end": 372,
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 12,
"column": 25
},
"identifierName": "should"
},
"name": "should"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 373,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 30
},
"identifierName": "have"
},
"name": "have"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 378,
"end": 386,
"loc": {
"start": {
"line": 12,
"column": 31
},
"end": {
"line": 12,
"column": 39
},
"identifierName": "property"
},
"name": "property"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 387,
"end": 395,
"loc": {
"start": {
"line": 12,
"column": 40
},
"end": {
"line": 12,
"column": 48
}
},
"extra": {
"rawValue": "pathId",
"raw": "'pathId'"
},
"value": "pathId"
}
]
}
}
],
"directives": []
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 405,
"end": 642,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 22,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 405,
"end": 642,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 22,
"column": 4
}
},
"callee": {
"type": "Identifier",
"start": 405,
"end": 407,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 15,
"column": 4
},
"identifierName": "it"
},
"name": "it"
},
"arguments": [
{
"type": "StringLiteral",
"start": 408,
"end": 420,
"loc": {
"start": {
"line": 15,
"column": 5
},
"end": {
"line": 15,
"column": 17
}
},
"extra": {
"rawValue": "has a type",
"raw": "'has a type'"
},
"value": "has a type"
},
{
"type": "FunctionExpression",
"start": 422,
"end": 641,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 22,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 433,
"end": 641,
"loc": {
"start": {
"line": 15,
"column": 30
},
"end": {
"line": 22,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 439,
"end": 576,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 19,
"column": 6
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 445,
"end": 576,
"loc": {
"start": {
"line": 16,
"column": 10
},
"end": {
"line": 19,
"column": 6
}
},
"id": {
"type": "Identifier",
"start": 445,
"end": 459,
"loc": {
"start": {
"line": 16,
"column": 10
},
"end": {
"line": 16,
"column": 24
},
"identifierName": "docsCollection"
},
"name": "docsCollection"
},
"init": {
"type": "NewExpression",
"start": 462,
"end": 576,
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 19,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "ObjectExpression",
"start": 477,
"end": 575,
"loc": {
"start": {
"line": 16,
"column": 42
},
"end": {
"line": 19,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 485,
"end": 502,
"loc": {
"start": {
"line": 17,
"column": 6
},
"end": {
"line": 17,
"column": 23
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 485,
"end": 489,
"loc": {
"start": {
"line": 17,
"column": 6
},
"end": {
"line": 17,
"column": 10
},
"identifierName": "type"
},
"name": "type"
},
"value": {
"type": "StringLiteral",
"start": 491,
"end": 502,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 23
}
},
"extra": {
"rawValue": "documents",
"raw": "'documents'"
},
"value": "documents"
}
},
{
"type": "ObjectProperty",
"start": 510,
"end": 567,
"loc": {
"start": {
"line": 18,
"column": 6
},
"end": {
"line": 18,
"column": 63
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 510,
"end": 513,
"loc": {
"start": {
"line": 18,
"column": 6
},
"end": {
"line": 18,
"column": 9
},
"identifierName": "cwd"
},
"name": "cwd"
},
"value": {
"type": "CallExpression",
"start": 515,
"end": 567,
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 18,
"column": 63
}
},
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_path"
},
"property": {
"type": "Identifier",
"start": 36,
"end": 40,
"name": "join"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "CallExpression",
"start": 520,
"end": 533,
"loc": {
"start": {
"line": 18,
"column": 16
},
"end": {
"line": 18,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 520,
"end": 531,
"loc": {
"start": {
"line": 18,
"column": 16
},
"end": {
"line": 18,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 520,
"end": 527,
"loc": {
"start": {
"line": 18,
"column": 16
},
"end": {
"line": 18,
"column": 23
},
"identifierName": "process"
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 528,
"end": 531,
"loc": {
"start": {
"line": 18,
"column": 24
},
"end": {
"line": 18,
"column": 27
},
"identifierName": "cwd"
},
"name": "cwd"
},
"computed": false
},
"arguments": []
},
{
"type": "StringLiteral",
"start": 535,
"end": 541,
"loc": {
"start": {
"line": 18,
"column": 31
},
"end": {
"line": 18,
"column": 37
}
},
"extra": {
"rawValue": "test",
"raw": "'test'"
},
"value": "test"
},
{
"type": "StringLiteral",
"start": 543,
"end": 553,
"loc": {
"start": {
"line": 18,
"column": 39