@enhansome/core 1.10.2 → 1.11.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/github.d.ts CHANGED
@@ -8,8 +8,10 @@ export type GithubClient = InstanceType<typeof HardenedOctokit>;
8
8
  export interface RepoInfoDetails {
9
9
  archived: boolean;
10
10
  description: null | string;
11
+ homepage: null | string;
11
12
  id: number;
12
13
  language: null | string;
14
+ license: null | string;
13
15
  open_issues_count: number;
14
16
  owner: string;
15
17
  pushed_at: null | string;
package/dist/github.js CHANGED
@@ -72,8 +72,10 @@ export async function getRepoInfo(octokit, owner, repo) {
72
72
  return {
73
73
  archived: data.archived,
74
74
  description: data.description ?? null,
75
+ homepage: data.homepage || null,
75
76
  id: data.id,
76
77
  language: data.language,
78
+ license: data.license?.spdx_id ?? null,
77
79
  open_issues_count: data.open_issues_count,
78
80
  owner: data.owner.login,
79
81
  pushed_at: data.pushed_at,
@@ -18,12 +18,17 @@ export interface SortOptions {
18
18
  }
19
19
  export interface RepoInfo {
20
20
  archived: boolean;
21
+ description: null | string;
22
+ homepage: null | string;
21
23
  id: number;
22
24
  language: null | string;
25
+ license: null | string;
23
26
  last_commit: null | string;
27
+ open_issues: number;
24
28
  owner: string;
25
29
  repo: string;
26
30
  stars: number;
31
+ topics: string[];
27
32
  }
28
33
  /** The sole crossing from the API shape to the emitted one, so both agree on the renames. */
29
34
  export declare function toRepoInfo(details: RepoInfoDetails): RepoInfo;
package/dist/markdown.js CHANGED
@@ -11,12 +11,17 @@ import { consoleLog } from './logger.js';
11
11
  export function toRepoInfo(details) {
12
12
  return {
13
13
  archived: details.archived,
14
+ description: details.description,
15
+ homepage: details.homepage,
14
16
  id: details.id,
15
17
  language: details.language,
18
+ license: details.license,
16
19
  last_commit: details.pushed_at,
20
+ open_issues: details.open_issues_count,
17
21
  owner: details.owner,
18
22
  repo: details.repo,
19
23
  stars: details.stargazers_count,
24
+ topics: details.topics,
20
25
  };
21
26
  }
22
27
  // The lookup's single throttled client coordinates rate limits across the whole
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhansome/core",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
4
4
  "description": "Library core for enhansome — enhance markdown with GitHub star counts.",
5
5
  "repository": {
6
6
  "type": "git",