Skip to content

Documentation / @imvu/chkn / probeLatestRevision

Function: probeLatestRevision() ​

ts
function probeLatestRevision(productId, options?): Promise<number>;

Defined in: packages/chkn/src/ProductSource.ts:99

Guess a product's latest revision by probing the CDN — a heuristic. Revisions are mostly contiguous, but not always (product 512 has 5 and 8–11, not 6–7), so this finds any existing revision by doubling, then walks upward until maxGap misses in a row. Prefer real revisions from the XML-RPC gateway when you can.

Parameters ​

ParameterType
productIdnumber
options?ProbeOptions

Returns ​

Promise<number>

Released under the MIT License.