diff --git a/src/analyze/functions/analyzeProfile.ts b/src/analyze/functions/analyzeProfile.ts index 7c79e61d..1a40e3a4 100644 --- a/src/analyze/functions/analyzeProfile.ts +++ b/src/analyze/functions/analyzeProfile.ts @@ -21,7 +21,7 @@ export default async function analyzeProfile(id: string) { sampler = await response_raw.json(); } catch (err) { - return [{ name: '❌ Processing Error', value: 'birdflop cannot process this spark profile. Please use an alternative spark profile.' }]; + return [{ name: '❌ Processing Error', value: `Birdflop cannot process this spark profile. Please use an alternative spark profile. ${err}` }]; } const platform = sampler.metadata.platform.name; diff --git a/src/analyze/functions/analyzeTimings.ts b/src/analyze/functions/analyzeTimings.ts index 610fae5c..3ff11636 100644 --- a/src/analyze/functions/analyzeTimings.ts +++ b/src/analyze/functions/analyzeTimings.ts @@ -23,7 +23,7 @@ export default async function analyzeTimings(id: string) { request = await response_json.json(); } catch (err) { - return [{ name: '❌ Processing Error', value: 'birdflop cannot process this spark profile. Please use an alternative spark profile.' }]; + return [{ name: '❌ Processing Error', value: `birdflop cannot process this spark profile. Please use an alternative spark profile. ${err}` }]; } let version = request.timingsMaster.version; diff --git a/src/components/partytown/partytown.tsx b/src/components/partytown/partytown.tsx index 452f0683..51dacc43 100644 --- a/src/components/partytown/partytown.tsx +++ b/src/components/partytown/partytown.tsx @@ -12,7 +12,7 @@ import { * * @public */ -export interface PartytownProps extends PartytownConfig { } +export type PartytownProps = PartytownConfig; /** * @public diff --git a/src/components/util/PresetUtils.ts b/src/components/util/PresetUtils.ts index 113c5554..075e9f23 100644 --- a/src/components/util/PresetUtils.ts +++ b/src/components/util/PresetUtils.ts @@ -183,7 +183,8 @@ export function fromBinary(encoded: string) { let binary; try { binary = atob(encoded); - } catch (error) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + } catch (err) { return ''; } const bytes = new Uint8Array(binary.length); diff --git a/src/entry.cloudflare-pages.tsx b/src/entry.cloudflare-pages.tsx index e3214704..39b296a0 100644 --- a/src/entry.cloudflare-pages.tsx +++ b/src/entry.cloudflare-pages.tsx @@ -16,7 +16,7 @@ import { manifest } from '@qwik-client-manifest'; import render from './entry.ssr'; declare global { - interface QwikCityPlatform extends PlatformCloudflarePages {} + type QwikCityPlatform = PlatformCloudflarePages; } const fetch = createQwikCity({ render, qwikCityPlan, manifest });