@shortcut-cli/shortcut-cli 3.5.0 → 3.6.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.
@@ -103,7 +103,7 @@ const findEntity = (entities, id) => {
103
103
  if (entities.get(id)) return entities.get(id);
104
104
  if (isNumber(id) && Number(id.toString())) return entities.get(Number(id.toString()));
105
105
  const match = new RegExp(`${id}`, "i");
106
- return Object.values(entities).filter((s) => !!s.name.match(match))[0];
106
+ return Array.from(entities.values()).filter((s) => !!s.name.match(match))[0];
107
107
  };
108
108
  const findProject = (entities, project) => findEntity(entities.projectsById, project);
109
109
  const findGroup = (entities, group) => findEntity(entities.groupsById, group);
@@ -112,7 +112,7 @@ const findEpic = (entities, epicName) => findEntity(entities.epicsById, epicName
112
112
  const findIteration = (entities, iterationName) => findEntity(entities.statesById, iterationName);
113
113
  const findOwnerIds = (entities, owners) => {
114
114
  const ownerMatch = new RegExp(owners.split(",").join("|"), "i");
115
- return Object.values(entities.membersById).filter((m) => !!`${m.id} ${m.profile.name} ${m.profile.mention_name}`.match(ownerMatch)).map((m) => m.id);
115
+ return Array.from(entities.membersById.values()).filter((m) => !!`${m.id} ${m.profile.name} ${m.profile.mention_name}`.match(ownerMatch)).map((m) => m.id);
116
116
  };
117
117
  const findLabelNames = (entities, label) => {
118
118
  const labelMatch = new RegExp(label.split(",").join("|"), "i");
package/build/package.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region package.json
3
- var version = "3.5.0";
3
+ var version = "3.6.0";
4
4
  var description = "A community-driven command line tool for viewing, creating, and updating shortcut.com stories";
5
5
 
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shortcut-cli/shortcut-cli",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "A community-driven command line tool for viewing, creating, and updating shortcut.com stories",
5
5
  "engines": {
6
6
  "node": ">=16"