MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / setOrgData

Method setOrgData

cli/src/mock-state.ts:130–137  ·  view source on GitHub ↗
(org: string, data: Partial<MockOrgData>)

Source from the content-addressed store, hash-verified

128 // -- Org data --
129
130 setOrgData(org: string, data: Partial<MockOrgData>): void {
131 const existing = this.state.orgs[org] ?? { users: {}, teams: [], teamMembers: {} }
132 this.state.orgs[org] = {
133 users: { ...existing.users, ...data.users },
134 teams: data.teams ?? existing.teams,
135 teamMembers: { ...existing.teamMembers, ...data.teamMembers },
136 }
137 }
138
139 getOrgUsers(org: string): Record<string, OrgRole> | null {
140 const normalizedOrg = org.startsWith('@') ? org : `@${org}`

Callers 2

populateDefaultDataFunction · 0.45
createMockConnectorAppFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected