@c1m-public/dash-site-kit 0.17.1 → 0.18.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/dist/sentry.d.ts +28 -0
- package/dist/sentry.js +21 -0
- package/package.json +3 -3
package/dist/sentry.d.ts
CHANGED
|
@@ -5,7 +5,35 @@ export interface ChannelSiteSentryConfiguration {
|
|
|
5
5
|
release?: string;
|
|
6
6
|
site: string;
|
|
7
7
|
}
|
|
8
|
+
export interface ChannelSiteSentryDataCollection {
|
|
9
|
+
cookies: false;
|
|
10
|
+
databaseQueryData: false;
|
|
11
|
+
genAI: {
|
|
12
|
+
inputs: false;
|
|
13
|
+
outputs: false;
|
|
14
|
+
};
|
|
15
|
+
graphQL: {
|
|
16
|
+
document: false;
|
|
17
|
+
variables: false;
|
|
18
|
+
};
|
|
19
|
+
httpBodies: [];
|
|
20
|
+
httpHeaders: {
|
|
21
|
+
request: {
|
|
22
|
+
allow: string[];
|
|
23
|
+
};
|
|
24
|
+
response: false;
|
|
25
|
+
};
|
|
26
|
+
mcp: {
|
|
27
|
+
inputs: false;
|
|
28
|
+
outputs: false;
|
|
29
|
+
};
|
|
30
|
+
queues: false;
|
|
31
|
+
stackFrameVariables: false;
|
|
32
|
+
urlQueryParams: false;
|
|
33
|
+
userInfo: false;
|
|
34
|
+
}
|
|
8
35
|
export interface ChannelSiteSentryOptions {
|
|
36
|
+
dataCollection: ChannelSiteSentryDataCollection;
|
|
9
37
|
dsn: string;
|
|
10
38
|
enableLogs: false;
|
|
11
39
|
environment?: string;
|
package/dist/sentry.js
CHANGED
|
@@ -6,6 +6,26 @@ export class ChannelSiteSentryConfigurationError extends Error {
|
|
|
6
6
|
this.code = code;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Sentry 11 ignores `sendDefaultPii`, and any category left out here defaults
|
|
11
|
+
* to collected, so list them all. Sites take visitors' contact details and put
|
|
12
|
+
* access tokens in URLs; none of that belongs in an error report.
|
|
13
|
+
*/
|
|
14
|
+
function channelSiteDataCollection() {
|
|
15
|
+
return {
|
|
16
|
+
cookies: false,
|
|
17
|
+
databaseQueryData: false,
|
|
18
|
+
genAI: { inputs: false, outputs: false },
|
|
19
|
+
graphQL: { document: false, variables: false },
|
|
20
|
+
httpBodies: [],
|
|
21
|
+
httpHeaders: { request: { allow: ["user-agent"] }, response: false },
|
|
22
|
+
mcp: { inputs: false, outputs: false },
|
|
23
|
+
queues: false,
|
|
24
|
+
stackFrameVariables: false,
|
|
25
|
+
urlQueryParams: false,
|
|
26
|
+
userInfo: false,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
9
29
|
function validateDsn(value) {
|
|
10
30
|
let dsn;
|
|
11
31
|
try {
|
|
@@ -35,6 +55,7 @@ export function resolveChannelSiteSentryOptions(configuration) {
|
|
|
35
55
|
const environment = configuration.environment?.trim();
|
|
36
56
|
const release = configuration.release?.trim();
|
|
37
57
|
return {
|
|
58
|
+
dataCollection: channelSiteDataCollection(),
|
|
38
59
|
dsn: validateDsn(dsn),
|
|
39
60
|
enableLogs: false,
|
|
40
61
|
...(environment ? { environment } : {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/dash-site-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shared transport, domain and UI layer for MML dash-scoped public sites",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"react-dom": "19.2.8",
|
|
58
58
|
"typescript": "5.9.3",
|
|
59
59
|
"vitest": "^4.1.4",
|
|
60
|
-
"@c1m-public/
|
|
61
|
-
"@c1m-public/
|
|
60
|
+
"@c1m-public/platform-auth": "0.26.0",
|
|
61
|
+
"@c1m-public/channel-client": "0.38.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"next": {
|