@eastsideco/escshopify
Version:
WIP JS library for Shopify, containing a variety of useful functionality.
1,916 lines (1,915 loc) • 61.7 kB
JSON
{
"type": "File",
"start": 0,
"end": 712,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 27,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 712,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 27,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "localStorage"
},
"name": "localStorage"
}
}
],
"source": {
"type": "StringLiteral",
"start": 25,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 49
}
},
"extra": {
"rawValue": "local-storage-fallback",
"raw": "'local-storage-fallback'"
},
"value": "local-storage-fallback"
}
},
{
"type": "ImportDeclaration",
"start": 51,
"end": 85,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 34
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 58,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 58,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "utils"
},
"name": "utils"
}
}
],
"source": {
"type": "StringLiteral",
"start": 69,
"end": 84,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 33
}
},
"extra": {
"rawValue": "utils/general",
"raw": "'utils/general'"
},
"value": "utils/general"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Methods for persisting the state into the current session.\n ",
"start": 88,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 158,
"end": 711,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 26,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 173,
"end": 711,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 26,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 179,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 28
},
"identifierName": "Session"
},
"name": "Session",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 187,
"end": 711,
"loc": {
"start": {
"line": 8,
"column": 29
},
"end": {
"line": 26,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 295,
"end": 423,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 295,
"end": 306,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 15
},
"identifierName": "getCurrency"
},
"name": "getCurrency",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 309,
"end": 423,
"loc": {
"start": {
"line": 14,
"column": 18
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 319,
"end": 417,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 106
}
},
"argument": {
"type": "CallExpression",
"start": 326,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 105
}
},
"callee": {
"type": "MemberExpression",
"start": 326,
"end": 346,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 326,
"end": 338,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 27
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"property": {
"type": "Identifier",
"start": 339,
"end": 346,
"loc": {
"start": {
"line": 15,
"column": 28
},
"end": {
"line": 15,
"column": 35
},
"identifierName": "getItem"
},
"name": "getItem"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 347,
"end": 415,
"loc": {
"start": {
"line": 15,
"column": 36
},
"end": {
"line": 15,
"column": 104
}
},
"callee": {
"type": "MemberExpression",
"start": 347,
"end": 367,
"loc": {
"start": {
"line": 15,
"column": 36
},
"end": {
"line": 15,
"column": 56
}
},
"object": {
"type": "Identifier",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 15,
"column": 36
},
"end": {
"line": 15,
"column": 41
},
"identifierName": "utils"
},
"name": "utils"
},
"property": {
"type": "Identifier",
"start": 353,
"end": 367,
"loc": {
"start": {
"line": 15,
"column": 42
},
"end": {
"line": 15,
"column": 56
},
"identifierName": "safeStorageKey"
},
"name": "safeStorageKey"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 368,
"end": 380,
"loc": {
"start": {
"line": 15,
"column": 57
},
"end": {
"line": 15,
"column": 69
}
},
"extra": {
"rawValue": "escshopify",
"raw": "'escshopify'"
},
"value": "escshopify"
},
{
"type": "StringLiteral",
"start": 382,
"end": 414,
"loc": {
"start": {
"line": 15,
"column": 71
},
"end": {
"line": 15,
"column": 103
}
},
"extra": {
"rawValue": "EasyCurrency::Session:currency",
"raw": "'EasyCurrency::Session:currency'"
},
"value": "EasyCurrency::Session:currency"
}
]
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Retrieves the active currency from session.\n * @return {undefined|String}\n ",
"start": 194,
"end": 290,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Records the active currency in the session.\n * @param {null|String}\tvalue - The currency to record, or null to clear.\n ",
"start": 430,
"end": 570,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 575,
"end": 709,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 575,
"end": 587,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 16
},
"identifierName": "saveCurrency"
},
"name": "saveCurrency",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 588,
"end": 593,
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 22
},
"identifierName": "value"
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 595,
"end": 709,
"loc": {
"start": {
"line": 23,
"column": 24
},
"end": {
"line": 25,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 605,
"end": 703,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 106
}
},
"expression": {
"type": "CallExpression",
"start": 605,
"end": 702,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 105
}
},
"callee": {
"type": "MemberExpression",
"start": 605,
"end": 625,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 605,
"end": 617,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 20
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"property": {
"type": "Identifier",
"start": 618,
"end": 625,
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 28
},
"identifierName": "setItem"
},
"name": "setItem"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 626,
"end": 694,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 97
}
},
"callee": {
"type": "MemberExpression",
"start": 626,
"end": 646,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 626,
"end": 631,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 34
},
"identifierName": "utils"
},
"name": "utils"
},
"property": {
"type": "Identifier",
"start": 632,
"end": 646,
"loc": {
"start": {
"line": 24,
"column": 35
},
"end": {
"line": 24,
"column": 49
},
"identifierName": "safeStorageKey"
},
"name": "safeStorageKey"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 647,
"end": 659,
"loc": {
"start": {
"line": 24,
"column": 50
},
"end": {
"line": 24,
"column": 62
}
},
"extra": {
"rawValue": "escshopify",
"raw": "'escshopify'"
},
"value": "escshopify"
},
{
"type": "StringLiteral",
"start": 661,
"end": 693,
"loc": {
"start": {
"line": 24,
"column": 64
},
"end": {
"line": 24,
"column": 96
}
},
"extra": {
"rawValue": "EasyCurrency::Session:currency",
"raw": "'EasyCurrency::Session:currency'"
},
"value": "EasyCurrency::Session:currency"
}
]
},
{
"type": "Identifier",
"start": 696,
"end": 701,
"loc": {
"start": {
"line": 24,
"column": 99
},
"end": {
"line": 24,
"column": 104
},
"identifierName": "value"
},
"name": "value"
}
]
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Records the active currency in the session.\n * @param {null|String}\tvalue - The currency to record, or null to clear.\n ",
"start": 430,
"end": 570,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Methods for persisting the state into the current session.\n ",
"start": 88,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Methods for persisting the state into the current session.\n ",
"start": 88,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * Methods for persisting the state into the current session.\n ",
"start": 88,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Retrieves the active currency from session.\n * @return {undefined|String}\n ",
"start": 194,
"end": 290,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Records the active currency in the session.\n * @param {null|String}\tvalue - The currency to record, or null to clear.\n ",
"start": 430,
"end": 570,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
],
"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": "localStorage",
"start": 7,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 20,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "local-storage-fallback",
"start": 25,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 49,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 49
},
"end": {
"line": 1,
"column": 50
}
}
},
{
"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": 51,
"end": 57,
"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": "utils",
"start": 58,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 64,
"end": 68,
"loc": {
"start": {
"line": 2,
"column": 13
},
"end": {
"line": 2,
"column": 17
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "utils/general",
"start": 69,
"end": 84,
"loc": {
"start": {
"line": 2,
"column": 18
},
"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": 84,
"end": 85,
"loc": {
"start": {
"line": 2,
"column": 33
},
"end": {
"line": 2,
"column": 34
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Methods for persisting the state into the current session.\n ",
"start": 88,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"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": 158,
"end": 164,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 6
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 165,
"end": 172,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 14
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 173,
"end": 178,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Session",
"start": 179,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 187,
"end": 188,
"loc": {
"start": {
"line": 8,
"column": 29
},
"end": {
"line": 8,
"column": 30
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Retrieves the active currency from session.\n * @return {undefined|String}\n ",
"start": 194,
"end": 290,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getCurrency",
"start": 295,
"end": 306,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 306,
"end": 307,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 307,
"end": 308,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 309,
"end": 310,
"loc": {
"start": {
"line": 14,
"column": 18
},
"end": {
"line": 14,
"column": 19
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 319,
"end": 325,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "localStorage",
"start": 326,
"end": 338,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 338,
"end": 339,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getItem",
"start": 339,
"end": 346,
"loc": {
"start": {
"line": 15,
"column": 28
},
"end": {
"line": 15,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 346,
"end": 347,
"loc": {
"start": {
"line": 15,
"column": 35
},
"end": {
"line": 15,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "utils",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 15,
"column": 36
},
"end": {
"line": 15,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 352,
"end": 353,
"loc": {
"start": {
"line": 15,
"column": 41
},
"end": {
"line": 15,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "safeStorageKey",
"start": 353,
"end": 367,
"loc": {
"start": {
"line": 15,
"column": 42
},
"end": {
"line": 15,
"column": 56
}
}
},
{
"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": 15,
"column": 56
},
"end": {
"line": 15,
"column": 57
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "escshopify",
"start": 368,
"end": 380,
"loc": {
"start": {
"line": 15,
"column": 57
},
"end": {
"line": 15,
"column": 69
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 380,
"end": 381,
"loc": {
"start": {
"line": 15,
"column": 69
},
"end": {
"line": 15,
"column": 70
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "EasyCurrency::Session:currency",
"start": 382,
"end": 414,
"loc": {
"start": {
"line": 15,
"column": 71
},
"end": {
"line": 15,
"column": 103
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 414,
"end": 415,
"loc": {
"start": {
"line": 15,
"column": 103
},
"end": {
"line": 15,
"column": 104
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 415,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 104
},
"end": {
"line": 15,
"column": 105
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 416,
"end": 417,
"loc": {
"start": {
"line": 15,
"column": 105
},
"end": {
"line": 15,
"column": 106
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 422,
"end": 423,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Records the active currency in the session.\n * @param {null|String}\tvalue - The currency to record, or null to clear.\n ",
"start": 430,
"end": 570,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "saveCurrency",
"start": 575,
"end": 587,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {