Add missing file

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-08-18 17:51:24 +02:00
parent 1778800291
commit b23c8a2dbd
3 changed files with 18 additions and 6 deletions

View file

@ -133,7 +133,7 @@
"multiselect-react-dropdown": "^2.0.25",
"object-to-formdata": "^4.5.1",
"path-browserify": "^1.0.1",
"pl-api": "^0.0.2",
"pl-api": "^0.0.4",
"postcss": "^8.4.29",
"process": "^0.11.10",
"punycode": "^2.1.1",

View file

@ -0,0 +1,12 @@
import { normalizeAccount } from './account';
import type { GroupMember as BaseGroupMember } from 'pl-api';
const normalizeGroupMember = (groupMember: BaseGroupMember) => ({
...groupMember,
account: normalizeAccount(groupMember.account),
});
type GroupMember = ReturnType<typeof normalizeGroupMember>;
export { normalizeGroupMember, type GroupMember };

View file

@ -8390,14 +8390,14 @@ pkg-types@^1.0.3:
mlly "^1.2.0"
pathe "^1.1.0"
pl-api@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.2.tgz#b717ed27e0f8ba716457728d0472aba30b7461cf"
integrity sha512-TGHH6StmkwVBs0PZk4zB1N66VRncANtGgDbhoc+9ca+HIRYux7HuGsVXyoOY9xKrNPRu4WYk+AeaNYTMcnuCIQ==
pl-api@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.4.tgz#416f4ed469a10b2c39db01ab63ca4839a2a9b024"
integrity sha512-NgNajifSHBju6D98KqjYVl/ztJw983h+Sw58zz8BLrhltIOk6ssOwmMeIk4p3lZ4+8NUOnnG9wgz6/ZwHjHn8g==
dependencies:
blurhash "^2.0.5"
http-link-header "^1.1.3"
lodash "^4.17.21"
lodash.pick "^4.4.0"
object-to-formdata "^4.5.1"
query-string "^9.1.0"
semver "^7.6.3"