@eastsideco/escshopify
Version:
WIP JS library for Shopify, containing a variety of useful functionality.
2,212 lines (2,211 loc) • 78 kB
JSON
{
"type": "File",
"start": 0,
"end": 493,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 24,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 493,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 24,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 30
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
},
"identifierName": "config"
},
"name": "config"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 29
}
},
"extra": {
"rawValue": "./config",
"raw": "'./config'"
},
"value": "./config"
}
},
{
"type": "ImportDeclaration",
"start": 31,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 30
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 38,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 10
}
},
"local": {
"type": "Identifier",
"start": 38,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 10
},
"identifierName": "Log"
},
"name": "Log"
}
}
],
"source": {
"type": "StringLiteral",
"start": 47,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 29
}
},
"extra": {
"rawValue": "./utils/Log",
"raw": "'./utils/Log'"
},
"value": "./utils/Log"
}
},
{
"type": "ImportDeclaration",
"start": 62,
"end": 120,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 58
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 69,
"end": 82,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 20
}
},
"local": {
"type": "Identifier",
"start": 69,
"end": 82,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 20
},
"identifierName": "ConsoleLogger"
},
"name": "ConsoleLogger"
}
}
],
"source": {
"type": "StringLiteral",
"start": 88,
"end": 119,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 57
}
},
"extra": {
"rawValue": "./utils/loggers/ConsoleLogger",
"raw": "'./utils/loggers/ConsoleLogger'"
},
"value": "./utils/loggers/ConsoleLogger"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 122,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 14
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 137,
"end": 164,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 143,
"end": 163,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 26
}
},
"id": {
"type": "Identifier",
"start": 143,
"end": 146,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 9
},
"identifierName": "TAG"
},
"name": "TAG",
"leadingComments": null
},
"init": {
"type": "StringLiteral",
"start": 149,
"end": 163,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 26
}
},
"extra": {
"rawValue": "LogBootstrap",
"raw": "'LogBootstrap'"
},
"value": "LogBootstrap"
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 122,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 14
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Setup library-level logging",
"start": 166,
"end": 196,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 30
}
}
}
]
},
{
"type": "Identifier",
"start": 197,
"end": 217,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 20
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 203,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 19
}
},
"id": {
"type": "Identifier",
"start": 203,
"end": 206,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 9
},
"identifierName": "log"
},
"name": "log",
"leadingComments": null
},
"init": {
"type": "NewExpression",
"start": 209,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 19
}
},
"callee": {
"type": "Identifier",
"start": 213,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 19
},
"identifierName": "Log"
},
"name": "Log"
},
"arguments": []
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [],
"name": "_",
"trailingComments": []
},
{
"type": "ExpressionStatement",
"start": 219,
"end": 254,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 35
}
},
"expression": {
"type": "CallExpression",
"start": 219,
"end": 253,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 219,
"end": 235,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 219,
"end": 222,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 3
},
"identifierName": "log"
},
"name": "log"
},
"property": {
"type": "Identifier",
"start": 223,
"end": 235,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 16
},
"identifierName": "setLogPrefix"
},
"name": "setLogPrefix"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 236,
"end": 252,
"loc": {
"start": {
"line": 11,
"column": 17
},
"end": {
"line": 11,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 236,
"end": 242,
"loc": {
"start": {
"line": 11,
"column": 17
},
"end": {
"line": 11,
"column": 23
},
"identifierName": "config"
},
"name": "config"
},
"property": {
"type": "Identifier",
"start": 243,
"end": 252,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 33
},
"identifierName": "logPrefix"
},
"name": "logPrefix"
},
"computed": false
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 256,
"end": 270,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 14
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 271,
"end": 304,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 33
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 277,
"end": 303,
"loc": {
"start": {
"line": 14,
"column": 6
},
"end": {
"line": 14,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 277,
"end": 283,
"loc": {
"start": {
"line": 14,
"column": 6
},
"end": {
"line": 14,
"column": 12
},
"identifierName": "logger"
},
"name": "logger",
"leadingComments": null
},
"init": {
"type": "NewExpression",
"start": 286,
"end": 303,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 290,
"end": 303,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 32
},
"identifierName": "ConsoleLogger"
},
"name": "ConsoleLogger"
},
"arguments": []
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 256,
"end": 270,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 14
}
}
}
]
},
{
"type": "IfStatement",
"start": 305,
"end": 361,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"test": {
"type": "UnaryExpression",
"start": 309,
"end": 322,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 17
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 310,
"end": 322,
"loc": {
"start": {
"line": 15,
"column": 5
},
"end": {
"line": 15,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 310,
"end": 316,
"loc": {
"start": {
"line": 15,
"column": 5
},
"end": {
"line": 15,
"column": 11
},
"identifierName": "config"
},
"name": "config"
},
"property": {
"type": "Identifier",
"start": 317,
"end": 322,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 17
},
"identifierName": "debug"
},
"name": "debug"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 324,
"end": 361,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 17,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 330,
"end": 359,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 330,
"end": 358,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 330,
"end": 348,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 330,
"end": 336,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 10
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 337,
"end": 348,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 22
},
"identifierName": "setLogLevel"
},
"name": "setLogLevel"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 349,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 349,
"end": 352,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 26
},
"identifierName": "log"
},
"name": "log"
},
"property": {
"type": "Identifier",
"start": 353,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 16,
"column": 31
},
"identifierName": "WARN"
},
"name": "WARN"
},
"computed": false
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 362,
"end": 384,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 18,
"column": 22
}
},
"expression": {
"type": "CallExpression",
"start": 362,
"end": 383,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 18,
"column": 21
}
},
"callee": {
"type": "MemberExpression",
"start": 362,
"end": 375,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 18,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 362,
"end": 365,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 18,
"column": 3
},
"identifierName": "log"
},
"name": "log"
},
"property": {
"type": "Identifier",
"start": 366,
"end": 375,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 13
},
"identifierName": "addLogger"
},
"name": "addLogger"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 376,
"end": 382,
"loc": {
"start": {
"line": 18,
"column": 14
},
"end": {
"line": 18,
"column": 20
},
"identifierName": "logger"
},
"name": "logger"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 385,
"end": 434,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 49
}
},
"expression": {
"type": "CallExpression",
"start": 385,
"end": 433,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 385,
"end": 393,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 8
}
},
"object": {
"type": "Identifier",
"start": 385,
"end": 388,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 3
},
"identifierName": "log"
},
"name": "log"
},
"property": {
"type": "Identifier",
"start": 389,
"end": 393,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 8
},
"identifierName": "send"
},
"name": "send"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 394,
"end": 403,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 394,
"end": 397,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 12
},
"identifierName": "log"
},
"name": "log"
},
"property": {
"type": "Identifier",
"start": 398,
"end": 403,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 18
},
"identifierName": "DEBUG"
},
"name": "DEBUG"
},
"computed": false
},
{
"type": "Identifier",
"start": 405,
"end": 408,
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 23
},
"identifierName": "TAG"
},
"name": "TAG"
},
{
"type": "StringLiteral",
"start": 410,
"end": 432,
"loc": {
"start": {
"line": 19,
"column": 25
},
"end": {
"line": 19,
"column": 47
}
},
"extra": {
"rawValue": "Initialized logging.",
"raw": "'Initialized logging.'"
},
"value": "Initialized logging."
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @type {src/utils/Log.js~Log} ",
"start": 437,
"end": 472,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 35
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 473,
"end": 492,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 23,
"column": 19
}
},
"declaration": {
"type": "Identifier",
"start": 488,
"end": 491,
"loc": {
"start": {
"line": 23,
"column": 15
},
"end": {
"line": 23,
"column": 18
},
"identifierName": "log"
},
"name": "log",
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {src/utils/Log.js~Log} ",
"start": 437,
"end": 472,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 35
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {src/utils/Log.js~Log} ",
"start": 437,
"end": 472,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 35
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 122,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": " Setup library-level logging",
"start": 166,
"end": 196,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 30
}
}
},
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 256,
"end": 270,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 14
}
}
},
{
"type": "CommentBlock",
"value": "* @type {src/utils/Log.js~Log} ",
"start": 437,
"end": 472,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 35
}
}
}
],
"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": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "config",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 14,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./config",
"start": 19,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 29,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"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": 31,
"end": 37,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Log",
"start": 38,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 42,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 15
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./utils/Log",
"start": 47,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 60,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 30
}
}
},
{
"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": 62,
"end": 68,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ConsoleLogger",
"start": 69,
"end": 82,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 83,
"end": 87,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./utils/loggers/ConsoleLogger",
"start": 88,
"end": 119,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 57
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 119,
"end": 120,
"loc": {
"start": {
"line": 3,
"column": 57
},
"end": {
"line": 3,
"column": 58
}
}
},
{
"type": "CommentBlock",
"value": "* @ignore ",
"start": 122,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"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": 137,
"end": 142,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "TAG",
"start": 143,
"end": 146,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 147,
"end": 148,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 11
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "LogBootstrap",
"start": 149,
"end": 163,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 163,
"end": 164,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 27
}
}
},
{
"type": "CommentLine",
"value": " Setup library-level logging",
"start": 166,
"end": 196,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 30
}
}
},
{
"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": 197,
"end": 202,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "log",
"start": 203,
"end": 206,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 207,
"end": 208,
"loc": {
"start": {
"line": 9,
"column": 10
},
"end": {
"line": 9,
"column": 11
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 209,
"end": 212,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Log",
"start": 213,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 216,
"end": 217,
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 9,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "log",
"start": 219,
"end": 222,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 222,
"end": 223,
"loc": {
"start": {
"line": 11,
"column": 3
},
"end": {
"line": 11,
"column": 4
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setLogPrefix",
"start": 223,
"end": 235,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 235,
"end": 236,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "config",
"start": 236,
"end": 242,
"loc": {
"start": {