[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:
Houston (Bot) 2023-04-13 11:09:19 -07:00 committed by GitHub
parent 500ee802ac
commit 0f4c005750
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 2245 additions and 2528 deletions

View file

@ -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",

View file

@ -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],
}) })
), ),

View file

@ -25,7 +25,7 @@ export function createImage(
fatal: true, fatal: true,
}); });
return z.NEVER; return z.never();
} }
return metadata; return metadata;

View file

@ -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")`

View file

@ -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
); );
}; };

View file

@ -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 {

File diff suppressed because it is too large Load diff