[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",
"vitefu": "^0.2.4",
"yargs-parser": "^21.0.1",
"zod": "^3.17.3"
"zod": "^3.20.6"
},
"devDependencies": {
"@playwright/test": "^1.29.2",

View file

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

View file

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

View file

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

View file

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

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';
function isValidAstroData(obj: unknown): obj is MarkdownAstroData {

File diff suppressed because it is too large Load diff