Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,63 @@
|
||||
/* Metro module 849; source: unknown; dependencies: [] */
|
||||
function _fun9168(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:976:6, offset: 0x00d5f18f, size: 105 bytes, params: 8, frame: 18
|
||||
const closure = getSpanStatusFromHttpCode;
|
||||
const Object = global.Object;
|
||||
const defineProperty = Object.defineProperty;
|
||||
const Symbol = global.Symbol;
|
||||
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
||||
exports.SPAN_STATUS_ERROR = 2;
|
||||
exports.SPAN_STATUS_OK = 1;
|
||||
exports.SPAN_STATUS_UNSET = 0;
|
||||
exports.getSpanStatusFromHttpCode = closure;
|
||||
exports.setHttpStatus = setHttpStatus;
|
||||
}
|
||||
|
||||
function getSpanStatusFromHttpCode(a0) { // fn#9169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:976:91, offset: 0x00d5f1f8, size: 373 bytes, params: 2, frame: 3
|
||||
if (a0 < 400) {
|
||||
if (a0 >= 100) {
|
||||
return {code: 1};
|
||||
}
|
||||
}
|
||||
if (a0 >= 400) {
|
||||
if (a0 < 500) {
|
||||
if (a0 === 401) {
|
||||
return {'code': 2, 'message': 'unauthenticated'};
|
||||
}
|
||||
if (a0 === 403) {
|
||||
return {'code': 2, 'message': 'permission_denied'};
|
||||
}
|
||||
if (a0 === 404) {
|
||||
return {'code': 2, 'message': 'not_found'};
|
||||
}
|
||||
if (a0 === 409) {
|
||||
return {'code': 2, 'message': 'already_exists'};
|
||||
}
|
||||
if (a0 === 413) {
|
||||
return {'code': 2, 'message': 'failed_precondition'};
|
||||
}
|
||||
if (a0 === 429) {
|
||||
return {'code': 2, 'message': 'resource_exhausted'};
|
||||
}
|
||||
if (a0 === 499) {
|
||||
return {'code': 2, 'message': 'cancelled'};
|
||||
}
|
||||
return {'code': 2, 'message': 'invalid_argument'};
|
||||
}
|
||||
}
|
||||
if (a0 >= 500) {
|
||||
if (a0 < 600) {
|
||||
if (a0 === 501) {
|
||||
return {'code': 2, 'message': 'unimplemented'};
|
||||
}
|
||||
if (a0 === 503) {
|
||||
return {'code': 2, 'message': 'unavailable'};
|
||||
}
|
||||
if (a0 === 504) {
|
||||
return {'code': 2, 'message': 'deadline_exceeded'};
|
||||
}
|
||||
return {'code': 2, 'message': 'internal_error'};
|
||||
}
|
||||
}
|
||||
return {'code': 2, 'message': 'internal_error'};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user