upgrade AIK to v0.8 (#72)

This commit is contained in:
Adam Matthiesen 2024-04-01 05:34:08 -07:00 committed by GitHub
parent 03ee12318e
commit 53c47a27a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 154 additions and 420 deletions

View File

@ -0,0 +1,5 @@
---
"@matthiesenxyz/astro-gists": patch
---
[Internal] Upgrade `AIK` from 0.7.0 to 0.8.0

View File

@ -14,7 +14,7 @@
"lint:fix": "biome check --apply ."
},
"devDependencies": {
"@biomejs/biome": "^1.6.2",
"@changesets/cli": "^2.27.1"
"@biomejs/biome": "^1.6.3",
"@changesets/cli": "2.27.1"
}
}

View File

@ -41,7 +41,7 @@
"scripts": {},
"type": "module",
"peerDependencies": {
"astro": "^4.4.1"
"astro": ">=4.4.1"
},
"devDependencies": {
"@octokit/types": "^12.6.0"
@ -52,11 +52,11 @@
"@expressive-code/plugin-shiki": "0.33.5",
"@expressive-code/plugin-text-markers": "0.33.5",
"@expressive-code/plugin-line-numbers": "^0.33.5",
"astro-integration-kit": "~0.7.1",
"chalk": "5.3.0",
"astro-integration-kit": "^0.8.0",
"chalk": "^5.3.0",
"hast-util-to-html": "8.0.4",
"p-retry": "6.2.0",
"octokit": "^3.1.2",
"vite": "^5.2.6"
"vite": "^5.2.7"
}
}

View File

@ -1,10 +1,9 @@
import { defineIntegration, createResolver } from "astro-integration-kit"
import { corePlugins } from "astro-integration-kit/plugins"
import type { astroGistsUserConfig } from "./UserConfigSchema"
import { readFileSync } from "node:fs";
import type { AstroIntegrationLogger } from "astro";
import { defineIntegration, addDts, addVirtualImports } from "astro-integration-kit";
import type { astroGistsUserConfig } from "./schemas/UserConfigSchema";
import { loadEnv } from "vite";
import { z } from "astro/zod";
import { gistLogger } from "./lib/integrationLogger";
import { fileFactory } from "./lib/file-factory";
// Load environment variables
const { GITHUB_PERSONAL_TOKEN } = loadEnv("all", process.cwd(), "GITHUB_");
@ -26,71 +25,58 @@ export const TOKEN_MISSING_ERROR = "GITHUB_PERSONAL_TOKEN not found. Please add
export default defineIntegration({
name: "@matthiesenxyz/astro-gists",
optionsSchema: z.custom<astroGistsUserConfig>().optional().default({ verbose: false }),
plugins: [...corePlugins],
setup({ options }) {
// Create resolve helper
const { resolve } = createResolver(import.meta.url);
// Check if verbose logging is enabled
const isVerbose = options.verbose;
// Create Gist Logger interface
const gistLogger = async (
logger: AstroIntegrationLogger,
type: "info"|"warn"|"error",
message: string,
checkVerbose: boolean,
) => {
// if checkVerbose is true and isVerbose is true, log the message
if (!checkVerbose || checkVerbose && isVerbose) {
if (type === "info") {
logger.info(message);
} else if (type === "warn") {
logger.warn(message);
} else if (type === "error") {
logger.error(message);
}
}
};
setup({
name,
options,
options: { verbose: isVerbose }
}) {
return {
"astro:config:setup": ({
watchIntegration, addVirtualImports, logger, addDts
}) => {
"astro:config:setup": ( params ) => {
const { logger } = params;
// Create a logger for the setup events
const configLogger = logger.fork("astro-gists : setup");
const configDone = logger.fork("astro-gists : setup-done")
gistLogger(configLogger, "info", "Setting up Astro Gists Integration.", false);
gistLogger(configLogger, isVerbose, "info", "Setting up Astro Gists Integration.", false);
gistLogger(configLogger, "warn", "Verbose logging is enabled.", true);
// WATCH INTEGRATION FOR CHANGES
watchIntegration(resolve())
gistLogger(configLogger, isVerbose, "warn", "Verbose logging is enabled.", true);
// Check for GITHUB_PERSONAL_TOKEN
if (!isThereAToken()) {
gistLogger(configLogger,"error",TOKEN_MISSING_ERROR, false)
gistLogger(configLogger, isVerbose, "error",TOKEN_MISSING_ERROR, false)
}
// Add virtual imports
gistLogger(configLogger, "info", "Adding virtual imports.", true);
addVirtualImports({
gistLogger(configLogger, isVerbose, "info", "Adding virtual imports.", true);
addVirtualImports(params, {
name,
imports: {
"virtual:astro-gists/config": `export default ${JSON.stringify(options)}`,
"astro-gists:components": `export * from "@matthiesenxyz/astro-gists/components";`
});
}});
// Add .d.ts file
gistLogger(configLogger, "info", "Injecting astro-gists.d.ts file.", true);
addDts({
gistLogger(configLogger, isVerbose, "info", "Injecting astro-gists.d.ts file.", true);
const gistsDTS = fileFactory();
gistsDTS.addLines(`
declare module "astro-gists:components" {
export * from "@matthiesenxyz/astro-gists/components";
}
`)
addDts(params, {
name: "astro-gists",
content: readFileSync(resolve("./stubs/astro-gists.d.ts"), "utf-8")
content: gistsDTS.text()
})
// Log that the configuration is complete
gistLogger(
configDone,
isVerbose,
"info",
"Configuration for Astro Gists Integration is complete.",
false

View File

@ -1,4 +1,4 @@
import type { AstroIntegration } from "astro";
import type { astroGistsUserConfig} from "./UserConfigSchema";
import type { astroGistsUserConfig} from "./schemas/UserConfigSchema";
export default function astroGists(options?: astroGistsUserConfig): AstroIntegration;

View File

@ -0,0 +1,13 @@
export const fileFactory = () => {
// biome-ignore lint/style/noUnusedTemplateLiteral: <explanation>
let file = ``
return {
addLines(lines: string) {
file += lines
},
text() {
return file
}
}
}

View File

@ -0,0 +1,21 @@
import type { AstroIntegrationLogger } from "astro";
// Create Gist Logger interface
export const gistLogger = async (
logger: AstroIntegrationLogger,
isVerbose: boolean,
type: "info"|"warn"|"error",
message: string,
checkVerbose: boolean,
) => {
// if checkVerbose is true and isVerbose is true, log the message
if (!checkVerbose || checkVerbose && isVerbose) {
if (type === "info") {
logger.info(message);
} else if (type === "warn") {
logger.warn(message);
} else if (type === "error") {
logger.error(message);
}
}
};

View File

@ -1,6 +1,6 @@
// Export the user config schema
import { z } from "astro/zod";
import type { BundledShikiTheme } from "./ExpressiveCode/engine";
import type { BundledShikiTheme } from "../ExpressiveCode/engine";
export const optionsSchema = z.object({
/**

View File

@ -1,3 +0,0 @@
declare module "astro-gists:components" {
export * from "@matthiesenxyz/astro-gists/components";
}

View File

@ -1,4 +1,4 @@
declare module "virtual:astro-gists/config" {
const Config: import("./src/UserConfigSchema").astroGistsUserConfig;
const Config: import("./src/schemas/UserConfigSchema").astroGistsUserConfig;
export default Config;
}

View File

@ -11,13 +11,13 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.5.9",
"astro": "^4.5.12",
"@matthiesenxyz/astro-gists": "workspace:*"
},
"devDependencies": {
"@astrojs/mdx": "^2.2.1",
"@astrojs/mdx": "^2.2.2",
"@astrojs/check": "^0.5.10",
"@types/node": "^20.11.30",
"@types/node": "^20.12.2",
"typescript": "^5.4.3"
}
}

View File

@ -9,10 +9,10 @@ importers:
.:
devDependencies:
'@biomejs/biome':
specifier: ^1.6.2
version: 1.6.2
specifier: ^1.6.3
version: 1.6.3
'@changesets/cli':
specifier: ^2.27.1
specifier: 2.27.1
version: 2.27.1
package:
@ -33,13 +33,13 @@ importers:
specifier: 0.33.5
version: 0.33.5
astro:
specifier: ^4.4.1
version: 4.4.11
specifier: '>=4.4.1'
version: 4.5.12(@types/node@20.12.2)(typescript@5.4.3)
astro-integration-kit:
specifier: ~0.7.1
version: 0.7.1(astro@4.4.11)
specifier: ^0.8.0
version: 0.8.0(astro@4.5.12)
chalk:
specifier: 5.3.0
specifier: ^5.3.0
version: 5.3.0
hast-util-to-html:
specifier: 8.0.4
@ -51,8 +51,8 @@ importers:
specifier: 6.2.0
version: 6.2.0
vite:
specifier: ^5.2.6
version: 5.2.6(@types/node@20.11.30)
specifier: ^5.2.7
version: 5.2.7(@types/node@20.12.2)
devDependencies:
'@octokit/types':
specifier: ^12.6.0
@ -64,18 +64,18 @@ importers:
specifier: workspace:*
version: link:../package
astro:
specifier: ^4.5.9
version: 4.5.9(@types/node@20.11.30)(typescript@5.4.3)
specifier: ^4.5.12
version: 4.5.12(@types/node@20.12.2)(typescript@5.4.3)
devDependencies:
'@astrojs/check':
specifier: ^0.5.10
version: 0.5.10(typescript@5.4.3)
'@astrojs/mdx':
specifier: ^2.2.1
version: 2.2.1(astro@4.5.9)
specifier: ^2.2.2
version: 2.2.2(astro@4.5.12)
'@types/node':
specifier: ^20.11.30
version: 20.11.30
specifier: ^20.12.2
version: 20.12.2
typescript:
specifier: ^5.4.3
version: 5.4.3
@ -106,19 +106,11 @@ packages:
- prettier-plugin-astro
dev: true
/@astrojs/compiler@2.6.0:
resolution: {integrity: sha512-c74k8iGHL3DzkosSJ0tGcHIEBEiIfBhr7eadSaPyvWlVKaieDVzVs8OW1tnRSQyBsfMc8DZQ4RcN2KAcESD8UQ==}
dev: false
/@astrojs/compiler@2.7.0:
resolution: {integrity: sha512-XpC8MAaWjD1ff6/IfkRq/5k1EFj6zhCNqXRd5J43SVJEBj/Bsmizkm8N0xOYscGcDFQkRgEw6/eKnI5x/1l6aA==}
/@astrojs/internal-helpers@0.2.1:
resolution: {integrity: sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A==}
dev: false
/@astrojs/internal-helpers@0.3.0:
resolution: {integrity: sha512-tGmHvrhpzuz0JBHaJX8GywN9g4rldVNHtkoVDC3m/DdzBO70jGoVuc0uuNVglRYnsdwkbG0K02Iw3nOOR3/Y4g==}
/@astrojs/internal-helpers@0.4.0:
resolution: {integrity: sha512-6B13lz5n6BrbTqCTwhXjJXuR1sqiX/H6rTxzlXx+lN1NnV4jgnq/KJldCQaUWJzPL5SiWahQyinxAbxQtwgPHA==}
/@astrojs/language-server@2.8.4(typescript@5.4.3):
resolution: {integrity: sha512-sJH5vGTBkhgA8+hdhzX78UUp4cFz4Mt7xkEkevD188OS5bDMkaue6hK+dtXWM47mnrXFveXA2u38K7S+5+IRjA==}
@ -152,29 +144,8 @@ packages:
- typescript
dev: true
/@astrojs/markdown-remark@4.2.1:
resolution: {integrity: sha512-2RQBIwrq+2qPYtp99bH+eL5hfbK0BoxXla85lHsRpIX/IsGqFrPX6pXI2cbWPihBwGbKCdxS6uZNX2QerZWwpQ==}
dependencies:
'@astrojs/prism': 3.0.0
github-slugger: 2.0.0
import-meta-resolve: 4.0.0
mdast-util-definitions: 6.0.0
rehype-raw: 7.0.0
rehype-stringify: 10.0.0
remark-gfm: 4.0.0
remark-parse: 11.0.0
remark-rehype: 11.1.0
remark-smartypants: 2.1.0
shikiji: 0.9.19
unified: 11.0.4
unist-util-visit: 5.0.0
vfile: 6.0.1
transitivePeerDependencies:
- supports-color
dev: false
/@astrojs/markdown-remark@4.3.1:
resolution: {integrity: sha512-eJFi600tkRjTFiwzY9oD8AgCgB7gFqyWCKWuZ33dATVBgLiROD+zlMZ8STZzU7+ZALvmiUAun/K7umTmP5YfVQ==}
/@astrojs/markdown-remark@4.3.2:
resolution: {integrity: sha512-4Oa4VaYiBd0MatB+rWIU/0A8pZH/sK3c2QkRYb+OO2lPl+qzevJtWaZY8hAQc4qurIOlRdn6B6ofDAGhWw+DSg==}
dependencies:
'@astrojs/prism': 3.0.0
github-slugger: 2.0.0
@ -197,16 +168,16 @@ packages:
transitivePeerDependencies:
- supports-color
/@astrojs/mdx@2.2.1(astro@4.5.9):
resolution: {integrity: sha512-bSr/AkvGieD9Pc5ZzMnAk7IHnw0vyt/aOujuYUmYT+NHiWahAUy/+ywNNMhTMmea0irdMYnBVC1AEKMQ/oXxow==}
/@astrojs/mdx@2.2.2(astro@4.5.12):
resolution: {integrity: sha512-5SIFtOctC813HFyqJwBf5TBvlT9sbiOOv+bdvzAoiBSab95dC7PZhss22EvUEx+897c81YoIZ4F9fg4ZkxBFIw==}
engines: {node: '>=18.14.1'}
peerDependencies:
astro: ^4.0.0
dependencies:
'@astrojs/markdown-remark': 4.3.1
'@astrojs/markdown-remark': 4.3.2
'@mdx-js/mdx': 3.0.1
acorn: 8.11.3
astro: 4.5.9(@types/node@20.11.30)(typescript@5.4.3)
astro: 4.5.12(@types/node@20.12.2)(typescript@5.4.3)
es-module-lexer: 1.4.1
estree-util-visit: 2.0.0
github-slugger: 2.0.0
@ -243,14 +214,6 @@ packages:
transitivePeerDependencies:
- supports-color
/@babel/code-frame@7.23.5:
resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/highlight': 7.23.4
chalk: 2.4.2
dev: false
/@babel/code-frame@7.24.2:
resolution: {integrity: sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==}
engines: {node: '>=6.9.0'}
@ -262,29 +225,6 @@ packages:
resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==}
engines: {node: '>=6.9.0'}
/@babel/core@7.23.9:
resolution: {integrity: sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==}
engines: {node: '>=6.9.0'}
dependencies:
'@ampproject/remapping': 2.2.1
'@babel/code-frame': 7.23.5
'@babel/generator': 7.23.6
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9)
'@babel/helpers': 7.23.9
'@babel/parser': 7.23.9
'@babel/template': 7.23.9
'@babel/traverse': 7.23.9
'@babel/types': 7.23.9
convert-source-map: 2.0.0
debug: 4.3.4
gensync: 1.0.0-beta.2
json5: 2.2.3
semver: 6.3.1
transitivePeerDependencies:
- supports-color
dev: false
/@babel/core@7.24.3:
resolution: {integrity: sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ==}
engines: {node: '>=6.9.0'}
@ -307,16 +247,6 @@ packages:
transitivePeerDependencies:
- supports-color
/@babel/generator@7.23.6:
resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.23.9
'@jridgewell/gen-mapping': 0.3.3
'@jridgewell/trace-mapping': 0.3.22
jsesc: 2.5.2
dev: false
/@babel/generator@7.24.1:
resolution: {integrity: sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A==}
engines: {node: '>=6.9.0'}
@ -365,20 +295,6 @@ packages:
dependencies:
'@babel/types': 7.24.0
/@babel/helper-module-transforms@7.23.3(@babel/core@7.23.9):
resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-module-imports': 7.22.15
'@babel/helper-simple-access': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
'@babel/helper-validator-identifier': 7.22.20
dev: false
/@babel/helper-module-transforms@7.23.3(@babel/core@7.24.3):
resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==}
engines: {node: '>=6.9.0'}
@ -420,17 +336,6 @@ packages:
resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==}
engines: {node: '>=6.9.0'}
/@babel/helpers@7.23.9:
resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.24.0
'@babel/traverse': 7.24.1
'@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
/@babel/helpers@7.24.1:
resolution: {integrity: sha512-BpU09QqEe6ZCHuIHFphEFgvNSrubve1FtyMton26ekZ85gRGi6LrTF7zArARp2YvyFxloeiRmtSCq5sjh1WqIg==}
engines: {node: '>=6.9.0'}
@ -441,15 +346,6 @@ packages:
transitivePeerDependencies:
- supports-color
/@babel/highlight@7.23.4:
resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-validator-identifier': 7.22.20
chalk: 2.4.2
js-tokens: 4.0.0
dev: false
/@babel/highlight@7.24.2:
resolution: {integrity: sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==}
engines: {node: '>=6.9.0'}
@ -459,13 +355,6 @@ packages:
js-tokens: 4.0.0
picocolors: 1.0.0
/@babel/parser@7.23.9:
resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==}
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.23.9
/@babel/parser@7.24.1:
resolution: {integrity: sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==}
engines: {node: '>=6.0.0'}
@ -473,16 +362,6 @@ packages:
dependencies:
'@babel/types': 7.24.0
/@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.23.9):
resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-plugin-utils': 7.22.5
dev: false
/@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.24.3):
resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==}
engines: {node: '>=6.9.0'}
@ -492,20 +371,6 @@ packages:
'@babel/core': 7.24.3
'@babel/helper-plugin-utils': 7.22.5
/@babel/plugin-transform-react-jsx@7.23.4(@babel/core@7.23.9):
resolution: {integrity: sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-annotate-as-pure': 7.22.5
'@babel/helper-module-imports': 7.22.15
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.9)
'@babel/types': 7.23.9
dev: false
/@babel/plugin-transform-react-jsx@7.23.4(@babel/core@7.24.3):
resolution: {integrity: sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==}
engines: {node: '>=6.9.0'}
@ -517,7 +382,7 @@ packages:
'@babel/helper-module-imports': 7.22.15
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.24.3)
'@babel/types': 7.23.9
'@babel/types': 7.24.0
/@babel/runtime@7.23.9:
resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==}
@ -526,15 +391,6 @@ packages:
regenerator-runtime: 0.14.1
dev: true
/@babel/template@7.23.9:
resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.24.2
'@babel/parser': 7.24.1
'@babel/types': 7.24.0
dev: false
/@babel/template@7.24.0:
resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==}
engines: {node: '>=6.9.0'}
@ -543,24 +399,6 @@ packages:
'@babel/parser': 7.24.1
'@babel/types': 7.24.0
/@babel/traverse@7.23.9:
resolution: {integrity: sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.23.5
'@babel/generator': 7.23.6
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-function-name': 7.23.0
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.23.9
'@babel/types': 7.23.9
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
dev: false
/@babel/traverse@7.24.1:
resolution: {integrity: sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==}
engines: {node: '>=6.9.0'}
@ -578,14 +416,6 @@ packages:
transitivePeerDependencies:
- supports-color
/@babel/types@7.23.9:
resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-string-parser': 7.23.4
'@babel/helper-validator-identifier': 7.22.20
to-fast-properties: 2.0.0
/@babel/types@7.24.0:
resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
engines: {node: '>=6.9.0'}
@ -594,24 +424,24 @@ packages:
'@babel/helper-validator-identifier': 7.22.20
to-fast-properties: 2.0.0
/@biomejs/biome@1.6.2:
resolution: {integrity: sha512-vw6JhYnpLRRDaawI+d7NaQj17F7LSSJrgT03IQUETwRUG3Q1/a4ByJRphTVXPuhiTnaKVmUlEF3I5NSitcdD+g==}
/@biomejs/biome@1.6.3:
resolution: {integrity: sha512-Xnp/TIpIcTnRA4LwerJuoGYQJEqwXtn5AL0U0OPXll/QGbAKmcUAfizU880xTwZRD4f53iceqODLDaD3wxYlIw==}
engines: {node: '>=14.*'}
hasBin: true
requiresBuild: true
optionalDependencies:
'@biomejs/cli-darwin-arm64': 1.6.2
'@biomejs/cli-darwin-x64': 1.6.2
'@biomejs/cli-linux-arm64': 1.6.2
'@biomejs/cli-linux-arm64-musl': 1.6.2
'@biomejs/cli-linux-x64': 1.6.2
'@biomejs/cli-linux-x64-musl': 1.6.2
'@biomejs/cli-win32-arm64': 1.6.2
'@biomejs/cli-win32-x64': 1.6.2
'@biomejs/cli-darwin-arm64': 1.6.3
'@biomejs/cli-darwin-x64': 1.6.3
'@biomejs/cli-linux-arm64': 1.6.3
'@biomejs/cli-linux-arm64-musl': 1.6.3
'@biomejs/cli-linux-x64': 1.6.3
'@biomejs/cli-linux-x64-musl': 1.6.3
'@biomejs/cli-win32-arm64': 1.6.3
'@biomejs/cli-win32-x64': 1.6.3
dev: true
/@biomejs/cli-darwin-arm64@1.6.2:
resolution: {integrity: sha512-2sGcNO1wDuQ6r97/SDaPzP3ehrCL7qHXpVggcB/OonbVBEamqIkN1tHsID/snnX3R2ax2QTarjb4bQ+1BpEWzA==}
/@biomejs/cli-darwin-arm64@1.6.3:
resolution: {integrity: sha512-0E8PGu3/8HSkBJdtjno+niJE1ANS/12D7sPK65vw5lTBYmmaYwJdfclDp6XO0IAX7uVd3/YtXlsEua0SVrNt3Q==}
engines: {node: '>=14.*'}
cpu: [arm64]
os: [darwin]
@ -619,8 +449,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-darwin-x64@1.6.2:
resolution: {integrity: sha512-qtHDXIHd7eRIHv41XdG6pt1dbw+qiD0OgLlJn5rvW20kSSFfLxW8yc4upcC1PzlruP1BQpKFec3r5rx1duTtzw==}
/@biomejs/cli-darwin-x64@1.6.3:
resolution: {integrity: sha512-UWu0We/aIRtWXgJKe6ygWt2xR0yXs64BwWqtZbfxBojRn3jgW8UdFAkV5yiUOX3TQlsV6BZH1EQaUAVsccUeeA==}
engines: {node: '>=14.*'}
cpu: [x64]
os: [darwin]
@ -628,8 +458,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-linux-arm64-musl@1.6.2:
resolution: {integrity: sha512-ej3Jj6O9KUSCJUWqVs+9aOo6IcRIALHaGFB20wnQTWtRMFhu1PluM48MrQtMKputgdk5/CopQ662IdKf1PeuEg==}
/@biomejs/cli-linux-arm64-musl@1.6.3:
resolution: {integrity: sha512-AntGCSfLN1nPcQj4VOk3X2JgnDw07DaPC8BuBmRcsRmn+7GPSWLllVN5awIKlRPZEbGJtSnLkTiDc5Bxw8OiuA==}
engines: {node: '>=14.*'}
cpu: [arm64]
os: [linux]
@ -637,8 +467,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-linux-arm64@1.6.2:
resolution: {integrity: sha512-e1FJ59lx84QoqQgu1/uzAPIcYGcTkZY/m6Aj8ZHwi7KoWAE5xSogximFHNQ82lS4qkUfG7KaPTbYT6cGJjN9jQ==}
/@biomejs/cli-linux-arm64@1.6.3:
resolution: {integrity: sha512-wFVkQw38kOssfnkbpSh6ums5TaElw3RAt5i/VZwHmgR2nQgE0fHXLO7HwIE9VBkOEdbiIFq+2PxvFIHuJF3z3Q==}
engines: {node: '>=14.*'}
cpu: [arm64]
os: [linux]
@ -646,8 +476,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-linux-x64-musl@1.6.2:
resolution: {integrity: sha512-uOVt4UBkFTFtdXgPX3QuSHRPVIvj07FP0P7A0UOP++idd0r9Bxyt5iIBaAORM3eQyGQqzCGPln1GuM6GalYKzg==}
/@biomejs/cli-linux-x64-musl@1.6.3:
resolution: {integrity: sha512-GelAvGsUwbxfFpKLG+7+dvDmbrfkGqn08sL8CMQrGnhjE1krAqHWiXQsjfmi0UMFdMsk7hbc4oSAP+1+mrXcHQ==}
engines: {node: '>=14.*'}
cpu: [x64]
os: [linux]
@ -655,8 +485,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-linux-x64@1.6.2:
resolution: {integrity: sha512-S6Wc5YX6aLDLMzwlDmiw/kjK62Ex+xzE432M5ge9q8tSCluGeHIzrenrJlu8E0xPG2FEipDaK4iqwnjS9O6e2A==}
/@biomejs/cli-linux-x64@1.6.3:
resolution: {integrity: sha512-vyn8TQaTZg617hjqFitwGmb1St5XXvq6I3vmxU/QFalM74BryMSvYCrYWb2Yw/TkykdEwZTMGYp+SWHRb04fTg==}
engines: {node: '>=14.*'}
cpu: [x64]
os: [linux]
@ -664,8 +494,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-win32-arm64@1.6.2:
resolution: {integrity: sha512-5zuxNyvnKy7oLN7KLkqcYpsMKGubfMaeQ+RqnpFsmrofQAxpOo6EL/TyJvr8g533Z0a2/cQ/ALqnwl0mN3KQoQ==}
/@biomejs/cli-win32-arm64@1.6.3:
resolution: {integrity: sha512-Gx8N2Tixke6pAI1BniteCVZgUUmaFEDYosdWxoaCus15BZI/7RcBxhsRM0ZL/lC66StSQ8vHl8JBrrld1k570Q==}
engines: {node: '>=14.*'}
cpu: [arm64]
os: [win32]
@ -673,8 +503,8 @@ packages:
dev: true
optional: true
/@biomejs/cli-win32-x64@1.6.2:
resolution: {integrity: sha512-O3nf09/m3cb3/U3M+uO4l236iTZr4F4SmLNG3okKXPfyZqKLNnF6OjdTHOYEiNXnGEtlRuUeemqb3vht9JkXaw==}
/@biomejs/cli-win32-x64@1.6.3:
resolution: {integrity: sha512-meungPJw64SqoR7LXY1wG7GC4+4wgpyThdFUMGXa6PCe0BLFOIOcZ9VMj9PstuczMPdgmt/BUMPsj25dK1VO8A==}
engines: {node: '>=14.*'}
cpu: [x64]
os: [win32]
@ -1293,15 +1123,6 @@ packages:
unist-util-visit-parents: 5.1.3
dev: false
/@jridgewell/gen-mapping@0.3.3:
resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/set-array': 1.1.2
'@jridgewell/sourcemap-codec': 1.4.15
'@jridgewell/trace-mapping': 0.3.25
dev: false
/@jridgewell/gen-mapping@0.3.5:
resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}
engines: {node: '>=6.0.0'}
@ -1314,11 +1135,6 @@ packages:
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
engines: {node: '>=6.0.0'}
/@jridgewell/set-array@1.1.2:
resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
engines: {node: '>=6.0.0'}
dev: false
/@jridgewell/set-array@1.2.1:
resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
engines: {node: '>=6.0.0'}
@ -1326,13 +1142,6 @@ packages:
/@jridgewell/sourcemap-codec@1.4.15:
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
/@jridgewell/trace-mapping@0.3.22:
resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==}
dependencies:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.4.15
dev: false
/@jridgewell/trace-mapping@0.3.25:
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
dependencies:
@ -1389,10 +1198,6 @@ packages:
- supports-color
dev: true
/@medv/finder@3.1.0:
resolution: {integrity: sha512-ojkXjR3K0Zz3jnCR80tqPL+0yvbZk/lEodb6RIVjLz7W8RVA2wrw8ym/CzCpXO9SYVUIKHFUpc7jvf8UKfIM3w==}
dev: false
/@nodelib/fs.scandir@2.1.5:
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
@ -1752,8 +1557,8 @@ packages:
/@types/babel__core@7.20.5:
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
dependencies:
'@babel/parser': 7.23.9
'@babel/types': 7.23.9
'@babel/parser': 7.24.1
'@babel/types': 7.24.0
'@types/babel__generator': 7.6.8
'@types/babel__template': 7.4.4
'@types/babel__traverse': 7.20.5
@ -1806,7 +1611,7 @@ packages:
/@types/jsonwebtoken@9.0.5:
resolution: {integrity: sha512-VRLSGzik+Unrup6BsouBeHsf4d1hOEgYWTm/7Nmw1sXoN1+tRly/Gy/po3yeahnP4jfnQWWAhQAqcNfH7ngOkA==}
dependencies:
'@types/node': 20.11.30
'@types/node': 20.12.2
dev: false
/@types/mdast@4.0.3:
@ -1834,8 +1639,8 @@ packages:
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
dev: true
/@types/node@20.11.30:
resolution: {integrity: sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==}
/@types/node@20.12.2:
resolution: {integrity: sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==}
dependencies:
undici-types: 5.26.5
@ -2079,8 +1884,8 @@ packages:
hasBin: true
dev: true
/astro-integration-kit@0.7.1(astro@4.4.11):
resolution: {integrity: sha512-QiIRvNdESlm7bziuEkWXUJI6uWdQgmeUEOLXkbpuMZrZK8c7DytbGSs3SStpT0b5ITQ1XcDV9r9DAixyW0F2Dg==}
/astro-integration-kit@0.8.0(astro@4.5.12):
resolution: {integrity: sha512-YTdSYrE6xrYpYWZghUUhsTs6Mt1H+/Mucv2VUPfhHoeY8IS9XbpA2adFEBRMd4n+sFd8W490gCUtjmWxnhEs9Q==}
peerDependencies:
'@astrojs/db': ^0.9.0
'@vitejs/plugin-react': ^4.2.1
@ -2109,102 +1914,19 @@ packages:
vue:
optional: true
dependencies:
astro: 4.4.11
astro: 4.5.12(@types/node@20.12.2)(typescript@5.4.3)
pathe: 1.1.2
recast: 0.23.5
dev: false
/astro@4.4.11:
resolution: {integrity: sha512-mJ1k67xzAJO1vTTpATe76uSWhOgiEj3Id7narE6X2rMMOBjR8vJM+9Cmv/Wbpot6uMwFo780skUowlMptK96fQ==}
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
hasBin: true
dependencies:
'@astrojs/compiler': 2.6.0
'@astrojs/internal-helpers': 0.2.1
'@astrojs/markdown-remark': 4.2.1
'@astrojs/telemetry': 3.0.4
'@babel/core': 7.23.9
'@babel/generator': 7.23.6
'@babel/parser': 7.23.9
'@babel/plugin-transform-react-jsx': 7.23.4(@babel/core@7.23.9)
'@babel/traverse': 7.23.9
'@babel/types': 7.23.9
'@medv/finder': 3.1.0
'@types/babel__core': 7.20.5
acorn: 8.11.3
aria-query: 5.3.0
axobject-query: 4.0.0
boxen: 7.1.1
chokidar: 3.6.0
ci-info: 4.0.0
clsx: 2.1.0
common-ancestor-path: 1.0.1
cookie: 0.6.0
cssesc: 3.0.0
debug: 4.3.4
deterministic-object-hash: 2.0.2
devalue: 4.3.2
diff: 5.2.0
dlv: 1.1.3
dset: 3.1.3
es-module-lexer: 1.4.1
esbuild: 0.19.12
estree-walker: 3.0.3
execa: 8.0.1
fast-glob: 3.3.2
flattie: 1.1.0
github-slugger: 2.0.0
gray-matter: 4.0.3
html-escaper: 3.0.3
http-cache-semantics: 4.1.1
js-yaml: 4.1.0
kleur: 4.1.5
magic-string: 0.30.7
mdast-util-to-hast: 13.0.2
mime: 3.0.0
ora: 7.0.1
p-limit: 5.0.0
p-queue: 8.0.1
path-to-regexp: 6.2.1
preferred-pm: 3.1.3
prompts: 2.4.2
rehype: 13.0.1
resolve: 1.22.8
semver: 7.6.0
shikiji: 0.9.19
shikiji-core: 0.9.19
string-width: 7.1.0
strip-ansi: 7.1.0
tsconfck: 3.0.2(typescript@5.4.3)
unist-util-visit: 5.0.0
vfile: 6.0.1
vite: 5.2.6(@types/node@20.11.30)
vitefu: 0.2.5(vite@5.2.6)
which-pm: 2.1.1
yargs-parser: 21.1.1
zod: 3.22.4
optionalDependencies:
sharp: 0.32.6
transitivePeerDependencies:
- '@types/node'
- less
- lightningcss
- sass
- stylus
- sugarss
- supports-color
- terser
- typescript
dev: false
/astro@4.5.9(@types/node@20.11.30)(typescript@5.4.3):
resolution: {integrity: sha512-GheU72Goz7dYQNKaqTxB2H49cNvHfahGSbNkTvMXk+gyHf/g633qadqlO2ZQbTUacoUWmDzvS5fhMZt2/w4naQ==}
/astro@4.5.12(@types/node@20.12.2)(typescript@5.4.3):
resolution: {integrity: sha512-xIJcFI2hbyV8+h5pWjL7SKD1jIP0K01fYVAH+gdAt0mJaXy+u8Mj+goD0cPlK6sEaykR+7zxQLYGKJ44U4qarg==}
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
hasBin: true
dependencies:
'@astrojs/compiler': 2.7.0
'@astrojs/internal-helpers': 0.3.0
'@astrojs/markdown-remark': 4.3.1
'@astrojs/internal-helpers': 0.4.0
'@astrojs/markdown-remark': 4.3.2
'@astrojs/telemetry': 3.0.4
'@babel/core': 7.24.3
'@babel/generator': 7.24.1
@ -2258,8 +1980,8 @@ packages:
tsconfck: 3.0.2(typescript@5.4.3)
unist-util-visit: 5.0.0
vfile: 6.0.1
vite: 5.2.6(@types/node@20.11.30)
vitefu: 0.2.5(vite@5.2.6)
vite: 5.2.7(@types/node@20.12.2)
vitefu: 0.2.5(vite@5.2.7)
which-pm: 2.1.1
yargs-parser: 21.1.1
zod: 3.22.4
@ -5395,16 +5117,6 @@ packages:
dependencies:
'@shikijs/core': 1.1.7
/shikiji-core@0.9.19:
resolution: {integrity: sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw==}
dev: false
/shikiji@0.9.19:
resolution: {integrity: sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==}
dependencies:
shikiji-core: 0.9.19
dev: false
/side-channel@1.0.5:
resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==}
engines: {node: '>= 0.4'}
@ -6063,8 +5775,8 @@ packages:
unist-util-stringify-position: 4.0.0
vfile-message: 4.0.2
/vite@5.2.6(@types/node@20.11.30):
resolution: {integrity: sha512-FPtnxFlSIKYjZ2eosBQamz4CbyrTizbZ3hnGJlh/wMtCrlp1Hah6AzBLjGI5I2urTfNnpovpHdrL6YRuBOPnCA==}
/vite@5.2.7(@types/node@20.12.2):
resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@ -6091,14 +5803,14 @@ packages:
terser:
optional: true
dependencies:
'@types/node': 20.11.30
'@types/node': 20.12.2
esbuild: 0.20.2
postcss: 8.4.38
rollup: 4.13.0
optionalDependencies:
fsevents: 2.3.3
/vitefu@0.2.5(vite@5.2.6):
/vitefu@0.2.5(vite@5.2.7):
resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==}
peerDependencies:
vite: ^3.0.0 || ^4.0.0 || ^5.0.0
@ -6106,7 +5818,7 @@ packages:
vite:
optional: true
dependencies:
vite: 5.2.6(@types/node@20.11.30)
vite: 5.2.7(@types/node@20.12.2)
/volar-service-css@0.0.34(@volar/language-service@2.1.5):
resolution: {integrity: sha512-C7ua0j80ZD7bsgALAz/cA1bykPehoIa5n+3+Ccr+YLpj0fypqw9iLUmGLX11CqzqNCO2XFGe/1eXB/c+SWrF/g==}