[ci] update lockfile (#6837)
* [ci] update lockfile * Fix type errors * Fix zod version * updated lockfile * fix tests --------- Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
This commit is contained in:
parent
500ee802ac
commit
0f4c005750
7 changed files with 2245 additions and 2528 deletions
|
@ -158,7 +158,7 @@
|
||||||
"vite": "^4.2.1",
|
"vite": "^4.2.1",
|
||||||
"vitefu": "^0.2.4",
|
"vitefu": "^0.2.4",
|
||||||
"yargs-parser": "^21.0.1",
|
"yargs-parser": "^21.0.1",
|
||||||
"zod": "^3.17.3"
|
"zod": "^3.20.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.29.2",
|
"@playwright/test": "^1.29.2",
|
||||||
|
|
|
@ -23,7 +23,7 @@ export const errorMap: ZodErrorMap = (baseError, ctx) => {
|
||||||
} else {
|
} else {
|
||||||
typeOrLiteralErrByPath.set(flattenedErrorPath, {
|
typeOrLiteralErrByPath.set(flattenedErrorPath, {
|
||||||
code: unionError.code,
|
code: unionError.code,
|
||||||
received: unionError.received,
|
received: (unionError as any).received,
|
||||||
expected: [unionError.expected],
|
expected: [unionError.expected],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ export const errorMap: ZodErrorMap = (baseError, ctx) => {
|
||||||
baseErrorPath,
|
baseErrorPath,
|
||||||
getTypeOrLiteralMsg({
|
getTypeOrLiteralMsg({
|
||||||
code: baseError.code,
|
code: baseError.code,
|
||||||
received: baseError.received,
|
received: (baseError as any).received,
|
||||||
expected: [baseError.expected],
|
expected: [baseError.expected],
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
|
|
|
@ -25,7 +25,7 @@ export function createImage(
|
||||||
fatal: true,
|
fatal: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return z.NEVER;
|
return z.never();
|
||||||
}
|
}
|
||||||
|
|
||||||
return metadata;
|
return metadata;
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default function astro(_opts: AstroPluginOptions): Plugin {
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
});
|
});
|
||||||
// @ts-expect-error acorn.Node is not assignable to estree.Node
|
|
||||||
walk(ast, {
|
walk(ast, {
|
||||||
enter(node: any) {
|
enter(node: any) {
|
||||||
// Transform `Astro.glob("./pages/*.astro")` to `Astro.glob(import.meta.glob("./pages/*.astro"), () => "./pages/*.astro")`
|
// Transform `Astro.glob("./pages/*.astro")` to `Astro.glob(import.meta.glob("./pages/*.astro"), () => "./pages/*.astro")`
|
||||||
|
|
|
@ -35,13 +35,15 @@ export default (element: HTMLElement) =>
|
||||||
return h(element.localName, attrs, children);
|
return h(element.localName, attrs, children);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let parent = element.parentNode as Element;
|
||||||
|
|
||||||
render(
|
render(
|
||||||
h(
|
h(
|
||||||
Wrapper,
|
Wrapper,
|
||||||
null,
|
null,
|
||||||
h(Component, props, children != null ? h(StaticHtml, { value: children }) : children)
|
h(Component, props, children != null ? h(StaticHtml, { value: children }) : children)
|
||||||
),
|
),
|
||||||
element.parentNode!,
|
parent,
|
||||||
element
|
element
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Data, VFile } from 'vfile';
|
import type { VFileData as Data, VFile } from 'vfile';
|
||||||
import type { MarkdownAstroData } from './types.js';
|
import type { MarkdownAstroData } from './types.js';
|
||||||
|
|
||||||
function isValidAstroData(obj: unknown): obj is MarkdownAstroData {
|
function isValidAstroData(obj: unknown): obj is MarkdownAstroData {
|
||||||
|
|
4757
pnpm-lock.yaml
4757
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue