@xcpcio/core 0.46.1 → 0.46.2
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/rating/rating.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -839,7 +839,7 @@ class Rating {
|
|
|
839
839
|
generateTeamId(t) {
|
|
840
840
|
const persons = createPersons(t.members ?? []);
|
|
841
841
|
if (persons.length > 0) {
|
|
842
|
-
return persons.map((person) => person.name).join("|");
|
|
842
|
+
return persons.map((person) => person.name.trim()).sort().join("|");
|
|
843
843
|
}
|
|
844
844
|
return `${t.organization}-${t.name}`;
|
|
845
845
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -806,7 +806,7 @@ class Rating {
|
|
|
806
806
|
generateTeamId(t) {
|
|
807
807
|
const persons = createPersons(t.members ?? []);
|
|
808
808
|
if (persons.length > 0) {
|
|
809
|
-
return persons.map((person) => person.name).join("|");
|
|
809
|
+
return persons.map((person) => person.name.trim()).sort().join("|");
|
|
810
810
|
}
|
|
811
811
|
return `${t.organization}-${t.name}`;
|
|
812
812
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/core",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.2",
|
|
4
4
|
"description": "XCPCIO Core",
|
|
5
5
|
"author": "Dup4 <lyuzhi.pan@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"papaparse": "^5.4.1",
|
|
50
50
|
"string-width": "^6.1.0",
|
|
51
51
|
"xlsx-js-style": "^1.2.0",
|
|
52
|
-
"@xcpcio/types": "0.46.
|
|
52
|
+
"@xcpcio/types": "0.46.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@babel/types": "^7.22.4",
|
package/src/rating/rating.ts
CHANGED
|
@@ -98,7 +98,7 @@ export class Rating {
|
|
|
98
98
|
generateTeamId(t: Team) {
|
|
99
99
|
const persons = createPersons(t.members ?? []);
|
|
100
100
|
if (persons.length > 0) {
|
|
101
|
-
return persons.map(person => person.name).join("|");
|
|
101
|
+
return persons.map(person => person.name.trim()).sort().join("|");
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
return `${t.organization}-${t.name}`;
|