Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPECIAL-14044: Исправление issues #19

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

dewolixgit
Copy link
Contributor

@dewolixgit dewolixgit commented Jan 11, 2024

Обновлено:

Новое:

src/isVkError.ts Outdated
@@ -0,0 +1,42 @@
import { ErrorData } from '@vkontakte/vk-bridge';

const vkErrorTypes = new Set<ErrorData['error_type']>([

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб типы вынести? или тоже сделать экспорт, вдруг понадобятся

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынес src/consts.ts

} = error;

return error_code === 4 && userDeniedReasons.has(error_reason);
return userDeniedReasons.has(error.error_data.error_reason);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Может сделать тут const userDeniedCodes = [4, 10007] и return userDeniedReasons.has(error.error_data.error_reason) || return userDeniedCodes.has(error.error_data.error_code);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вроде пришли в чате к выводу, что на 10007 вообще лучше не закладываться и проверять на "4 ИЛИ причину ошибки". Так и сделал

src/index.ts Outdated Show resolved Hide resolved
@dewolixgit dewolixgit changed the base branch from master to release-3.0.0 January 30, 2024 12:21
@dewolixgit
Copy link
Contributor Author

Переназначил целевую ветку с master на release-3.0.0 для подготовки отдельной ветки для релиза 3.0.0. На момент написания коммента, ветка release-3.0.0 является копией ветки master с влитым в неё PR "v3.0.0: Удаление записи полей с параметрами приложения в window"

@dewolixgit dewolixgit merged commit 58c5fe3 into release-3.0.0 Jan 30, 2024
@dewolixgit dewolixgit mentioned this pull request Jan 31, 2024
@qpounodb qpounodb deleted the SPECIAL-14044 branch June 13, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants