跳到主要内容
版本号:Next

Namespace: pkgUtils

Functions

extractTarballName

extractTarballName(tarball): any

Extract the tarball name from a registry dist url 'https://registry.npmjs.org/test/-/test-0.0.2.tgz'

Parameters

NameTypeDescription
tarballstringtarball url

Returns

any

tarball filename

Defined in

pkg-utils.ts:14


getLatest

getLatest(pkg): string

Get the latest publihsed version of a package.

Parameters

NameType
pkgManifest

Returns

string

Defined in

pkg-utils.ts:40


mergeVersions

mergeVersions(local, upstream): void

Function gets a local info and an info from uplinks and tries to merge it exported for unit tests only.

Deprecated

use @verdaccio/storage mergeVersions method

Parameters

NameTypeDescription
localManifest*
upstreamManifest*

Returns

void

Defined in

pkg-utils.ts:61


semverSort

semverSort(listVersions): string[]

Function filters out bad semver versions and sorts the array.

Parameters

NameType
listVersionsstring[]

Returns

string[]

sorted Array

Defined in

pkg-utils.ts:24