versioncommit 1.0.1 → 1.0.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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  To install `version-commit`, run the following command:
8
8
 
9
9
  ```sh
10
- npm install -g versioncommit
10
+ npm install -g https://github.com/danilosoftwares/versionCommit.git
11
11
  ```
12
12
 
13
13
  This will install the tool globally, allowing you to use it from anywhere in the terminal.
package/lib/commits.js CHANGED
@@ -19,8 +19,7 @@ const getMaxPages = (repo, token, branch) => {
19
19
  try {
20
20
  const linkHeader = res.headers.link;
21
21
  if (!linkHeader) {
22
- console.log("Nenhuma paginação encontrada. Apenas uma página disponível.");
23
- return;
22
+ resolve(1);
24
23
  }
25
24
  const match = linkHeader.match(/&page=(\d+)>; rel="last"/);
26
25
  const totalPages = match ? parseInt(match[1], 10) : 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "versioncommit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "./lib/app.js",
6
6
  "scripts": {
@@ -9,24 +9,7 @@
9
9
  "bin": {
10
10
  "version-commit": "./bin/executor.js"
11
11
  },
12
- "keywords": [
13
- "version",
14
- "commit",
15
- "semantic",
16
- "versioning"
17
- ],
18
12
  "preferGlobal": true,
19
- "author": "Danilo Souza",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/danilosoftwares/versionCommit"
23
- },
24
- "bugs": {
25
- "url": "https://github.com/danilosoftwares/versionCommit/issues"
26
- },
27
- "homepage": "https://github.com/danilosoftwares/versionCommit#readme",
28
- "license": "ISC",
29
- "dependencies": {
30
- "axios": "^1.7.9"
31
- }
13
+ "author": "",
14
+ "license": "ISC"
32
15
  }