update packages

This commit is contained in:
somrat sorkar
2023-08-19 09:05:26 +06:00
parent de8674c8a3
commit 77c166f41b
3 changed files with 20 additions and 20 deletions
+16 -16
View File
@@ -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"
+2 -2
View File
@@ -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;
};
---
+2 -2
View File
@@ -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];