libraries.io 3.4.6 → 3.5.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/Endpoints.d.ts +45 -0
  3. package/dist/Endpoints.js +95 -0
  4. package/dist/LibrariesIO.d.ts +18 -0
  5. package/dist/LibrariesIO.js +64 -0
  6. package/dist/api/APIBase.d.ts +18 -0
  7. package/dist/api/APIBase.js +30 -0
  8. package/dist/api/GitHub/GitHubRepositoryAPI.d.ts +28 -0
  9. package/dist/api/GitHub/GitHubRepositoryAPI.js +60 -0
  10. package/dist/api/GitHub/GitHubUserAPI.d.ts +42 -0
  11. package/dist/api/GitHub/GitHubUserAPI.js +107 -0
  12. package/dist/api/GitHub/index.d.ts +2 -0
  13. package/dist/api/GitHub/index.js +18 -0
  14. package/dist/api/PlatformAPI.d.ts +12 -0
  15. package/dist/api/PlatformAPI.js +32 -0
  16. package/dist/api/ProjectAPI.d.ts +64 -0
  17. package/dist/api/ProjectAPI.js +127 -0
  18. package/dist/api/UserAPI.d.ts +42 -0
  19. package/dist/api/UserAPI.js +86 -0
  20. package/dist/api/index.d.ts +4 -0
  21. package/dist/api/index.js +20 -0
  22. package/dist/index.d.ts +3 -0
  23. package/dist/index.js +19 -0
  24. package/dist/interfaces/API.d.ts +10 -0
  25. package/dist/interfaces/API.js +2 -0
  26. package/dist/interfaces/Contributor.d.ts +19 -0
  27. package/dist/interfaces/Contributor.js +2 -0
  28. package/dist/interfaces/LibrariesIOHeaders.d.ts +8 -0
  29. package/dist/interfaces/LibrariesIOHeaders.js +2 -0
  30. package/dist/interfaces/Options.d.ts +31 -0
  31. package/dist/interfaces/Options.js +2 -0
  32. package/dist/interfaces/Platform.d.ts +7 -0
  33. package/dist/interfaces/Platform.js +2 -0
  34. package/dist/interfaces/Project.d.ts +57 -0
  35. package/dist/interfaces/Project.js +2 -0
  36. package/dist/interfaces/Repository.d.ts +49 -0
  37. package/dist/interfaces/Repository.js +2 -0
  38. package/dist/interfaces/Subscription.d.ts +7 -0
  39. package/dist/interfaces/Subscription.js +2 -0
  40. package/dist/interfaces/index.d.ts +8 -0
  41. package/dist/interfaces/index.js +24 -0
  42. package/package.json +7 -6
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProjectAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class ProjectAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * Get users that have contributed to a given project.
21
+ * @see https://libraries.io/api#project-contributors
22
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
23
+ * @param projectName The project name
24
+ * @param options Pagination options
25
+ */
26
+ getContributors(platform, projectName, options) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ const endpoint = Endpoints_1.Endpoint.Project.contributors(platform, projectName);
29
+ const { data } = yield this.apiClient.get(endpoint, { data: options });
30
+ return data;
31
+ });
32
+ }
33
+ /**
34
+ * Get repositories that depend on a given project.
35
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
36
+ * @param projectName The project name
37
+ * @param options Pagination options
38
+ */
39
+ getDependentRepositories(platform, projectName, options) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const endpoint = Endpoints_1.Endpoint.Project.dependentRepositories(platform, projectName);
42
+ const { data } = yield this.apiClient.get(endpoint, { data: options });
43
+ return data;
44
+ });
45
+ }
46
+ /**
47
+ * Get packages that have at least one version that depends on a given project.
48
+ * @see https://libraries.io/api#project-dependents
49
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
50
+ * @param projectName The project name
51
+ * @param options Pagination options
52
+ */
53
+ getDependents(platform, projectName, options) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const endpoint = Endpoints_1.Endpoint.Project.dependents(platform, projectName);
56
+ const { data } = yield this.apiClient.get(endpoint, { data: options });
57
+ return data;
58
+ });
59
+ }
60
+ /**
61
+ * Get information about a package and it's versions.
62
+ * @see https://libraries.io/api#project
63
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
64
+ * @param projectName The project name
65
+ */
66
+ getProject(platform, projectName) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const endpoint = Endpoints_1.Endpoint.Project.project(platform, projectName);
69
+ const { data } = yield this.apiClient.get(endpoint);
70
+ return data;
71
+ });
72
+ }
73
+ /**
74
+ * Get a list of dependencies for a version of a project, pass `latest` as version to get dependency info for the latest available version
75
+ * @see https://libraries.io/api#project-dependencies
76
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
77
+ * @param projectName The project name
78
+ * @param projectVersion
79
+ */
80
+ getProjectWithDependencies(platform, projectName, projectVersion) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ const endpoint = Endpoints_1.Endpoint.Project.dependencies(platform, projectName, projectVersion);
83
+ const { data } = yield this.apiClient.get(endpoint);
84
+ return data;
85
+ });
86
+ }
87
+ /**
88
+ * Get breakdown of SourceRank score for a given project.
89
+ * @see https://libraries.io/api#project-sourcerank
90
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
91
+ * @param projectName The project name
92
+ */
93
+ getSourceRank(platform, projectName) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const endpoint = Endpoints_1.Endpoint.Project.sourceRank(platform, projectName);
96
+ const { data } = yield this.apiClient.get(endpoint);
97
+ return data;
98
+ });
99
+ }
100
+ /**
101
+ * Get breakdown of version usage for a given project.
102
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
103
+ * @param projectName The project name
104
+ */
105
+ getUsage(platform, projectName) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const endpoint = Endpoints_1.Endpoint.Project.usage(platform, projectName);
108
+ const { data } = yield this.apiClient.get(endpoint);
109
+ return data;
110
+ });
111
+ }
112
+ /**
113
+ * Search for projects.
114
+ * @see https://libraries.io/api#project-search
115
+ * @param query The search query
116
+ * @param options Sorting, filter and pagination options
117
+ */
118
+ search(query, options) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const endpoint = Endpoints_1.Endpoint.Project.search();
121
+ // eslint-disable-next-line id-length
122
+ const { data } = yield this.apiClient.get(endpoint, { data: Object.assign(Object.assign({}, options), { q: query }) });
123
+ return data;
124
+ });
125
+ }
126
+ }
127
+ exports.ProjectAPI = ProjectAPI;
@@ -0,0 +1,42 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, LibrariesIOHeaders, LibrariesIOResult, PaginationOptions, PlatformType, PreReleaseOptions, Subscription } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class UserAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * List packages that a user is subscribed to recieved notifications about new releases.
8
+ * @see https://libraries.io/api#subscriptions-index
9
+ * @param options Pagination options
10
+ */
11
+ getAllSubscriptions(options?: PaginationOptions): Promise<LibrariesIOResult<Subscription[]>>;
12
+ /**
13
+ * Check if a users is subscribed to receive notifications about new releases of a project.
14
+ * @see https://libraries.io/api#subscriptions-show
15
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
16
+ * @param projectName The project name
17
+ */
18
+ getSubscription(platform: PlatformType, projectName: string): Promise<LibrariesIOResult<null | Subscription>>;
19
+ /**
20
+ * Subscribe to receive notifications about new releases of a project.
21
+ * @see https://libraries.io/api#subscriptions-create
22
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
23
+ * @param projectName The project name
24
+ * @param options Subscription options
25
+ */
26
+ subscribe(platform: PlatformType, projectName: string, options?: PreReleaseOptions): Promise<LibrariesIOResult<Subscription>>;
27
+ /**
28
+ * Stop receiving release notifications from a project.
29
+ * @see https://libraries.io/api#subscriptions-destroy
30
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
31
+ * @param projectName The project name
32
+ */
33
+ unsubscribe(platform: PlatformType, projectName: string): Promise<LibrariesIOHeaders>;
34
+ /**
35
+ * Update the options for a subscription.
36
+ * @see https://libraries.io/api#subscriptions-update
37
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
38
+ * @param projectName The project name
39
+ * @param options Subscription options
40
+ */
41
+ updateSubscription(platform: PlatformType, projectName: string, options?: PreReleaseOptions): Promise<LibrariesIOResult<Subscription>>;
42
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UserAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class UserAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * List packages that a user is subscribed to recieved notifications about new releases.
21
+ * @see https://libraries.io/api#subscriptions-index
22
+ * @param options Pagination options
23
+ */
24
+ getAllSubscriptions(options) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const endpoint = Endpoints_1.Endpoint.subscriptions();
27
+ const { data } = yield this.apiClient.get(endpoint, { data: options });
28
+ return data;
29
+ });
30
+ }
31
+ /**
32
+ * Check if a users is subscribed to receive notifications about new releases of a project.
33
+ * @see https://libraries.io/api#subscriptions-show
34
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
35
+ * @param projectName The project name
36
+ */
37
+ getSubscription(platform, projectName) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const endpoint = Endpoints_1.Endpoint.subscriptions(platform, projectName);
40
+ const { data } = yield this.apiClient.get(endpoint);
41
+ return data;
42
+ });
43
+ }
44
+ /**
45
+ * Subscribe to receive notifications about new releases of a project.
46
+ * @see https://libraries.io/api#subscriptions-create
47
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
48
+ * @param projectName The project name
49
+ * @param options Subscription options
50
+ */
51
+ subscribe(platform, projectName, options) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const endpoint = Endpoints_1.Endpoint.subscriptions(platform, projectName);
54
+ const { data } = yield this.apiClient.post(endpoint, { data: options });
55
+ return data;
56
+ });
57
+ }
58
+ /**
59
+ * Stop receiving release notifications from a project.
60
+ * @see https://libraries.io/api#subscriptions-destroy
61
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
62
+ * @param projectName The project name
63
+ */
64
+ unsubscribe(platform, projectName) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const endpoint = Endpoints_1.Endpoint.subscriptions(platform, projectName);
67
+ const { data } = yield this.apiClient.delete(endpoint);
68
+ return data;
69
+ });
70
+ }
71
+ /**
72
+ * Update the options for a subscription.
73
+ * @see https://libraries.io/api#subscriptions-update
74
+ * @param platform The project platform (e.g. "npm", "cargo", ...)
75
+ * @param projectName The project name
76
+ * @param options Subscription options
77
+ */
78
+ updateSubscription(platform, projectName, options) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const endpoint = Endpoints_1.Endpoint.subscriptions(platform, projectName);
81
+ const { data } = yield this.apiClient.put(endpoint, { data: options });
82
+ return data;
83
+ });
84
+ }
85
+ }
86
+ exports.UserAPI = UserAPI;
@@ -0,0 +1,4 @@
1
+ export * from './GitHub/';
2
+ export * from './PlatformAPI';
3
+ export * from './ProjectAPI';
4
+ export * from './UserAPI';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GitHub/"), exports);
18
+ __exportStar(require("./PlatformAPI"), exports);
19
+ __exportStar(require("./ProjectAPI"), exports);
20
+ __exportStar(require("./UserAPI"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './api/';
2
+ export * from './interfaces/';
3
+ export * from './LibrariesIO';
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api/"), exports);
18
+ __exportStar(require("./interfaces/"), exports);
19
+ __exportStar(require("./LibrariesIO"), exports);
@@ -0,0 +1,10 @@
1
+ import { GitHubRepositoryAPI, GitHubUserAPI, PlatformAPI, ProjectAPI, UserAPI } from '../api/';
2
+ export interface API {
3
+ github: {
4
+ repository: GitHubRepositoryAPI;
5
+ user: GitHubUserAPI;
6
+ };
7
+ platform: PlatformAPI;
8
+ project: ProjectAPI;
9
+ user: UserAPI;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ export interface Contributor {
2
+ bio: null | string;
3
+ blog: null | string;
4
+ company: null | string;
5
+ created_at: string;
6
+ email: null | string;
7
+ followers: null | number;
8
+ following: null | number;
9
+ github_id: string;
10
+ hidden: boolean;
11
+ host_type: string;
12
+ last_synced_at: string;
13
+ location: null | string;
14
+ login: string;
15
+ name: string;
16
+ updated_at: string;
17
+ user_type: string;
18
+ uuid: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface LibrariesIOHeaders {
2
+ rateLimit: number;
3
+ rateLimitRemaining: number;
4
+ totalResults?: number;
5
+ }
6
+ export interface LibrariesIOResult<T> extends LibrariesIOHeaders {
7
+ data: T;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ export interface ClientOptions {
2
+ apiKey: string;
3
+ apiUrl?: string;
4
+ }
5
+ export interface FilterOptions {
6
+ keywords?: string[];
7
+ languages?: string[];
8
+ licenses?: string[];
9
+ platforms?: PlatformType[];
10
+ }
11
+ export type HttpMethod = 'delete' | 'get' | 'post' | 'put';
12
+ export interface PaginationOptions {
13
+ page?: number;
14
+ per_page?: number;
15
+ }
16
+ export type PlatformType = 'alcatraz' | 'atom' | 'bower' | 'cargo' | 'carthage' | 'clojars' | 'cocoapods' | 'cpan' | 'cran' | 'dub' | 'elm' | 'emacs' | 'go' | 'hackage' | 'haxelib' | 'hex' | 'homebrew' | 'inqlude' | 'julia' | 'maven' | 'meteor' | 'nimble' | 'npm' | 'nuget' | 'packagist' | 'platformio' | 'pub' | 'puppet' | 'purescript' | 'pypi' | 'racket' | 'rubygems' | 'sublime' | 'swiftpm' | 'wordpress';
17
+ export interface PreReleaseOptions {
18
+ includePreRelease?: boolean;
19
+ }
20
+ export interface RequestOptions extends PreReleaseOptions, SearchOptions {
21
+ api_key?: string;
22
+ platform?: PlatformType;
23
+ /** query */
24
+ q?: string;
25
+ }
26
+ export interface SearchOptions extends PaginationOptions {
27
+ filter?: FilterOptions;
28
+ /** sort by */
29
+ sort?: SortType;
30
+ }
31
+ export type SortType = 'contributions_count' | 'created_at' | 'dependent_repos_count' | 'dependents_count' | 'latest_release_published_at' | 'rank' | 'stars';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface Platform {
2
+ color: string;
3
+ default_language: string;
4
+ homepage: null | string;
5
+ name: string;
6
+ project_count: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,57 @@
1
+ import type { PlatformType } from './Options';
2
+ export interface Project {
3
+ dependent_repos_count: number;
4
+ dependents_count: number;
5
+ description: null | string;
6
+ forks: number;
7
+ homepage: null | string;
8
+ keywords: string[];
9
+ language: string;
10
+ latest_download_url: string;
11
+ latest_release_number: string;
12
+ latest_release_published_at: string;
13
+ latest_stable_release: ProjectRelease;
14
+ name: string;
15
+ normalized_licenses: string[];
16
+ package_manager_url: string;
17
+ platform: string;
18
+ rank: number;
19
+ repository_url: null | string;
20
+ stars: number;
21
+ status: null | string;
22
+ versions: ProjectVersion[];
23
+ }
24
+ export interface ProjectDependency {
25
+ deprecated: boolean;
26
+ filepath: null | string;
27
+ kind: 'Development' | 'Optional' | 'runtime';
28
+ latest: string;
29
+ latest_stable: string;
30
+ name: string;
31
+ outdated: boolean;
32
+ platform: PlatformType;
33
+ project_name: string;
34
+ requirements: string;
35
+ }
36
+ export interface ProjectRelease {
37
+ created_at: string;
38
+ id: number;
39
+ number: string;
40
+ project_id: number;
41
+ published_at: string;
42
+ runtime_dependencies_count: null | number;
43
+ updated_at: string;
44
+ }
45
+ export interface ProjectUsage {
46
+ [version: string]: number;
47
+ }
48
+ export interface ProjectVersion {
49
+ number: string;
50
+ published_at: string;
51
+ }
52
+ export interface ProjectWithDependencies extends Project {
53
+ dependencies: ProjectDependency[];
54
+ dependencies_for_version: string;
55
+ dependent_repos_count: number;
56
+ dependents_count: number;
57
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,49 @@
1
+ import type { ProjectDependency } from '../interfaces/Project';
2
+ export interface Repository {
3
+ contributions_count: null | number;
4
+ created_at: string;
5
+ default_branch: string;
6
+ description: string;
7
+ fork: false;
8
+ fork_policy: null | string;
9
+ forks_count: number;
10
+ full_name: string;
11
+ github_contributions_count: number;
12
+ github_id: string;
13
+ has_audit: null | string;
14
+ has_changelog: null | string;
15
+ has_coc: null | string;
16
+ has_contributing: null | string;
17
+ has_issues: boolean;
18
+ has_license: null | string;
19
+ has_pages: boolean;
20
+ has_readme: null | string;
21
+ has_threat_model: null | string;
22
+ has_wiki: boolean;
23
+ homepage: string;
24
+ host_domain: null | string;
25
+ host_type: string;
26
+ keywords: string[];
27
+ language: string;
28
+ last_synced_at: string;
29
+ license: string;
30
+ logo_url: null | string;
31
+ mirror_url: null | string;
32
+ name: null | string;
33
+ open_issues_count: number;
34
+ private: boolean;
35
+ pull_requests_enabled: null | string;
36
+ pushed_at: string;
37
+ rank: number;
38
+ scm: string;
39
+ size: number;
40
+ source_name: null | string;
41
+ stargazers_count: number;
42
+ status: null | string;
43
+ subscribers_count: number;
44
+ updated_at: string;
45
+ uuid: string;
46
+ }
47
+ export interface RepositoryWithDependencies extends Repository {
48
+ dependencies: ProjectDependency[];
49
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type { Project } from './Project';
2
+ export interface Subscription {
3
+ created_at: string;
4
+ include_prerelease: boolean;
5
+ project: Project;
6
+ updated_at: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from './API';
2
+ export * from './Contributor';
3
+ export * from './LibrariesIOHeaders';
4
+ export * from './Options';
5
+ export * from './Platform';
6
+ export * from './Project';
7
+ export * from './Repository';
8
+ export * from './Subscription';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./API"), exports);
18
+ __exportStar(require("./Contributor"), exports);
19
+ __exportStar(require("./LibrariesIOHeaders"), exports);
20
+ __exportStar(require("./Options"), exports);
21
+ __exportStar(require("./Platform"), exports);
22
+ __exportStar(require("./Project"), exports);
23
+ __exportStar(require("./Repository"), exports);
24
+ __exportStar(require("./Subscription"), exports);
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {
4
- "@ffflorian/api-client": "2.5.0"
4
+ "@ffflorian/api-client": "2.5.1"
5
5
  },
6
6
  "description": "A libraries.io API client",
7
7
  "devDependencies": {
8
8
  "@types/node": "~24",
9
9
  "rimraf": "6.1.3",
10
- "typedoc": "0.28.18",
11
- "typescript": "6.0.2",
12
- "vitest": "4.1.0"
10
+ "typedoc": "0.28.19",
11
+ "typescript": "6.0.3",
12
+ "vitest": "4.1.5"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">= 21"
@@ -30,11 +30,12 @@
30
30
  "readme": "https://github.com/ffflorian/api-clients#readme",
31
31
  "repository": "https://github.com/ffflorian/api-clients.git",
32
32
  "scripts": {
33
+ "build": "yarn build:ts",
33
34
  "build:ts": "tsc -p tsconfig.build.json",
34
35
  "build:docs": "typedoc --tsconfig tsconfig.build.json --options ../../typedoc.json --out ../../docs/packages/libraries.io src/index.ts",
35
36
  "clean": "rimraf dist",
36
- "dist": "yarn clean && yarn build:ts",
37
+ "dist": "yarn clean && yarn build",
37
38
  "test": "vitest"
38
39
  },
39
- "version": "3.4.6"
40
+ "version": "3.5.0"
40
41
  }