Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,54 @@
|
||||
/* Metro module 4094; source: modules/mobile_native_updater/MobileNativeUpdateConstants.tsx; dependencies: [3738, 477, 1471, 1582, 2] */
|
||||
function _fun33545(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4252:6, offset: 0x01033693, size: 140 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(3738) /* metro dependency 3738 */;
|
||||
value = value.duration(6, 'hours');
|
||||
const value2 = currentUpdateConfig();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateConstants.tsx');
|
||||
exports.UPDATE_CHECK_INTERVAL = value;
|
||||
exports.UPDATE_CONFIG = value2;
|
||||
}
|
||||
|
||||
function currentUpdateConfig() { // fn#33546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4252:132, offset: 0x0103371f, size: 390 bytes, params: 1, frame: 18
|
||||
var r2;
|
||||
var r4;
|
||||
var moduleValue;
|
||||
var moduleValue2;
|
||||
var defaultImport;
|
||||
const INTERNAL_UPDATE_URL = global.process.env.INTERNAL_UPDATE_URL;
|
||||
const value = null;
|
||||
const value2 = undefined;
|
||||
if (value2 === INTERNAL_UPDATE_URL) {
|
||||
r4 = value;
|
||||
} else if (global.process.env.INTERNAL_UPDATE_URL === '') {
|
||||
r4 = value;
|
||||
} else {
|
||||
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue.isIOS()) {
|
||||
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
r2 = defaultImport.toURLSafe(global.process.env.INTERNAL_UPDATE_URL);
|
||||
} else {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
r2 = defaultImport.toURLSafe(global.process.env.INTERNAL_UPDATE_URL);
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
}
|
||||
r4 = r2;
|
||||
}
|
||||
const constants = (require(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
|
||||
const parseInt = global.parseInt;
|
||||
const Build = value == constants ? value2 : constants.Build;
|
||||
const int = parseInt(Build);
|
||||
const Number = global.Number;
|
||||
const r3 = Number.isNaN(int) || int === 0 || (int === 123456 || int === 1234567890) ? value : int;
|
||||
const constants2 = (require(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
|
||||
const Version = value == constants2 ? value2 : constants2.Version;
|
||||
r2 = value != Version ? Version : value;
|
||||
return value === r4 || value === r3 || value === r2 ? value : {url: r4, currentBuild: r3, currentVersion: r2};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/* Metro module 12949; source: modules/mobile_native_updater/MobileNativeUpdateStore.tsx; dependencies: [6, 7, 15, 17, 18, 4094, 3, 694, 12680, 566, 2] */
|
||||
function _fun98631(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#98631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:6, offset: 0x021b10d3, size: 400 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = require(4094) /* metro dependency 4094: MobileNativeUpdateConstants */;
|
||||
const env0_8 = value.UPDATE_CONFIG;
|
||||
const env0_9 = value.UPDATE_CHECK_INTERVAL;
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('MobileNativeUpdateStore');
|
||||
const env0_11 = {'lastCheck': null, 'checking': false, 'newBuild': null};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun98635(Store).displayName = 'MobileNativeUpdateStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{MOBILE_NATIVE_UPDATE_CHECK_STARTED: MOBILE_NATIVE_UPDATE_CHECK_STARTED,
|
||||
MOBILE_NATIVE_UPDATE_CHECK_FAILED: MOBILE_NATIVE_UPDATE_CHECK_FAILED,
|
||||
MOBILE_NATIVE_UPDATE_CHECK_FINISHED: MOBILE_NATIVE_UPDATE_CHECK_FINISHED_98645});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_98632() { // fn#98632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:202, offset: 0x021b1263, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_98632_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun98635(a0) { // fn#98635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:499, offset: 0x021b12c5, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = MobileNativeUpdateStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'checkForNewerBuild', value: value_98637}, {key: 'ensureInitialized',
|
||||
value: value_98640}, {key: 'latestFetchedBuild', value: value_98642}]);
|
||||
}
|
||||
|
||||
function MOBILE_NATIVE_UPDATE_CHECK_STARTED() { // fn#98643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1663, offset: 0x021b154e, size: 35 bytes, params: 1, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_11, undefined);
|
||||
object2['checking'] = true;
|
||||
}
|
||||
|
||||
function MOBILE_NATIVE_UPDATE_CHECK_FAILED() { // fn#98644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1749, offset: 0x021b1571, size: 35 bytes, params: 1, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_11, undefined);
|
||||
object2['checking'] = false;
|
||||
}
|
||||
|
||||
function MOBILE_NATIVE_UPDATE_CHECK_FINISHED_98645({newBuild}) { // fn#98645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1836, offset: 0x021b1594, size: 67 bytes, params: 2, frame: 11
|
||||
const object2 = {};
|
||||
const Date = global.Date;
|
||||
object2.lastCheck = new Date();
|
||||
object2.checking = false;
|
||||
object2.newBuild = newBuild;
|
||||
}
|
||||
|
||||
function MobileNativeUpdateStore(a0) { // fn#98636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:511, offset: 0x021b133f, size: 142 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, MobileNativeUpdateStore);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_6(MobileNativeUpdateStore);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_98632()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.hasUpdatesConfigured = UPDATE_CONFIG !== null;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_98637() { // fn#98637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:895, offset: 0x021b13cd, size: 120 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
if (env1_11.checking !== true) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_STARTED'});
|
||||
value = require(12680) /* metro dependency 12680: MobileNativeUpdateUtils */;
|
||||
value = value.checkForNewerBuild();
|
||||
value.then(_fun98638, _fun98639);
|
||||
}
|
||||
}
|
||||
|
||||
function value_98640() { // fn#98640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1205, offset: 0x021b14ad, size: 94 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var value;
|
||||
var closure;
|
||||
if (this.hasUpdatesConfigured) {
|
||||
value = environment.__proto__;
|
||||
if (env1_12 === null) {
|
||||
closure = backgroundUpdateCheck;
|
||||
env1_12 = global.setInterval(closure, UPDATE_CHECK_INTERVAL.asMilliseconds());
|
||||
global.setTimeout(closure, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_98642() { // fn#98642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1502, offset: 0x021b1538, size: 22 bytes, params: 1, frame: 9
|
||||
this.ensureInitialized();
|
||||
return env1_11;
|
||||
}
|
||||
|
||||
function _fun98638(a0) { // fn#98638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1021, offset: 0x021b1445, size: 55 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_FINISHED',
|
||||
newBuild: a0});
|
||||
}
|
||||
|
||||
function _fun98639() { // fn#98639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1102, offset: 0x021b147c, size: 49 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_FAILED'});
|
||||
}
|
||||
|
||||
function backgroundUpdateCheck() { // fn#98641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1282, owner: value_98640.backgroundUpdateCheck, offset: 0x021b150b, size: 45 bytes, params: 1, frame: 11
|
||||
env2_10.info('Checking for new native builds in the background');
|
||||
env0_0.checkForNewerBuild();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,332 @@
|
||||
/* Metro module 12680; source: modules/mobile_native_updater/MobileNativeUpdateUtils.tsx; dependencies: [5, 4094, 3, 507, 3853, 477, 676, 2] */
|
||||
function _fun97155(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:6, offset: 0x02174f9a, size: 219 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = openBuildInstallerUrl;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = (require(4094) /* metro dependency 4094: MobileNativeUpdateConstants */).UPDATE_CONFIG;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('MobileNativeUpdateUtils');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateUtils.tsx');
|
||||
exports.checkForNewerBuild = function() {
|
||||
return _checkForNewerBuild.apply(this, arguments);
|
||||
};
|
||||
exports.openBuildInstaller = function(a0) {
|
||||
openBuildInstallerUrl(a0.urls.install);
|
||||
};
|
||||
exports.openBuildInstallerUrl = closure;
|
||||
}
|
||||
|
||||
function _checkForNewerBuild() { // fn#97156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:172, offset: 0x02175075, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_2(_fun97158).apply(this, arguments);
|
||||
}
|
||||
|
||||
function openBuildInstallerUrl(a0) { // fn#97159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:777, offset: 0x02175283, size: 269 bytes, params: 2, frame: 17
|
||||
var origin;
|
||||
var URL;
|
||||
var prototype;
|
||||
var uRL;
|
||||
var value3;
|
||||
var origin2;
|
||||
var value5;
|
||||
var url;
|
||||
var value6;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var openURLExternally;
|
||||
var moduleValue2;
|
||||
var isIOS;
|
||||
var isIOS2;
|
||||
var toString;
|
||||
var value7;
|
||||
var moduleValue3;
|
||||
var WebBrowserType;
|
||||
var SAFARI;
|
||||
var value8;
|
||||
var binding;
|
||||
var error;
|
||||
var concat;
|
||||
var value9;
|
||||
const value = undefined;
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort59: while (true) {
|
||||
exceptionLanding58: while (true) {
|
||||
try {
|
||||
URL = global.URL;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
break reduciblePort59;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
prototype = URL.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
uRL = new URL(a0);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value3 = uRL instanceof Object ? uRL : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
origin2 = value3.origin;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value5 = UPDATE_CONFIG == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
reducibleJoin19: while (true) {
|
||||
if (value5) {
|
||||
origin = value;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
url = UPDATE_CONFIG.url;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
origin = url.origin;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
break reducibleJoin19;
|
||||
}
|
||||
try {
|
||||
value6 = origin2 !== origin;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
if (value6) {
|
||||
try {
|
||||
binding = env0_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
error = binding.error;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value9 = Reflect.apply(concat, 'Attempted to follow invalid install URL ', [value3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(error, binding, [value9]);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
moduleValue = require(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = moduleValue.default;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
openURLExternally = property.openURLExternally;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
moduleValue2 = require(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
isIOS = moduleValue2.isIOS;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
isIOS2 = Reflect.apply(isIOS, moduleValue2, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
if (isIOS2) {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
moduleValue3 = require(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
WebBrowserType = moduleValue3.WebBrowserType;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
SAFARI = WebBrowserType.SAFARI;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
toString = value3.toString;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(toString, value3, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
openURLExternally(value8, SAFARI);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
toString = value3.toString;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(toString, value3, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
openURLExternally(value7);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function* _fun97158() { // fn#97158, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:233, offset: 0x021750b2, size: 465 bytes, params: 1, frame: 23
|
||||
var r3;
|
||||
var body;
|
||||
var build;
|
||||
var Date;
|
||||
var build_timestamp;
|
||||
var value6;
|
||||
var date;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = null;
|
||||
if (value3 === env2_3) {
|
||||
return value3;
|
||||
}
|
||||
let binding = env2_4;
|
||||
binding.info('Checking ' + env2_3.url + ' for updates');
|
||||
const HTTP = env2_0(env2_1[3]).HTTP;
|
||||
const get = HTTP.get;
|
||||
let object2 = {};
|
||||
object2.url = env2_3.url.toString();
|
||||
object2.headers = {Accept: 'application/json'};
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
const value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
if (value4.ok) {
|
||||
object2 = {};
|
||||
body = value4.body;
|
||||
build = body.build;
|
||||
object2.build = build;
|
||||
body = value4.body;
|
||||
object2.version = body.version;
|
||||
Date = global.Date;
|
||||
body = value4.body;
|
||||
build_timestamp = body.build_timestamp;
|
||||
value6 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
object2.buildTimestamp = date instanceof Object ? date : value6;
|
||||
body = value4.body;
|
||||
object2.urls = body.urls;
|
||||
build = object2.build;
|
||||
if (build > env2_3.currentBuild) {
|
||||
if (object2.version >= env2_3.currentVersion) {
|
||||
binding = env2_4;
|
||||
binding.info('Update build ' + object2.build + ' is newer than ' + env2_3.currentBuild);
|
||||
r3 = object2;
|
||||
} else {
|
||||
binding = env2_4;
|
||||
binding.info('Update build ' + object2.build + ' is older than ' + env2_3.currentBuild);
|
||||
r3 = value3;
|
||||
}
|
||||
} else {
|
||||
binding = env2_4;
|
||||
binding.info('Update build ' + object2.build + ' is older than ' + env2_3.currentBuild);
|
||||
r3 = value3;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
throw value4;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user