UNPKG

@xailabs/altx

Version:

Flux flavor based on alt.js

1,835 lines 59.3 kB
{ "type": "File", "start": 0, "end": 292, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 18, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 292, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 18, "column": 0 } }, "sourceType": "module", "body": [ { "type": "Identifier", "start": 2, "end": 253, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 15, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8, "end": 252, "loc": { "start": { "line": 2, "column": 6 }, "end": { "line": 15, "column": 1 } }, "id": { "type": "Identifier", "start": 8, "end": 25, "loc": { "start": { "line": 2, "column": 6 }, "end": { "line": 2, "column": 23 }, "identifierName": "loggerConstraints" }, "name": "loggerConstraints" }, "init": { "type": "ObjectExpression", "start": 28, "end": 252, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 15, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 35, "end": 83, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 5, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 35, "end": 48, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 17 } }, "extra": { "rawValue": "logger.warn", "raw": "'logger.warn'" }, "value": "logger.warn" }, "value": { "type": "ObjectExpression", "start": 50, "end": 83, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 5, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 61, "end": 75, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 61, "end": 69, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 71, "end": 75, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 22 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 90, "end": 139, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 8, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 90, "end": 104, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 18 } }, "extra": { "rawValue": "logger.error", "raw": "'logger.error'" }, "value": "logger.error" }, "value": { "type": "ObjectExpression", "start": 106, "end": 139, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 8, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 117, "end": 131, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 117, "end": 125, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 127, "end": 131, "loc": { "start": { "line": 7, "column": 18 }, "end": { "line": 7, "column": 22 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 146, "end": 193, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 146, "end": 158, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 16 } }, "extra": { "rawValue": "logger.log", "raw": "'logger.log'" }, "value": "logger.log" }, "value": { "type": "ObjectExpression", "start": 160, "end": 193, "loc": { "start": { "line": 9, "column": 18 }, "end": { "line": 11, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 171, "end": 185, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 171, "end": 179, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 181, "end": 185, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 22 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 200, "end": 248, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 14, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 200, "end": 213, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 17 } }, "extra": { "rawValue": "logger.info", "raw": "'logger.info'" }, "value": "logger.info" }, "value": { "type": "ObjectExpression", "start": 215, "end": 248, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 14, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 226, "end": 240, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 226, "end": 234, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 236, "end": 240, "loc": { "start": { "line": 13, "column": 18 }, "end": { "line": 13, "column": 22 } }, "value": true } } ] } } ] } } ], "kind": "const", "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "Identifier", "start": 257, "end": 290, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 33 } }, "declaration": { "type": "Identifier", "start": 272, "end": 289, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 32 }, "identifierName": "loggerConstraints" }, "name": "loggerConstraints" }, "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "ExportDefaultDeclaration", "start": 257, "end": 290, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 33 } }, "declaration": { "type": "VariableDeclaration", "start": 2, "end": 253, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 15, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8, "end": 252, "loc": { "start": { "line": 2, "column": 6 }, "end": { "line": 15, "column": 1 } }, "id": { "type": "Identifier", "start": 8, "end": 25, "loc": { "start": { "line": 2, "column": 6 }, "end": { "line": 2, "column": 23 }, "identifierName": "loggerConstraints" }, "name": "loggerConstraints" }, "init": { "type": "ObjectExpression", "start": 28, "end": 252, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 15, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 35, "end": 83, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 5, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 35, "end": 48, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 17 } }, "extra": { "rawValue": "logger.warn", "raw": "'logger.warn'" }, "value": "logger.warn" }, "value": { "type": "ObjectExpression", "start": 50, "end": 83, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 5, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 61, "end": 75, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 61, "end": 69, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 71, "end": 75, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 22 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 90, "end": 139, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 8, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 90, "end": 104, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 18 } }, "extra": { "rawValue": "logger.error", "raw": "'logger.error'" }, "value": "logger.error" }, "value": { "type": "ObjectExpression", "start": 106, "end": 139, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 8, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 117, "end": 131, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 117, "end": 125, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 127, "end": 131, "loc": { "start": { "line": 7, "column": 18 }, "end": { "line": 7, "column": 22 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 146, "end": 193, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 146, "end": 158, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 16 } }, "extra": { "rawValue": "logger.log", "raw": "'logger.log'" }, "value": "logger.log" }, "value": { "type": "ObjectExpression", "start": 160, "end": 193, "loc": { "start": { "line": 9, "column": 18 }, "end": { "line": 11, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 171, "end": 185, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 171, "end": 179, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 181, "end": 185, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 22 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 200, "end": 248, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 14, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "StringLiteral", "start": 200, "end": 213, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 17 } }, "extra": { "rawValue": "logger.info", "raw": "'logger.info'" }, "value": "logger.info" }, "value": { "type": "ObjectExpression", "start": 215, "end": 248, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 14, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 226, "end": 240, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 226, "end": 234, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 16 }, "identifierName": "presence" }, "name": "presence" }, "value": { "type": "BooleanLiteral", "start": 236, "end": 240, "loc": { "start": { "line": 13, "column": 18 }, "end": { "line": 13, "column": 22 } }, "value": true } } ] } } ] } } ], "kind": "const", "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [], "tokens": [ { "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": 2, "end": 7, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "loggerConstraints", "start": 8, "end": 25, "loc": { "start": { "line": 2, "column": 6 }, "end": { "line": 2, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 26, "end": 27, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 28, "end": 29, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 27 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "logger.warn", "start": 35, "end": 48, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 17 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 48, "end": 49, "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 50, "end": 51, "loc": { "start": { "line": 3, "column": 19 }, "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": "presence", "start": 61, "end": 69, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 16 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 69, "end": 70, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 17 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 71, "end": 75, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 75, "end": 76, "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 82, "end": 83, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 5 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 83, "end": 84, "loc": { "start": { "line": 5, "column": 5 }, "end": { "line": 5, "column": 6 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "logger.error", "start": 90, "end": 104, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 18 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 104, "end": 105, "loc": { "start": { "line": 6, "column": 18 }, "end": { "line": 6, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 106, "end": 107, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "presence", "start": 117, "end": 125, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 125, "end": 126, "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 17 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 127, "end": 131, "loc": { "start": { "line": 7, "column": 18 }, "end": { "line": 7, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 131, "end": 132, "loc": { "start": { "line": 7, "column": 22 }, "end": { "line": 7, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 138, "end": 139, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 5 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 139, "end": 140, "loc": { "start": { "line": 8, "column": 5 }, "end": { "line": 8, "column": 6 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "logger.log", "start": 146, "end": 158, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 16 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 158, "end": 159, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 17 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 160, "end": 161, "loc": { "start": { "line": 9, "column": 18 }, "end": { "line": 9, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "presence", "start": 171, "end": 179, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 179, "end": 180, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 17 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 181, "end": 185, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 185, "end": 186, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 23 } } }, { "type": { "label": "}",