skypager-project
Version:
skypager project framework
1,870 lines (1,848 loc) • 516 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 = 150);
/******/ })
/************************************************************************/
/******/ ({
/***/ 150:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(59);
/***/ },
/***/ 59:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/importers/node-vinyl.js",
"ast": {
"type": "File",
"start": 0,
"end": 2440,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 117,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2440,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 117,
"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": "DocumentImporter",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "toVFile",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "DefaultOptions",
"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": "_defineProperty"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/core-js/object/define-property",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_defineProperty2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_defineProperty"
}
]
}
}
]
},
{
"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": "_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": "_classCallCheck2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/helpers/classCallCheck",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_classCallCheck3"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_classCallCheck2"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_createClass2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/helpers/createClass",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_createClass3"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_createClass2"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_class"
},
"init": null
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_temp"
},
"init": null
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_isArray"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "lodash/isArray",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 36
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_isArray2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_isArray"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_uniq"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "lodash/uniq",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 30
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_uniq2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_uniq"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_vinylRead"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "vinyl-read",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 30
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_vinylRead2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_vinylRead"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_convertVinylToVfile"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "convert-vinyl-to-vfile",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 56
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_convertVinylToVfile2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_convertVinylToVfile"
}
]
}
}
]
},
{
"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": 5,
"column": 0
},
"end": {
"line": 5,
"column": 50
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_document"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "../document",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 45
}
}
},
{
"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",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 262,
"end": 276,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
},
"identifierName": "defineProperty"
},
"name": "defineProperty"
},
"init": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_defineProperty2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"leadingComments": [],
"trailingComments": []
},
{
"type": "VariableDeclaration",
"start": 296,
"end": 351,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 12,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 302,
"end": 351,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 12,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 302,
"end": 316,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 27
},
"identifierName": "DefaultOptions"
},
"name": "DefaultOptions",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"start": 302,
"end": 316,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 27
},
"identifierName": "DefaultOptions"
},
"name": "DefaultOptions",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 319,
"end": 351,
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 12,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 323,
"end": 348,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 323,
"end": 331,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 10
},
"identifierName": "patterns"
},
"name": "patterns"
},
"value": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_document"
},
"property": {
"type": "Identifier",
"start": 216,
"end": 231,
"name": "DefaultPatterns"
},
"computed": false,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
]
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"kind": "var",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
{
"type": "VariableDeclaration",
"start": 360,
"end": 413,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 60
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 366,
"end": 413,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 60
}
},
"id": {
"type": "Identifier",
"start": 366,
"end": 373,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 20
},
"identifierName": "toVFile"
},
"name": "toVFile",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"start": 366,
"end": 373,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 20
},
"identifierName": "toVFile"
},
"name": "toVFile",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 376,
"end": 413,
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 14,
"column": 60
}
},
"id": {
"type": "Identifier",
"start": 366,
"end": 373,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 20
},
"identifierName": "toVFile"
},
"name": "toVFile",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 377,
"end": 382,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 29
},
"identifierName": "vinyl"
},
"name": "vinyl"
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"start": 387,
"end": 413,
"loc": {
"start": {
"line": 14,
"column": 34
},
"end": {
"line": 14,
"column": 60
}
},
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_convertVinylToVfile2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "Identifier",
"start": 407,
"end": 412,
"loc": {
"start": {
"line": 14,
"column": 54
},
"end": {
"line": 14,
"column": 59
},
"identifierName": "vinyl"
},
"name": "vinyl"
}
]
}
}
],
"directives": []
},
"shadow": true
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"kind": "var",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 428,
"end": 444,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 29
},
"identifierName": "DocumentImporter"
},
"name": "DocumentImporter",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"start": 428,
"end": 444,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 29
},
"identifierName": "DocumentImporter"
},
"name": "DocumentImporter",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "SequenceExpression",
"expressions": [
{
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "_temp"
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "_class"
},
"right": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_createClass3"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "Identifier",
"name": "DocumentImporter"
},
{
"type": "NullLiteral"
},
{
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "ObjectProperty",
"key": {
"type": "Identifier",
"name": "key"
},
"value": {
"type": "StringLiteral",
"value": "create"
},
"computed": false,
"shorthand": false,
"decorators": null
},
{
"type": "ObjectProperty",
"key": {
"type": "Identifier",
"name": "value"
},
"value": {
"type": "FunctionExpression",
"id": {
"type": "Identifier",
"name": "create"
},
"params": [
{
"type": "Identifier",
"start": 502,
"end": 505,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 20
},
"identifierName": "cwd"
},
"name": "cwd"
}
],
"body": {
"type": "BlockStatement",
"start": 521,
"end": 845,
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 40,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 507,
"end": 514,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 29
},
"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": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 1,
"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": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"alternate": {
"type": "ObjectExpression",
"start": 517,
"end": 519,
"loc": {
"start": {
"line": 19,
"column": 32
},
"end": {
"line": 19,
"column": 34
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 527,
"end": 634,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 531,
"end": 558,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 35
}
},
"left": {
"type": "UnaryExpression",
"start": 531,
"end": 545,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 22
}
},
"operator": "typeof",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 538,
"end": 545,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 22
},
"identifierName": "options"
},
"name": "options"
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 550,
"end": 558,
"loc": {
"start": {
"line": 20,
"column": 27
},
"end": {
"line": 20,
"column": 35
}
},
"extra": {
"rawValue": "string",
"raw": "'string'"
},
"value": "string"
}
},
"consequent": {
"type": "BlockStatement",
"start": 560,
"end": 634,
"loc": {
"start": {
"line": 20,
"column": 37
},
"end": {
"line": 25,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 568,
"end": 628,
"loc": {
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 24,
"column": 7
}
},
"expression": {
"type": "AssignmentExpression",
"start": 568,
"end": 628,
"loc": {
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 24,
"column": 7
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 568,
"end": 575,
"loc": {
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 21,
"column": 13
},
"identifierName": "options"
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 578,
"end": 628,
"loc": {
"start": {
"line": 21,
"column": 16
},
"end": {
"line": 24,
"column": 7
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 588,
"end": 607,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 588,
"end": 596,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 16
},
"identifierName": "patterns"