@eastsideco/escshopify
Version:
WIP JS library for Shopify, containing a variety of useful functionality.
471 lines • 9.79 kB
JSON
{
"type": "File",
"start": 0,
"end": 91,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 91,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "VariableDeclaration",
"start": 0,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 55
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 54
}
},
"id": {
"type": "Identifier",
"start": 6,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 14
},
"identifierName": "ROOT_URL"
},
"name": "ROOT_URL"
},
"init": {
"type": "StringLiteral",
"start": 17,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 54
}
},
"extra": {
"rawValue": "https://geo.eastsideapps.io/api/v1/",
"raw": "'https://geo.eastsideapps.io/api/v1/'"
},
"value": "https://geo.eastsideapps.io/api/v1/"
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 56,
"end": 90,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 34
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 62,
"end": 89,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 62,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 16
},
"identifierName": "PATH_GEOIP"
},
"name": "PATH_GEOIP"
},
"init": {
"type": "StringLiteral",
"start": 75,
"end": 89,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 33
}
},
"extra": {
"rawValue": "info?ip={ip}",
"raw": "'info?ip={ip}'"
},
"value": "info?ip={ip}"
}
}
],
"kind": "const"
}
],
"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": 0,
"end": 5,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ROOT_URL",
"start": 6,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 15,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 16
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "https://geo.eastsideapps.io/api/v1/",
"start": 17,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 54,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 54
},
"end": {
"line": 1,
"column": 55
}
}
},
{
"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": 56,
"end": 61,
"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": "PATH_GEOIP",
"start": 62,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 73,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "info?ip={ip}",
"start": 75,
"end": 89,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 89,
"end": 90,
"loc": {
"start": {
"line": 2,
"column": 33
},
"end": {
"line": 2,
"column": 34
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 91,
"end": 91,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
}
}
]
}