@capawesome/cli 3.0.0 → 3.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/CHANGELOG.md +12 -0
- package/dist/commands/login.js +2 -0
- package/dist/utils/error.js +0 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.1.0](https://github.com/capawesome-team/cli/compare/v3.0.0...v3.1.0) (2025-09-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **login:** provide token creation info ([37bb72d](https://github.com/capawesome-team/cli/commit/37bb72da29036daf9cabcc761a8edb811bc6e50a))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **utils:** remove 403 status message ([#82](https://github.com/capawesome-team/cli/issues/82)) ([c1637d3](https://github.com/capawesome-team/cli/commit/c1637d33dd30e3940e99a2523d137ff2228b710b))
|
|
16
|
+
|
|
5
17
|
## [3.0.0](https://github.com/capawesome-team/cli/compare/v2.1.5...v3.0.0) (2025-09-11)
|
|
6
18
|
|
|
7
19
|
|
package/dist/commands/login.js
CHANGED
|
@@ -63,6 +63,8 @@ export default defineCommand({
|
|
|
63
63
|
sessionIdOrToken = sessionId;
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
+
consola.info(`You can create a token at ${consoleBaseUrl}/settings/tokens.`);
|
|
67
|
+
// Prompt the user to enter their token
|
|
66
68
|
sessionIdOrToken = await prompt('Please provide your authentication token:', {
|
|
67
69
|
type: 'text',
|
|
68
70
|
});
|
package/dist/utils/error.js
CHANGED
|
@@ -25,9 +25,6 @@ const getErrorMessageFromAxiosError = (error) => {
|
|
|
25
25
|
else if (error.response?.status === 401) {
|
|
26
26
|
message = 'Your token is no longer valid. Please sign in again.';
|
|
27
27
|
}
|
|
28
|
-
else if (error.response?.status === 403) {
|
|
29
|
-
message = 'You do not have permission to access this resource.';
|
|
30
|
-
}
|
|
31
28
|
else if (error.response?.status === 500) {
|
|
32
29
|
message = 'An internal server error has occurred. Please try again later.';
|
|
33
30
|
}
|