mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-03 14:32:21 +02:00
4481fbe361
branch: master
SHA: c7d6de72f7
range SHA: 81f31a3106fb...c7d6de72f785
build id: 375208741
build number: 1103
4899 lines
114 KiB
JSON
4899 lines
114 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 1535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 0
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 1535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 0,
|
|
"end": 59,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 59
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 8,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 8,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"identifierName": "isBoolean"
|
|
},
|
|
"name": "isBoolean"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 8,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"identifierName": "isBoolean"
|
|
},
|
|
"name": "isBoolean"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 19,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 19,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
},
|
|
"identifierName": "isString"
|
|
},
|
|
"name": "isString"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 19,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
},
|
|
"identifierName": "isString"
|
|
},
|
|
"name": "isString"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 29,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 33
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 29,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"identifierName": "isFn"
|
|
},
|
|
"name": "isFn"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 29,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"identifierName": "isFn"
|
|
},
|
|
"name": "isFn"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 35,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 42
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 35,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 42
|
|
},
|
|
"identifierName": "isArray"
|
|
},
|
|
"name": "isArray"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 35,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 42
|
|
},
|
|
"identifierName": "isArray"
|
|
},
|
|
"name": "isArray"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 49,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./types",
|
|
"raw": "'./types'"
|
|
},
|
|
"value": "./types"
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Configuration settings helpers ",
|
|
"start": 61,
|
|
"end": 99,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of boolean type return the default value\n * otherwise return the value itself\n * @param {Boolean|Any} value\n * @param {Boolean} default value\n * @return {Boolean|Any}\n ",
|
|
"start": 101,
|
|
"end": 304,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 305,
|
|
"end": 392,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 59
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 312,
|
|
"end": 392,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 59
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 318,
|
|
"end": 391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 58
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 318,
|
|
"end": 330,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 25
|
|
},
|
|
"identifierName": "defaultsBool"
|
|
},
|
|
"name": "defaultsBool",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 337,
|
|
"end": 391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 58
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 318,
|
|
"end": 330,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 25
|
|
},
|
|
"identifierName": "defaultsBool"
|
|
},
|
|
"name": "defaultsBool",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 338,
|
|
"end": 341,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 8
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 343,
|
|
"end": 353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 20
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "ConditionalExpression",
|
|
"start": 358,
|
|
"end": 391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 58
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start": 358,
|
|
"end": 372,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 39
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 358,
|
|
"end": 367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 34
|
|
},
|
|
"identifierName": "isBoolean"
|
|
},
|
|
"name": "isBoolean"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 368,
|
|
"end": 371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 38
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
}
|
|
]
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"start": 375,
|
|
"end": 378,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 45
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"start": 381,
|
|
"end": 391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 58
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Configuration settings helpers ",
|
|
"start": 61,
|
|
"end": 99,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of boolean type return the default value\n * otherwise return the value itself\n * @param {Boolean|Any} value\n * @param {Boolean} default value\n * @return {Boolean|Any}\n ",
|
|
"start": 101,
|
|
"end": 304,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of string type return the default value\n * otherwise return the value itself\n * @param {String|Any} value\n * @param {String} default value\n * @return {String|Any}\n ",
|
|
"start": 394,
|
|
"end": 593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Configuration settings helpers ",
|
|
"start": 61,
|
|
"end": 99,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of boolean type return the default value\n * otherwise return the value itself\n * @param {Boolean|Any} value\n * @param {Boolean} default value\n * @return {Boolean|Any}\n ",
|
|
"start": 101,
|
|
"end": 304,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of string type return the default value\n * otherwise return the value itself\n * @param {String|Any} value\n * @param {String} default value\n * @return {String|Any}\n ",
|
|
"start": 394,
|
|
"end": 593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 594,
|
|
"end": 679,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 58
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 601,
|
|
"end": 679,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 58
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 607,
|
|
"end": 678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 57
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 607,
|
|
"end": 618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 24
|
|
},
|
|
"identifierName": "defaultsStr"
|
|
},
|
|
"name": "defaultsStr",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 625,
|
|
"end": 678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 57
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 607,
|
|
"end": 618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 24
|
|
},
|
|
"identifierName": "defaultsStr"
|
|
},
|
|
"name": "defaultsStr",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 626,
|
|
"end": 629,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 8
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 631,
|
|
"end": 641,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 20
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "ConditionalExpression",
|
|
"start": 646,
|
|
"end": 678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 57
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start": 646,
|
|
"end": 659,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 646,
|
|
"end": 654,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 33
|
|
},
|
|
"identifierName": "isString"
|
|
},
|
|
"name": "isString"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 655,
|
|
"end": 658,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 37
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
}
|
|
]
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"start": 662,
|
|
"end": 665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 44
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"start": 668,
|
|
"end": 678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 57
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of string type return the default value\n * otherwise return the value itself\n * @param {String|Any} value\n * @param {String} default value\n * @return {String|Any}\n ",
|
|
"start": 394,
|
|
"end": 593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of number type return the default value\n * otherwise return the value itself\n * @param {Number|Any} value\n * @param {Number} default value\n * @return {Number|Any}\n ",
|
|
"start": 681,
|
|
"end": 880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of string type return the default value\n * otherwise return the value itself\n * @param {String|Any} value\n * @param {String} default value\n * @return {String|Any}\n ",
|
|
"start": 394,
|
|
"end": 593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of number type return the default value\n * otherwise return the value itself\n * @param {Number|Any} value\n * @param {Number} default value\n * @return {Number|Any}\n ",
|
|
"start": 681,
|
|
"end": 880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 881,
|
|
"end": 962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 55
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 888,
|
|
"end": 962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 55
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 894,
|
|
"end": 961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 54
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 894,
|
|
"end": 904,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 23
|
|
},
|
|
"identifierName": "defaultsNb"
|
|
},
|
|
"name": "defaultsNb",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 911,
|
|
"end": 961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 54
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 894,
|
|
"end": 904,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 23
|
|
},
|
|
"identifierName": "defaultsNb"
|
|
},
|
|
"name": "defaultsNb",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 912,
|
|
"end": 915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 917,
|
|
"end": 927,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 20
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "ConditionalExpression",
|
|
"start": 932,
|
|
"end": 961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 54
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start": 932,
|
|
"end": 942,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 35
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 932,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 30
|
|
},
|
|
"identifierName": "isNaN"
|
|
},
|
|
"name": "isNaN"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 938,
|
|
"end": 941,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 34
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
}
|
|
]
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"start": 945,
|
|
"end": 955,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 48
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"start": 958,
|
|
"end": 961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 54
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of number type return the default value\n * otherwise return the value itself\n * @param {Number|Any} value\n * @param {Number} default value\n * @return {Number|Any}\n ",
|
|
"start": 681,
|
|
"end": 880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of array type return the default value\n * otherwise return the value itself\n * @param {Array|Any} value\n * @param {Array} default value\n * @return {Array|Any}\n ",
|
|
"start": 964,
|
|
"end": 1159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of number type return the default value\n * otherwise return the value itself\n * @param {Number|Any} value\n * @param {Number} default value\n * @return {Number|Any}\n ",
|
|
"start": 681,
|
|
"end": 880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of array type return the default value\n * otherwise return the value itself\n * @param {Array|Any} value\n * @param {Array} default value\n * @return {Array|Any}\n ",
|
|
"start": 964,
|
|
"end": 1159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 1160,
|
|
"end": 1244,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 57
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 1167,
|
|
"end": 1244,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 57
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1173,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 56
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1173,
|
|
"end": 1184,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 24
|
|
},
|
|
"identifierName": "defaultsArr"
|
|
},
|
|
"name": "defaultsArr",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 1191,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 56
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1173,
|
|
"end": 1184,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 24
|
|
},
|
|
"identifierName": "defaultsArr"
|
|
},
|
|
"name": "defaultsArr",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1192,
|
|
"end": 1195,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1197,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 20
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "ConditionalExpression",
|
|
"start": 1212,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 56
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start": 1212,
|
|
"end": 1224,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 37
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1212,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 32
|
|
},
|
|
"identifierName": "isArray"
|
|
},
|
|
"name": "isArray"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1220,
|
|
"end": 1223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 36
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
}
|
|
]
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"start": 1227,
|
|
"end": 1230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 43
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"start": 1233,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 56
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of array type return the default value\n * otherwise return the value itself\n * @param {Array|Any} value\n * @param {Array} default value\n * @return {Array|Any}\n ",
|
|
"start": 964,
|
|
"end": 1159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of function type return the default value\n * otherwise return the value itself\n * @param {Function|Any} value\n * @param {Function} default value\n * @return {Function|Any}\n ",
|
|
"start": 1246,
|
|
"end": 1453,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of array type return the default value\n * otherwise return the value itself\n * @param {Array|Any} value\n * @param {Array} default value\n * @return {Array|Any}\n ",
|
|
"start": 964,
|
|
"end": 1159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of function type return the default value\n * otherwise return the value itself\n * @param {Function|Any} value\n * @param {Function} default value\n * @return {Function|Any}\n ",
|
|
"start": 1246,
|
|
"end": 1453,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 1454,
|
|
"end": 1534,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 54
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 1461,
|
|
"end": 1534,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 54
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1467,
|
|
"end": 1533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 53
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1467,
|
|
"end": 1477,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"identifierName": "defaultsFn"
|
|
},
|
|
"name": "defaultsFn",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 1484,
|
|
"end": 1533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 53
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1467,
|
|
"end": 1477,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"identifierName": "defaultsFn"
|
|
},
|
|
"name": "defaultsFn",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1485,
|
|
"end": 1488,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1490,
|
|
"end": 1500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 20
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "ConditionalExpression",
|
|
"start": 1505,
|
|
"end": 1533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 53
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start": 1505,
|
|
"end": 1514,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 34
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1505,
|
|
"end": 1509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 29
|
|
},
|
|
"identifierName": "isFn"
|
|
},
|
|
"name": "isFn"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1510,
|
|
"end": 1513,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 33
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
}
|
|
]
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"start": 1517,
|
|
"end": 1520,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 40
|
|
},
|
|
"identifierName": "val"
|
|
},
|
|
"name": "val"
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"start": 1523,
|
|
"end": 1533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 53
|
|
},
|
|
"identifierName": "defaultVal"
|
|
},
|
|
"name": "defaultVal"
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of function type return the default value\n * otherwise return the value itself\n * @param {Function|Any} value\n * @param {Function} default value\n * @return {Function|Any}\n ",
|
|
"start": 1246,
|
|
"end": 1453,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of function type return the default value\n * otherwise return the value itself\n * @param {Function|Any} value\n * @param {Function} default value\n * @return {Function|Any}\n ",
|
|
"start": 1246,
|
|
"end": 1453,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Configuration settings helpers ",
|
|
"start": 61,
|
|
"end": 99,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of boolean type return the default value\n * otherwise return the value itself\n * @param {Boolean|Any} value\n * @param {Boolean} default value\n * @return {Boolean|Any}\n ",
|
|
"start": 101,
|
|
"end": 304,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of string type return the default value\n * otherwise return the value itself\n * @param {String|Any} value\n * @param {String} default value\n * @return {String|Any}\n ",
|
|
"start": 394,
|
|
"end": 593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of number type return the default value\n * otherwise return the value itself\n * @param {Number|Any} value\n * @param {Number} default value\n * @return {Number|Any}\n ",
|
|
"start": 681,
|
|
"end": 880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of array type return the default value\n * otherwise return the value itself\n * @param {Array|Any} value\n * @param {Array} default value\n * @return {Array|Any}\n ",
|
|
"start": 964,
|
|
"end": 1159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of function type return the default value\n * otherwise return the value itself\n * @param {Function|Any} value\n * @param {Function} default value\n * @return {Function|Any}\n ",
|
|
"start": 1246,
|
|
"end": 1453,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"tokens": [
|
|
{
|
|
"type": {
|
|
"label": "import",
|
|
"keyword": "import",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "import",
|
|
"start": 0,
|
|
"end": 6,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7,
|
|
"end": 8,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isBoolean",
|
|
"start": 8,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 17,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isString",
|
|
"start": 19,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 27,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isFn",
|
|
"start": 29,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 33,
|
|
"end": 34,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isArray",
|
|
"start": 35,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 42,
|
|
"end": 43,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 44,
|
|
"end": 48,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./types",
|
|
"start": 49,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 58,
|
|
"end": 59,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Configuration settings helpers ",
|
|
"start": 61,
|
|
"end": 99,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of boolean type return the default value\n * otherwise return the value itself\n * @param {Boolean|Any} value\n * @param {Boolean} default value\n * @return {Boolean|Any}\n ",
|
|
"start": 101,
|
|
"end": 304,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "export",
|
|
"keyword": "export",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "export",
|
|
"start": 305,
|
|
"end": 311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 312,
|
|
"end": 317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultsBool",
|
|
"start": 318,
|
|
"end": 330,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 331,
|
|
"end": 332,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 337,
|
|
"end": 338,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 338,
|
|
"end": 341,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 341,
|
|
"end": 342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 343,
|
|
"end": 353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 353,
|
|
"end": 354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 355,
|
|
"end": 357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isBoolean",
|
|
"start": 358,
|
|
"end": 367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 367,
|
|
"end": 368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 368,
|
|
"end": 371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 371,
|
|
"end": 372,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 373,
|
|
"end": 374,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 375,
|
|
"end": 378,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 379,
|
|
"end": 380,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 381,
|
|
"end": 391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 391,
|
|
"end": 392,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of string type return the default value\n * otherwise return the value itself\n * @param {String|Any} value\n * @param {String} default value\n * @return {String|Any}\n ",
|
|
"start": 394,
|
|
"end": 593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "export",
|
|
"keyword": "export",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "export",
|
|
"start": 594,
|
|
"end": 600,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 601,
|
|
"end": 606,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultsStr",
|
|
"start": 607,
|
|
"end": 618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 619,
|
|
"end": 620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 625,
|
|
"end": 626,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 626,
|
|
"end": 629,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 629,
|
|
"end": 630,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 631,
|
|
"end": 641,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 641,
|
|
"end": 642,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 643,
|
|
"end": 645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isString",
|
|
"start": 646,
|
|
"end": 654,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 654,
|
|
"end": 655,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 655,
|
|
"end": 658,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 658,
|
|
"end": 659,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 660,
|
|
"end": 661,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 662,
|
|
"end": 665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 666,
|
|
"end": 667,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 668,
|
|
"end": 678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 678,
|
|
"end": 679,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of number type return the default value\n * otherwise return the value itself\n * @param {Number|Any} value\n * @param {Number} default value\n * @return {Number|Any}\n ",
|
|
"start": 681,
|
|
"end": 880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "export",
|
|
"keyword": "export",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "export",
|
|
"start": 881,
|
|
"end": 887,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 888,
|
|
"end": 893,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultsNb",
|
|
"start": 894,
|
|
"end": 904,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 905,
|
|
"end": 906,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 911,
|
|
"end": 912,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 912,
|
|
"end": 915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 915,
|
|
"end": 916,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 917,
|
|
"end": 927,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 927,
|
|
"end": 928,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 929,
|
|
"end": 931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isNaN",
|
|
"start": 932,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 937,
|
|
"end": 938,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 938,
|
|
"end": 941,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 941,
|
|
"end": 942,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 943,
|
|
"end": 944,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 945,
|
|
"end": 955,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 956,
|
|
"end": 957,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 958,
|
|
"end": 961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 961,
|
|
"end": 962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of array type return the default value\n * otherwise return the value itself\n * @param {Array|Any} value\n * @param {Array} default value\n * @return {Array|Any}\n ",
|
|
"start": 964,
|
|
"end": 1159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "export",
|
|
"keyword": "export",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "export",
|
|
"start": 1160,
|
|
"end": 1166,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 1167,
|
|
"end": 1172,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultsArr",
|
|
"start": 1173,
|
|
"end": 1184,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1185,
|
|
"end": 1186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1191,
|
|
"end": 1192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 1192,
|
|
"end": 1195,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1195,
|
|
"end": 1196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 1197,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1207,
|
|
"end": 1208,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1209,
|
|
"end": 1211,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isArray",
|
|
"start": 1212,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1219,
|
|
"end": 1220,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 1220,
|
|
"end": 1223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1223,
|
|
"end": 1224,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1225,
|
|
"end": 1226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 1227,
|
|
"end": 1230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1231,
|
|
"end": 1232,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 1233,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1243,
|
|
"end": 1244,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * If passed value is not of function type return the default value\n * otherwise return the value itself\n * @param {Function|Any} value\n * @param {Function} default value\n * @return {Function|Any}\n ",
|
|
"start": 1246,
|
|
"end": 1453,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "export",
|
|
"keyword": "export",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "export",
|
|
"start": 1454,
|
|
"end": 1460,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 1461,
|
|
"end": 1466,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultsFn",
|
|
"start": 1467,
|
|
"end": 1477,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1478,
|
|
"end": 1479,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1484,
|
|
"end": 1485,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 1485,
|
|
"end": 1488,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1488,
|
|
"end": 1489,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 1490,
|
|
"end": 1500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1500,
|
|
"end": 1501,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1502,
|
|
"end": 1504,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "isFn",
|
|
"start": 1505,
|
|
"end": 1509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1509,
|
|
"end": 1510,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 1510,
|
|
"end": 1513,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1513,
|
|
"end": 1514,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1515,
|
|
"end": 1516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "val",
|
|
"start": 1517,
|
|
"end": 1520,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1521,
|
|
"end": 1522,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "defaultVal",
|
|
"start": 1523,
|
|
"end": 1533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1533,
|
|
"end": 1534,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "eof",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1535,
|
|
"end": 1535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |