libraries.io 3.4.7 → 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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # libraries.io [![npm version](https://img.shields.io/npm/v/libraries.io.svg)](https://www.npmjs.com/package/libraries.io)
2
2
 
3
- A [libraries.io](https://libraries.io) API client. For a documentation on the API see https://libraries.io/api/.
3
+ A [libraries.io](https://libraries.io) API client. For a documentation on the API see [the libraries.io API reference](https://libraries.io/api/).
4
4
 
5
5
  ### Installation
6
6
 
@@ -51,7 +51,7 @@ class GitHubUserAPI extends APIBase_1.APIBase {
51
51
  */
52
52
  getDependencies(userName, platformOrOptions, options) {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
- const endpoint = Endpoints_1.Endpoint.GitHub.User.contributedRepositories(userName);
54
+ const endpoint = Endpoints_1.Endpoint.GitHub.User.dependencies(userName);
55
55
  let parameters = {};
56
56
  if (platformOrOptions) {
57
57
  if (typeof platformOrOptions === 'string') {
@@ -73,7 +73,7 @@ class GitHubUserAPI extends APIBase_1.APIBase {
73
73
  */
74
74
  getProjects(userName, options) {
75
75
  return __awaiter(this, void 0, void 0, function* () {
76
- const endpoint = Endpoints_1.Endpoint.GitHub.User.repositories(userName);
76
+ const endpoint = Endpoints_1.Endpoint.GitHub.User.projects(userName);
77
77
  const { data } = yield this.apiClient.get(endpoint, { data: options });
78
78
  return data;
79
79
  });
@@ -17,7 +17,7 @@ export declare class ProjectAPI extends APIBase {
17
17
  * @param projectName The project name
18
18
  * @param options Pagination options
19
19
  */
20
- getDependendentRepositories(platform: PlatformType, projectName: string, options?: PaginationOptions): Promise<LibrariesIOResult<Repository[]>>;
20
+ getDependentRepositories(platform: PlatformType, projectName: string, options?: PaginationOptions): Promise<LibrariesIOResult<Repository[]>>;
21
21
  /**
22
22
  * Get packages that have at least one version that depends on a given project.
23
23
  * @see https://libraries.io/api#project-dependents
@@ -25,7 +25,7 @@ export declare class ProjectAPI extends APIBase {
25
25
  * @param projectName The project name
26
26
  * @param options Pagination options
27
27
  */
28
- getDependendents(platform: PlatformType, projectName: string, options?: PaginationOptions): Promise<LibrariesIOResult<Project[]>>;
28
+ getDependents(platform: PlatformType, projectName: string, options?: PaginationOptions): Promise<LibrariesIOResult<Project[]>>;
29
29
  /**
30
30
  * Get information about a package and it's versions.
31
31
  * @see https://libraries.io/api#project
@@ -25,7 +25,7 @@ class ProjectAPI extends APIBase_1.APIBase {
25
25
  */
26
26
  getContributors(platform, projectName, options) {
27
27
  return __awaiter(this, void 0, void 0, function* () {
28
- const endpoint = Endpoints_1.Endpoint.Project.dependents(platform, projectName);
28
+ const endpoint = Endpoints_1.Endpoint.Project.contributors(platform, projectName);
29
29
  const { data } = yield this.apiClient.get(endpoint, { data: options });
30
30
  return data;
31
31
  });
@@ -36,9 +36,9 @@ class ProjectAPI extends APIBase_1.APIBase {
36
36
  * @param projectName The project name
37
37
  * @param options Pagination options
38
38
  */
39
- getDependendentRepositories(platform, projectName, options) {
39
+ getDependentRepositories(platform, projectName, options) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
- const endpoint = Endpoints_1.Endpoint.Project.dependents(platform, projectName);
41
+ const endpoint = Endpoints_1.Endpoint.Project.dependentRepositories(platform, projectName);
42
42
  const { data } = yield this.apiClient.get(endpoint, { data: options });
43
43
  return data;
44
44
  });
@@ -50,7 +50,7 @@ class ProjectAPI extends APIBase_1.APIBase {
50
50
  * @param projectName The project name
51
51
  * @param options Pagination options
52
52
  */
53
- getDependendents(platform, projectName, options) {
53
+ getDependents(platform, projectName, options) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
55
55
  const endpoint = Endpoints_1.Endpoint.Project.dependents(platform, projectName);
56
56
  const { data } = yield this.apiClient.get(endpoint, { data: options });
@@ -104,7 +104,7 @@ class ProjectAPI extends APIBase_1.APIBase {
104
104
  */
105
105
  getUsage(platform, projectName) {
106
106
  return __awaiter(this, void 0, void 0, function* () {
107
- const endpoint = Endpoints_1.Endpoint.Project.sourceRank(platform, projectName);
107
+ const endpoint = Endpoints_1.Endpoint.Project.usage(platform, projectName);
108
108
  const { data } = yield this.apiClient.get(endpoint);
109
109
  return data;
110
110
  });
package/package.json CHANGED
@@ -7,9 +7,9 @@
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.2"
10
+ "typedoc": "0.28.19",
11
+ "typescript": "6.0.3",
12
+ "vitest": "4.1.5"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">= 21"
@@ -37,5 +37,5 @@
37
37
  "dist": "yarn clean && yarn build",
38
38
  "test": "vitest"
39
39
  },
40
- "version": "3.4.7"
40
+ "version": "3.5.0"
41
41
  }