@capawesome/cli 2.1.2 → 2.1.3
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 +8 -0
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
## [2.1.3](https://github.com/capawesome-team/cli/compare/v2.1.2...v2.1.3) (2025-08-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* capture only the first argument ([99d3892](https://github.com/capawesome-team/cli/commit/99d3892b99727ac95d3511da6c3dbfd39bad4ee4))
|
|
11
|
+
* do not capture validation errors ([a8b89bc](https://github.com/capawesome-team/cli/commit/a8b89bcae7b9b2698857507a8ef030a6b443d711))
|
|
12
|
+
|
|
5
13
|
## [2.1.2](https://github.com/capawesome-team/cli/compare/v2.1.1...v2.1.2) (2025-08-27)
|
|
6
14
|
|
|
7
15
|
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { defineConfig, processConfig, ZliError } from '@robingenz/zli';
|
|
|
6
6
|
import * as Sentry from '@sentry/node';
|
|
7
7
|
import { AxiosError } from 'axios';
|
|
8
8
|
import consola from 'consola';
|
|
9
|
+
import { ZodError } from 'zod';
|
|
9
10
|
import pkg from '../package.json' with { type: 'json' };
|
|
10
11
|
const config = defineConfig({
|
|
11
12
|
meta: {
|
|
@@ -38,6 +39,10 @@ const captureException = async (error) => {
|
|
|
38
39
|
if (error instanceof ZliError) {
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
42
|
+
// Ignore validation errors
|
|
43
|
+
if (error instanceof ZodError) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
41
46
|
// Ignore failed HTTP requests
|
|
42
47
|
if (error instanceof AxiosError) {
|
|
43
48
|
return;
|
|
@@ -50,7 +55,9 @@ const captureException = async (error) => {
|
|
|
50
55
|
dsn: 'https://19f30f2ec4b91899abc33818568ceb42@o4507446340747264.ingest.de.sentry.io/4508506426966096',
|
|
51
56
|
release: pkg.version,
|
|
52
57
|
});
|
|
53
|
-
|
|
58
|
+
if (process.argv.slice(2).length > 0) {
|
|
59
|
+
Sentry.setTag('cli_command', process.argv.slice(2)[0]);
|
|
60
|
+
}
|
|
54
61
|
Sentry.captureException(error);
|
|
55
62
|
await Sentry.close();
|
|
56
63
|
};
|