@theholocron/holocron-plugin-sentry 5.0.0-alpha.231 → 5.0.0-alpha.232
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 +3 -1
- package/dist/index.mjs +18 -6
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -82,7 +82,9 @@ declare function createContext(options: SentryPluginOptions): PluginContext;
|
|
|
82
82
|
declare function errors(ctx: PluginContext): Errors;
|
|
83
83
|
declare function createPlugin(options: SentryPluginOptions): {
|
|
84
84
|
name: string;
|
|
85
|
-
probes:
|
|
85
|
+
probes: {
|
|
86
|
+
connection: import("@theholocron/cli").Probe;
|
|
87
|
+
};
|
|
86
88
|
capabilities: {
|
|
87
89
|
errors: () => Errors;
|
|
88
90
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, ProviderApiError, createFeatureResolver, createResolveToken } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, ProviderApiError, connectionProbe, createFeatureResolver, createResolveToken } from "@theholocron/cli";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { createSentryClient } from "@theholocron/sentry-client";
|
|
4
4
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
@@ -499,11 +499,23 @@ function createPlugin(options) {
|
|
|
499
499
|
const ctx = createContext(options);
|
|
500
500
|
return {
|
|
501
501
|
name: "@theholocron/holocron-plugin-sentry",
|
|
502
|
-
probes:
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
502
|
+
probes: {
|
|
503
|
+
...sentryProbes({
|
|
504
|
+
org: options.org,
|
|
505
|
+
client: ctx.relayClient,
|
|
506
|
+
fetch: options.fetch
|
|
507
|
+
}),
|
|
508
|
+
connection: connectionProbe({
|
|
509
|
+
provider: "Sentry",
|
|
510
|
+
url: options.baseUrl ?? "https://sentry.io",
|
|
511
|
+
fetch: options.fetch,
|
|
512
|
+
token: () => resolveToken(options),
|
|
513
|
+
verify: (token) => verifyToken(token, {
|
|
514
|
+
baseUrl: options.baseUrl,
|
|
515
|
+
fetch: options.fetch
|
|
516
|
+
})
|
|
517
|
+
})
|
|
518
|
+
},
|
|
507
519
|
capabilities: { errors: () => errors(ctx) }
|
|
508
520
|
};
|
|
509
521
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-sentry",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.232",
|
|
4
4
|
"description": "Holocron plugin for Sentry. Implements the errors capability against Sentry's management API — project provisioning and DSN retrieval.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"errors",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"tsx": "4.23.15",
|
|
49
49
|
"typescript": "^5.9.3",
|
|
50
50
|
"vitest": "^4.1.11",
|
|
51
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
51
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@theholocron/misc-utils": "^1.16.0",
|
|
55
55
|
"@theholocron/sentry-client": "^1.54.0",
|
|
56
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
56
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@theholocron/sentry-client": {}
|