mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
dc05edfe60
* feat: async storage plugin bootstrap * refactor fs.promise to promisify on node12 * Add changeset * Update big-lobsters-sin.md * Update utils.test.ts * Update utils.test.ts * Update ci.yml * Update utils.test.ts
35 lines
851 B
TypeScript
35 lines
851 B
TypeScript
// REMOVE and VERIFY where these types are used and remove the package
|
|
|
|
import { Callback, RemoteUser, Package } from '@verdaccio/types';
|
|
|
|
export type JWTPayload = RemoteUser & {
|
|
password?: string;
|
|
};
|
|
|
|
export interface Utils {
|
|
ErrorCode: any;
|
|
getLatestVersion: Callback;
|
|
isObject: (value: any) => boolean;
|
|
validate_name: (value: any) => boolean;
|
|
tag_version: (value: any, version: string, tag: string) => void;
|
|
normalizeDistTags: (pkg: Package) => void;
|
|
semverSort: (keys: string[]) => string[];
|
|
}
|
|
|
|
export interface Profile {
|
|
tfa: boolean;
|
|
name: string;
|
|
email: string;
|
|
email_verified: string;
|
|
created: string;
|
|
updated: string;
|
|
cidr_whitelist: any;
|
|
fullname: string;
|
|
}
|
|
|
|
/**
|
|
* @property { string | number | Styles } [ruleOrSelector]
|
|
*/
|
|
export interface Styles {
|
|
[ruleOrSelector: string]: string | number | Styles;
|
|
}
|