@foss.global/codefeed 1.6.4 → 1.7.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_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/index.d.ts +36 -10
- package/dist_ts/index.js +309 -211
- package/dist_ts/interfaces/index.d.ts +1 -0
- package/dist_ts/plugins.d.ts +8 -0
- package/dist_ts/plugins.js +11 -0
- package/package.json +11 -10
- package/readme.md +70 -101
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/index.ts +358 -276
- package/ts/interfaces/index.ts +1 -0
- package/ts/{codefeed.plugins.ts → plugins.ts} +2 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@foss.global/codefeed',
|
|
6
|
-
version: '1.
|
|
6
|
+
version: '1.7.2',
|
|
7
7
|
description: 'The @foss.global/codefeed module is designed for generating feeds from Gitea repositories, enhancing development workflows by processing commit data and repository activities.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx1QkFBdUI7SUFDN0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLGlMQUFpTDtDQUMvTCxDQUFBIn0=
|
package/dist_ts/index.d.ts
CHANGED
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
import * as plugins from './
|
|
1
|
+
import * as plugins from './plugins.js';
|
|
2
2
|
export declare class CodeFeed {
|
|
3
3
|
private baseUrl;
|
|
4
4
|
private token?;
|
|
5
|
-
private npmRegistry;
|
|
6
|
-
private smartxmlInstance;
|
|
7
5
|
private lastRunTimestamp;
|
|
6
|
+
private pageLimit;
|
|
8
7
|
private changelogContent;
|
|
9
|
-
|
|
8
|
+
private npmRegistry;
|
|
9
|
+
private enableCache;
|
|
10
|
+
private cacheWindowMs?;
|
|
11
|
+
private cache;
|
|
12
|
+
private enableNpmCheck;
|
|
13
|
+
private enableTaggedOnly;
|
|
14
|
+
private orgAllowlist?;
|
|
15
|
+
private orgDenylist?;
|
|
16
|
+
private repoAllowlist?;
|
|
17
|
+
private repoDenylist?;
|
|
18
|
+
private untilTimestamp?;
|
|
19
|
+
private verbose?;
|
|
20
|
+
constructor(baseUrl: string, token?: string, lastRunTimestamp?: string, options?: {
|
|
21
|
+
enableCache?: boolean;
|
|
22
|
+
cacheWindowMs?: number;
|
|
23
|
+
enableNpmCheck?: boolean;
|
|
24
|
+
taggedOnly?: boolean;
|
|
25
|
+
orgAllowlist?: string[];
|
|
26
|
+
orgDenylist?: string[];
|
|
27
|
+
repoAllowlist?: string[];
|
|
28
|
+
repoDenylist?: string[];
|
|
29
|
+
untilTimestamp?: string;
|
|
30
|
+
verbose?: boolean;
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Fetch all new commits (since lastRunTimestamp) across all orgs and repos.
|
|
34
|
+
*/
|
|
35
|
+
fetchAllCommitsFromInstance(): Promise<plugins.interfaces.ICommitResult[]>;
|
|
10
36
|
/**
|
|
11
37
|
* Load the changelog directly from the Gitea repository.
|
|
12
38
|
*/
|
|
@@ -21,12 +47,12 @@ export declare class CodeFeed {
|
|
|
21
47
|
* <changes...>
|
|
22
48
|
*/
|
|
23
49
|
private getChangelogForVersion;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
private fetchAllRepositories;
|
|
50
|
+
/**
|
|
51
|
+
* Fetch all tags for a given repo and return the set of tagged commit SHAs
|
|
52
|
+
*/
|
|
28
53
|
private fetchTags;
|
|
54
|
+
private fetchAllOrganizations;
|
|
55
|
+
private fetchRepositoriesForOrg;
|
|
29
56
|
private fetchRecentCommitsForRepo;
|
|
30
|
-
|
|
31
|
-
fetchFunction(urlArg: string, optionsArg: RequestInit): Promise<Response>;
|
|
57
|
+
fetchFunction(urlArg: string, optionsArg?: RequestInit): Promise<Response>;
|
|
32
58
|
}
|