effect-errors 1.7.28 → 1.7.30

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.
Files changed (212) hide show
  1. package/cjs/capture-errors.js +18 -21
  2. package/cjs/capture-errors.js.map +1 -1
  3. package/cjs/index.js +20 -69
  4. package/cjs/index.js.map +1 -1
  5. package/cjs/logic/effects/fs/fs-error.js +4 -6
  6. package/cjs/logic/effects/fs/fs-error.js.map +1 -1
  7. package/cjs/logic/effects/fs/fs-extra.effects.js +20 -45
  8. package/cjs/logic/effects/fs/fs-extra.effects.js.map +1 -1
  9. package/cjs/logic/errors/capture-errors-from-cause.js +10 -13
  10. package/cjs/logic/errors/capture-errors-from-cause.js.map +1 -1
  11. package/cjs/logic/errors/extract-error-details.js +53 -57
  12. package/cjs/logic/errors/extract-error-details.js.map +1 -1
  13. package/cjs/logic/errors/parse-error.js +17 -19
  14. package/cjs/logic/errors/parse-error.js.map +1 -1
  15. package/cjs/logic/pretty-printing/format-failures-title.js +11 -14
  16. package/cjs/logic/pretty-printing/format-failures-title.js.map +1 -1
  17. package/cjs/logic/pretty-printing/format-span-attributes.js +38 -51
  18. package/cjs/logic/pretty-printing/format-span-attributes.js.map +1 -1
  19. package/cjs/logic/pretty-printing/maybe-print-node-stacktrace.js +13 -19
  20. package/cjs/logic/pretty-printing/maybe-print-node-stacktrace.js.map +1 -1
  21. package/cjs/logic/pretty-printing/maybe-print-span-attributes.js +18 -26
  22. package/cjs/logic/pretty-printing/maybe-print-span-attributes.js.map +1 -1
  23. package/cjs/logic/pretty-printing/maybe-warn-about-plain-strings.js +9 -14
  24. package/cjs/logic/pretty-printing/maybe-warn-about-plain-strings.js.map +1 -1
  25. package/cjs/logic/pretty-printing/print-effect-stacktrace.js +12 -19
  26. package/cjs/logic/pretty-printing/print-effect-stacktrace.js.map +1 -1
  27. package/cjs/logic/spans/get-span-attributes.js +16 -25
  28. package/cjs/logic/spans/get-span-attributes.js.map +1 -1
  29. package/cjs/logic/spans/get-span-duration.js +10 -15
  30. package/cjs/logic/spans/get-span-duration.js.map +1 -1
  31. package/cjs/logic/spans/maybe-add-error-to-spans-stack.js +13 -16
  32. package/cjs/logic/spans/maybe-add-error-to-spans-stack.js.map +1 -1
  33. package/cjs/logic/spans/spans-stack-trailing-char.js +6 -11
  34. package/cjs/logic/spans/spans-stack-trailing-char.js.map +1 -1
  35. package/cjs/logic/spans/split-spans-attributes-by-type.js +12 -15
  36. package/cjs/logic/spans/split-spans-attributes-by-type.js.map +1 -1
  37. package/cjs/logic/stack/filter-stack.js +14 -17
  38. package/cjs/logic/stack/filter-stack.js.map +1 -1
  39. package/cjs/logic/stack/stack-regex.js +4 -7
  40. package/cjs/logic/stack/stack-regex.js.map +1 -1
  41. package/cjs/logic/strip-cwd-path.js +3 -6
  42. package/cjs/logic/strip-cwd-path.js.map +1 -1
  43. package/cjs/logic/util/big-int-replacer.js +8 -11
  44. package/cjs/logic/util/big-int-replacer.js.map +1 -1
  45. package/cjs/package.json +1 -0
  46. package/cjs/pretty-print.js +34 -40
  47. package/cjs/pretty-print.js.map +1 -1
  48. package/cjs/runners/run-promise.js +11 -14
  49. package/cjs/runners/run-promise.js.map +1 -1
  50. package/cjs/runners/run-sync.js +10 -13
  51. package/cjs/runners/run-sync.js.map +1 -1
  52. package/cjs/source-maps/get-error-location-from-file-path.js +11 -18
  53. package/cjs/source-maps/get-error-location-from-file-path.js.map +1 -1
  54. package/cjs/source-maps/get-error-related-sources.js +22 -29
  55. package/cjs/source-maps/get-error-related-sources.js.map +1 -1
  56. package/cjs/source-maps/get-source-code.js +18 -22
  57. package/cjs/source-maps/get-source-code.js.map +1 -1
  58. package/cjs/source-maps/get-sources-from-map-file.js +42 -45
  59. package/cjs/source-maps/get-sources-from-map-file.js.map +1 -1
  60. package/cjs/source-maps/get-sources-from-span.js +36 -48
  61. package/cjs/source-maps/get-sources-from-span.js.map +1 -1
  62. package/cjs/source-maps/get-sources-from-stack.js +16 -19
  63. package/cjs/source-maps/get-sources-from-stack.js.map +1 -1
  64. package/cjs/source-maps/maybe-map-sourcemaps.js +24 -25
  65. package/cjs/source-maps/maybe-map-sourcemaps.js.map +1 -1
  66. package/cjs/source-maps/transform-raw-error.js +30 -48
  67. package/cjs/source-maps/transform-raw-error.js.map +1 -1
  68. package/cjs/types/pretty-error.type.js +13 -16
  69. package/cjs/types/pretty-error.type.js.map +1 -1
  70. package/cjs/types/pretty-print-options.type.js +5 -8
  71. package/cjs/types/pretty-print-options.type.js.map +1 -1
  72. package/dts/capture-errors.d.ts +0 -1
  73. package/dts/index.d.ts +0 -1
  74. package/dts/logic/effects/fs/fs-error.d.ts +0 -1
  75. package/dts/logic/effects/fs/fs-extra.effects.d.ts +0 -1
  76. package/dts/logic/errors/capture-errors-from-cause.d.ts +0 -1
  77. package/dts/logic/errors/extract-error-details.d.ts +0 -1
  78. package/dts/logic/errors/parse-error.d.ts +0 -1
  79. package/dts/logic/pretty-printing/format-failures-title.d.ts +0 -1
  80. package/dts/logic/pretty-printing/format-span-attributes.d.ts +0 -1
  81. package/dts/logic/pretty-printing/maybe-print-node-stacktrace.d.ts +0 -1
  82. package/dts/logic/pretty-printing/maybe-print-span-attributes.d.ts +0 -1
  83. package/dts/logic/pretty-printing/maybe-warn-about-plain-strings.d.ts +0 -1
  84. package/dts/logic/pretty-printing/print-effect-stacktrace.d.ts +0 -1
  85. package/dts/logic/spans/get-span-attributes.d.ts +0 -1
  86. package/dts/logic/spans/get-span-duration.d.ts +0 -1
  87. package/dts/logic/spans/maybe-add-error-to-spans-stack.d.ts +0 -1
  88. package/dts/logic/spans/spans-stack-trailing-char.d.ts +0 -1
  89. package/dts/logic/spans/split-spans-attributes-by-type.d.ts +0 -1
  90. package/dts/logic/stack/filter-stack.d.ts +0 -1
  91. package/dts/logic/stack/stack-regex.d.ts +0 -1
  92. package/dts/logic/strip-cwd-path.d.ts +0 -1
  93. package/dts/logic/util/big-int-replacer.d.ts +0 -1
  94. package/dts/pretty-print.d.ts +0 -1
  95. package/dts/runners/run-promise.d.ts +0 -1
  96. package/dts/runners/run-sync.d.ts +0 -1
  97. package/dts/source-maps/get-error-location-from-file-path.d.ts +0 -1
  98. package/dts/source-maps/get-error-related-sources.d.ts +0 -1
  99. package/dts/source-maps/get-source-code.d.ts +0 -1
  100. package/dts/source-maps/get-sources-from-map-file.d.ts +0 -1
  101. package/dts/source-maps/get-sources-from-span.d.ts +0 -1
  102. package/dts/source-maps/get-sources-from-stack.d.ts +0 -1
  103. package/dts/source-maps/maybe-map-sourcemaps.d.ts +0 -1
  104. package/dts/source-maps/transform-raw-error.d.ts +0 -1
  105. package/dts/types/pretty-error.type.d.ts +0 -1
  106. package/dts/types/pretty-print-options.type.d.ts +0 -1
  107. package/esm/capture-errors.js +12 -12
  108. package/esm/capture-errors.js.map +1 -1
  109. package/esm/index.js.map +1 -1
  110. package/esm/logic/effects/fs/fs-error.js +2 -1
  111. package/esm/logic/effects/fs/fs-error.js.map +1 -1
  112. package/esm/logic/effects/fs/fs-extra.effects.js +12 -32
  113. package/esm/logic/effects/fs/fs-extra.effects.js.map +1 -1
  114. package/esm/logic/errors/capture-errors-from-cause.js +7 -7
  115. package/esm/logic/errors/capture-errors-from-cause.js.map +1 -1
  116. package/esm/logic/errors/extract-error-details.js +50 -51
  117. package/esm/logic/errors/extract-error-details.js.map +1 -1
  118. package/esm/logic/errors/parse-error.js +13 -12
  119. package/esm/logic/errors/parse-error.js.map +1 -1
  120. package/esm/logic/pretty-printing/format-failures-title.js +6 -4
  121. package/esm/logic/pretty-printing/format-failures-title.js.map +1 -1
  122. package/esm/logic/pretty-printing/format-span-attributes.js +28 -36
  123. package/esm/logic/pretty-printing/format-span-attributes.js.map +1 -1
  124. package/esm/logic/pretty-printing/maybe-print-node-stacktrace.js +7 -8
  125. package/esm/logic/pretty-printing/maybe-print-node-stacktrace.js.map +1 -1
  126. package/esm/logic/pretty-printing/maybe-print-span-attributes.js +12 -15
  127. package/esm/logic/pretty-printing/maybe-print-span-attributes.js.map +1 -1
  128. package/esm/logic/pretty-printing/maybe-warn-about-plain-strings.js +4 -4
  129. package/esm/logic/pretty-printing/maybe-warn-about-plain-strings.js.map +1 -1
  130. package/esm/logic/pretty-printing/print-effect-stacktrace.js +6 -8
  131. package/esm/logic/pretty-printing/print-effect-stacktrace.js.map +1 -1
  132. package/esm/logic/spans/get-span-attributes.js +10 -14
  133. package/esm/logic/spans/get-span-attributes.js.map +1 -1
  134. package/esm/logic/spans/get-span-duration.js +5 -5
  135. package/esm/logic/spans/get-span-duration.js.map +1 -1
  136. package/esm/logic/spans/maybe-add-error-to-spans-stack.js +11 -11
  137. package/esm/logic/spans/maybe-add-error-to-spans-stack.js.map +1 -1
  138. package/esm/logic/spans/spans-stack-trailing-char.js +1 -1
  139. package/esm/logic/spans/spans-stack-trailing-char.js.map +1 -1
  140. package/esm/logic/spans/split-spans-attributes-by-type.js +11 -11
  141. package/esm/logic/spans/split-spans-attributes-by-type.js.map +1 -1
  142. package/esm/logic/stack/filter-stack.js +10 -10
  143. package/esm/logic/stack/filter-stack.js.map +1 -1
  144. package/esm/logic/stack/stack-regex.js.map +1 -1
  145. package/esm/logic/strip-cwd-path.js +2 -2
  146. package/esm/logic/strip-cwd-path.js.map +1 -1
  147. package/esm/logic/util/big-int-replacer.js +7 -7
  148. package/esm/logic/util/big-int-replacer.js.map +1 -1
  149. package/esm/package.json +1 -0
  150. package/esm/pretty-print.js +20 -21
  151. package/esm/pretty-print.js.map +1 -1
  152. package/esm/runners/run-promise.js +8 -8
  153. package/esm/runners/run-promise.js.map +1 -1
  154. package/esm/runners/run-sync.js +7 -7
  155. package/esm/runners/run-sync.js.map +1 -1
  156. package/esm/source-maps/get-error-location-from-file-path.js +9 -13
  157. package/esm/source-maps/get-error-location-from-file-path.js.map +1 -1
  158. package/esm/source-maps/get-error-related-sources.js +18 -22
  159. package/esm/source-maps/get-error-related-sources.js.map +1 -1
  160. package/esm/source-maps/get-source-code.js +15 -16
  161. package/esm/source-maps/get-source-code.js.map +1 -1
  162. package/esm/source-maps/get-sources-from-map-file.js +34 -32
  163. package/esm/source-maps/get-sources-from-map-file.js.map +1 -1
  164. package/esm/source-maps/get-sources-from-span.js +31 -40
  165. package/esm/source-maps/get-sources-from-span.js.map +1 -1
  166. package/esm/source-maps/get-sources-from-stack.js +11 -11
  167. package/esm/source-maps/get-sources-from-stack.js.map +1 -1
  168. package/esm/source-maps/maybe-map-sourcemaps.js +20 -18
  169. package/esm/source-maps/maybe-map-sourcemaps.js.map +1 -1
  170. package/esm/source-maps/transform-raw-error.js +23 -38
  171. package/esm/source-maps/transform-raw-error.js.map +1 -1
  172. package/esm/types/pretty-error.type.js +12 -12
  173. package/esm/types/pretty-error.type.js.map +1 -1
  174. package/esm/types/pretty-print-options.type.js +3 -3
  175. package/esm/types/pretty-print-options.type.js.map +1 -1
  176. package/package.json +11 -10
  177. package/dts/capture-errors.d.ts.map +0 -1
  178. package/dts/index.d.ts.map +0 -1
  179. package/dts/logic/effects/fs/fs-error.d.ts.map +0 -1
  180. package/dts/logic/effects/fs/fs-extra.effects.d.ts.map +0 -1
  181. package/dts/logic/errors/capture-errors-from-cause.d.ts.map +0 -1
  182. package/dts/logic/errors/extract-error-details.d.ts.map +0 -1
  183. package/dts/logic/errors/parse-error.d.ts.map +0 -1
  184. package/dts/logic/pretty-printing/format-failures-title.d.ts.map +0 -1
  185. package/dts/logic/pretty-printing/format-span-attributes.d.ts.map +0 -1
  186. package/dts/logic/pretty-printing/maybe-print-node-stacktrace.d.ts.map +0 -1
  187. package/dts/logic/pretty-printing/maybe-print-span-attributes.d.ts.map +0 -1
  188. package/dts/logic/pretty-printing/maybe-warn-about-plain-strings.d.ts.map +0 -1
  189. package/dts/logic/pretty-printing/print-effect-stacktrace.d.ts.map +0 -1
  190. package/dts/logic/spans/get-span-attributes.d.ts.map +0 -1
  191. package/dts/logic/spans/get-span-duration.d.ts.map +0 -1
  192. package/dts/logic/spans/maybe-add-error-to-spans-stack.d.ts.map +0 -1
  193. package/dts/logic/spans/spans-stack-trailing-char.d.ts.map +0 -1
  194. package/dts/logic/spans/split-spans-attributes-by-type.d.ts.map +0 -1
  195. package/dts/logic/stack/filter-stack.d.ts.map +0 -1
  196. package/dts/logic/stack/stack-regex.d.ts.map +0 -1
  197. package/dts/logic/strip-cwd-path.d.ts.map +0 -1
  198. package/dts/logic/util/big-int-replacer.d.ts.map +0 -1
  199. package/dts/pretty-print.d.ts.map +0 -1
  200. package/dts/runners/run-promise.d.ts.map +0 -1
  201. package/dts/runners/run-sync.d.ts.map +0 -1
  202. package/dts/source-maps/get-error-location-from-file-path.d.ts.map +0 -1
  203. package/dts/source-maps/get-error-related-sources.d.ts.map +0 -1
  204. package/dts/source-maps/get-source-code.d.ts.map +0 -1
  205. package/dts/source-maps/get-sources-from-map-file.d.ts.map +0 -1
  206. package/dts/source-maps/get-sources-from-span.d.ts.map +0 -1
  207. package/dts/source-maps/get-sources-from-stack.d.ts.map +0 -1
  208. package/dts/source-maps/maybe-map-sourcemaps.d.ts.map +0 -1
  209. package/dts/source-maps/transform-raw-error.d.ts.map +0 -1
  210. package/dts/types/pretty-error.type.d.ts.map +0 -1
  211. package/dts/types/pretty-print-options.type.d.ts.map +0 -1
  212. package/esm/tsconfig-prod.tsbuildinfo +0 -1
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.stackAtRegex = exports.sourceFileWithMapPointerRegex = void 0;
7
- const stackAtRegex = exports.stackAtRegex = / {4}at /g;
8
- const sourceFileWithMapPointerRegex = exports.sourceFileWithMapPointerRegex = /^(file:\/\/)?(.*.([jt])sx?)(\?.*)?:(\d*):(\d*)$/;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sourceFileWithMapPointerRegex = exports.stackAtRegex = void 0;
4
+ exports.stackAtRegex = / {4}at /g;
5
+ exports.sourceFileWithMapPointerRegex = /^(file:\/\/)?(.*.([jt])sx?)(\?.*)?:(\d*):(\d*)$/;
9
6
  //# sourceMappingURL=stack-regex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stack-regex.js","names":["stackAtRegex","exports","sourceFileWithMapPointerRegex"],"sources":["../../../../src/logic/stack/stack-regex.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,UAAU;AAC/B,MAAME,6BAA6B,GAAAD,OAAA,CAAAC,6BAAA,GACxC,iDAAiD","ignoreList":[]}
