@aag1999/plugin-github-trending-common 0.1.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/index.cjs.js +3 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Time window on github.com/trending. */
|
|
2
|
+
type TrendingSince = 'daily' | 'weekly' | 'monthly';
|
|
3
|
+
/** One repository row from GitHub Trending. */
|
|
4
|
+
type TrendingRepository = {
|
|
5
|
+
rank: number;
|
|
6
|
+
owner: string;
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
language?: string;
|
|
11
|
+
stars: number;
|
|
12
|
+
forks: number;
|
|
13
|
+
starsInPeriod: number;
|
|
14
|
+
periodLabel: string;
|
|
15
|
+
};
|
|
16
|
+
type TrendingQuery = {
|
|
17
|
+
since?: TrendingSince;
|
|
18
|
+
language?: string;
|
|
19
|
+
spokenLanguageCode?: string;
|
|
20
|
+
};
|
|
21
|
+
type TrendingResponse = {
|
|
22
|
+
fetchedAt: string;
|
|
23
|
+
since: TrendingSince;
|
|
24
|
+
language?: string;
|
|
25
|
+
spokenLanguageCode?: string;
|
|
26
|
+
sourceUrl: string;
|
|
27
|
+
repositories: TrendingRepository[];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { TrendingQuery, TrendingRepository, TrendingResponse, TrendingSince };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aag1999/plugin-github-trending-common",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared types for the GitHub Trending Backstage plugin",
|
|
5
|
+
"backstage": {
|
|
6
|
+
"role": "common-library",
|
|
7
|
+
"pluginId": "github-trending",
|
|
8
|
+
"pluginPackages": [
|
|
9
|
+
"@aag1999/plugin-github-trending",
|
|
10
|
+
"@aag1999/plugin-github-trending-backend",
|
|
11
|
+
"@aag1999/plugin-github-trending-common"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/trending",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/AAG1999/backstage-plugin-github-trending",
|
|
21
|
+
"directory": "plugins/github-trending-common"
|
|
22
|
+
},
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"main": "./dist/index.cjs.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "backstage-cli package build",
|
|
31
|
+
"clean": "backstage-cli package clean",
|
|
32
|
+
"lint": "backstage-cli package lint",
|
|
33
|
+
"prepack": "backstage-cli package prepack",
|
|
34
|
+
"postpack": "backstage-cli package postpack",
|
|
35
|
+
"test": "backstage-cli package test"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@backstage/cli": "^0.36.5"
|
|
39
|
+
},
|
|
40
|
+
"typesVersions": {
|
|
41
|
+
"*": {
|
|
42
|
+
"package.json": [
|
|
43
|
+
"package.json"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"module": "./dist/index.esm.js"
|
|
48
|
+
}
|