@theholocron/sentry-client 1.31.0 → 1.32.1
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/dist/index.d.mts +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@theholocron/http-client";
|
|
2
2
|
import { ErrorSink, Logger } from "@theholocron/observability/core";
|
|
3
|
-
//#region src/utils.d.ts
|
|
3
|
+
//#region ../../../../../src/utils.d.ts
|
|
4
4
|
interface SentryClientOptions {
|
|
5
5
|
token: string;
|
|
6
6
|
/** Override base URL for testing. Defaults to https://sentry.io/api/0 */
|
|
@@ -13,14 +13,14 @@ interface SentryClientOptions {
|
|
|
13
13
|
errors?: ErrorSink;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region src/auth/auth.d.ts
|
|
16
|
+
//#region ../../../../../src/auth/auth.d.ts
|
|
17
17
|
interface SentryOrganization {
|
|
18
18
|
id: string;
|
|
19
19
|
slug: string;
|
|
20
20
|
name: string;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region src/projects/projects.d.ts
|
|
23
|
+
//#region ../../../../../src/projects/projects.d.ts
|
|
24
24
|
interface SentryProject {
|
|
25
25
|
id: string;
|
|
26
26
|
slug: string;
|
|
@@ -45,7 +45,7 @@ interface CreateSentryProjectInput {
|
|
|
45
45
|
platform?: string;
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region src/index.d.ts
|
|
48
|
+
//#region ../../../../../src/index.d.ts
|
|
49
49
|
declare function createSentryClient(opts: SentryClientOptions): {
|
|
50
50
|
auth: {
|
|
51
51
|
organizations: () => Promise<SentryOrganization[]>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRestClient } from "@theholocron/http-client";
|
|
2
|
-
//#region src/auth/auth.ts
|
|
2
|
+
//#region ../../../../../src/auth/auth.ts
|
|
3
3
|
function auth(rest) {
|
|
4
4
|
return {
|
|
5
5
|
/** List all organizations accessible with the current token. */
|
|
@@ -9,7 +9,7 @@ function auth(rest) {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region src/projects/projects.ts
|
|
12
|
+
//#region ../../../../../src/projects/projects.ts
|
|
13
13
|
function projects(rest) {
|
|
14
14
|
return {
|
|
15
15
|
/** List all projects in an org. */
|
|
@@ -32,7 +32,7 @@ function projects(rest) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region src/utils.ts
|
|
35
|
+
//#region ../../../../../src/utils.ts
|
|
36
36
|
function createSentryRestClient(opts) {
|
|
37
37
|
return createRestClient({
|
|
38
38
|
baseUrl: opts.baseUrl ?? "https://sentry.io/api/0",
|
|
@@ -44,7 +44,7 @@ function createSentryRestClient(opts) {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region src/index.ts
|
|
47
|
+
//#region ../../../../../src/index.ts
|
|
48
48
|
function createSentryClient(opts) {
|
|
49
49
|
const rest = createSentryRestClient(opts);
|
|
50
50
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/sentry-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"description": "A TypeScript client for the Sentry management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sentry",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@theholocron/observability": "^0.3.0",
|
|
36
|
-
"@theholocron/http-client": "^1.
|
|
36
|
+
"@theholocron/http-client": "^1.32.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
39
|
+
"@theholocron/cli": "5.0.0-alpha.79",
|
|
40
40
|
"@theholocron/eslint-config": "^8.4.3",
|
|
41
41
|
"@theholocron/tsconfig": "^8.2.0",
|
|
42
|
-
"@theholocron/tsdown-config": "^8.
|
|
42
|
+
"@theholocron/tsdown-config": "^8.6.1",
|
|
43
43
|
"@theholocron/vitest-config": "^8.2.0",
|
|
44
44
|
"@types/node": "^26.4.1",
|
|
45
45
|
"@vitest/coverage-v8": "^5.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"releases": "https://github.com/theholocron/clients/releases",
|
|
62
62
|
"wiki": "https://github.com/theholocron/clients/wiki",
|
|
63
63
|
"scripts": {
|
|
64
|
-
"delivery.build": "
|
|
64
|
+
"delivery.build": "holocron run delivery.build -- && node ../../scripts/check-bundle-size.mjs",
|
|
65
65
|
"sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
|
|
66
66
|
"test:watch": "vitest",
|
|
67
67
|
"verification.typeSafety": "holocron run verification.typeSafety --",
|