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

Upgrade API to 1.4 versions #26

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open

Upgrade API to 1.4 versions #26

wants to merge 58 commits into from

Conversation

Efcolipt
Copy link
Collaborator

No description provided.

src/core/builder/query-builder.test.ts Outdated Show resolved Hide resolved
src/core/builder/query-builder.ts Outdated Show resolved Hide resolved
throw new Error(str);
}

private isDate(val: any) {
Copy link
Contributor

Choose a reason for hiding this comment

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

метод называется Is Date, по идее должен проверять является ли значение датой, но это пропустит не валидную дату. Например new Date("ержан") вернет true. Если это используется только для сужения типов, то лучше вынести из класса.

src/core/builder/query-builder.ts Outdated Show resolved Hide resolved
src/core/builder/query-builder.ts Outdated Show resolved Hide resolved
src/core/builder/query-builder.ts Outdated Show resolved Hide resolved
src/core/builder/query-builder.ts Outdated Show resolved Hide resolved
* Upgrade QueryBuilder to class with methods, or just request types
* Pass types to each service for QueryBuilder
query.append(key, this.fixedEncodeURIComponent(String(val)));
};
switch (queryBuilderField) {
case QueryBuilderFields.$ne:
Copy link
Contributor

Choose a reason for hiding this comment

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

Вынеси в отдельный приватный метод весь switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants