Class: CanaryPublishApplier
@pvm/plugin-core.CanaryPublishApplier
Hierarchy
↳
CanaryPublishApplier
Constructors
constructor
• new CanaryPublishApplier(repo
, publishedPackages
, flags
)
Parameters
Name | Type |
---|---|
repo | Repository |
publishedPackages | PkgSet <Pkg > |
flags | Flags |
Overrides
AbstractPublishApplier.constructor
Defined in
src/plugins/core/publish/publish-applier/canary.ts:23
Properties
canaryVersionCalcTasks
• Private
canaryVersionCalcTasks: PkgMap
<PromiseLike
<string
>, Pkg
>
Defined in
src/plugins/core/publish/publish-applier/canary.ts:18
canaryVersions
• Private
canaryVersions: PkgMap
<string
, Pkg
>
Defined in
src/plugins/core/publish/publish-applier/canary.ts:17
flags
• Private
flags: Flags
Defined in
src/plugins/core/publish/publish-applier/canary.ts:20
publishedPackages
• Private
publishedPackages: PkgSet
<Pkg
>
Defined in
src/plugins/core/publish/publish-applier/canary.ts:19
repo
• repo: Repository
Inherited from
Defined in
src/plugins/core/publish/publish-applier/abstract.ts:11
Methods
applyActualDeps
â–¸ applyActualDeps(pkg
): Promise
<AppliedPkg
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
Promise
<AppliedPkg
>
Inherited from
AbstractPublishApplier.applyActualDeps
Defined in
src/plugins/core/publish/publish-applier/abstract.ts:23
applyForPublish
â–¸ applyForPublish(pkg
): Promise
<AppliedPkg
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
Promise
<AppliedPkg
>
Inherited from
AbstractPublishApplier.applyForPublish
Defined in
src/plugins/core/publish/publish-applier/abstract.ts:38
asyncSafeCalcCanaryVersion
â–¸ asyncSafeCalcCanaryVersion(pkg
, unifiedBaseCanaryIndex
): Promise
<string
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
unifiedBaseCanaryIndex | undefined | number |
Returns
Promise
<string
>
Defined in
src/plugins/core/publish/publish-applier/canary.ts:70
calcCanaryVersion
â–¸ calcCanaryVersion(pkg
, registry
, preid
, unifiedBaseCanaryIndex
): Promise
<string
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
registry | string |
preid | string |
unifiedBaseCanaryIndex | undefined | number |
Returns
Promise
<string
>
Defined in
src/plugins/core/publish/publish-applier/canary.ts:82
getPkgPublishVersion
â–¸ getPkgPublishVersion(pkg
): Promise
<string
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
Promise
<string
>
Overrides
AbstractPublishApplier.getPkgPublishVersion
Defined in
src/plugins/core/publish/publish-applier/canary.ts:66
prepare
â–¸ prepare(): Promise
<void
>
Returns
Promise
<void
>
Overrides
AbstractPublishApplier.prepare
Defined in
src/plugins/core/publish/publish-applier/canary.ts:29
prepareUnifiedCanaryVersion
â–¸ prepareUnifiedCanaryVersion(unifiedBaseCanaryIndex
): Promise
<void
>
Algorithm in here - taking max canary version index across all packages with given preid. Then incrementing it and use as common canary index that fits to all packages.
Parameters
Name | Type |
---|---|
unifiedBaseCanaryIndex | undefined | number |
Returns
Promise
<void
>
Defined in
src/plugins/core/publish/publish-applier/canary.ts:39
getNextCanaryIndex
â–¸ Static
Private
getNextCanaryIndex(versionString
, preid
): number
Parameters
Name | Type |
---|---|
versionString | string |
preid | string |
Returns
number