@astrojs/mdx 4.3.6 → 4.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseFrontmatter } from "@astrojs/markdown-remark";
|
|
2
2
|
import { parse } from "acorn";
|
|
3
|
-
import
|
|
3
|
+
import colors from "picocolors";
|
|
4
4
|
function appendForwardSlash(path) {
|
|
5
5
|
return path.endsWith("/") ? path : path + "/";
|
|
6
6
|
}
|
|
@@ -65,10 +65,10 @@ function ignoreStringPlugins(plugins, logger) {
|
|
|
65
65
|
let hasInvalidPlugin = false;
|
|
66
66
|
for (const plugin of plugins) {
|
|
67
67
|
if (typeof plugin === "string") {
|
|
68
|
-
logger.warn(`${bold(plugin)} not applied.`);
|
|
68
|
+
logger.warn(`${colors.bold(plugin)} not applied.`);
|
|
69
69
|
hasInvalidPlugin = true;
|
|
70
70
|
} else if (Array.isArray(plugin) && typeof plugin[0] === "string") {
|
|
71
|
-
logger.warn(`${bold(plugin[0])} not applied.`);
|
|
71
|
+
logger.warn(`${colors.bold(plugin[0])} not applied.`);
|
|
72
72
|
hasInvalidPlugin = true;
|
|
73
73
|
} else {
|
|
74
74
|
validPlugins.push(plugin);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/mdx",
|
|
3
3
|
"description": "Add support for MDX pages in your Astro site",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"es-module-lexer": "^1.7.0",
|
|
34
34
|
"estree-util-visit": "^2.0.0",
|
|
35
35
|
"hast-util-to-html": "^9.0.5",
|
|
36
|
-
"
|
|
36
|
+
"picocolors": "^1.1.1",
|
|
37
37
|
"rehype-raw": "^7.0.0",
|
|
38
38
|
"remark-gfm": "^4.0.1",
|
|
39
39
|
"remark-smartypants": "^3.0.2",
|
|
40
40
|
"source-map": "^0.7.6",
|
|
41
41
|
"unist-util-visit": "^5.0.0",
|
|
42
42
|
"vfile": "^6.0.3",
|
|
43
|
-
"@astrojs/markdown-remark": "6.3.
|
|
43
|
+
"@astrojs/markdown-remark": "6.3.8"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"astro": "^5.0.0"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"shiki": "^3.12.0",
|
|
63
63
|
"unified": "^11.0.5",
|
|
64
64
|
"vite": "^6.3.6",
|
|
65
|
-
"astro": "5.
|
|
65
|
+
"astro": "5.15.0",
|
|
66
66
|
"astro-scripts": "0.0.14"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'astro:content' {
|
|
2
2
|
interface Render {
|
|
3
3
|
'.mdx': Promise<{
|
|
4
|
-
Content: import('astro').
|
|
4
|
+
Content: import('astro').MDXContent;
|
|
5
5
|
headings: import('astro').MarkdownHeading[];
|
|
6
6
|
remarkPluginFrontmatter: Record<string, any>;
|
|
7
7
|
components: import('astro').MDXInstance<{}>['components'];
|