fnts 1.3.3 → 1.4.0

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/either/left.js CHANGED
@@ -17,6 +17,10 @@ function left(value) {
17
17
  var _a;
18
18
  return _a = {},
19
19
  _a[exports.lid] = value,
20
+ // @ts-expect-error: Undocumented API for external use
21
+ _a.toString = function () {
22
+ return "Left " + value;
23
+ },
20
24
  _a;
21
25
  }
22
26
  exports.default = left;
package/either/right.js CHANGED
@@ -17,6 +17,10 @@ function right(value) {
17
17
  var _a;
18
18
  return _a = {},
19
19
  _a[exports.rid] = value,
20
+ // @ts-expect-error: Undocumented API for external use
21
+ _a.toString = function () {
22
+ return "Right " + value;
23
+ },
20
24
  _a;
21
25
  }
22
26
  exports.default = right;
package/maybe/just.js CHANGED
@@ -17,6 +17,10 @@ function just(value) {
17
17
  var _a;
18
18
  return _a = {},
19
19
  _a[exports.jid] = value,
20
+ // @ts-expect-error: Undocumented API for external use
21
+ _a.toString = function () {
22
+ return "Just " + value;
23
+ },
20
24
  _a;
21
25
  }
22
26
  exports.default = just;
package/maybe/nothing.js CHANGED
@@ -17,6 +17,10 @@ function nothing() {
17
17
  var _a;
18
18
  return _a = {},
19
19
  _a[exports.nid] = null,
20
+ // @ts-expect-error: Undocumented API for external use
21
+ _a.toString = function () {
22
+ return 'Nothing';
23
+ },
20
24
  _a;
21
25
  }
22
26
  exports.default = nothing;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fnts",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "license": "MIT",
5
5
  "author": "Dmytro Vasylkivskyi",
6
6
  "description": "TypeScript / JavaScript FP utilities",