Upgrade Prettier to 2.4.1

This commit is contained in:
Evan Hahn 2021-11-11 16:43:05 -06:00 committed by GitHub
parent f204784afe
commit 5619eeca83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
176 changed files with 1961 additions and 2465 deletions

View file

@ -1008,7 +1008,8 @@ export function initialize({
let username = initialUsername;
let password = initialPassword;
const PARSE_RANGE_HEADER = /\/(\d+)$/;
const PARSE_GROUP_LOG_RANGE_HEADER = /$versions (\d{1,10})-(\d{1,10})\/(d{1,10})/;
const PARSE_GROUP_LOG_RANGE_HEADER =
/$versions (\d{1,10})-(\d{1,10})\/(d{1,10})/;
const socketManager = new SocketManager({
url,
@ -1361,11 +1362,8 @@ export function initialize({
userLanguages: ReadonlyArray<string>;
}
) {
const {
profileKeyVersion,
profileKeyCredentialRequest,
userLanguages,
} = options;
const { profileKeyVersion, profileKeyCredentialRequest, userLanguages } =
options;
return (await _ajax({
call: 'profile',
@ -2210,15 +2208,8 @@ export function initialize({
}
function verifyAttributes(attributes: Proto.IAvatarUploadAttributes) {
const {
key,
credential,
acl,
algorithm,
date,
policy,
signature,
} = attributes;
const { key, credential, acl, algorithm, date, policy, signature } =
attributes;
if (
!key ||
@ -2825,9 +2816,9 @@ export function initialize({
};
// Decode discovery request response
const decodedDiscoveryResponse = (mapValues(discoveryResponse, value => {
const decodedDiscoveryResponse = mapValues(discoveryResponse, value => {
return Bytes.fromBase64(value);
}) as unknown) as {
}) as unknown as {
[K in keyof typeof discoveryResponse]: Uint8Array;
};