@shakerquiz/utilities 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "0.5.6",
4
+ "version": "0.5.8",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "scripts": {
@@ -36,7 +36,7 @@ export var CityAffilationTextColor = {
36
36
  }
37
37
 
38
38
  /** @type {Record<CityAffilation, Icon>} */
39
- export var CityAffilation = {
39
+ export var CityAffilationIcon = {
40
40
  [CityAffilation.Branch]: 'hero/outline/building-office-2',
41
41
  [CityAffilation.Franchise]: 'hero/outline/building-storefront',
42
42
  }
@@ -61,12 +61,12 @@ export var getCityAffilation = value => {
61
61
  switch (typeof value) {
62
62
  case 'object':
63
63
  let found = CityAffilationShapes
64
- .find(([, object]) => object.is_franchise === value.is_reserve)
64
+ .find(([, object]) => object.is_franchise === value.is_franchise)
65
65
  ?.at(0)
66
66
 
67
67
  if (!CityAffilations.includes(found))
68
68
  throw TypeError(
69
- `[Function: getCityAffilation] Parameter 'found': '${found}' must be a member of 'Lineups'.`,
69
+ `[Function: getCityAffilation] Parameter 'found': '${found}' must be a member of 'CityAffilations'.`,
70
70
  )
71
71
 
72
72
  return found
@@ -74,7 +74,7 @@ export var getCityAffilation = value => {
74
74
  case 'string':
75
75
  if (!CityAffilations.includes(value))
76
76
  throw TypeError(
77
- `[Function: getCityAffilation] Parameter 'value': '${value}' must be a member of 'Lineups'.`,
77
+ `[Function: getCityAffilation] Parameter 'value': '${value}' must be a member of 'CityAffilations'.`,
78
78
  )
79
79
 
80
80
  return CityAffilationShape[value]