From fb761673e5a01841633a0b3bdeee1f8821cdd28b Mon Sep 17 00:00:00 2001 From: Riley1101 Date: Thu, 7 Dec 2023 11:20:17 -0500 Subject: [PATCH] upgraded pnpm --- pnpm-lock.yaml | 13 ------------- src/routes/blogs/+page.js | 16 ++++++++-------- src/routes/sitemap.xml/+server.ts | 4 +++- svelte.config.js | 32 +++++++++++++++---------------- 4 files changed, 27 insertions(+), 38 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4333dd4..fa496d6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,9 +56,6 @@ dependencies: moment: specifier: ^2.29.4 version: 2.29.4 - posthog-js: - specifier: ^1.93.6 - version: 1.93.6 prismjs: specifier: ^1.29.0 version: 1.29.0 @@ -4244,10 +4241,6 @@ packages: dependencies: reusify: 1.0.4 - /fflate@0.4.8: - resolution: {integrity: sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==} - dev: false - /file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -6238,12 +6231,6 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 - /posthog-js@1.93.6: - resolution: {integrity: sha512-Jou2awqQH5PDtDe9hZxpe9PO4D0uUOU7eA1lGni4pBxJckeA94P7WF3ieQj355xY96ZcXVQmGJykypO/FyBvpQ==} - dependencies: - fflate: 0.4.8 - dev: false - /preact@10.19.2: resolution: {integrity: sha512-UA9DX/OJwv6YwP9Vn7Ti/vF80XL+YA5H2l7BpCtUr3ya8LWHFzpiO5R+N7dN16ujpIxhekRFuOOF82bXX7K/lg==} dev: false diff --git a/src/routes/blogs/+page.js b/src/routes/blogs/+page.js index a5f94a4..e85134d 100644 --- a/src/routes/blogs/+page.js +++ b/src/routes/blogs/+page.js @@ -19,12 +19,12 @@ const query = ` } `; export const load = async () => { - /** - * @type {import('../../lib/types/newsPage').NewsPage} - data - */ - const data = await getPageData(query); - if (!data) throw error(404, 'Not Found'); - return { - data - }; + /** + * @type {import('../../lib/types/newsPage').NewsPage} - data + */ + const data = await getPageData(query); + if (!data) throw error(404, 'Not Found'); + return { + data + }; }; diff --git a/src/routes/sitemap.xml/+server.ts b/src/routes/sitemap.xml/+server.ts index 674767d..11bde37 100644 --- a/src/routes/sitemap.xml/+server.ts +++ b/src/routes/sitemap.xml/+server.ts @@ -1,11 +1,13 @@ const DOMAIN = 'https://shaniit.org'; import { getPageData } from '$lib/sanity/query'; + type Page = { loc: string; changefreq: string; priority: number; lastmod: string; }; + const pages = [ { loc: '/', @@ -136,5 +138,5 @@ export async function GET() { 'Content-Type': 'application/xml' } } - ); + ); } diff --git a/svelte.config.js b/svelte.config.js index 4761f01..5175f22 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -4,22 +4,22 @@ import sveltePreprocess from 'svelte-preprocess'; /** @type {import('@sveltejs/kit').Config} */ const config = { - preprocess: [ - sveltePreprocess({ - scss: true, - preserve: ['ld+json'] - }), - optimizeImports() - ], - kit: { - adapter: adapter({ - // See below for an explanation of these options - routes: { - include: ['/*'], - exclude: [''] - } - }) - } + preprocess: [ + sveltePreprocess({ + scss: true, + preserve: ['ld+json'] + }), + optimizeImports() + ], + kit: { + adapter: adapter({ + // See below for an explanation of these options + routes: { + include: ['/*'], + exclude: [''] + } + }) + } }; export default config;