File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ export const ERROR_NPM_FETCH_FAILED = 'Failed to fetch package from npm registry
1919export const UNSET_NUXT_SESSION_PASSWORD = 'NUXT_SESSION_PASSWORD not set'
2020/** @public */
2121export const ERROR_SUGGESTIONS_FETCH_FAILED = 'Failed to fetch suggestions.'
22+ /** @public */
2223export const ERROR_GRAVATAR_FETCH_FAILED = 'Failed to fetch Gravatar profile.'
24+ /** @public */
2325export const ERROR_GRAVATAR_EMAIL_UNAVAILABLE = "User's email not accessible."
2426
2527// microcosm services
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export function assertValidPackageName(name: string): void {
2222/**
2323 * Validate an npm username and throw an HTTP error if invalid.
2424 * Uses a regular expression to check against npm naming rules.
25+ * @public
2526 */
2627export function assertValidUsername ( username : string ) : void {
2728 if ( ! username || username . length > NPM_USERNAME_MAX_LENGTH || ! NPM_USERNAME_RE . test ( username ) ) {
You can’t perform that action at this time.
0 commit comments