skypager-project
Version:
skypager project framework
1,840 lines (1,818 loc) • 318 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 = 134);
/******/ })
/************************************************************************/
/******/ ({
/***/ 134:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(43);
/***/ },
/***/ 43:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/document-types/screen-config.js",
"ast": {
"type": "File",
"start": 0,
"end": 1576,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 67,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1576,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 67,
"column": 1
}
},
"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": "markdownPageConfig",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "formatId",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "javascriptPageConfig",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"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": "Identifier",
"name": "undefined",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_extends2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/helpers/extends",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_extends3"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_extends2"
}
]
}
}
]
},
{
"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": "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": 0,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 46
}
},
"id": {
"type": "Identifier",
"start": 6,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "pathToRegexp"
},
"name": "pathToRegexp"
},
"init": {
"type": "CallExpression",
"start": 21,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 46
}
},
"callee": {
"type": "Identifier",
"start": 21,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 28
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 29,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 45
}
},
"extra": {
"rawValue": "path-to-regexp",
"raw": "'path-to-regexp'"
},
"value": "path-to-regexp"
}
]
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"start": 55,
"end": 242,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 8,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 61,
"end": 242,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 8,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 61,
"end": 73,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"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": 61,
"end": 73,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 25
},
"identifierName": "testDocument"
},
"name": "testDocument",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 76,
"end": 242,
"loc": {
"start": {
"line": 3,
"column": 28
},
"end": {
"line": 8,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 61,
"end": 73,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 25
},
"identifierName": "testDocument"
},
"name": "testDocument",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 77,
"end": 80,
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 3,
"column": 32
},
"identifierName": "doc"
},
"name": "doc"
}
],
"body": {
"type": "BlockStatement",
"start": 85,
"end": 242,
"loc": {
"start": {
"line": 3,
"column": 37
},
"end": {
"line": 8,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 97,
"end": 104,
"loc": {
"start": {
"line": 4,
"column": 10
},
"end": {
"line": 4,
"column": 17
},
"identifierName": "project"
},
"name": "project"
},
"init": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"start": 109,
"end": 112,
"loc": {
"start": {
"line": 4,
"column": 22
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 97,
"end": 104,
"loc": {
"start": {
"line": 4,
"column": 10
},
"end": {
"line": 4,
"column": 17
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
}
}
],
"leadingComments": [],
"trailingComments": []
},
{
"type": "VariableDeclaration",
"start": 115,
"end": 188,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 75
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 121,
"end": 188,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 75
}
},
"id": {
"type": "Identifier",
"start": 121,
"end": 135,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 22
},
"identifierName": "screensPattern"
},
"name": "screensPattern"
},
"init": {
"type": "CallExpression",
"start": 138,
"end": 188,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 75
}
},
"callee": {
"type": "MemberExpression",
"start": 138,
"end": 155,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 138,
"end": 145,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 32
},
"identifierName": "project"
},
"name": "project"
},
"property": {
"type": "Identifier",
"start": 146,
"end": 155,
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 5,
"column": 42
},
"identifierName": "getOption"
},
"name": "getOption"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 156,
"end": 174,
"loc": {
"start": {
"line": 5,
"column": 43
},
"end": {
"line": 5,
"column": 61
}
},
"extra": {
"rawValue": "patterns.screens",
"raw": "'patterns.screens'"
},
"value": "patterns.screens"
},
{
"type": "StringLiteral",
"start": 176,
"end": 187,
"loc": {
"start": {
"line": 5,
"column": 63
},
"end": {
"line": 5,
"column": 74
}
},
"extra": {
"rawValue": "*screens*",
"raw": "'*screens*'"
},
"value": "*screens*"
}
]
}
}
],
"kind": "var"
},
{
"type": "ReturnStatement",
"start": 192,
"end": 240,
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 7,
"column": 50
}
},
"argument": {
"type": "CallExpression",
"start": 199,
"end": 240,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 199,
"end": 232,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 42
}
},
"object": {
"type": "CallExpression",
"start": 199,
"end": 227,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 37
}
},
"callee": {
"type": "Identifier",
"start": 199,
"end": 211,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 21
},
"identifierName": "pathToRegexp"
},
"name": "pathToRegexp"
},
"arguments": [
{
"type": "Identifier",
"start": 212,
"end": 226,
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 36
},
"identifierName": "screensPattern"
},
"name": "screensPattern"
}
]
},
"property": {
"type": "Identifier",
"start": 228,
"end": 232,
"loc": {
"start": {
"line": 7,
"column": 38
},
"end": {
"line": 7,
"column": 42
},
"identifierName": "test"
},
"name": "test"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 233,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 43
},
"end": {
"line": 7,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 233,
"end": 236,
"loc": {
"start": {
"line": 7,
"column": 43
},
"end": {
"line": 7,
"column": 46
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 237,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 47
},
"end": {
"line": 7,
"column": 49
},
"identifierName": "id"
},
"name": "id"
},
"computed": false
}
]
}
}
],
"directives": []
},
"shadow": true
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"kind": "var",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
{
"type": "VariableDeclaration",
"start": 251,
"end": 542,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 23,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 257,
"end": 542,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 23,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 257,
"end": 265,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"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": 257,
"end": 265,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 21
},
"identifierName": "decorate"
},
"name": "decorate",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 268,
"end": 542,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 23,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 257,
"end": 265,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 21
},
"identifierName": "decorate"
},
"name": "decorate",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 269,
"end": 272,
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 28
},
"identifierName": "doc"
},
"name": "doc"
}
],
"body": {
"type": "BlockStatement",
"start": 277,
"end": 542,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 23,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 282,
"end": 526,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 20,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 282,
"end": 526,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 20,
"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": 296,
"end": 299,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 19
},
"identifierName": "doc"
},
"name": "doc"
},
{
"type": "ObjectExpression",
"start": 301,
"end": 525,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 20,
"column": 3
}
},
"properties": [
{
"type": "ObjectProperty",
"key": {
"type": "Identifier",
"start": 307,
"end": 322,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 19
},
"identifierName": "buildPageConfig"
},
"name": "buildPageConfig"
},
"value": {
"type": "FunctionExpression",
"id": {
"type": "Identifier",
"name": "buildPageConfig"
},
"params": [],
"body": {
"type": "BlockStatement",
"start": 337,
"end": 521,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 19,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 323,
"end": 330,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 27
},
"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": 333,
"end": 335,
"loc": {
"start": {
"line": 13,
"column": 30
},
"end": {
"line": 13,
"column": 32
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 345,
"end": 511,
"loc": {
"start": {
"line": 14,
"column": 6
},
"end": {
"line": 18,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 349,
"end": 374,
"loc": {
"start": {
"line": 14,
"column": 10
},
"end": {
"line": 14,
"column": 35
}
},
"left": {
"type": "MemberExpression",
"start": 349,
"end": 364,
"loc": {
"start": {
"line": 14,
"column": 10
},
"end": {
"line": 14,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 349,
"end": 352,
"loc": {
"start": {
"line": 14,
"column": 10
},
"end": {
"line": 14,
"column": 13
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 353,
"end": 364,
"loc": {
"start": {
"line": 14,
"column": 14
},
"end": {
"line": 14,
"column": 25
},
"identifierName": "fileExtname"
},
"name": "fileExtname"
},
"computed": false
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 369,
"end": 374,
"loc": {
"start": {
"line": 14,
"column": 30
},
"end": {
"line": 14,
"column": 35
}
},
"extra": {
"rawValue": ".md",
"raw": "'.md'"
},
"value": ".md"
}
},
"consequent": {
"type": "BlockStatement",
"start": 376,
"end": 424,
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 16,
"column": 7
}
},
"body": [
{
"type": "ReturnStatement",
"start": 386,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 38
}
},
"argument": {
"type": "CallExpression",
"start": 393,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 393,
"end": 411,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 33
},
"identifierName": "markdownPageConfig"
},
"name": "markdownPageConfig"
},
"arguments": [
{
"type": "Identifier",
"start": 412,
"end": 415,
"loc": {
"start": {
"line": 15,
"column": 34
},
"end": {
"line": 15,
"column": 37
},
"identifierName": "doc"
},
"name": "doc"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 430,
"end": 511,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 18,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 434,
"end": 459,
"loc": {
"start": {
"line": 16,
"column": 17
},
"end": {
"line": 16,
"column": 42
}
},
"left": {
"type": "MemberExpression",
"start": 434,
"end": 449,
"loc": {
"start": {
"line": 16,
"column": 17
},
"end": {
"line": 16,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 434,
"end": 437,
"loc": {
"start": {
"line": 16,
"column": 17
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 438,
"end": 449,
"loc": {
"start": {
"line": 16,
"column": 21
},
"end": {
"line": 16,
"column": 32
},
"identifierName": "fileExtname"
},
"name": "fileExtname"
},
"computed": false
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 454,
"end": 459,
"loc": {
"start": {
"line": 16,
"column": 37
},
"end": {
"line": 16,
"column": 42
}
},
"extra": {
"rawValue": ".js",
"raw": "'.js'"
},
"value": ".js"
}
},
"consequent": {
"type": "BlockStatement",
"start": 461,
"end": 511,
"loc": {
"start": {
"line": 16,
"column": 44
},
"end": {
"line": 18,
"column": 7
}
},
"body": [
{
"type": "ReturnStatement",
"start": 471,
"end": 503,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 40
}