@nattyjs/common 0.0.1-beta.30 → 0.0.1-beta.32

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/dist/index.cjs CHANGED
@@ -404,7 +404,7 @@ class List {
404
404
  if (this.count()) {
405
405
  return predicate ? this.where(predicate).first() : this._entities[0];
406
406
  } else {
407
- throw new Error("No result found.");
407
+ return void 0;
408
408
  }
409
409
  }
410
410
  firstOrDefault(predicate) {
package/dist/index.mjs CHANGED
@@ -387,7 +387,7 @@ class List {
387
387
  if (this.count()) {
388
388
  return predicate ? this.where(predicate).first() : this._entities[0];
389
389
  } else {
390
- throw new Error("No result found.");
390
+ return void 0;
391
391
  }
392
392
  }
393
393
  firstOrDefault(predicate) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/common",
3
- "version": "0.0.1-beta.30",
3
+ "version": "0.0.1-beta.32",
4
4
  "description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
5
5
  "keywords": [],
6
6
  "author": "ajayojha <ojhaajay@outlook.com>",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "20.3.1",
24
- "@nattyjs/types": "0.0.1-beta.30",
24
+ "@nattyjs/types": "0.0.1-beta.32",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }