MCPcopy Create free account
hub / github.com/Toulu-debug/enen / getVersion

Function getVersion

TS_USER_AGENTS.ts:246–254  ·  view source on GitHub ↗
(device: string)

Source from the content-addressed store, hash-verified

244}
245
246async function getVersion(device: string) {
247 let {data} = await axios.get(`https://betahub.cn/api/apple/firmwares/${device}`, {
248 headers: {
249 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36'
250 }
251 })
252 data = data[getRandomNumberByRange(0, data.length)]
253 return data.firmware_info.version
254}
255
256async function jdpingou() {
257 let device: string, version: string;

Callers 1

jdpingouFunction · 0.85

Calls 2

getRandomNumberByRangeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected