Skip to content

Commit 55d8003

Browse files
authored
squelch some warnings (#1268)
* squelch some warnings * maybe this? * oops, errant git clean
1 parent 7bb232a commit 55d8003

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

apps/svelte.dev/src/lib/db/client.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import { building } from '$app/environment';
22
import { env } from '$env/dynamic/private';
33
import { createClient } from '@supabase/supabase-js';
44

5-
const enabled = !building && env.SUPABASE_URL && env.SUPABASE_KEY;
6-
7-
if (!enabled) {
5+
if (!building && (!env.SUPABASE_URL || !env.SUPABASE_KEY)) {
86
console.warn(
97
`Missing SUPABASE_URL and SUPABASE_KEY environment variables. Loading and saving in the playground is disabled`
108
);
@@ -15,7 +13,7 @@ if (!enabled) {
1513
*/
1614
// @ts-ignore-line
1715
export const client =
18-
enabled &&
16+
!building &&
1917
createClient(env.SUPABASE_URL, env.SUPABASE_KEY, {
2018
global: { fetch },
2119
auth: { persistSession: false }

apps/svelte.dev/src/routes/tutorial/[...slug]/ImageViewer.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
display: flex;
3333
align-items: center;
3434
justify-content: center;
35-
background: white
36-
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20" height="20px" width="20px"><g><rect fill="hsl(240, 8%, 95%)" width="10" height="10"></rect><rect fill="hsl(240, 8%, 95%)" x="10" y="10" width="10" height="10"></rect></g></svg>');
35+
background: white url(./image-viewer-background.svg);
3736
}
3837
3938
img {
Lines changed: 1 addition & 0 deletions
Loading

packages/site-kit/src/lib/markdown/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import MagicString from 'magic-string';
2-
import { createHash, Hash } from 'node:crypto';
2+
import { createHash, type Hash } from 'node:crypto';
33
import fs from 'node:fs';
44
import process from 'node:process';
55
import path from 'node:path';

packages/site-kit/src/lib/markdown/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Marked, Renderer, type TokenizerObject, type MarkedExtension } from 'marked';
1+
import { Marked, type Renderer, type TokenizerObject, type MarkedExtension } from 'marked';
22
import json5 from 'json5';
33

44
export const SHIKI_LANGUAGE_MAP = {

0 commit comments

Comments
 (0)