You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Process addons diff files after finishing transition
Integrity
Verification of game or addons files
v1_integrity_hash(algorithm, data)
string
Hash input data
Types
For syntax highlighting types definition is written on typescript
RequestOptions
typeRequestOptions={// Accepted variants: "get", "post", "head", "put", "delete",// "connect", "options", "trace", "patch", null// or any other string (custom request method?)method?: string,// Request headersheaders?: [key: string]: string,// Request bodybody?: string,// Request timeout, in secondstimeout?: number};
Response
typeResponse={// Requested URLurl: string,// Response status codestatus: number,// Response status text (error reason)statusText: string,// A boolean indicating whether the response was successful (status in the range 200 – 299) or notok: boolean,// Response headersheaders: [key: string]: string,// Raw response output (in bytes) encoded as a lua stringbody: string,// A lambda function which will try to decode the body as jsonjson: ()=>object};
typeDiff={current_version: string,latest_version: string,edition: string,status: DiffStatus,// Isn't needed if the current version is latestdiff?: DiffInfo};
DiffStatus
typeDiffStatus='latest'|'outdated'|'unavailable';
Value
Description
latest
Installed component version is latest
outdated
Component update is available
unavailable
The component is outdated, but there's no update available (e.g. too outdated version)
DiffInfo
typeDiffInfo={type: DiffType,size: number,// URI if type is `archive`uri?: string,// List of segments URIs if type is `segments`segments?: string[],// List of files if type is `files`files?: FileDownload[]};