Add missing file
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
1778800291
commit
b23c8a2dbd
3 changed files with 18 additions and 6 deletions
|
@ -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",
|
||||
|
|
12
src/normalizers/group-member.ts
Normal file
12
src/normalizers/group-member.ts
Normal 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 };
|
10
yarn.lock
10
yarn.lock
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue