• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sajov / feathers-solr / 7453336386

08 Jan 2024 09:21PM UTC coverage: 100.0%. Remained the same
7453336386

Pull #61

github

web-flow
build(deps): bump @feathersjs/adapter-commons from 5.0.13 to 5.0.14

Bumps [@feathersjs/adapter-commons](https://github.com/feathersjs/feathers/tree/HEAD/packages/adapter-commons) from 5.0.13 to 5.0.14.
- [Release notes](https://github.com/feathersjs/feathers/releases)
- [Changelog](https://github.com/feathersjs/feathers/blob/dove/packages/adapter-commons/CHANGELOG.md)
- [Commits](https://github.com/feathersjs/feathers/commits/v5.0.14/packages/adapter-commons)

---
updated-dependencies:
- dependency-name: "@feathersjs/adapter-commons"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #61: build(deps): bump @feathersjs/adapter-commons from 5.0.13 to 5.0.14

134 of 134 branches covered (100.0%)

149 of 149 relevant lines covered (100.0%)

189.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/utils/convertOperators.ts
1
import { operatorResolver } from './operatorResolver';
1✔
2
import { _ } from '@feathersjs/commons/lib';
1✔
3

4
export const convertOperators = (query: any, escapeFn: any, root = ''): any => {
1✔
5
  if (Array.isArray(query)) {
574✔
6
    return query.map(q => convertOperators(q, escapeFn, root));
20✔
7
  }
8

9
  return Object.keys(query).map((prop) => {
561✔
10
    if (prop === '$or') {
579✔
11
      return operatorResolver.$or(convertOperators(query[prop], escapeFn));
9✔
12
    }
13

14
    if (prop === '$and') {
570✔
15
      return operatorResolver.$and(convertOperators(query[prop], escapeFn, prop));
6✔
16
    }
17

18
    if (prop in operatorResolver) {
564✔
19
      const values = Object.values(escapeFn(root, query[prop]));
80✔
20
      return operatorResolver[prop](...values);
80✔
21
    }
22

23
    if (_.isObject(query[prop])) {
484✔
24
      return operatorResolver.$and(convertOperators(query[prop], escapeFn, prop));
75✔
25
    }
26

27
    const values = Object.values(escapeFn(prop, query[prop]));
409✔
28
    return operatorResolver.$eq(...values);
409✔
29
  });
30
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc