@credal/actions 0.2.104 → 0.2.105

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.
@@ -61,17 +61,17 @@ const searchOrganization = (_a) => __awaiter(void 0, [_a], void 0, function* ({
61
61
  })
62
62
  : [],
63
63
  }));
64
- const commitDetailsWithErrors = yield Promise.all(commitResults.data.items.slice(0, MAX_COMMITS).map(item => {
64
+ const commitDetailsWithErrors = yield Promise.all(commitResults.data.items.slice(0, MAX_COMMITS).map((item) => __awaiter(void 0, void 0, void 0, function* () {
65
65
  // Get the repo details from the commit search result
66
66
  const { owner, name } = item.repository;
67
67
  try {
68
- return octokit.rest.repos.getCommit({ owner: owner.login, repo: name, ref: item.sha });
68
+ return yield octokit.rest.repos.getCommit({ owner: owner.login, repo: name, ref: item.sha });
69
69
  }
70
70
  catch (error) {
71
71
  console.error(`Error fetching commit ${item.sha} in ${owner.login}/${name}:`, error);
72
72
  return null;
73
73
  }
74
- }));
74
+ })));
75
75
  const commitDetails = commitDetailsWithErrors.filter(c => c !== null);
76
76
  const enrichedCommits = commitResults.data.items.slice(0, MAX_COMMITS).map(item => {
77
77
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.104",
3
+ "version": "0.2.105",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,