@xcpcio/core 0.71.1 → 0.72.0

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/dist/index.cjs CHANGED
@@ -837,8 +837,12 @@ function createTeam(teamJSON) {
837
837
  t.organization = teamJSON.organization ?? "";
838
838
  t.group = ___default.cloneDeep(teamJSON.group ?? []);
839
839
  t.tag = ___default.cloneDeep(teamJSON.tag ?? []);
840
- t.coaches = createPersons(teamJSON.coach);
841
840
  t.members = createPersons(teamJSON.members);
841
+ if (teamJSON.coach) {
842
+ t.coaches = createPersons(teamJSON.coach);
843
+ } else {
844
+ t.coaches = createPersons(teamJSON.coaches);
845
+ }
842
846
  if (Boolean(teamJSON.official) === true) {
843
847
  t.group.push("official");
844
848
  }
package/dist/index.mjs CHANGED
@@ -806,8 +806,12 @@ function createTeam(teamJSON) {
806
806
  t.organization = teamJSON.organization ?? "";
807
807
  t.group = _.cloneDeep(teamJSON.group ?? []);
808
808
  t.tag = _.cloneDeep(teamJSON.tag ?? []);
809
- t.coaches = createPersons(teamJSON.coach);
810
809
  t.members = createPersons(teamJSON.members);
810
+ if (teamJSON.coach) {
811
+ t.coaches = createPersons(teamJSON.coach);
812
+ } else {
813
+ t.coaches = createPersons(teamJSON.coaches);
814
+ }
811
815
  if (Boolean(teamJSON.official) === true) {
812
816
  t.group.push("official");
813
817
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xcpcio/core",
3
3
  "type": "module",
4
- "version": "0.71.1",
4
+ "version": "0.72.0",
5
5
  "description": "The core library for XCPCIO",
6
6
  "author": "Dup4 <hi@dup4.com>",
7
7
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "papaparse": "^5.5.3",
43
43
  "string-width": "^8.1.0",
44
44
  "xlsx-js-style": "^1.2.0",
45
- "@xcpcio/types": "0.71.1"
45
+ "@xcpcio/types": "0.72.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@babel/types": "^7.28.5",