MCPcopy
hub / github.com/npmx-dev/npmx.dev / validateScopeTeam

Function validateScopeTeam

cli/src/npm-client.ts:67–72  ·  view source on GitHub ↗
(scopeTeam: string)

Source from the content-addressed store, hash-verified

65 * @internal
66 */
67export function validateScopeTeam(scopeTeam: string): void {
68 const result = v.safeParse(ScopeTeamSchema, scopeTeam)
69 if (!result.success) {
70 throw new Error(`Invalid scope:team format: ${scopeTeam}. Expected @scope:team`)
71 }
72}
73
74export interface NpmExecResult {
75 stdout: string

Callers 9

npm-client.spec.tsFile · 0.90
common.spec.tsFile · 0.90
teamCreateFunction · 0.85
teamDestroyFunction · 0.85
teamAddUserFunction · 0.85
teamRemoveUserFunction · 0.85
accessGrantFunction · 0.85
accessRevokeFunction · 0.85
teamListUsersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected