Salta al contenuto principale
Versione: Successivo

@verdaccio/types - v13.0.0-next-8.1

Interfaces

Type Aliases

AbbreviatedManifest

Ƭ AbbreviatedManifest: Pick<Manifest, "name" | "dist-tags" | "time"> & { modified: string ; versions: AbbreviatedVersions }

Defined in

packages/core/types/src/manifest.ts:253


AbbreviatedVersion

Ƭ AbbreviatedVersion: Pick<Version, "name" | "version" | "dependencies" | "devDependencies" | "bin" | "dist" | "engines" | "funding" | "peerDependencies" | "cpu" | "deprecated" | "directories" | "hasInstallScript" | "optionalDependencies" | "os" | "peerDependenciesMeta" | "acceptDependencies" | "_hasShrinkwrap">

Defined in

packages/core/types/src/manifest.ts:225


Algorithm

Ƭ Algorithm: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none"

Defined in

packages/core/types/src/configuration.ts:156


AuthConf

Ƭ AuthConf: any | AuthHtpasswd

Defined in

packages/core/types/src/configuration.ts:149


Callback

Ƭ Callback: Function

Defined in

packages/core/types/src/commons.ts:2


CallbackAction

Ƭ CallbackAction: (err: any | null) => void

Type declaration

▸ (err): void

Parameters
NameType
errany | null
Returns

void

Defined in

packages/core/types/src/commons.ts:4


CallbackError

Ƭ CallbackError: (err: NodeJS.ErrnoException) => void

Type declaration

▸ (err): void

Parameters
NameType
errNodeJS.ErrnoException
Returns

void

Defined in

packages/core/types/src/commons.ts:6


CommonWebConf

Ƭ CommonWebConf: Object

Type declaration

NameType
darkMode?boolean
favicon?string
gravatar?boolean
hideDeprecatedVersions?boolean
language?string
login?boolean
logo?string
logoDark?string
pkgManagers?PackageManagers[]
primaryColorstring
scope?string
showDownloadTarball?boolean
showFooter?boolean
showInfo?boolean
showRaw?boolean
showSearch?boolean
showSettings?boolean
showThemeSwitch?boolean
showUplinks?boolean
sort_packages?string
title?string
url_prefix?string

Defined in

packages/core/types/src/configuration.ts:83


FlagsConfig

Ƭ FlagsConfig: Object

Type declaration

NameType
changePassword?boolean
searchRemote?boolean

Defined in

packages/core/types/src/configuration.ts:75


HttpsConf

Ƭ HttpsConf: HttpsConfKeyCert | HttpsConfPfx

Defined in

packages/core/types/src/configuration.ts:219


LoggerConfigItem

Ƭ LoggerConfigItem: Object

Type declaration

NameType
async?boolean
colors?boolean
format?LoggerFormat
level?string
path?string
type?LoggerType

Defined in

packages/core/types/src/configuration.ts:19


LoggerFormat

Ƭ LoggerFormat: "pretty" | "pretty-timestamped" | "json"

Defined in

packages/core/types/src/configuration.ts:16


LoggerLevel

Ƭ LoggerLevel: "http" | "fatal" | "warn" | "info" | "debug" | "trace"

Defined in

packages/core/types/src/configuration.ts:17


LoggerType

Ƭ LoggerType: "stdout" | "file"

Defined in

packages/core/types/src/configuration.ts:15


Notification

Ƭ Notification: Notifications

Defined in

packages/core/types/src/configuration.ts:230


PackageManagers

Ƭ PackageManagers: "pnpm" | "yarn" | "npm"

Defined in

packages/core/types/src/configuration.ts:80


PackageTransformer

Ƭ PackageTransformer: (pkg: Manifest) => Manifest

Type declaration

▸ (pkg): Manifest

Parameters
NameType
pkgManifest
Returns

Manifest

Defined in

packages/core/types/src/plugins/storage.ts:45


PublisherMaintainer

Ƭ PublisherMaintainer: Object

Type declaration

NameType
emailstring
usernamestring

Defined in

packages/core/types/src/search.ts:1


RateLimit

Ƭ RateLimit: Object

Type declaration

NameType
max?number
windowMs?number

Defined in

packages/core/types/src/configuration.ts:70


ReadPackageCallback

Ƭ ReadPackageCallback: (err: any | null, data?: Manifest) => void

Type declaration

▸ (err, data?): void

Parameters
NameType
errany | null
data?Manifest
Returns

void

Defined in

packages/core/types/src/plugins/storage.ts:46


SearchPackageBody

Ƭ SearchPackageBody: Object

Type declaration

NameType
authorstring | PublisherMaintainer
datestring
descriptionstring
keywordsstring | string[] | undefined
links?{ bugs?: string ; homepage?: string ; npm: string ; repository?: string }
links.bugs?string
links.homepage?string
links.npmstring
links.repository?string
maintainers?PublisherMaintainer[]
namestring
publisher?any
scopestring
versionstring

Defined in

packages/core/types/src/search.ts:6


SearchResultWeb

Ƭ SearchResultWeb: Object

Type declaration

NameType
descriptionstring
namestring
versionstring

Defined in

packages/core/types/src/search.ts:24


ServerSettingsConf

Ƭ ServerSettingsConf: Object

Type declaration

NameTypeDescription
keepAliveTimeout?number-
passwordValidationRegex?RegExp-
pluginPrefix?stringPlugins should be prefixed verdaccio-XXXXXX by default. To override the default prefix, use this property without - If you set pluginPrefix: acme, the packages to resolve will be acme-XXXXXX
rateLimitRateLimit-
trustProxy?string-

Defined in

packages/core/types/src/configuration.ts:232


StorageList

Ƭ StorageList: string[]

Defined in

packages/core/types/src/plugins/storage.ts:4


StorageUpdateCallback

Ƭ StorageUpdateCallback: (data: Manifest, cb: CallbackAction) => void

Type declaration

▸ (data, cb): void

Parameters
NameType
dataManifest
cbCallbackAction
Returns

void

Defined in

packages/core/types/src/plugins/storage.ts:42


StorageWriteCallback

Ƭ StorageWriteCallback: (name: string, json: Manifest, callback: Callback) => void

Type declaration

▸ (name, json, callback): void

Parameters
NameType
namestring
jsonManifest
callbackCallback
Returns

void

Defined in

packages/core/types/src/plugins/storage.ts:44


StringValue

Ƭ StringValue: string | void | null

Defined in

packages/core/types/src/commons.ts:15


TemplateUIOptions

Ƭ TemplateUIOptions: { base: string ; basename?: string ; flags: FlagsConfig ; host?: string ; protocol?: string ; uri?: string ; version?: string } & CommonWebConf

Options are passed to the index.html

Defined in

packages/core/types/src/configuration.ts:111


TypeToken

Ƭ TypeToken: "Bearer" | "Basic"

Defined in

packages/core/types/src/configuration.ts:3


URLPrefix

Ƭ URLPrefix: Object

Type declaration

NameType
absoluteboolean
basePathstring

Defined in

packages/core/types/src/commons.ts:30


WebConf

Ƭ WebConf: { bodyAfter?: string[] ; bodyBefore?: string[] ; enable?: boolean ; html_cache?: boolean ; metaScripts?: string[] ; primaryColor?: string ; primary_color?: string ; rateLimit?: RateLimit ; scriptsBodyAfter?: string[] ; scriptsHead?: string[] ; scriptsbodyBefore?: string[] } & CommonWebConf

Options on config.yaml for web

Defined in

packages/core/types/src/configuration.ts:125


onEndSearchPackage

Ƭ onEndSearchPackage: (error?: any) => void

Type declaration

▸ (error?): void

Parameters
NameType
error?any
Returns

void

Defined in

packages/core/types/src/plugins/storage.ts:39


onSearchPackage

Ƭ onSearchPackage: (item: Manifest, cb: CallbackAction) => void

Type declaration

▸ (item, cb): void

This method expect return a Package object eg: { name: string; time: number; ... and other props }

The cb callback object will be executed if:

  • it might return object (truly)
  • it might reutrn null
Parameters
NameType
itemManifest
cbCallbackAction
Returns

void

Defined in

packages/core/types/src/plugins/storage.ts:36


onValidatePackage

Ƭ onValidatePackage: (name: string) => boolean

Type declaration

▸ (name): boolean

Parameters
NameType
namestring
Returns

boolean

Defined in

packages/core/types/src/plugins/storage.ts:40