-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathutils.tsx
More file actions
30 lines (26 loc) · 945 Bytes
/
utils.tsx
File metadata and controls
30 lines (26 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type {DocsParams} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPackageVersion} from 'sentry/utils/gettingStartedDocs/getPackageVersion';
export const getInstallSnippetPackageManager = (params: DocsParams) => {
let version = '3.34.0';
if (params.isMetricsSelected) {
version = '6.1.0';
} else if (params.isLogsSelected) {
version = '6.0.0';
} else if (params.isProfilingSelected) {
version = '4.3.0';
}
return `
Install-Package Sentry -Version ${getPackageVersion(params, 'sentry.dotnet', version)}`;
};
export const getInstallSnippetCoreCli = (params: DocsParams) => {
let version = '3.34.0';
if (params.isMetricsSelected) {
version = '6.1.0';
} else if (params.isLogsSelected) {
version = '6.0.0';
} else if (params.isProfilingSelected) {
version = '4.3.0';
}
return `
dotnet add package Sentry -v ${getPackageVersion(params, 'sentry.dotnet', version)}`;
};