[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",
|
||||
"vitefu": "^0.2.4",
|
||||
"yargs-parser": "^21.0.1",
|
||||
"zod": "^3.17.3"
|
||||
"zod": "^3.20.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.29.2",
|
||||
|
|
|
@ -23,7 +23,7 @@ export const errorMap: ZodErrorMap = (baseError, ctx) => {
|
|||
} else {
|
||||
typeOrLiteralErrByPath.set(flattenedErrorPath, {
|
||||
code: unionError.code,
|
||||
received: unionError.received,
|
||||
received: (unionError as any).received,
|
||||
expected: [unionError.expected],
|
||||
});
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ export const errorMap: ZodErrorMap = (baseError, ctx) => {
|
|||
baseErrorPath,
|
||||
getTypeOrLiteralMsg({
|
||||
code: baseError.code,
|
||||
received: baseError.received,
|
||||
received: (baseError as any).received,
|
||||
expected: [baseError.expected],
|
||||
})
|
||||
),
|
||||
|
|
|
@ -25,7 +25,7 @@ export function createImage(
|
|||
fatal: true,
|
||||
});
|
||||
|
||||
return z.NEVER;
|
||||
return z.never();
|
||||
}
|
||||
|
||||
return metadata;
|
||||
|
|
|
@ -32,7 +32,7 @@ export default function astro(_opts: AstroPluginOptions): Plugin {
|
|||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
});
|
||||
// @ts-expect-error acorn.Node is not assignable to estree.Node
|
||||
|
||||
walk(ast, {
|
||||
enter(node: any) {
|
||||
// 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);
|
||||
}
|
||||
|
||||
let parent = element.parentNode as Element;
|
||||
|
||||
render(
|
||||
h(
|
||||
Wrapper,
|
||||
null,
|
||||
h(Component, props, children != null ? h(StaticHtml, { value: children }) : children)
|
||||
),
|
||||
element.parentNode!,
|
||||
parent,
|
||||
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';
|
||||
|
||||
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