web: bump the sentry group in /web with 2 updates (#8445)
* web: bump the sentry group in /web with 2 updates Bumps the sentry group in /web with 2 updates: [@sentry/browser](https://github.com/getsentry/sentry-javascript) and @spotlightjs/spotlight. Updates `@sentry/browser` from 7.99.0 to 7.100.1 - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.100.1/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/7.99.0...7.100.1) Updates `@spotlightjs/spotlight` from 1.2.11 to 1.2.12 --- updated-dependencies: - dependency-name: "@sentry/browser" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: sentry - dependency-name: "@spotlightjs/spotlight" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: sentry ... Signed-off-by: dependabot[bot] <support@github.com> * have eslint check for deprecated function usage Signed-off-by: Jens Langhammer <jens@goauthentik.io> * code cleanup Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix eslint server error Signed-off-by: Jens Langhammer <jens@goauthentik.io> * Revert "have eslint check for deprecated function usage" This reverts commit 6d5e42e31214ffc44a8ab0720c36030ada424d4e. Signed-off-by: Jens Langhammer <jens@goauthentik.io> # Conflicts: # web/.eslintrc.json --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -38,7 +38,7 @@ export function transformCredentialCreateOptions(
 | 
			
		||||
    // Because json can't contain raw bytes, the server base64-encodes the User ID
 | 
			
		||||
    // So to get the base64 encoded byte array, we first need to convert it to a regular
 | 
			
		||||
    // string, then a byte array, re-encode it and wrap that in an array.
 | 
			
		||||
    const stringId = decodeURIComponent(escape(window.atob(userId)));
 | 
			
		||||
    const stringId = decodeURIComponent(window.atob(userId));
 | 
			
		||||
    user.id = u8arr(b64enc(u8arr(stringId)));
 | 
			
		||||
    const challenge = u8arr(credentialCreateOptions.challenge.toString());
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -27,7 +27,7 @@ export async function configureSentry(canDoPpi = false): Promise<Config> {
 | 
			
		||||
            ],
 | 
			
		||||
            release: `authentik@${VERSION}`,
 | 
			
		||||
            integrations: [
 | 
			
		||||
                new Sentry.BrowserTracing({
 | 
			
		||||
                Sentry.browserTracingIntegration({
 | 
			
		||||
                    shouldCreateSpanForRequest: (url: string) => {
 | 
			
		||||
                        return url.startsWith(window.location.host);
 | 
			
		||||
                    },
 | 
			
		||||
@ -57,9 +57,6 @@ export async function configureSentry(canDoPpi = false): Promise<Config> {
 | 
			
		||||
        Sentry.setTag(TAG_SENTRY_CAPABILITIES, cfg.capabilities.join(","));
 | 
			
		||||
        if (window.location.pathname.includes("if/")) {
 | 
			
		||||
            Sentry.setTag(TAG_SENTRY_COMPONENT, `web/${currentInterface()}`);
 | 
			
		||||
            Sentry.configureScope((scope) =>
 | 
			
		||||
                scope.setTransactionName(`authentik.web.if.${currentInterface()}`),
 | 
			
		||||
            );
 | 
			
		||||
        }
 | 
			
		||||
        if (cfg.capabilities.includes(CapabilitiesEnum.CanDebug)) {
 | 
			
		||||
            const Spotlight = await import("@spotlightjs/spotlight");
 | 
			
		||||
 | 
			
		||||
@ -25,12 +25,6 @@ export function convertToSlug(text: string): string {
 | 
			
		||||
        .replace(/[^\w-]+/g, "");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function convertToTitle(text: string): string {
 | 
			
		||||
    return text.replace(/\w\S*/g, function (txt) {
 | 
			
		||||
        return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Truncate a string based on maximum word count
 | 
			
		||||
 */
 | 
			
		||||
@ -84,14 +78,6 @@ export function first<T>(...args: Array<T | undefined | null>): T {
 | 
			
		||||
    throw new SentryIgnoredError(`No compatible arg given: ${args}`);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function hexEncode(buf: Uint8Array): string {
 | 
			
		||||
    return Array.from(buf)
 | 
			
		||||
        .map(function (x) {
 | 
			
		||||
            return ("0" + x.toString(16)).substr(-2);
 | 
			
		||||
        })
 | 
			
		||||
        .join("");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Taken from python's string module
 | 
			
		||||
export const ascii_lowercase = "abcdefghijklmnopqrstuvwxyz";
 | 
			
		||||
export const ascii_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user