@aeriajs/common 0.0.79 → 0.0.81

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/result.js CHANGED
@@ -22,9 +22,6 @@ const throwIfError = (either, message) => {
22
22
  ? `(${message})`
23
23
  : ''}`);
24
24
  }
25
- if (!either.result) {
26
- throw new Error();
27
- }
28
25
  return either.result;
29
26
  };
30
27
  exports.throwIfError = throwIfError;
package/dist/result.mjs CHANGED
@@ -12,8 +12,5 @@ export const throwIfError = (either, message) => {
12
12
  }
13
13
  throw new Error(`throwIfError threw: ${either.error} ${message ? `(${message})` : ""}`);
14
14
  }
15
- if (!either.result) {
16
- throw new Error();
17
- }
18
15
  return either.result;
19
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/common",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "bson": "^6.5.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@aeriajs/types": "^0.0.68",
34
+ "@aeriajs/types": "^0.0.69",
35
35
  "bson": "^6.5.0"
36
36
  },
37
37
  "scripts": {