From 77c166f41bfc389d21ec5eb26a878e37a422a331 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sat, 19 Aug 2023 09:05:26 +0600 Subject: [PATCH] update packages --- package.json | 32 ++++++++++++++++---------------- src/lib/contentParser.astro | 4 ++-- src/lib/taxonomyParser.astro | 4 ++-- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index e9c4200..8340dfa 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "1.4.1", + "version": "1.4.2", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", @@ -15,11 +15,11 @@ "dependencies": { "@astrojs/image": "^0.17.3", "@astrojs/mdx": "^0.19.7", - "@astrojs/react": "^2.2.1", + "@astrojs/react": "^2.3.2", "@astrojs/rss": "^2.4.4", - "@astrojs/sitemap": "^2.0.1", + "@astrojs/sitemap": "^2.0.2", "@astrojs/tailwind": "^4.0.0", - "astro": "^2.10.7", + "astro": "^2.10.12", "astro-auto-import": "^0.3.1", "date-fns": "^2.30.0", "date-fns-tz": "^2.0.0", @@ -27,9 +27,9 @@ "fuse.js": "^6.6.2", "github-slugger": "^2.0.0", "gray-matter": "^4.0.3", - "marked": "^7.0.2", - "prettier-plugin-astro": "^0.11.0", - "prettier-plugin-tailwindcss": "^0.5.2", + "marked": "^7.0.3", + "prettier-plugin-astro": "^0.11.1", + "prettier-plugin-tailwindcss": "^0.5.3", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -37,23 +37,23 @@ "react-lite-youtube-embed": "^2.3.52", "remark-collapse": "^0.1.2", "remark-toc": "^8.0.1", - "sharp": "^0.32.4", - "swiper": "^10.1.0" + "sharp": "^0.32.5", + "swiper": "^10.2.0" }, "devDependencies": { "@tailwindcss/forms": "^0.5.4", "@tailwindcss/typography": "^0.5.9", "@types/marked": "^5.0.1", - "@types/node": "20.4.10", + "@types/node": "20.5.1", "@types/react": "18.2.20", "@types/react-dom": "18.2.7", - "autoprefixer": "^10.4.14", + "autoprefixer": "^10.4.15", "eslint": "^8.47.0", - "postcss": "^8.4.27", - "prettier": "^3.0.1", - "prettier-plugin-astro": "^0.11.0", - "prettier-plugin-tailwindcss": "^0.5.2", - "sass": "^1.65.1", + "postcss": "^8.4.28", + "prettier": "^3.0.2", + "prettier-plugin-astro": "^0.11.1", + "prettier-plugin-tailwindcss": "^0.5.3", + "sass": "^1.66.1", "tailwindcss": "^3.3.3", "tailwind-bootstrap-grid": "^5.0.1", "typescript": "5.1.6" diff --git a/src/lib/contentParser.astro b/src/lib/contentParser.astro index 1b59cc3..ddf39a4 100644 --- a/src/lib/contentParser.astro +++ b/src/lib/contentParser.astro @@ -3,8 +3,8 @@ import { getCollection } from "astro:content"; export const getSinglePage = async (collection: any) => { const allPage = await getCollection(collection); - const removeIndex = allPage.filter((data) => data.id.match(/^(?!-)/)); - const removeDrafts = removeIndex.filter((data) => !data.data.draft); + const removeIndex = allPage.filter((data: any) => data.id.match(/^(?!-)/)); + const removeDrafts = removeIndex.filter((data: any) => !data.data.draft); return removeDrafts; }; --- diff --git a/src/lib/taxonomyParser.astro b/src/lib/taxonomyParser.astro index deecaf4..4b27bf8 100644 --- a/src/lib/taxonomyParser.astro +++ b/src/lib/taxonomyParser.astro @@ -5,7 +5,7 @@ import { slugify } from "./utils/textConverter"; // get all taxonomies from frontmatter export const getTaxonomy = async (collection: string, name: string) => { const singlePages = await getSinglePage(collection); - const taxonomyPages = singlePages.map((page) => page.data[name]); + const taxonomyPages = singlePages.map((page: any) => page.data[name]); let taxonomies: string[] = []; for (let i = 0; i < taxonomyPages.length; i++) { const categoryArray = taxonomyPages[i]; @@ -19,7 +19,7 @@ export const getTaxonomy = async (collection: string, name: string) => { export const getAllTaxonomy = async (collection: string, name: string) => { const singlePages = await getSinglePage(collection); - const taxonomyPages = singlePages.map((page) => page.data[name]); + const taxonomyPages = singlePages.map((page: any) => page.data[name]); let taxonomies: string[] = []; for (let i = 0; i < taxonomyPages.length; i++) { const categoryArray = taxonomyPages[i];