@foss.global/codefeed 1.8.0 → 1.10.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/ts/index.ts CHANGED
@@ -1,4 +1,11 @@
1
1
  import * as plugins from './plugins.js';
2
+ import { CodeFeedProviderCompletenessError } from './classes.errors.js';
3
+
4
+ export { CodeFeedProviderCompletenessError } from './classes.errors.js';
5
+ export { CodeFeedGitManagerProvider } from './classes.gitmanagerprovider.js';
6
+ export type { ICodeFeedGitManagerProviderOptions } from './classes.gitmanagerprovider.js';
7
+ export { GitManagerPublicReadClient } from './classes.gitmanagerpublicclient.js';
8
+ export type { IGitManagerPublicReadClientOptions } from './classes.gitmanagerpublicclient.js';
2
9
 
3
10
  export class CodeFeed {
4
11
  private baseUrl: string;
@@ -118,6 +125,9 @@ export class CodeFeed {
118
125
  );
119
126
  return { owner, name, commits };
120
127
  } catch (e: any) {
128
+ if (e instanceof CodeFeedProviderCompletenessError) {
129
+ throw e;
130
+ }
121
131
  console.error(`Failed to fetch commits for ${owner}/${name}:`, e.message);
122
132
  return { owner, name, commits: [] };
123
133
  }
@@ -145,6 +155,9 @@ export class CodeFeed {
145
155
  taggedShas = tagInfo.shas;
146
156
  tagNameBySha = tagInfo.map;
147
157
  } catch (e: any) {
158
+ if (e instanceof CodeFeedProviderCompletenessError) {
159
+ throw e;
160
+ }
148
161
  console.error(`Failed to fetch tags for ${owner}/${name}:`, e.message);
149
162
  taggedShas = new Set<string>();
150
163
  tagNameBySha = new Map<string, string>();
package/ts/plugins.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type * as fossInterfaces from '@foss.global/interfaces';
2
+
1
3
  // module
2
4
  import * as interfaces from './interfaces/index.js';
3
5
 
@@ -6,10 +8,17 @@ export {
6
8
  }
7
9
 
8
10
  // @push.rocks
9
- import * as smarttime from '@push.rocks/smarttime';
10
11
  import * as lik from '@push.rocks/lik';
12
+ import * as smarttime from '@push.rocks/smarttime';
11
13
 
14
+ export type { fossInterfaces };
12
15
  export type TNpmRegistry = import('@push.rocks/smartnpm').NpmRegistry;
16
+ export type TGitManager = import('@foss.global/gitmanager').GitManager;
17
+ export type TGitManagerCommitSummary = import('@foss.global/gitmanager').IGitManagerCommitSummary;
18
+ export type TGitManagerRepositoryInfo = import('@foss.global/gitmanager').IGitManagerRepositoryInfo;
19
+ export type TGitManagerTreeEntry = import('@foss.global/gitmanager').IGitManagerTreeEntry;
20
+ export type TGitManagerTag = import('@foss.global/gitmanager').IGitManagerTag;
21
+ export type TGitManagerDiff = import('@foss.global/gitmanager').IGitManagerDiff;
13
22
 
14
23
  export const getSmartnpm = async () => import('@push.rocks/smartnpm');
15
24