this time actually fixed pl-api
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
8f17bb8783
commit
299fd52dc1
4 changed files with 7 additions and 8 deletions
|
@ -85,7 +85,6 @@ const baseAccountSchema = z.object({
|
|||
group: z.boolean().catch(false),
|
||||
discoverable: z.boolean().catch(false),
|
||||
noindex: z.boolean().nullable().catch(null),
|
||||
moved: z.null().catch(null),
|
||||
suspended: z.boolean().optional().catch(undefined),
|
||||
limited: z.boolean().optional().catch(undefined),
|
||||
created_at: z.string().datetime().catch(new Date().toUTCString()),
|
||||
|
@ -138,7 +137,7 @@ type WithMoved = {
|
|||
moved: Account | null;
|
||||
};
|
||||
|
||||
type Account = z.infer<typeof baseAccountSchema> & WithMoved;
|
||||
type Account = z.infer<typeof accountWithMovedAccountSchema> & WithMoved;
|
||||
|
||||
const accountSchema: z.ZodType<Account> = untypedAccountSchema as any;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "pl-api",
|
||||
"version": "0.0.40",
|
||||
"version": "0.0.41",
|
||||
"type": "module",
|
||||
"homepage": "https://github.com/mkljczk/pl-fe/tree/fork/packages/pl-api",
|
||||
"repository": {
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"multiselect-react-dropdown": "^2.0.25",
|
||||
"path-browserify": "^1.0.1",
|
||||
"pl-api": "^0.0.40",
|
||||
"pl-api": "^0.0.41",
|
||||
"postcss": "^8.4.47",
|
||||
"process": "^0.11.10",
|
||||
"punycode": "^2.1.1",
|
||||
|
|
|
@ -8128,10 +8128,10 @@ pirates@^4.0.1:
|
|||
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"
|
||||
integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==
|
||||
|
||||
pl-api@^0.0.40:
|
||||
version "0.0.40"
|
||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.40.tgz#d2c63a8673e8899e5ea1b550544b2658310bfa03"
|
||||
integrity sha512-HgpfBm+JJ68ack5Crw7f+2fKUCueJTy//xwgUjvOw4ZCBUsMlckse+VjZNoUsgg3jPxY1Yb8e2nJkJCdiYnTkA==
|
||||
pl-api@^0.0.41:
|
||||
version "0.0.41"
|
||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.41.tgz#f8f629c0ccb58ae995e0f8c371ec75406c2cb50f"
|
||||
integrity sha512-7GgkF2WPVjFk13Odqz4Irem3ydblzPrOyG7cA2u7CI7f6k6vGjaiO8zHLCUUcAqlthYZah4aLH3wjkqh8YNLCQ==
|
||||
dependencies:
|
||||
blurhash "^2.0.5"
|
||||
http-link-header "^1.1.3"
|
||||
|
|
Loading…
Reference in a new issue