1
+ {"version":3,"file":"stack-regex.js","sourceRoot":"","sources":["../../../../src/logic/stack/stack-regex.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,UAAU,CAAC;AAC1B,QAAA,6BAA6B,GACxC,iDAAiD,CAAC"}
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.stripCwdPath = void 0;
7
- const cwdRegex = global.process !== undefined ? /*#__PURE__*/new RegExp(/*#__PURE__*/global.process.cwd(), 'g') : null;
8
- const stripCwdPath = path => cwdRegex === null ? path : path.replace(cwdRegex, '.');
4
+ const cwdRegex = global.process !== undefined ? new RegExp(global.process.cwd(), 'g') : null;
5
+ const stripCwdPath = (path) => cwdRegex === null ? path : path.replace(cwdRegex, '.');
9
6
  exports.stripCwdPath = stripCwdPath;
10
7
  //# sourceMappingURL=strip-cwd-path.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"strip-cwd-path.js","names":["cwdRegex","global","process","undefined","RegExp","cwd","stripCwdPath","path","replace","exports"],"sources":["../../../src/logic/strip-cwd-path.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,MAAMA,QAAQ,GACZC,MAAM,CAACC,OAAO,KAAKC,SAAS,gBAAG,IAAIC,MAAM,cAACH,MAAM,CAACC,OAAO,CAACG,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,IAAI;AAEtE,MAAMC,YAAY,GAAIC,IAAY,IACvCP,QAAQ,KAAK,IAAI,GAAGO,IAAI,GAAGA,IAAI,CAACC,OAAO,CAACR,QAAQ,EAAE,GAAG,CAAC;AAACS,OAAA,CAAAH,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"file":"strip-cwd-path.js","sourceRoot":"","sources":["../../../src/logic/strip-cwd-path.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GACZ,MAAM,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAEvE,MAAM,YAAY,GAAG,CAAC,IAAY,EAAU,EAAE,CACnD,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAD5C,QAAA,YAAY,gBACgC"}
@@ -1,17 +1,14 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.bigIntReplacer = void 0;
7
4
  const bigIntReplacer = (_key, value) => {
8
- if (typeof value === 'bigint') {
9
- return {
10
- type: 'bigint',
11
- value: value.toString()
12
- };
13
- }
14
- return value;
5
+ if (typeof value === 'bigint') {
6
+ return {
7
+ type: 'bigint',
8
+ value: value.toString(),
9
+ };
10
+ }
11
+ return value;
15
12
  };
16
13
  exports.bigIntReplacer = bigIntReplacer;
17
14
  //# sourceMappingURL=big-int-replacer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"big-int-replacer.js","names":["bigIntReplacer","_key","value","type","toString","exports"],"sources":["../../../../src/logic/util/big-int-replacer.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAGA,CAACC,IAAY,EAAEC,KAAc,KAAI;EAC7D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAO;MACLC,IAAI,EAAE,QAAQ;MACdD,KAAK,EAAEA,KAAK,CAACE,QAAQ;KACtB;EACH;EACA,OAAOF,KAAK;AACd,CAAC;AAACG,OAAA,CAAAL,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"file":"big-int-replacer.js","sourceRoot":"","sources":["../../../../src/logic/util/big-int-replacer.ts"],"names":[],"mappings":";;;AAAO,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,KAAc,EAAE,EAAE;IAC7D,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;SACxB,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB"}
@@ -0,0 +1 @@
1
+ {"type": "commonjs"}
@@ -1,45 +1,39 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.prettyPrint = void 0;
7
- var _Cause = /*#__PURE__*/require("effect/Cause");
8
- var _picocolors = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("picocolors"));
9
- var _captureErrorsFromCause = /*#__PURE__*/require("./logic/errors/capture-errors-from-cause.js");
10
- var _formatFailuresTitle = /*#__PURE__*/require("./logic/pretty-printing/format-failures-title.js");
11
- var _maybePrintNodeStacktrace = /*#__PURE__*/require("./logic/pretty-printing/maybe-print-node-stacktrace.js");
12
- var _maybePrintSpanAttributes = /*#__PURE__*/require("./logic/pretty-printing/maybe-print-span-attributes.js");
13
- var _maybeWarnAboutPlainStrings = /*#__PURE__*/require("./logic/pretty-printing/maybe-warn-about-plain-strings.js");
14
- var _printEffectStacktrace = /*#__PURE__*/require("./logic/pretty-printing/print-effect-stacktrace.js");
15
- var _maybeAddErrorToSpansStack = /*#__PURE__*/require("./logic/spans/maybe-add-error-to-spans-stack.js");
16
- var _prettyPrintOptionsType = /*#__PURE__*/require("./types/pretty-print-options.type.js");
17
- function _interopRequireDefault(e) {
18
- return e && e.__esModule ? e : {
19
- default: e
20
- };
21
- }
22
- const prettyPrint = (cause, options = _prettyPrintOptionsType.prettyPrintOptionsDefault) => {
23
- if ((0, _Cause.isInterruptedOnly)(cause)) {
24
- return 'All fibers interrupted without errors.';
25
- }
26
- const failures = (0, _captureErrorsFromCause.captureErrorsFrom)(cause);
27
- const title = `\r\n🫠 ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.underline(`${failures.length} error${failures.length > 1 ? 's' : ''} occured`)))}\r\n\r\n`;
28
- return title + failures.map(({
29
- errorType,
30
- message: errorMessage,
31
- stack,
32
- span,
33
- isPlainString
34
- }, failureIndex) => {
35
- const d = [(0, _formatFailuresTitle.formatFailuresTitle)(errorType, errorMessage, failures.length, failureIndex)];
36
- (0, _maybeWarnAboutPlainStrings.maybeWarnAboutPlainStrings)(d, isPlainString);
37
- const spanAttributesStack = (0, _maybePrintSpanAttributes.maybePrintSpanAttributes)(d, span, isPlainString, options);
38
- const effectStack = (0, _maybeAddErrorToSpansStack.maybeAddErrorToSpansStack)(stack, spanAttributesStack);
39
- (0, _printEffectStacktrace.printEffectStacktrace)(d, span, effectStack, options);
40
- (0, _maybePrintNodeStacktrace.maybePrintNodeStacktrace)(d, span, stack, isPlainString, options);
41
- return [...d, '\r\n'].join('');
42
- }).join('\r\n');
7
+ const Cause_1 = require("effect/Cause");
8
+ const picocolors_1 = __importDefault(require("picocolors"));
9
+ const capture_errors_from_cause_js_1 = require("./logic/errors/capture-errors-from-cause.js");
10
+ const format_failures_title_js_1 = require("./logic/pretty-printing/format-failures-title.js");
11
+ const maybe_print_node_stacktrace_js_1 = require("./logic/pretty-printing/maybe-print-node-stacktrace.js");
12
+ const maybe_print_span_attributes_js_1 = require("./logic/pretty-printing/maybe-print-span-attributes.js");
13
+ const maybe_warn_about_plain_strings_js_1 = require("./logic/pretty-printing/maybe-warn-about-plain-strings.js");
14
+ const print_effect_stacktrace_js_1 = require("./logic/pretty-printing/print-effect-stacktrace.js");
15
+ const maybe_add_error_to_spans_stack_js_1 = require("./logic/spans/maybe-add-error-to-spans-stack.js");
16
+ const pretty_print_options_type_js_1 = require("./types/pretty-print-options.type.js");
17
+ const prettyPrint = (cause, options = pretty_print_options_type_js_1.prettyPrintOptionsDefault) => {
18
+ if ((0, Cause_1.isInterruptedOnly)(cause)) {
19
+ return 'All fibers interrupted without errors.';
20
+ }
21
+ const failures = (0, capture_errors_from_cause_js_1.captureErrorsFrom)(cause);
22
+ const title = `\r\n🫠 ${picocolors_1.default.bold(picocolors_1.default.yellow(picocolors_1.default.underline(`${failures.length} error${failures.length > 1 ? 's' : ''} occured`)))}\r\n\r\n`;
23
+ return (title +
24
+ failures
25
+ .map(({ errorType, message: errorMessage, stack, span, isPlainString }, failureIndex) => {
26
+ const d = [
27
+ (0, format_failures_title_js_1.formatFailuresTitle)(errorType, errorMessage, failures.length, failureIndex),
28
+ ];
29
+ (0, maybe_warn_about_plain_strings_js_1.maybeWarnAboutPlainStrings)(d, isPlainString);
30
+ const spanAttributesStack = (0, maybe_print_span_attributes_js_1.maybePrintSpanAttributes)(d, span, isPlainString, options);
31
+ const effectStack = (0, maybe_add_error_to_spans_stack_js_1.maybeAddErrorToSpansStack)(stack, spanAttributesStack);
32
+ (0, print_effect_stacktrace_js_1.printEffectStacktrace)(d, span, effectStack, options);
33
+ (0, maybe_print_node_stacktrace_js_1.maybePrintNodeStacktrace)(d, span, stack, isPlainString, options);
34
+ return [...d, '\r\n'].join('');
35
+ })
36
+ .join('\r\n'));
43
37
  };
44
38
  exports.prettyPrint = prettyPrint;
45
39
  //# sourceMappingURL=pretty-print.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pretty-print.js","names":["_Cause","require","_picocolors","_interopRequireDefault","_captureErrorsFromCause","_formatFailuresTitle","_maybePrintNodeStacktrace","_maybePrintSpanAttributes","_maybeWarnAboutPlainStrings","_printEffectStacktrace","_maybeAddErrorToSpansStack","_prettyPrintOptionsType","e","__esModule","default","prettyPrint","cause","options","prettyPrintOptionsDefault","isInterruptedOnly","failures","captureErrorsFrom","title","bold","yellow","underline","length","map","errorType","message","errorMessage","stack","span","isPlainString","failureIndex","d","formatFailuresTitle","maybeWarnAboutPlainStrings","spanAttributesStack","maybePrintSpanAttributes","effectStack","maybeAddErrorToSpansStack","printEffectStacktrace","maybePrintNodeStacktrace","join","exports"],"sources":["../../src/pretty-print.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,MAAA,gBAAAC,OAAA;AACA,IAAAC,WAAA,gBAAAC,sBAAA,cAAAF,OAAA;AAEA,IAAAG,uBAAA,gBAAAH,OAAA;AACA,IAAAI,oBAAA,gBAAAJ,OAAA;AACA,IAAAK,yBAAA,gBAAAL,OAAA;AACA,IAAAM,yBAAA,gBAAAN,OAAA;AACA,IAAAO,2BAAA,gBAAAP,OAAA;AACA,IAAAQ,sBAAA,gBAAAR,OAAA;AACA,IAAAS,0BAAA,gBAAAT,OAAA;AACA,IAAAU,uBAAA,gBAAAV,OAAA;AAG8C,SAAAE,uBAAAS,CAAA;EAAA,OAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA;IAAAE,OAAA,EAAAF;EAAA;AAAA;AAEvC,MAAMG,WAAW,GAAGA,CACzBC,KAAe,EACfC,OAAA,GAA8BN,uBAAA,CAAAO,yBAAyB,KAC7C;EACV,IAAI,IAAAlB,MAAA,CAAAmB,iBAAiB,EAACH,KAAK,CAAC,EAAE;IAC5B,OAAO,wCAAwC;EACjD;EAEA,MAAMI,QAAQ,GAAG,IAAAhB,uBAAA,CAAAiB,iBAAiB,EAAIL,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YAEF,IAAA,kDAAqB,EAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACrD,IAAA,yDAAwB,EAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;YAEjE,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC,CACF;aACA,IAAI,CAAC,MAAM,CAAC,CAChB,CAAC;AACJ,CAAC,CAAC;AAzDW,QAAA,WAAW,eAyDtB"}
@@ -1,19 +1,16 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.runPromise = void 0;
7
- var _effect = /*#__PURE__*/require("effect");
8
- var _index = /*#__PURE__*/require("../index.js");
9
- var _prettyPrintOptionsType = /*#__PURE__*/require("../types/pretty-print-options.type.js");
10
- const runPromise = async (effect, options = _prettyPrintOptionsType.prettyPrintOptionsDefault) => await _effect.Effect.runPromise((0, _effect.pipe)(effect, _effect.Effect.sandbox, _effect.Effect.catchAll(e => {
11
- if (options.enabled === false) {
12
- return _effect.Effect.fail(e);
13
- }
14
- const prettyError = (0, _index.prettyPrint)(e, options);
15
- console.error(prettyError);
16
- return _effect.Effect.fail('❌ runPromise failure');
4
+ const effect_1 = require("effect");
5
+ const index_js_1 = require("../index.js");
6
+ const pretty_print_options_type_js_1 = require("../types/pretty-print-options.type.js");
7
+ const runPromise = async (effect, options = pretty_print_options_type_js_1.prettyPrintOptionsDefault) => await effect_1.Effect.runPromise((0, effect_1.pipe)(effect, effect_1.Effect.sandbox, effect_1.Effect.catchAll((e) => {
8
+ if (options.enabled === false) {
9
+ return effect_1.Effect.fail(e);
10
+ }
11
+ const prettyError = (0, index_js_1.prettyPrint)(e, options);
12
+ console.error(prettyError);
13
+ return effect_1.Effect.fail('❌ runPromise failure');
17
14
  })));
18
15
  exports.runPromise = runPromise;
19
16
  //# sourceMappingURL=run-promise.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-promise.js","names":["_effect","require","_index","_prettyPrintOptionsType","runPromise","effect","options","prettyPrintOptionsDefault","Effect","pipe","sandbox","catchAll","e","enabled","fail","prettyError","prettyPrint","console","error","exports"],"sources":["../../../src/runners/run-promise.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAEA,IAAAC,MAAA,gBAAAD,OAAA;AACA,IAAAE,uBAAA,gBAAAF,OAAA;AAKO,MAAMG,UAAU,GAAG,MAAAA,CACxBC,MAA2B,EAC3BC,OAAA,GAA8BH,uBAAA,CAAAI,yBAAyB,KAEvD,MAAMP,OAAA,CAAAQ,MAAM,CAACJ,UAAU,CACrB,IAAAJ,OAAA,CAAAS,IAAI,EACFJ,MAAM,EACNL,OAAA,CAAAQ,MAAM,CAACE,OAAO,EACdV,OAAA,CAAAQ,MAAM,CAACG,QAAQ,CAAEC,CAAC,IAAI;EACpB,IAAIN,OAAO,CAACO,OAAO,KAAK,KAAK,EAAE;IAC7B,OAAOb,OAAA,CAAAQ,MAAM,CAACM,IAAI,CAACF,CAAC,CAAC;EACvB;EAEA,MAAMG,WAAW,GAAG,IAAAb,MAAA,CAAAc,WAAW,EAACJ,CAAC,EAAEN,OAAO,CAAC;EAC3CW,OAAO,CAACC,KAAK,CAACH,WAAW,CAAC;EAE1B,OAAOf,OAAA,CAAAQ,MAAM,CAACM,IAAI,CAAC,sBAA+B,CAAC;AACrD,CAAC,CAAC,CACH,CACF;AAACK,OAAA,CAAAf,UAAA,GAAAA,UAAA","ignoreList":[]}
1
+ {"version":3,"file":"run-promise.js","sourceRoot":"","sources":["../../../src/runners/run-promise.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEtC,0CAA0C;AAC1C,wFAG+C;AAExC,MAAM,UAAU,GAAG,KAAK,EAC7B,MAA2B,EAC3B,UAA8B,wDAAyB,EAC3C,EAAE,CACd,MAAM,eAAM,CAAC,UAAU,CACrB,IAAA,aAAI,EACF,MAAM,EACN,eAAM,CAAC,OAAO,EACd,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE;IACpB,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;QAC9B,OAAO,eAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,WAAW,GAAG,IAAA,sBAAW,EAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAE3B,OAAO,eAAM,CAAC,IAAI,CAAC,sBAA+B,CAAC,CAAC;AACtD,CAAC,CAAC,CACH,CACF,CAAC;AAnBS,QAAA,UAAU,cAmBnB"}
@@ -1,18 +1,15 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.runSync = void 0;
7
- var _effect = /*#__PURE__*/require("effect");
8
- var _index = /*#__PURE__*/require("../index.js");
9
- var _prettyPrintOptionsType = /*#__PURE__*/require("../types/pretty-print-options.type.js");
10
- const runSync = (effect, options = _prettyPrintOptionsType.prettyPrintOptionsDefault) => _effect.Effect.runSync((0, _effect.pipe)(effect, _effect.Effect.sandbox, _effect.Effect.catchAll(e => {
11
- if (options.enabled === true) {
12
- console.error((0, _index.prettyPrint)(e, options));
13
- return _effect.Effect.fail('❌ runSync failure');
14
- }
15
- return _effect.Effect.fail(e);
4
+ const effect_1 = require("effect");
5
+ const index_js_1 = require("../index.js");
6
+ const pretty_print_options_type_js_1 = require("../types/pretty-print-options.type.js");
7
+ const runSync = (effect, options = pretty_print_options_type_js_1.prettyPrintOptionsDefault) => effect_1.Effect.runSync((0, effect_1.pipe)(effect, effect_1.Effect.sandbox, effect_1.Effect.catchAll((e) => {
8
+ if (options.enabled === true) {
9
+ console.error((0, index_js_1.prettyPrint)(e, options));
10
+ return effect_1.Effect.fail('❌ runSync failure');
11
+ }
12
+ return effect_1.Effect.fail(e);
16
13
  })));
17
14
  exports.runSync = runSync;
18
15
  //# sourceMappingURL=run-sync.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-sync.js","names":["_effect","require","_index","_prettyPrintOptionsType","runSync","effect","options","prettyPrintOptionsDefault","Effect","pipe","sandbox","catchAll","e","enabled","console","error","prettyPrint","fail","exports"],"sources":["../../../src/runners/run-sync.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAEA,IAAAC,MAAA,gBAAAD,OAAA;AACA,IAAAE,uBAAA,gBAAAF,OAAA;AAKO,MAAMG,OAAO,GAAGA,CACrBC,MAA2B,EAC3BC,OAAA,GAA8BH,uBAAA,CAAAI,yBAAyB,KAEvDP,OAAA,CAAAQ,MAAM,CAACJ,OAAO,CACZ,IAAAJ,OAAA,CAAAS,IAAI,EACFJ,MAAM,EACNL,OAAA,CAAAQ,MAAM,CAACE,OAAO,EACdV,OAAA,CAAAQ,MAAM,CAACG,QAAQ,CAAEC,CAAC,IAAI;EACpB,IAAIN,OAAO,CAACO,OAAO,KAAK,IAAI,EAAE;IAC5BC,OAAO,CAACC,KAAK,CAAC,IAAAb,MAAA,CAAAc,WAAW,EAACJ,CAAC,EAAEN,OAAO,CAAC,CAAC;IAEtC,OAAON,OAAA,CAAAQ,MAAM,CAACS,IAAI,CAAC,mBAAmB,CAAU;EAClD;EAEA,OAAOjB,OAAA,CAAAQ,MAAM,CAACS,IAAI,CAACL,CAAC,CAAC;AACvB,CAAC,CAAC,CACH,CACF;AAACM,OAAA,CAAAd,OAAA,GAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"run-sync.js","sourceRoot":"","sources":["../../../src/runners/run-sync.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEtC,0CAA0C;AAC1C,wFAG+C;AAExC,MAAM,OAAO,GAAG,CACrB,MAA2B,EAC3B,UAA8B,wDAAyB,EACpD,EAAE,CACL,eAAM,CAAC,OAAO,CACZ,IAAA,aAAI,EACF,MAAM,EACN,eAAM,CAAC,OAAO,EACd,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE;IACpB,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,KAAK,CAAC,IAAA,sBAAW,EAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;QAEvC,OAAO,eAAM,CAAC,IAAI,CAAC,mBAAmB,CAAU,CAAC;IACnD,CAAC;IAED,OAAO,eAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC,CACH,CACF,CAAC;AAlBS,QAAA,OAAO,WAkBhB"}
@@ -1,23 +1,16 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getErrorLocationFrom = void 0;
7
- var _stackRegex = /*#__PURE__*/require("../logic/stack/stack-regex.js");
8
- const getErrorLocationFrom = sourceFile => {
9
- const regex = _stackRegex.sourceFileWithMapPointerRegex.exec(sourceFile);
10
- if (regex === null || regex.length !== 7) {
11
- return;
12
- }
13
- const filePath = regex[2];
14
- const line = +regex[5];
15
- const column = +regex[6];
16
- return {
17
- filePath,
18
- line,
19
- column
20
- };
4
+ const stack_regex_js_1 = require("../logic/stack/stack-regex.js");
5
+ const getErrorLocationFrom = (sourceFile) => {
6
+ const regex = stack_regex_js_1.sourceFileWithMapPointerRegex.exec(sourceFile);
7
+ if (regex === null || regex.length !== 7) {
8
+ return;
9
+ }
10
+ const filePath = regex[2];
11
+ const line = +regex[5];
12
+ const column = +regex[6];
13
+ return { filePath, line, column };
21
14
  };
22
15
  exports.getErrorLocationFrom = getErrorLocationFrom;
23
16
  //# sourceMappingURL=get-error-location-from-file-path.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-error-location-from-file-path.js","names":["_stackRegex","require","getErrorLocationFrom","sourceFile","regex","sourceFileWithMapPointerRegex","exec","length","filePath","line","column","exports"],"sources":["../../../src/source-maps/get-error-location-from-file-path.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,WAAA,gBAAAC,OAAA;AAQO,MAAMC,oBAAoB,GAC/BC,UAAkB,IACW;EAC7B,MAAMC,KAAK,GAAGJ,WAAA,CAAAK,6BAA6B,CAACC,IAAI,CAACH,UAAU,CAAC;EAC5D,IAAIC,KAAK,KAAK,IAAI,IAAIA,KAAK,CAACG,MAAM,KAAK,CAAC,EAAE;IACxC;EACF;EAEA,MAAMC,QAAQ,GAAGJ,KAAK,CAAC,CAAC,CAAC;EACzB,MAAMK,IAAI,GAAG,CAACL,KAAK,CAAC,CAAC,CAAC;EACtB,MAAMM,MAAM,GAAG,CAACN,KAAK,CAAC,CAAC,CAAC;EAExB,OAAO;IAAEI,QAAQ;IAAEC,IAAI;IAAEC;EAAM,CAAE;AACnC,CAAC;AAACC,OAAA,CAAAT,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"file":"get-error-location-from-file-path.js","sourceRoot":"","sources":["../../../src/source-maps/get-error-location-from-file-path.ts"],"names":[],"mappings":";;;AAAA,kEAA8E;AAQvE,MAAM,oBAAoB,GAAG,CAClC,UAAkB,EACS,EAAE;IAC7B,MAAM,KAAK,GAAG,8CAA6B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7D,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzC,OAAO;IACT,CAAC;IAED,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEzB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACpC,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/B"}
@@ -1,34 +1,27 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getErrorRelatedSources = void 0;
7
- var _effect = /*#__PURE__*/require("effect");
8
- var _getErrorLocationFromFilePath = /*#__PURE__*/require("./get-error-location-from-file-path.js");
9
- var _getSourceCode = /*#__PURE__*/require("./get-source-code.js");
10
- var _getSourcesFromMapFile = /*#__PURE__*/require("./get-sources-from-map-file.js");
11
- const getErrorRelatedSources = sourceFile => _effect.Effect.gen(function* () {
12
- const location = (0, _getErrorLocationFromFilePath.getErrorLocationFrom)(sourceFile);
13
- if (location === undefined) {
14
- return;
15
- }
16
- const {
17
- filePath,
18
- line,
19
- column
20
- } = location;
21
- const isTypescriptFile = filePath.endsWith('.ts') || filePath.endsWith('.tsx');
22
- if (isTypescriptFile) {
23
- const source = yield* (0, _getSourceCode.getSourceCode)(location);
24
- return {
25
- _tag: 'sources',
26
- runPath: `${filePath}:${line}:${column}`,
27
- sourcesPath: undefined,
28
- source
29
- };
30
- }
31
- return yield* (0, _getSourcesFromMapFile.getSourcesFromMapFile)(location);
4
+ const effect_1 = require("effect");
5
+ const get_error_location_from_file_path_js_1 = require("./get-error-location-from-file-path.js");
6
+ const get_source_code_js_1 = require("./get-source-code.js");
7
+ const get_sources_from_map_file_js_1 = require("./get-sources-from-map-file.js");
8
+ const getErrorRelatedSources = (sourceFile) => effect_1.Effect.gen(function* () {
9
+ const location = (0, get_error_location_from_file_path_js_1.getErrorLocationFrom)(sourceFile);
10
+ if (location === undefined) {
11
+ return;
12
+ }
13
+ const { filePath, line, column } = location;
14
+ const isTypescriptFile = filePath.endsWith('.ts') || filePath.endsWith('.tsx');
15
+ if (isTypescriptFile) {
16
+ const source = yield* (0, get_source_code_js_1.getSourceCode)(location);
17
+ return {
18
+ _tag: 'sources',
19
+ runPath: `${filePath}:${line}:${column}`,
20
+ sourcesPath: undefined,
21
+ source,
22
+ };
23
+ }
24
+ return yield* (0, get_sources_from_map_file_js_1.getSourcesFromMapFile)(location);
32
25
  });
33
26
  exports.getErrorRelatedSources = getErrorRelatedSources;
34
27
  //# sourceMappingURL=get-error-related-sources.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-error-related-sources.js","names":["_effect","require","_getErrorLocationFromFilePath","_getSourceCode","_getSourcesFromMapFile","getErrorRelatedSources","sourceFile","Effect","gen","location","getErrorLocationFrom","undefined","filePath","line","column","isTypescriptFile","endsWith","source","getSourceCode","_tag","runPath","sourcesPath","getSourcesFromMapFile","exports"],"sources":["../../../src/source-maps/get-error-related-sources.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAIA,IAAAC,6BAAA,gBAAAD,OAAA;AACA,IAAAE,cAAA,gBAAAF,OAAA;AACA,IAAAG,sBAAA,gBAAAH,OAAA;AAMO,MAAMI,sBAAsB,GACjCC,UAAkB,IAElBN,OAAA,CAAAO,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,MAAMC,QAAQ,GAAG,IAAAP,6BAAA,CAAAQ,oBAAoB,EAACJ,UAAU,CAAC;EACjD,IAAIG,QAAQ,KAAKE,SAAS,EAAE;IAC1B;EACF;EAEA,MAAM;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAM,CAAE,GAAGL,QAAQ;EAE3C,MAAMM,gBAAgB,GACpBH,QAAQ,CAACI,QAAQ,CAAC,KAAK,CAAC,IAAIJ,QAAQ,CAACI,QAAQ,CAAC,MAAM,CAAC;EACvD,IAAID,gBAAgB,EAAE;IACpB,MAAME,MAAM,GAAG,OAAO,IAAAd,cAAA,CAAAe,aAAa,EAACT,QAAQ,CAAC;IAE7C,OAAO;MACLU,IAAI,EAAE,SAAkB;MACxBC,OAAO,EAAE,GAAGR,QAAQ,IAAIC,IAAI,IAAIC,MAAM,EAAE;MACxCO,WAAW,EAAEV,SAAS;MACtBM;KACD;EACH;EAEA,OAAO,OAAO,IAAAb,sBAAA,CAAAkB,qBAAqB,EAACb,QAAQ,CAAC;AAC/C,CAAC,CAAC;AAACc,OAAA,CAAAlB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"file":"get-error-related-sources.js","sourceRoot":"","sources":["../../../src/source-maps/get-error-related-sources.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAIhC,iGAA8E;AAC9E,6DAAqD;AACrD,iFAIwC;AAEjC,MAAM,sBAAsB,GAAG,CACpC,UAAkB,EAC0D,EAAE,CAC9E,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,QAAQ,GAAG,IAAA,2DAAoB,EAAC,UAAU,CAAC,CAAC;IAClD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IAED,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;IAE5C,MAAM,gBAAgB,GACpB,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACxD,IAAI,gBAAgB,EAAE,CAAC;QACrB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,IAAA,kCAAa,EAAC,QAAQ,CAAC,CAAC;QAE9C,OAAO;YACL,IAAI,EAAE,SAAkB;YACxB,OAAO,EAAE,GAAG,QAAQ,IAAI,IAAI,IAAI,MAAM,EAAE;YACxC,WAAW,EAAE,SAAS;YACtB,MAAM;SACP,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,IAAA,oDAAqB,EAAC,QAAQ,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAzBQ,QAAA,sBAAsB,0BAyB9B"}
@@ -1,28 +1,24 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getSourceCode = void 0;
7
- var _effect = /*#__PURE__*/require("effect");
8
- var _fsExtraEffects = /*#__PURE__*/require("../logic/effects/fs/fs-extra.effects.js");
4
+ const effect_1 = require("effect");
5
+ const fs_extra_effects_js_1 = require("../logic/effects/fs/fs-extra.effects.js");
9
6
  const numberOflinesToExtract = 7;
10
- const getSourceCode = ({
11
- filePath,
12
- line,
13
- column
14
- }, isFromJs = false) => _effect.Effect.gen(function* () {
15
- const start = line >= 4 ? line - 4 : 0;
16
- const sourceCode = yield* (0, _fsExtraEffects.readFileEffect)(filePath);
17
- return sourceCode.split('\n').splice(start, numberOflinesToExtract).map((currentLine, index) => {
18
- const currentLineNumber = index + start + 1;
19
- const actualColumn = isFromJs ? column + 1 : column;
20
- return {
21
- line: currentLineNumber,
22
- code: currentLine,
23
- column: currentLineNumber === line ? actualColumn : undefined
24
- };
25
- });
7
+ const getSourceCode = ({ filePath, line, column }, isFromJs = false) => effect_1.Effect.gen(function* () {
8
+ const start = line >= 4 ? line - 4 : 0;
9
+ const sourceCode = yield* (0, fs_extra_effects_js_1.readFileEffect)(filePath);
10
+ return sourceCode
11
+ .split('\n')
12
+ .splice(start, numberOflinesToExtract)
13
+ .map((currentLine, index) => {
14
+ const currentLineNumber = index + start + 1;
15
+ const actualColumn = isFromJs ? column + 1 : column;
16
+ return {
17
+ line: currentLineNumber,
18
+ code: currentLine,
19
+ column: currentLineNumber === line ? actualColumn : undefined,
20
+ };
21
+ });
26
22
  });
27
23
  exports.getSourceCode = getSourceCode;
28
24
  //# sourceMappingURL=get-source-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-source-code.js","names":["_effect","require","_fsExtraEffects","numberOflinesToExtract","getSourceCode","filePath","line","column","isFromJs","Effect","gen","start","sourceCode","readFileEffect","split","splice","map","currentLine","index","currentLineNumber","actualColumn","code","undefined","exports"],"sources":["../../../src/source-maps/get-source-code.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAGA,IAAAC,eAAA,gBAAAD,OAAA;AAUA,MAAME,sBAAsB,GAAG,CAAC;AAEzB,MAAMC,aAAa,GAAGA,CAC3B;EAAEC,QAAQ;EAAEC,IAAI;EAAEC;AAAM,CAAiB,EACzCC,QAAQ,GAAG,KAAK,KAEhBR,OAAA,CAAAS,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,MAAMC,KAAK,GAAGL,IAAI,IAAI,CAAC,GAAGA,IAAI,GAAG,CAAC,GAAG,CAAC;EAEtC,MAAMM,UAAU,GAAG,OAAO,IAAAV,eAAA,CAAAW,cAAc,EAACR,QAAQ,CAAC;EAElD,OAAOO,UAAU,CACdE,KAAK,CAAC,IAAI,CAAC,CACXC,MAAM,CAACJ,KAAK,EAAER,sBAAsB,CAAC,CACrCa,GAAG,CAAC,CAACC,WAAW,EAAEC,KAAK,KAAI;IAC1B,MAAMC,iBAAiB,GAAGD,KAAK,GAAGP,KAAK,GAAG,CAAC;IAE3C,MAAMS,YAAY,GAAGZ,QAAQ,GAAGD,MAAM,GAAG,CAAC,GAAGA,MAAM;IAEnD,OAAO;MACLD,IAAI,EAAEa,iBAAiB;MACvBE,IAAI,EAAEJ,WAAW;MACjBV,MAAM,EAAEY,iBAAiB,KAAKb,IAAI,GAAGc,YAAY,GAAGE;KACrD;EACH,CAAC,CAAC;AACN,CAAC,CAAC;AAACC,OAAA,CAAAnB,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"get-source-code.js","sourceRoot":"","sources":["../../../src/source-maps/get-source-code.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAGhC,iFAAyE;AAUzE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAE1B,MAAM,aAAa,GAAG,CAC3B,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAiB,EACzC,QAAQ,GAAG,KAAK,EACsB,EAAE,CACxC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvC,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,IAAA,oCAAc,EAAC,QAAQ,CAAC,CAAC;IAEnD,OAAO,UAAU;SACd,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC;SACrC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;QAC1B,MAAM,iBAAiB,GAAG,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC;QAE5C,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QAEpD,OAAO;YACL,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAvBQ,QAAA,aAAa,iBAuBrB"}
@@ -1,52 +1,49 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getSourcesFromMapFile = void 0;
7
- var _nodePath = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("node:path"));
8
- var _effect = /*#__PURE__*/require("effect");
9
- var _sourceMapJs = /*#__PURE__*/require("source-map-js");
10
- var _fsExtraEffects = /*#__PURE__*/require("../logic/effects/fs/fs-extra.effects.js");
11
- var _getSourceCode = /*#__PURE__*/require("./get-source-code.js");
12
- function _interopRequireDefault(e) {
13
- return e && e.__esModule ? e : {
14
- default: e
15
- };
16
- }
17
- const getSourcesFromMapFile = location => _effect.Effect.gen(function* () {
18
- const fileExists = yield* (0, _fsExtraEffects.existsEffect)(`${location.filePath}.map`);
19
- if (!fileExists) {
7
+ const node_path_1 = __importDefault(require("node:path"));
8
+ const effect_1 = require("effect");
9
+ const source_map_js_1 = require("source-map-js");
10
+ const fs_extra_effects_js_1 = require("../logic/effects/fs/fs-extra.effects.js");
11
+ const get_source_code_js_1 = require("./get-source-code.js");
12
+ const getSourcesFromMapFile = (location) => effect_1.Effect.gen(function* () {
13
+ const fileExists = yield* (0, fs_extra_effects_js_1.existsEffect)(`${location.filePath}.map`);
14
+ if (!fileExists) {
15
+ return {
16
+ _tag: 'location',
17
+ ...location,
18
+ filePath: location.filePath.replace(process.cwd(), ''),
19
+ };
20
+ }
21
+ const data = yield* (0, fs_extra_effects_js_1.readJsonEffect)(`${location.filePath}.map`);
22
+ if (data.version === undefined || data.sources === undefined) {
23
+ return;
24
+ }
25
+ const consumer = new source_map_js_1.SourceMapConsumer(data);
26
+ const sources = consumer.originalPositionFor({
27
+ column: location.column,
28
+ line: location.line,
29
+ });
30
+ if (sources.source === null ||
31
+ sources.line === null ||
32
+ sources.column === null) {
33
+ return;
34
+ }
35
+ const absolutePath = node_path_1.default.resolve(location.filePath.substring(0, location.filePath.lastIndexOf('/')), sources.source);
36
+ const source = yield* (0, get_source_code_js_1.getSourceCode)({
37
+ filePath: absolutePath,
38
+ line: sources.line,
39
+ column: sources.column,
40
+ }, true);
20
41
  return {
21
- _tag: 'location',
22
- ...location,
23
- filePath: location.filePath.replace(process.cwd(), '')
42
+ _tag: 'sources',
43
+ runPath: `${location.filePath}:${location.line}:${location.column}`,
44
+ sourcesPath: `${absolutePath}:${sources.line}:${sources.column + 1}`,
45
+ source,
24
46
  };
25
- }
26
- const data = yield* (0, _fsExtraEffects.readJsonEffect)(`${location.filePath}.map`);
27
- if (data.version === undefined || data.sources === undefined) {
28
- return;
29
- }
30
- const consumer = new _sourceMapJs.SourceMapConsumer(data);
31
- const sources = consumer.originalPositionFor({
32
- column: location.column,
33
- line: location.line
34
- });
35
- if (sources.source === null || sources.line === null || sources.column === null) {
36
- return;
37
- }
38
- const absolutePath = _nodePath.default.resolve(location.filePath.substring(0, location.filePath.lastIndexOf('/')), sources.source);
39
- const source = yield* (0, _getSourceCode.getSourceCode)({
40
- filePath: absolutePath,
41
- line: sources.line,
42
- column: sources.column
43
- }, true);
44
- return {
45
- _tag: 'sources',
46
- runPath: `${location.filePath}:${location.line}:${location.column}`,
47
- sourcesPath: `${absolutePath}:${sources.line}:${sources.column + 1}`,
48
- source
49
- };
50
47
  });
51
48
  exports.getSourcesFromMapFile = getSourcesFromMapFile;
52
49
  //# sourceMappingURL=get-sources-from-map-file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-sources-from-map-file.js","names":["_nodePath","_interopRequireDefault","require","_effect","_sourceMapJs","_fsExtraEffects","_getSourceCode","e","__esModule","default","getSourcesFromMapFile","location","Effect","gen","fileExists","existsEffect","filePath","_tag","replace","process","cwd","data","readJsonEffect","version","undefined","sources","consumer","SourceMapConsumer","originalPositionFor","column","line","source","absolutePath","resolve","substring","lastIndexOf","getSourceCode","runPath","sourcesPath","exports"],"sources":["../../../src/source-maps/get-sources-from-map-file.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,SAAA,gBAAAC,sBAAA,cAAAC,OAAA;AAEA,IAAAC,OAAA,gBAAAD,OAAA;AACA,IAAAE,YAAA,gBAAAF,OAAA;AAGA,IAAAG,eAAA,gBAAAH,OAAA;AAMA,IAAAI,cAAA,gBAAAJ,OAAA;AAAsE,SAAAD,uBAAAM,CAAA;EAAA,OAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA;IAAAE,OAAA,EAAAF;EAAA;AAAA;AAa/D,MAAMG,qBAAqB,GAChCC,QAAuB,IAEvBR,OAAA,CAAAS,MAAM,CAACC,G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EJ,OAAO,CAACI;GACjB,EACD,IAAI,CACL;EAED,OAAO;IACLZ,IAAI,EAAE,SAAkB;IACxBoB,OAAO,EAAE,GAAG1B,QAAQ,CAACK,QAAQ,IAAIL,QAAQ,CAACmB,IAAI,IAAInB,QAAQ,CAACkB,MAAM,EAAE;IACnES,WAAW,EAAE,GAAGN,YAAY,IAAIP,OAAO,CAACK,IAAI,IAAIL,OAAO,CAACI,MAAM,GAAG,CAAC,EAAE;IACpEE;GACD;AACH,CAAC,CAAC;AAACQ,OAAA,CAAA7B,qBAAA,GAAAA,qBAAA","ignoreList":[]}
1
+ {"version":3,"file":"get-sources-from-map-file.js","sourceRoot":"","sources":["../../../src/source-maps/get-sources-from-map-file.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAE7B,mCAAgC;AAChC,iDAAqE;AAGrE,iFAGiD;AAGjD,6DAAsE;AAa/D,MAAM,qBAAqB,GAAG,CACnC,QAAuB,EACqD,EAAE,CAC9E,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,IAAA,kCAAY,EAAC,GAAG,QAAQ,CAAC,QAAQ,MAAM,CAAC,CAAC;IACnE,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO;YACL,IAAI,EAAE,UAAmB;YACzB,GAAG,QAAQ;YACX,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC;SACvD,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAA,oCAAc,EAChC,GAAG,QAAQ,CAAC,QAAQ,MAAM,CAC3B,CAAC;IACF,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAC7D,OAAO;IACT,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,iCAAiB,CAAC,IAAI,C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