effect-errors 1.1.0 → 1.1.2

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.
@@ -25,7 +25,7 @@ var Function_1 = require("effect/Function");
25
25
  var Predicate_1 = require("effect/Predicate");
26
26
  var prettyErrorMessage = function (u) {
27
27
  if (typeof u === 'string') {
28
- return "\uD83D\uDCA5 ".concat(u, "\r\n\r\n\u2139\uFE0F ").concat(chalk_1.default.gray('You used a plain string to represent a failure in the error channel (E). You should consider using tagged objects (with the _tag) field, or yieldable errors such as Data.TaggedError and Schema.TaggedError for better handling experience.'));
28
+ return "\uD83D\uDCA5 ".concat(u, "\r\n\r\n\u2139\uFE0F ").concat(chalk_1.default.gray('You used a plain string to represent a failure in the error channel (E). You should consider using tagged objects (with a _tag field), or yieldable errors such as Data.TaggedError and Schema.TaggedError for better handling experience.'));
29
29
  }
30
30
  // TaggedError with cause
31
31
  if (u instanceof Error && (0, Predicate_1.hasProperty)(u, 'cause') && (0, Predicate_1.hasProperty)(u, '_tag')) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "repository": "https://github.com/jpb06/effect-errors.git",
3
3
  "main": "dist/index.js",
4
4
  "name": "effect-errors",
5
- "version": "1.1.0",
5
+ "version": "1.1.2",
6
6
  "author": "jpb06 <jp.bois.06@outlook.fr>",
7
7
  "description": "A POC for errors reporting in Effect",
8
8
  "keywords": [],
package/pretty-print.js CHANGED
@@ -45,7 +45,7 @@ var prettyPrint = function (cause) {
45
45
  .join('');
46
46
  }
47
47
  if (stack) {
48
- message += "\r\n".concat(span ? '\r\n' : '', "\uD83D\uDEA8 Stacktrace:\r\n").concat(chalk_1.default.red((0, filter_stack_1.filterStack)(stack)));
48
+ message += "\r\n".concat(span ? '\r\n' : '', "\uD83D\uDEA8 Stacktrace\r\n").concat(chalk_1.default.red((0, filter_stack_1.filterStack)(stack).replace(/ {4}at /g, '🭳 at ')));
49
49
  }
50
50
  return message + '\r\n';
51
51
  })