checkForStaleVersion

Function

Checks if the upstream version is newer than the passed in version

Parameters

Parameter Type Default Notes
itemId Required string
version Required IVersion
requestOptions Required IHubUserRequestOptions

Available requestOptions

Property Type Notes
authentication ArcGISIdentityManager
fetch Optional Inherited function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional Inherited string
isPortal Optional Inherited boolean
portalSelf Optional Inherited IHubRequestOptionsPortalSelf

Returns

Promise<IStaleVersionResponse>
Property Type Notes

Function defined in common/src/versioning/utils.ts:38