remult 0.22.8-exp.0 → 0.22.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <img src="https://github.com/remult/remult/raw/master/docs/public/logo.png" width="140" height="140">
4
4
  </a>
5
5
  <h1>Remult</h1>
6
- <p>A CRUD framework for full-stack TypeScript</p>
6
+ <p>Full-stack CRUD, simplified, with SSOT TypeScript entities</p>
7
7
  <a href="https://circleci.com/gh/remult/remult/tree/master" rel="nofollow">
8
8
  <img alt="CircleCI" src="https://circleci.com/gh/remult/remult/tree/master.svg?style=shield">
9
9
  </a>
@@ -22,8 +22,6 @@
22
22
  <a href="https://discord.gg/GXHk7ZfuG5" rel="nofollow">
23
23
  <img alt="Join Discord" src="https://badgen.net/discord/online-members/GXHk7ZfuG5?icon=discord&label=Discord"/>
24
24
  </a>
25
- <a href="https://twitter.com/intent/tweet?text=Remult%20-%20open-source%20CRUD%20framework%20for%20full-stack%20TypeScript%0A%0A%40remultjs%0A&url=https%3A%2F%2Fgithub.com%2Fremult%2Fremult">
26
- <img alt="Twitter URL" src="https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Ftext%3DRemult%2520-%2520open-source%2520CRUD%2520framework%2520for%2520full-stack%2520TypeScript%250A%250A%2540remultjs%250A%26url%3Dhttps%253A%252F%252Fgithub.com%252Fremult%252Fremult">
27
25
  </a>
28
26
  </div>
29
27
 
@@ -383,10 +383,11 @@ export function buildFilterFromRequestParameters(entity, filterInfo) {
383
383
  })),
384
384
  }));
385
385
  if (or.length == 1)
386
- return or[0];
387
- where.push({
388
- $and: or,
389
- });
386
+ where.push(or[0]);
387
+ else
388
+ where.push({
389
+ $and: or,
390
+ });
390
391
  }
391
392
  for (const key in entity.entityType) {
392
393
  const element = entity.entityType[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.22.8-exp.0",
3
+ "version": "0.22.8",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "types": "index.d.ts",
6
6
  "module": "esm/index.js",
@@ -505,10 +505,11 @@ function buildFilterFromRequestParameters(entity, filterInfo) {
505
505
  }),
506
506
  }); });
507
507
  if (or.length == 1)
508
- return or[0];
509
- where.push({
510
- $and: or,
511
- });
508
+ where.push(or[0]);
509
+ else
510
+ where.push({
511
+ $and: or,
512
+ });
512
513
  }
513
514
  var _loop_2 = function (key) {
514
515
  var element = entity.entityType[key];