effect-errors 1.8.32 → 1.8.37
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/README.md +2 -2
- package/cjs/capture-errors.js +4 -4
- package/cjs/capture-errors.js.map +1 -1
- package/cjs/dependencies/fs/index.js +18 -0
- package/cjs/dependencies/fs/index.js.map +1 -0
- package/cjs/dependencies/fs/read-json/index.js.map +1 -0
- package/cjs/dependencies/fs/read-json/json-parsing.error.js.map +1 -0
- package/cjs/dependencies/fs/read-json/parse-json.js.map +1 -0
- package/cjs/{logic → dependencies}/fs/read-json/read-json.js +5 -2
- package/cjs/dependencies/fs/read-json/read-json.js.map +1 -0
- package/cjs/{logic → dependencies}/logger/index.js +1 -0
- package/cjs/dependencies/logger/index.js.map +1 -0
- package/cjs/index.js +1 -2
- package/cjs/index.js.map +1 -1
- package/cjs/logic/errors/capture-errors-from-cause.js.map +1 -1
- package/cjs/logic/errors/extract-error-details.js +10 -10
- package/cjs/logic/errors/extract-error-details.js.map +1 -1
- package/cjs/logic/errors/index.js +18 -0
- package/cjs/logic/errors/index.js.map +1 -0
- package/cjs/logic/errors/parse-error.js +5 -5
- package/cjs/logic/errors/parse-error.js.map +1 -1
- package/cjs/logic/path/index.js +18 -0
- package/cjs/logic/path/index.js.map +1 -0
- package/cjs/logic/path/strip-cwd-path.js.map +1 -0
- package/cjs/logic/spans/index.js +19 -0
- package/cjs/logic/spans/index.js.map +1 -0
- package/cjs/logic/stack/filter-stack.js +2 -2
- package/cjs/logic/stack/filter-stack.js.map +1 -1
- package/cjs/logic/stack/index.js +19 -0
- package/cjs/logic/stack/index.js.map +1 -0
- package/cjs/pretty-print-from-captured-errors.js +6 -6
- package/cjs/pretty-print-from-captured-errors.js.map +1 -1
- package/cjs/pretty-print.js +8 -8
- package/cjs/pretty-print.js.map +1 -1
- package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/index.js +1 -0
- package/cjs/pretty-printing/captured-errors/index.js.map +1 -0
- package/cjs/pretty-printing/captured-errors/maybe-advise-spans-usage.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-node-stacktrace.js +2 -2
- package/cjs/pretty-printing/captured-errors/maybe-print-node-stacktrace.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-spans-timeline.js +7 -7
- package/cjs/pretty-printing/captured-errors/maybe-print-spans-timeline.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/print-effect-stacktrace.js +5 -4
- package/cjs/pretty-printing/captured-errors/print-effect-stacktrace.js.map +1 -0
- package/cjs/pretty-printing/common/constants/interrupted-message.js.map +1 -0
- package/cjs/pretty-printing/common/constants/missing-spans-warning.js.map +1 -0
- package/cjs/pretty-printing/common/format-error-title.js.map +1 -0
- package/cjs/pretty-printing/common/format-span-attributes.js.map +1 -0
- package/cjs/pretty-printing/common/format-span-duration.js.map +1 -0
- package/cjs/pretty-printing/common/format-title.js.map +1 -0
- package/cjs/pretty-printing/common/index.js.map +1 -0
- package/cjs/pretty-printing/common/maybe-warn-about-plain-strings.js.map +1 -0
- package/cjs/pretty-printing/common/spans-stack-trailing-char.js.map +1 -0
- package/cjs/pretty-printing/failures/index.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/failures/maybe-print-node-stacktrace.js +2 -2
- package/cjs/pretty-printing/failures/maybe-print-node-stacktrace.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/failures/print-effect-stacktrace.js +2 -2
- package/cjs/pretty-printing/failures/print-effect-stacktrace.js.map +1 -0
- package/cjs/pretty-printing/failures/spans-timeline/extract-spans.js.map +1 -0
- package/cjs/pretty-printing/failures/spans-timeline/format/get-span-attributes.js +18 -0
- package/cjs/pretty-printing/failures/spans-timeline/format/get-span-attributes.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/get-span-duration.js +2 -2
- package/cjs/pretty-printing/failures/spans-timeline/format/get-span-duration.js.map +1 -0
- package/cjs/pretty-printing/failures/spans-timeline/format/index.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format-spans-at-timeline.js +7 -7
- package/cjs/pretty-printing/failures/spans-timeline/format-spans-at-timeline.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/maybe-print-spans-timeline.js +2 -2
- package/cjs/pretty-printing/failures/spans-timeline/maybe-print-spans-timeline.js.map +1 -0
- package/cjs/{logic/pretty-printing → pretty-printing}/format-captured-error.js +4 -5
- package/cjs/pretty-printing/format-captured-error.js.map +1 -0
- package/cjs/pretty-printing/format-failure.js +24 -0
- package/cjs/pretty-printing/format-failure.js.map +1 -0
- package/cjs/pretty-printing/index.js.map +1 -0
- package/cjs/runners/run-promise.js +4 -4
- package/cjs/runners/run-promise.js.map +1 -1
- package/cjs/runners/run-sync.js +4 -4
- package/cjs/runners/run-sync.js.map +1 -1
- package/cjs/source-maps/get-error-location-from-file-path.js +2 -2
- package/cjs/source-maps/get-error-location-from-file-path.js.map +1 -1
- package/cjs/source-maps/get-error-related-sources.js.map +1 -1
- package/cjs/source-maps/get-sources-from-map-file.js +4 -3
- package/cjs/source-maps/get-sources-from-map-file.js.map +1 -1
- package/cjs/source-maps/get-sources-from-span.js +2 -2
- package/cjs/source-maps/get-sources-from-span.js.map +1 -1
- package/cjs/source-maps/get-sources-from-stack.js +2 -2
- package/cjs/source-maps/get-sources-from-stack.js.map +1 -1
- package/cjs/source-maps/index.js +21 -0
- package/cjs/source-maps/index.js.map +1 -0
- package/cjs/source-maps/maybe-map-sourcemaps.js +2 -2
- package/cjs/source-maps/maybe-map-sourcemaps.js.map +1 -1
- package/cjs/source-maps/transform-raw-error.js +4 -4
- package/cjs/source-maps/transform-raw-error.js.map +1 -1
- package/cjs/types/error-span.type.js +3 -0
- package/cjs/types/error-span.type.js.map +1 -0
- package/cjs/types/index.js +20 -0
- package/cjs/types/index.js.map +1 -0
- package/dts/capture-errors.d.ts +3 -10
- package/dts/dependencies/fs/index.d.ts +1 -0
- package/dts/{logic → dependencies}/fs/read-json/read-json.d.ts +1 -1
- package/dts/{logic → dependencies}/logger/index.d.ts +1 -0
- package/dts/index.d.ts +3 -5
- package/dts/logic/errors/capture-errors-from-cause.d.ts +1 -1
- package/dts/logic/errors/index.d.ts +1 -0
- package/dts/logic/errors/parse-error.d.ts +1 -1
- package/dts/logic/path/index.d.ts +1 -0
- package/dts/logic/spans/index.d.ts +2 -0
- package/dts/logic/stack/index.d.ts +2 -0
- package/dts/pretty-print-from-captured-errors.d.ts +1 -1
- package/dts/pretty-print.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/captured-errors/index.d.ts +1 -0
- package/dts/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-advise-spans-usage.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-node-stacktrace.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-spans-timeline.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/captured-errors/print-effect-stacktrace.d.ts +2 -1
- package/dts/{logic/pretty-printing → pretty-printing}/failures/maybe-print-node-stacktrace.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/failures/print-effect-stacktrace.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format-spans-at-timeline.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/maybe-print-spans-timeline.d.ts +1 -1
- package/dts/{logic/pretty-printing → pretty-printing}/format-captured-error.d.ts +2 -2
- package/dts/{logic/pretty-printing → pretty-printing}/format-failure.d.ts +1 -2
- package/dts/runners/run-promise.d.ts +1 -1
- package/dts/runners/run-sync.d.ts +1 -1
- package/dts/source-maps/get-error-related-sources.d.ts +1 -1
- package/dts/source-maps/get-sources-from-map-file.d.ts +1 -1
- package/dts/source-maps/get-sources-from-span.d.ts +1 -1
- package/dts/source-maps/get-sources-from-stack.d.ts +1 -1
- package/dts/source-maps/index.d.ts +4 -0
- package/dts/source-maps/maybe-map-sourcemaps.d.ts +1 -1
- package/dts/source-maps/transform-raw-error.d.ts +1 -1
- package/dts/types/error-span.type.d.ts +7 -0
- package/dts/types/index.d.ts +3 -0
- package/esm/capture-errors.js +2 -2
- package/esm/capture-errors.js.map +1 -1
- package/esm/dependencies/fs/index.js +2 -0
- package/esm/dependencies/fs/index.js.map +1 -0
- package/esm/dependencies/fs/read-json/index.js.map +1 -0
- package/esm/dependencies/fs/read-json/json-parsing.error.js.map +1 -0
- package/esm/dependencies/fs/read-json/parse-json.js.map +1 -0
- package/esm/{logic → dependencies}/fs/read-json/read-json.js +5 -2
- package/esm/dependencies/fs/read-json/read-json.js.map +1 -0
- package/esm/{logic → dependencies}/logger/index.js +1 -0
- package/esm/dependencies/logger/index.js.map +1 -0
- package/esm/index.js +1 -2
- package/esm/index.js.map +1 -1
- package/esm/logic/errors/capture-errors-from-cause.js.map +1 -1
- package/esm/logic/errors/extract-error-details.js +10 -10
- package/esm/logic/errors/extract-error-details.js.map +1 -1
- package/esm/logic/errors/index.js +2 -0
- package/esm/logic/errors/index.js.map +1 -0
- package/esm/logic/errors/parse-error.js +4 -4
- package/esm/logic/errors/parse-error.js.map +1 -1
- package/esm/logic/path/index.js +2 -0
- package/esm/logic/path/index.js.map +1 -0
- package/esm/logic/path/strip-cwd-path.js.map +1 -0
- package/esm/logic/spans/index.js +3 -0
- package/esm/logic/spans/index.js.map +1 -0
- package/esm/logic/stack/filter-stack.js +1 -1
- package/esm/logic/stack/filter-stack.js.map +1 -1
- package/esm/logic/stack/index.js +3 -0
- package/esm/logic/stack/index.js.map +1 -0
- package/esm/pretty-print-from-captured-errors.js +2 -2
- package/esm/pretty-print-from-captured-errors.js.map +1 -1
- package/esm/pretty-print.js +3 -3
- package/esm/pretty-print.js.map +1 -1
- package/esm/{logic/pretty-printing → pretty-printing}/captured-errors/index.js +1 -0
- package/esm/pretty-printing/captured-errors/index.js.map +1 -0
- package/esm/pretty-printing/captured-errors/maybe-advise-spans-usage.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-node-stacktrace.js +1 -1
- package/esm/pretty-printing/captured-errors/maybe-print-node-stacktrace.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-spans-timeline.js +2 -2
- package/esm/pretty-printing/captured-errors/maybe-print-spans-timeline.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/captured-errors/print-effect-stacktrace.js +4 -3
- package/esm/pretty-printing/captured-errors/print-effect-stacktrace.js.map +1 -0
- package/esm/pretty-printing/common/constants/interrupted-message.js.map +1 -0
- package/esm/pretty-printing/common/constants/missing-spans-warning.js.map +1 -0
- package/esm/pretty-printing/common/format-error-title.js.map +1 -0
- package/esm/pretty-printing/common/format-span-attributes.js.map +1 -0
- package/esm/pretty-printing/common/format-span-duration.js.map +1 -0
- package/esm/pretty-printing/common/format-title.js.map +1 -0
- package/esm/pretty-printing/common/index.js.map +1 -0
- package/esm/pretty-printing/common/maybe-warn-about-plain-strings.js.map +1 -0
- package/esm/pretty-printing/common/spans-stack-trailing-char.js.map +1 -0
- package/esm/pretty-printing/failures/index.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/failures/maybe-print-node-stacktrace.js +1 -1
- package/esm/pretty-printing/failures/maybe-print-node-stacktrace.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/failures/print-effect-stacktrace.js +1 -1
- package/esm/pretty-printing/failures/print-effect-stacktrace.js.map +1 -0
- package/esm/pretty-printing/failures/spans-timeline/extract-spans.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/get-span-attributes.js +2 -2
- package/esm/pretty-printing/failures/spans-timeline/format/get-span-attributes.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/get-span-duration.js +1 -1
- package/esm/pretty-printing/failures/spans-timeline/format/get-span-duration.js.map +1 -0
- package/esm/pretty-printing/failures/spans-timeline/format/index.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format-spans-at-timeline.js +2 -2
- package/esm/pretty-printing/failures/spans-timeline/format-spans-at-timeline.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/maybe-print-spans-timeline.js +1 -1
- package/esm/pretty-printing/failures/spans-timeline/maybe-print-spans-timeline.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/format-captured-error.js +1 -2
- package/esm/pretty-printing/format-captured-error.js.map +1 -0
- package/esm/{logic/pretty-printing → pretty-printing}/format-failure.js +1 -1
- package/esm/pretty-printing/format-failure.js.map +1 -0
- package/esm/pretty-printing/index.js.map +1 -0
- package/esm/runners/run-promise.js +2 -2
- package/esm/runners/run-promise.js.map +1 -1
- package/esm/runners/run-sync.js +2 -2
- package/esm/runners/run-sync.js.map +1 -1
- package/esm/source-maps/get-error-location-from-file-path.js +1 -1
- package/esm/source-maps/get-error-location-from-file-path.js.map +1 -1
- package/esm/source-maps/get-error-related-sources.js.map +1 -1
- package/esm/source-maps/get-sources-from-map-file.js +3 -2
- package/esm/source-maps/get-sources-from-map-file.js.map +1 -1
- package/esm/source-maps/get-sources-from-span.js +1 -1
- package/esm/source-maps/get-sources-from-span.js.map +1 -1
- package/esm/source-maps/get-sources-from-stack.js +1 -1
- package/esm/source-maps/get-sources-from-stack.js.map +1 -1
- package/esm/source-maps/index.js +5 -0
- package/esm/source-maps/index.js.map +1 -0
- package/esm/source-maps/maybe-map-sourcemaps.js +1 -1
- package/esm/source-maps/maybe-map-sourcemaps.js.map +1 -1
- package/esm/source-maps/transform-raw-error.js +2 -2
- package/esm/source-maps/transform-raw-error.js.map +1 -1
- package/esm/types/error-span.type.js +2 -0
- package/esm/types/error-span.type.js.map +1 -0
- package/esm/types/index.js +4 -0
- package/esm/types/index.js.map +1 -0
- package/package.json +31 -28
- package/cjs/logic/fs/read-json/index.js.map +0 -1
- package/cjs/logic/fs/read-json/json-parsing.error.js.map +0 -1
- package/cjs/logic/fs/read-json/parse-json.js.map +0 -1
- package/cjs/logic/fs/read-json/read-json.js.map +0 -1
- package/cjs/logic/logger/index.js.map +0 -1
- package/cjs/logic/pretty-printing/captured-errors/index.js.map +0 -1
- package/cjs/logic/pretty-printing/captured-errors/maybe-advise-spans-usage.js.map +0 -1
- package/cjs/logic/pretty-printing/captured-errors/maybe-print-node-stacktrace.js.map +0 -1
- package/cjs/logic/pretty-printing/captured-errors/maybe-print-spans-timeline.js.map +0 -1
- package/cjs/logic/pretty-printing/captured-errors/print-effect-stacktrace.js.map +0 -1
- package/cjs/logic/pretty-printing/common/constants/interrupted-message.js.map +0 -1
- package/cjs/logic/pretty-printing/common/constants/missing-spans-warning.js.map +0 -1
- package/cjs/logic/pretty-printing/common/format-error-title.js.map +0 -1
- package/cjs/logic/pretty-printing/common/format-span-attributes.js.map +0 -1
- package/cjs/logic/pretty-printing/common/format-span-duration.js.map +0 -1
- package/cjs/logic/pretty-printing/common/format-title.js.map +0 -1
- package/cjs/logic/pretty-printing/common/index.js.map +0 -1
- package/cjs/logic/pretty-printing/common/maybe-warn-about-plain-strings.js.map +0 -1
- package/cjs/logic/pretty-printing/common/spans-stack-trailing-char.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/index.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/maybe-print-node-stacktrace.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/print-effect-stacktrace.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/spans-timeline/extract-spans.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/spans-timeline/format/get-span-attributes.js +0 -18
- package/cjs/logic/pretty-printing/failures/spans-timeline/format/get-span-attributes.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/spans-timeline/format/get-span-duration.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/spans-timeline/format/index.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/spans-timeline/format-spans-at-timeline.js.map +0 -1
- package/cjs/logic/pretty-printing/failures/spans-timeline/maybe-print-spans-timeline.js.map +0 -1
- package/cjs/logic/pretty-printing/format-captured-error.js.map +0 -1
- package/cjs/logic/pretty-printing/format-failure.js +0 -24
- package/cjs/logic/pretty-printing/format-failure.js.map +0 -1
- package/cjs/logic/pretty-printing/index.js.map +0 -1
- package/cjs/logic/strip-cwd-path.js.map +0 -1
- package/cjs/logic/util/big-int-replacer.js +0 -14
- package/cjs/logic/util/big-int-replacer.js.map +0 -1
- package/dts/logic/util/big-int-replacer.d.ts +0 -1
- package/esm/logic/fs/read-json/index.js.map +0 -1
- package/esm/logic/fs/read-json/json-parsing.error.js.map +0 -1
- package/esm/logic/fs/read-json/parse-json.js.map +0 -1
- package/esm/logic/fs/read-json/read-json.js.map +0 -1
- package/esm/logic/logger/index.js.map +0 -1
- package/esm/logic/pretty-printing/captured-errors/index.js.map +0 -1
- package/esm/logic/pretty-printing/captured-errors/maybe-advise-spans-usage.js.map +0 -1
- package/esm/logic/pretty-printing/captured-errors/maybe-print-node-stacktrace.js.map +0 -1
- package/esm/logic/pretty-printing/captured-errors/maybe-print-spans-timeline.js.map +0 -1
- package/esm/logic/pretty-printing/captured-errors/print-effect-stacktrace.js.map +0 -1
- package/esm/logic/pretty-printing/common/constants/interrupted-message.js.map +0 -1
- package/esm/logic/pretty-printing/common/constants/missing-spans-warning.js.map +0 -1
- package/esm/logic/pretty-printing/common/format-error-title.js.map +0 -1
- package/esm/logic/pretty-printing/common/format-span-attributes.js.map +0 -1
- package/esm/logic/pretty-printing/common/format-span-duration.js.map +0 -1
- package/esm/logic/pretty-printing/common/format-title.js.map +0 -1
- package/esm/logic/pretty-printing/common/index.js.map +0 -1
- package/esm/logic/pretty-printing/common/maybe-warn-about-plain-strings.js.map +0 -1
- package/esm/logic/pretty-printing/common/spans-stack-trailing-char.js.map +0 -1
- package/esm/logic/pretty-printing/failures/index.js.map +0 -1
- package/esm/logic/pretty-printing/failures/maybe-print-node-stacktrace.js.map +0 -1
- package/esm/logic/pretty-printing/failures/print-effect-stacktrace.js.map +0 -1
- package/esm/logic/pretty-printing/failures/spans-timeline/extract-spans.js.map +0 -1
- package/esm/logic/pretty-printing/failures/spans-timeline/format/get-span-attributes.js.map +0 -1
- package/esm/logic/pretty-printing/failures/spans-timeline/format/get-span-duration.js.map +0 -1
- package/esm/logic/pretty-printing/failures/spans-timeline/format/index.js.map +0 -1
- package/esm/logic/pretty-printing/failures/spans-timeline/format-spans-at-timeline.js.map +0 -1
- package/esm/logic/pretty-printing/failures/spans-timeline/maybe-print-spans-timeline.js.map +0 -1
- package/esm/logic/pretty-printing/format-captured-error.js.map +0 -1
- package/esm/logic/pretty-printing/format-failure.js.map +0 -1
- package/esm/logic/pretty-printing/index.js.map +0 -1
- package/esm/logic/strip-cwd-path.js.map +0 -1
- package/esm/logic/util/big-int-replacer.js +0 -10
- package/esm/logic/util/big-int-replacer.js.map +0 -1
- /package/cjs/{logic → dependencies}/fs/read-json/index.js +0 -0
- /package/cjs/{logic → dependencies}/fs/read-json/json-parsing.error.js +0 -0
- /package/cjs/{logic → dependencies}/fs/read-json/parse-json.js +0 -0
- /package/cjs/logic/{strip-cwd-path.js → path/strip-cwd-path.js} +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-advise-spans-usage.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/constants/interrupted-message.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/constants/missing-spans-warning.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/format-error-title.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/format-span-attributes.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/format-span-duration.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/format-title.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/index.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/maybe-warn-about-plain-strings.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/common/spans-stack-trailing-char.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/failures/index.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/extract-spans.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/index.js +0 -0
- /package/cjs/{logic/pretty-printing → pretty-printing}/index.js +0 -0
- /package/dts/{logic → dependencies}/fs/read-json/index.d.ts +0 -0
- /package/dts/{logic → dependencies}/fs/read-json/json-parsing.error.d.ts +0 -0
- /package/dts/{logic → dependencies}/fs/read-json/parse-json.d.ts +0 -0
- /package/dts/logic/{strip-cwd-path.d.ts → path/strip-cwd-path.d.ts} +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/constants/interrupted-message.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/constants/missing-spans-warning.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/format-error-title.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/format-span-attributes.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/format-span-duration.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/format-title.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/index.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/maybe-warn-about-plain-strings.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/common/spans-stack-trailing-char.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/failures/index.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/extract-spans.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/get-span-attributes.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/get-span-duration.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/index.d.ts +0 -0
- /package/dts/{logic/pretty-printing → pretty-printing}/index.d.ts +0 -0
- /package/esm/{logic → dependencies}/fs/read-json/index.js +0 -0
- /package/esm/{logic → dependencies}/fs/read-json/json-parsing.error.js +0 -0
- /package/esm/{logic → dependencies}/fs/read-json/parse-json.js +0 -0
- /package/esm/logic/{strip-cwd-path.js → path/strip-cwd-path.js} +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-advise-spans-usage.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/constants/interrupted-message.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/constants/missing-spans-warning.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/format-error-title.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/format-span-attributes.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/format-span-duration.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/format-title.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/index.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/maybe-warn-about-plain-strings.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/common/spans-stack-trailing-char.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/failures/index.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/extract-spans.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/failures/spans-timeline/format/index.js +0 -0
- /package/esm/{logic/pretty-printing → pretty-printing}/index.js +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Some sort of POC to improve the way [Effect](https://effect.website/) reports er
|
|
|
21
21
|
|
|
22
22
|
<!-- readme-package-icons start -->
|
|
23
23
|
|
|
24
|
-
<p align="left"><a href="https://docs.github.com/en/actions" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/GithubActions-Dark.svg" /></a> <a href="https://www.typescriptlang.org/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/TypeScript.svg" /></a> <a href="https://nodejs.org/en/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/NodeJS-Dark.svg" /></a> <a href="https://
|
|
24
|
+
<p align="left"><a href="https://docs.github.com/en/actions" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/GithubActions-Dark.svg" /></a> <a href="https://www.typescriptlang.org/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/TypeScript.svg" /></a> <a href="https://nodejs.org/en/docs/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/NodeJS-Dark.svg" /></a> <a href="https://pnpm.io/motivation" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Pnpm-Dark.svg" /></a> <a href="https://biomejs.dev/guides/getting-started/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Biome-Dark.svg" /></a> <a href="https://esbuild.github.io/getting-started/#install-esbuild" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Esbuild-Dark.svg" /></a> <a href="https://vitest.dev/guide/" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Vitest-Dark.svg" /></a> <a href="https://www.effect.website/docs/quickstart" target="_blank"><img height="50" src="https://raw.githubusercontent.com/jpb06/jpb06/master/icons/Effect-Dark.svg" /></a></p>
|
|
25
25
|
|
|
26
26
|
<!-- readme-package-icons end -->
|
|
27
27
|
|
|
@@ -494,7 +494,7 @@ If no map file is found, a `location` array will be returned instead of `sources
|
|
|
494
494
|
I wrote some examples for fun and giggles. You can run them using:
|
|
495
495
|
|
|
496
496
|
```bash
|
|
497
|
-
|
|
497
|
+
pnpm run-examples
|
|
498
498
|
```
|
|
499
499
|
|
|
500
500
|
### 🔶 Custom display for errors - `captureErrors`
|
package/cjs/capture-errors.js
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.captureErrors = void 0;
|
|
4
4
|
const effect_1 = require("effect");
|
|
5
5
|
const Cause_1 = require("effect/Cause");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const errors_1 = require("./logic/errors/index.js");
|
|
7
|
+
const _sourcemaps_1 = require("./source-maps/index.js");
|
|
8
8
|
const captureErrors = (cause, options = {
|
|
9
9
|
reverseSpans: true,
|
|
10
10
|
stripCwd: true,
|
|
@@ -15,8 +15,8 @@ const captureErrors = (cause, options = {
|
|
|
15
15
|
errors: [],
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
const rawErrors = (0,
|
|
19
|
-
const errors = yield* effect_1.Effect.forEach(rawErrors, (0,
|
|
18
|
+
const rawErrors = (0, errors_1.captureErrorsFrom)(cause);
|
|
19
|
+
const errors = yield* effect_1.Effect.forEach(rawErrors, (0, _sourcemaps_1.transformRawError)(options));
|
|
20
20
|
return {
|
|
21
21
|
interrupted: false,
|
|
22
22
|
errors,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-errors.js","sourceRoot":"","sources":["../../src/capture-errors.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAChC,wCAA6D;
|
|
1
|
+
{"version":3,"file":"capture-errors.js","sourceRoot":"","sources":["../../src/capture-errors.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAChC,wCAA6D;AAG7D,0CAAkD;AAClD,6CAIqB;AAuBd,MAAM,aAAa,GAAG,CAC3B,KAAe,EACf,UAAgC;IAC9B,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;CACf,EAKD,EAAE,CACF,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,IAAI,IAAA,yBAAiB,EAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO;YACL,WAAW,EAAE,IAAI;YACjB,MAAM,EAAE,EAAE;SACX,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,GAAG,IAAA,0BAAiB,EAAI,KAAK,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,eAAM,CAAC,OAAO,CAAC,SAAS,EAAE,IAAA,+BAAiB,EAAC,OAAO,CAAC,CAAC,CAAC;IAE5E,OAAO;QACL,WAAW,EAAE,KAAK;QAClB,MAAM;KACP,CAAC;AACJ,CAAC,CAAC,CAAC;AA1BQ,QAAA,aAAa,iBA0BrB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./read-json/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dependencies/fs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/dependencies/fs/read-json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-parsing.error.js","sourceRoot":"","sources":["../../../../../src/dependencies/fs/read-json/json-parsing.error.ts"],"names":[],"mappings":";;;AAAA,sCAA0C;AAE1C,MAAa,gBAAiB,SAAQ,IAAA,kBAAW,EAAC,oBAAoB,CAGpE;CAAG;AAHL,4CAGK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-json.js","sourceRoot":"","sources":["../../../../../src/dependencies/fs/read-json/parse-json.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,mCAAsC;AAEtC,mEAA2D;AAEpD,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CACxC,IAAA,aAAI,EACF,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAA,oBAAK,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAC1C,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,eAAM,CAAC,IAAI,CACT,IAAI,wCAAgB,CAAC;IACnB,KAAK,EAAE,CAAC;CACT,CAAC,CACH,CACF,EACD,eAAM,CAAC,QAAQ,CAAC,YAAY,EAAE;IAC5B,UAAU,EAAE;QACV,IAAI;KACL;CACF,CAAC,CACH,CAAC;AAfS,QAAA,SAAS,aAelB"}
|
|
@@ -5,8 +5,11 @@ const FileSystem_1 = require("@effect/platform/FileSystem");
|
|
|
5
5
|
const effect_1 = require("effect");
|
|
6
6
|
const parse_json_js_1 = require("./parse-json.js");
|
|
7
7
|
const readJsonEffect = (filePath) => (0, effect_1.pipe)(effect_1.Effect.gen(function* () {
|
|
8
|
-
const
|
|
9
|
-
const data = yield*
|
|
8
|
+
const { readFileString } = yield* FileSystem_1.FileSystem;
|
|
9
|
+
const data = yield* readFileString(filePath, 'utf8');
|
|
10
|
+
if (data.length === 0) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
10
13
|
const json = yield* (0, parse_json_js_1.parseJson)(data);
|
|
11
14
|
return json;
|
|
12
15
|
}), effect_1.Effect.withSpan('read-json', { attributes: { filePath } }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-json.js","sourceRoot":"","sources":["../../../../../src/dependencies/fs/read-json/read-json.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,mCAAsC;AAEtC,mDAA4C;AAErC,MAAM,cAAc,GAAG,CAAQ,QAAgB,EAAE,EAAE,CACxD,IAAA,aAAI,EACF,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC,CAAC,uBAAU,CAAC;IAC7C,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAErD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAA,yBAAS,EAAC,IAAI,CAAC,CAAC;IAEpC,OAAO,IAAa,CAAC;AACvB,CAAC,CAAC,EACF,eAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAC3D,CAAC;AAfS,QAAA,cAAc,kBAevB"}
|
|
@@ -8,5 +8,6 @@ exports.Logger = Logger;
|
|
|
8
8
|
exports.LoggerConsoleLive = effect_1.Layer.succeed(Logger, {
|
|
9
9
|
info: (message, ...optionalParams) => (0, effect_1.pipe)(effect_1.Effect.succeed(console.info(message, ...optionalParams)), effect_1.Effect.withSpan('logger-console/info')),
|
|
10
10
|
error: (message, ...optionalParams) => (0, effect_1.pipe)(effect_1.Effect.succeed(console.error(message, ...optionalParams)), effect_1.Effect.withSpan('logger-console/error')),
|
|
11
|
+
warn: (message, ...optionalParams) => (0, effect_1.pipe)(effect_1.Effect.succeed(console.warn(message, ...optionalParams)), effect_1.Effect.withSpan('logger-console/warn')),
|
|
11
12
|
});
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dependencies/logger/index.ts"],"names":[],"mappings":";;;AAAA,mCAAsD;AAEtD,MAAa,MAAO,SAAQ,gBAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAgB9C;CAAG;AAhBN,wBAgBM;AAGO,QAAA,iBAAiB,GAAG,cAAK,CAAC,OAAO,CAAC,MAAM,EAAE;IACrD,IAAI,EAAE,CAAC,OAAiB,EAAE,GAAG,cAAyB,EAAE,EAAE,CACxD,IAAA,aAAI,EACF,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAC,EACxD,eAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CACvC;IACH,KAAK,EAAE,CAAC,OAAiB,EAAE,GAAG,cAAyB,EAAE,EAAE,CACzD,IAAA,aAAI,EACF,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAC,EACzD,eAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CACxC;IACH,IAAI,EAAE,CAAC,OAAiB,EAAE,GAAG,cAAyB,EAAE,EAAE,CACxD,IAAA,aAAI,EACF,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAC,EACxD,eAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CACvC;CACJ,CAAC,CAAC"}
|
package/cjs/index.js
CHANGED
|
@@ -14,11 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./capture-errors.js"), exports);
|
|
17
18
|
__exportStar(require("./pretty-print.js"), exports);
|
|
18
19
|
__exportStar(require("./pretty-print-from-captured-errors.js"), exports);
|
|
19
20
|
__exportStar(require("./runners/run-promise.js"), exports);
|
|
20
21
|
__exportStar(require("./runners/run-sync.js"), exports);
|
|
21
22
|
__exportStar(require("./types/pretty-print-options.type.js"), exports);
|
|
22
|
-
__exportStar(require("./capture-errors.js"), exports);
|
|
23
|
-
__exportStar(require("./logic/util/big-int-replacer.js"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yEAAuD;AACvD,2DAAyC;AACzC,wDAAsC;AACtC,uEAAqD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,yEAAuD;AACvD,2DAAyC;AACzC,wDAAsC;AACtC,uEAAqD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-errors-from-cause.js","sourceRoot":"","sources":["../../../../src/logic/errors/capture-errors-from-cause.ts"],"names":[],"mappings":";;;AAAA,wCAA6D;
|
|
1
|
+
{"version":3,"file":"capture-errors-from-cause.js","sourceRoot":"","sources":["../../../../src/logic/errors/capture-errors-from-cause.ts"],"names":[],"mappings":";;;AAAA,wCAA6D;AAI7D,qDAA8C;AAEvC,MAAM,iBAAiB,GAAG,CAAI,KAAe,EAA0B,EAAE,CAC9E,IAAA,yBAAiB,EAAC,KAAK,EAAE,SAAS,EAAE;IAClC,SAAS,EAAE,GAA2B,EAAE,CAAC,EAAE;IAC3C,OAAO,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC,IAAA,2BAAU,EAAC,YAAY,CAAC,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,IAAA,2BAAU,EAAC,KAAK,CAAC,CAAC;IAC3C,aAAa,EAAE,GAAG,EAAE,CAAC,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IACvC,cAAc,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;CAC1C,CAAC,CAAC;AARQ,QAAA,iBAAiB,qBAQzB"}
|
|
@@ -10,37 +10,37 @@ const extractErrorDetails = (error) => {
|
|
|
10
10
|
message: error,
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
if (error instanceof Error &&
|
|
13
|
+
const isTaggedErrorWithCause = error instanceof Error &&
|
|
15
14
|
(0, Predicate_1.hasProperty)(error, 'cause') &&
|
|
16
|
-
(0, Predicate_1.hasProperty)(error, '_tag')
|
|
15
|
+
(0, Predicate_1.hasProperty)(error, '_tag');
|
|
16
|
+
if (isTaggedErrorWithCause) {
|
|
17
17
|
return {
|
|
18
18
|
isPlainString: false,
|
|
19
19
|
type: error._tag,
|
|
20
20
|
message: error.cause,
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
if (
|
|
23
|
+
const isTaggedErrorWithErrorCtor = error instanceof Error && (0, Predicate_1.hasProperty)(error, 'error');
|
|
24
|
+
if (isTaggedErrorWithErrorCtor) {
|
|
25
25
|
return {
|
|
26
26
|
isPlainString: false,
|
|
27
27
|
type: error.name,
|
|
28
28
|
message: error.error,
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
if (
|
|
31
|
+
const isPlainObjectsWithTagAttribute = (0, Predicate_1.hasProperty)(error, '_tag') && (0, Predicate_1.hasProperty)(error, 'message');
|
|
32
|
+
if (isPlainObjectsWithTagAttribute) {
|
|
33
33
|
return {
|
|
34
34
|
isPlainString: false,
|
|
35
35
|
type: error._tag,
|
|
36
36
|
message: error.message,
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
if ((0, Predicate_1.hasProperty)(error, 'toString') &&
|
|
39
|
+
const isPlainObjectsWithToStringImpl = (0, Predicate_1.hasProperty)(error, 'toString') &&
|
|
41
40
|
(0, Function_1.isFunction)(error.toString) &&
|
|
42
41
|
error.toString !== Object.prototype.toString &&
|
|
43
|
-
error.toString !== Array.prototype.toString
|
|
42
|
+
error.toString !== Array.prototype.toString;
|
|
43
|
+
if (isPlainObjectsWithToStringImpl) {
|
|
44
44
|
const message = error.toString();
|
|
45
45
|
const maybeWithUnderlyingType = message.split(': ');
|
|
46
46
|
if (maybeWithUnderlyingType.length > 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-error-details.js","sourceRoot":"","sources":["../../../../src/logic/errors/extract-error-details.ts"],"names":[],"mappings":";;;AAAA,8CAA6C;AAC7C,gDAA+C;AAQxC,MAAM,mBAAmB,GAAG,CAAC,KAAc,EAAgB,EAAE;IAClE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"extract-error-details.js","sourceRoot":"","sources":["../../../../src/logic/errors/extract-error-details.ts"],"names":[],"mappings":";;;AAAA,8CAA6C;AAC7C,gDAA+C;AAQxC,MAAM,mBAAmB,GAAG,CAAC,KAAc,EAAgB,EAAE;IAClE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,MAAM,sBAAsB,GAC1B,KAAK,YAAY,KAAK;QACtB,IAAA,uBAAW,EAAC,KAAK,EAAE,OAAO,CAAC;QAC3B,IAAA,uBAAW,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,sBAAsB,EAAE,CAAC;QAC3B,OAAO;YACL,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,OAAO,EAAE,KAAK,CAAC,KAAK;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,0BAA0B,GAC9B,KAAK,YAAY,KAAK,IAAI,IAAA,uBAAW,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxD,IAAI,0BAA0B,EAAE,CAAC;QAC/B,OAAO;YACL,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,OAAO,EAAE,KAAK,CAAC,KAAK;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,8BAA8B,GAClC,IAAA,uBAAW,EAAC,KAAK,EAAE,MAAM,CAAC,IAAI,IAAA,uBAAW,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC9D,IAAI,8BAA8B,EAAE,CAAC;QACnC,OAAO;YACL,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,8BAA8B,GAClC,IAAA,uBAAW,EAAC,KAAK,EAAE,UAAU,CAAC;QAC9B,IAAA,qBAAU,EAAC,KAAK,CAAC,QAAQ,CAAC;QAC1B,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,SAAS,CAAC,QAAQ;QAC5C,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;IAC9C,IAAI,8BAA8B,EAAE,CAAC;QACnC,MAAM,OAAO,GAAI,KAAoC,CAAC,QAAQ,EAAE,CAAC;QACjE,MAAM,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpD,IAAI,uBAAuB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvC,MAAM,CAAC,IAAI,EAAE,GAAG,OAAO,CAAC,GAAG,uBAAuB,CAAC;YAEnD,OAAO;gBACL,aAAa,EAAE,KAAK;gBACpB,IAAI;gBACJ,OAAO;aACR,CAAC;QACJ,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IAC3C,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,UAAU,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AAC9E,CAAC,CAAC;AA/DW,QAAA,mBAAmB,uBA+D9B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./capture-errors-from-cause.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C"}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseError = void 0;
|
|
4
4
|
const Predicate_1 = require("effect/Predicate");
|
|
5
|
-
const
|
|
5
|
+
const _type_1 = require("./../../types/index.js");
|
|
6
6
|
const extract_error_details_js_1 = require("./extract-error-details.js");
|
|
7
7
|
const spanSymbol = Symbol.for('effect/SpanAnnotation');
|
|
8
8
|
const parseError = (error) => {
|
|
9
|
-
const
|
|
9
|
+
const maybeSpan = (0, Predicate_1.hasProperty)(error, spanSymbol)
|
|
10
10
|
? error[spanSymbol]
|
|
11
11
|
: undefined;
|
|
12
12
|
const { message, type, isPlainString } = (0, extract_error_details_js_1.extractErrorDetails)(error);
|
|
13
13
|
if (error instanceof Error) {
|
|
14
|
-
return new
|
|
14
|
+
return new _type_1.PrettyError(message, error.stack
|
|
15
15
|
?.split('\n')
|
|
16
16
|
.filter((el) => /at (.*)/.exec(el))
|
|
17
|
-
.join('\r\n'),
|
|
17
|
+
.join('\r\n'), maybeSpan, false, type);
|
|
18
18
|
}
|
|
19
|
-
return new
|
|
19
|
+
return new _type_1.PrettyError(message, undefined, maybeSpan, isPlainString, type);
|
|
20
20
|
};
|
|
21
21
|
exports.parseError = parseError;
|
|
22
22
|
//# sourceMappingURL=parse-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-error.js","sourceRoot":"","sources":["../../../../src/logic/errors/parse-error.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAG/C,
|
|
1
|
+
{"version":3,"file":"parse-error.js","sourceRoot":"","sources":["../../../../src/logic/errors/parse-error.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAG/C,iCAAoC;AAEpC,yEAAiE;AAEjE,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAEhD,MAAM,UAAU,GAAG,CAAC,KAAc,EAAe,EAAE;IACxD,MAAM,SAAS,GAAG,IAAA,uBAAW,EAAC,KAAK,EAAE,UAAU,CAAC;QAC9C,CAAC,CAAE,KAAK,CAAC,UAAU,CAAU;QAC7B,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,IAAA,8CAAmB,EAAC,KAAK,CAAC,CAAC;IAEpE,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,IAAI,mBAAW,CACpB,OAAO,EACP,KAAK,CAAC,KAAK;YACT,EAAE,KAAK,CAAC,IAAI,CAAC;aACZ,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAClC,IAAI,CAAC,MAAM,CAAC,EACf,SAAS,EACT,KAAK,EACL,IAAI,CACL,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,mBAAW,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC;AApBW,QAAA,UAAU,cAoBrB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./strip-cwd-path.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/path/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strip-cwd-path.js","sourceRoot":"","sources":["../../../../src/logic/path/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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./maybe-add-error-to-spans-stack.js"), exports);
|
|
18
|
+
__exportStar(require("./split-spans-attributes-by-type.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/spans/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,sEAAoD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.filterStack = void 0;
|
|
4
4
|
const effect_1 = require("effect");
|
|
5
|
-
const
|
|
5
|
+
const path_1 = require("./../path/index.js");
|
|
6
6
|
const stack_regex_js_1 = require("./stack-regex.js");
|
|
7
7
|
const match = effect_1.Match.type().pipe(effect_1.Match.when('effect', (_) => 'at '), effect_1.Match.when('node', (_) => '│ at '), effect_1.Match.exhaustive);
|
|
8
8
|
const filterStack = (stack, type, stripCwd) => {
|
|
@@ -15,7 +15,7 @@ const filterStack = (stack, type, stripCwd) => {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const final = out.join('\r\n').replace(stack_regex_js_1.stackAtRegex, match(type));
|
|
18
|
-
return stripCwd ? (0,
|
|
18
|
+
return stripCwd ? (0, path_1.stripCwdPath)(final) : final;
|
|
19
19
|
};
|
|
20
20
|
exports.filterStack = filterStack;
|
|
21
21
|
//# sourceMappingURL=filter-stack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-stack.js","sourceRoot":"","sources":["../../../../src/logic/stack/filter-stack.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAE/B,
|
|
1
|
+
{"version":3,"file":"filter-stack.js","sourceRoot":"","sources":["../../../../src/logic/stack/filter-stack.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAE/B,sCAA2C;AAE3C,qDAAgD;AAEhD,MAAM,KAAK,GAAG,cAAK,CAAC,IAAI,EAAqB,CAAC,IAAI,CAChD,cAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAClC,cAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAClC,cAAK,CAAC,UAAU,CACjB,CAAC;AAEK,MAAM,WAAW,GAAG,CACzB,KAAa,EACb,IAAuB,EACvB,QAAiB,EACjB,EAAE;IACF,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,GAAG,GAAa,EAAE,CAAC;IAEzB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC;QAElE,IAAI,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACrC,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,6BAAY,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAElE,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAChD,CAAC,CAAC;AAnBW,QAAA,WAAW,eAmBtB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./filter-stack.js"), exports);
|
|
18
|
+
__exportStar(require("./stack-regex.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/stack/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prettyPrintFromCapturedErrors = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const prettyPrintFromCapturedErrors = ({ errors, interrupted }, options =
|
|
4
|
+
const _pretty_print_1 = require("./pretty-printing/index.js");
|
|
5
|
+
const _type_1 = require("./types/index.js");
|
|
6
|
+
const prettyPrintFromCapturedErrors = ({ errors, interrupted }, options = _type_1.prettyPrintOptionsDefault) => {
|
|
7
7
|
if (interrupted) {
|
|
8
|
-
return
|
|
8
|
+
return _pretty_print_1.interruptedMessage;
|
|
9
9
|
}
|
|
10
|
-
const title = (0,
|
|
11
|
-
const formattedFailures = errors.map((0,
|
|
10
|
+
const title = (0, _pretty_print_1.formatTitle)(errors.length);
|
|
11
|
+
const formattedFailures = errors.map((0, _pretty_print_1.formatCapturedError)(errors.length, options));
|
|
12
12
|
return [...title, ...formattedFailures].join('\r\n');
|
|
13
13
|
};
|
|
14
14
|
exports.prettyPrintFromCapturedErrors = prettyPrintFromCapturedErrors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pretty-print-from-captured-errors.js","sourceRoot":"","sources":["../../src/pretty-print-from-captured-errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pretty-print-from-captured-errors.js","sourceRoot":"","sources":["../../src/pretty-print-from-captured-errors.ts"],"names":[],"mappings":";;;AAAA,iDAIuB;AACvB,iCAA2E;AAIpE,MAAM,6BAA6B,GAAG,CAC3C,EAAE,MAAM,EAAE,WAAW,EAAkB,EACvC,UAA8B,iCAAyB,EACvD,EAAE;IACF,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,kCAAkB,CAAC;IAC5B,CAAC;IAED,MAAM,KAAK,GAAG,IAAA,2BAAW,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAClC,IAAA,mCAAmB,EAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAC5C,CAAC;IAEF,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,iBAAiB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC,CAAC;AAdW,QAAA,6BAA6B,iCAcxC"}
|
package/cjs/pretty-print.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prettyPrint = void 0;
|
|
4
4
|
const Cause_1 = require("effect/Cause");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const prettyPrint = (cause, options =
|
|
5
|
+
const errors_1 = require("./logic/errors/index.js");
|
|
6
|
+
const _pretty_print_1 = require("./pretty-printing/index.js");
|
|
7
|
+
const _type_1 = require("./types/index.js");
|
|
8
|
+
const prettyPrint = (cause, options = _type_1.prettyPrintOptionsDefault) => {
|
|
9
9
|
if ((0, Cause_1.isInterruptedOnly)(cause)) {
|
|
10
|
-
return
|
|
10
|
+
return _pretty_print_1.interruptedMessage;
|
|
11
11
|
}
|
|
12
|
-
const failures = (0,
|
|
13
|
-
const title = (0,
|
|
14
|
-
const formattedFailures = failures.map((0,
|
|
12
|
+
const failures = (0, errors_1.captureErrorsFrom)(cause);
|
|
13
|
+
const title = (0, _pretty_print_1.formatTitle)(failures.length);
|
|
14
|
+
const formattedFailures = failures.map((0, _pretty_print_1.formatFailure)(failures.length, options));
|
|
15
15
|
return [...title, ...formattedFailures].join('\r\n');
|
|
16
16
|
};
|
|
17
17
|
exports.prettyPrint = prettyPrint;
|
package/cjs/pretty-print.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pretty-print.js","sourceRoot":"","sources":["../../src/pretty-print.ts"],"names":[],"mappings":";;;AAAA,wCAA6D;AAE7D,
|
|
1
|
+
{"version":3,"file":"pretty-print.js","sourceRoot":"","sources":["../../src/pretty-print.ts"],"names":[],"mappings":";;;AAAA,wCAA6D;AAE7D,0CAAkD;AAClD,iDAA+E;AAC/E,iCAA2E;AAEpE,MAAM,WAAW,GAAG,CACzB,KAAe,EACf,UAA8B,iCAAyB,EAC/C,EAAE;IACV,IAAI,IAAA,yBAAiB,EAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,kCAAkB,CAAC;IAC5B,CAAC;IAED,MAAM,QAAQ,GAAG,IAAA,0BAAiB,EAAI,KAAK,CAAC,CAAC;IAE7C,MAAM,KAAK,GAAG,IAAA,2BAAW,EAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,iBAAiB,GAAG,QAAQ,CAAC,GAAG,CACpC,IAAA,6BAAa,EAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CACxC,CAAC;IAEF,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,iBAAiB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB"}
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./print-effect-stacktrace.js"), exports);
|
|
18
18
|
__exportStar(require("./maybe-print-node-stacktrace.js"), exports);
|
|
19
19
|
__exportStar(require("./maybe-print-spans-timeline.js"), exports);
|
|
20
|
+
__exportStar(require("./maybe-advise-spans-usage.js"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pretty-printing/captured-errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mEAAiD;AACjD,kEAAgD;AAChD,gEAA8C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maybe-advise-spans-usage.js","sourceRoot":"","sources":["../../../../src/pretty-printing/captured-errors/maybe-advise-spans-usage.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAIxB,MAAM,qBAAqB,GAAG,CACnC,KAA8B,EACpB,EAAE;IACZ,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9C,OAAO;YACL,EAAE;YACF,oBAAK,CAAC,IAAI,CAAC,uDAAuD,CAAC;SACpE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAXW,QAAA,qBAAqB,yBAWhC"}
|
package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-node-stacktrace.js
RENAMED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.maybePrintNodeStacktrace = void 0;
|
|
7
7
|
const picocolors_1 = __importDefault(require("picocolors"));
|
|
8
|
-
const
|
|
8
|
+
const path_1 = require("./../../logic/path/index.js");
|
|
9
9
|
const maybePrintNodeStacktrace = (stack, isPlainString, { stripCwd, hideStackTrace }) => {
|
|
10
10
|
if (hideStackTrace) {
|
|
11
11
|
return [];
|
|
@@ -13,7 +13,7 @@ const maybePrintNodeStacktrace = (stack, isPlainString, { stripCwd, hideStackTra
|
|
|
13
13
|
const stackHasNodes = stack !== undefined && stack.length > 0;
|
|
14
14
|
if (stackHasNodes) {
|
|
15
15
|
const nodes = stack
|
|
16
|
-
.map((el) => `│ ${stripCwd ? (0,
|
|
16
|
+
.map((el) => `│ ${stripCwd ? (0, path_1.stripCwdPath)(el) : el}`)
|
|
17
17
|
.join('\r\n');
|
|
18
18
|
return [
|
|
19
19
|
'',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maybe-print-node-stacktrace.js","sourceRoot":"","sources":["../../../../src/pretty-printing/captured-errors/maybe-print-node-stacktrace.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,sCAA2C;AAGpC,MAAM,wBAAwB,GAAG,CACtC,KAA2B,EAC3B,aAAsB,EACtB,EAAE,QAAQ,EAAE,cAAc,EAAsB,EACtC,EAAE;IACZ,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,aAAa,GAAG,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAC9D,IAAI,aAAa,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,KAAK;aAChB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,mBAAY,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;aACpD,IAAI,CAAC,MAAM,CAAC,CAAC;QAEhB,OAAO;YACL,EAAE;YACF,GAAG,oBAAK,CAAC,IAAI,CAAC,oBAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,oBAAK,CAAC,SAAS,CAAC,oBAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE;YACzF,oBAAK,CAAC,GAAG,CAAC,KAAK,CAAC;YAChB,oBAAK,CAAC,GAAG,CAAC,GAAG,CAAC;SACf,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO;YACL,EAAE;YACF,oBAAK,CAAC,IAAI,CACR,2GAA2G,CAC5G;SACF,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAjCW,QAAA,wBAAwB,4BAiCnC"}
|
package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/maybe-print-spans-timeline.js
RENAMED
|
@@ -5,23 +5,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.maybePrintSpansTimeline = void 0;
|
|
7
7
|
const picocolors_1 = __importDefault(require("picocolors"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const path_1 = require("./../../logic/path/index.js");
|
|
9
|
+
const common_1 = require("./../common/index.js");
|
|
10
10
|
const maybePrintSpansTimeline = (spans, isPlainString, { stripCwd, reverseSpans }) => {
|
|
11
11
|
if (spans === undefined) {
|
|
12
|
-
return isPlainString === false ? ['',
|
|
12
|
+
return isPlainString === false ? ['', common_1.missingSpansWarning, ''] : [];
|
|
13
13
|
}
|
|
14
14
|
const orderedSpans = reverseSpans === true ? spans.toReversed() : spans;
|
|
15
15
|
return orderedSpans.reduce((output, { name, durationInMilliseconds, attributes }, index) => {
|
|
16
16
|
const isFirstEntry = index === 0;
|
|
17
17
|
const isLastEntry = index === spans.length - 1;
|
|
18
18
|
const maybeCircle = isFirstEntry ? `\r\n${picocolors_1.default.gray('◯')}\r\n` : '';
|
|
19
|
-
const trailing = (0,
|
|
20
|
-
const filePath = ` ${stripCwd !== undefined ? picocolors_1.default.underline(picocolors_1.default.bold((0,
|
|
19
|
+
const trailing = (0, common_1.spanStackTrailingChar)(isLastEntry);
|
|
20
|
+
const filePath = ` ${stripCwd !== undefined ? picocolors_1.default.underline(picocolors_1.default.bold((0, path_1.stripCwdPath)(name))) : picocolors_1.default.underline(name)}`;
|
|
21
21
|
const duration = durationInMilliseconds !== undefined
|
|
22
|
-
? picocolors_1.default.gray((0,
|
|
22
|
+
? picocolors_1.default.gray((0, common_1.formatSpanDuration)(durationInMilliseconds, isLastEntry))
|
|
23
23
|
: '';
|
|
24
|
-
const formattedAttributes = (0,
|
|
24
|
+
const formattedAttributes = (0, common_1.formatSpanAttributes)(attributes, isLastEntry);
|
|
25
25
|
const timelineEntry = picocolors_1.default.white(`${maybeCircle}${trailing}${picocolors_1.default.gray('─')}${filePath}${duration}${formattedAttributes}`);
|
|
26
26
|
return [...output, timelineEntry];
|
|
27
27
|
}, []);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maybe-print-spans-timeline.js","sourceRoot":"","sources":["../../../../src/pretty-printing/captured-errors/maybe-print-spans-timeline.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,sCAA2C;AAC3C,iDAK8B;AAGvB,MAAM,uBAAuB,GAAG,CACrC,KAA8B,EAC9B,aAAsB,EACtB,EAAE,QAAQ,EAAE,YAAY,EAAsB,EACpC,EAAE;IACZ,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,aAAa,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,4BAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,CAAC;IAED,MAAM,YAAY,GAAG,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IACxE,OAAO,YAAY,CAAC,MAAM,CACxB,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE;QAC9D,MAAM,YAAY,GAAG,KAAK,KAAK,CAAC,CAAC;QACjC,MAAM,WAAW,GAAG,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAE/C,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,OAAO,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAA,8BAAqB,EAAC,WAAW,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAG,IAAI,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,oBAAK,CAAC,SAAS,CAAC,oBAAK,CAAC,IAAI,CAAC,IAAA,mBAAY,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACxH,MAAM,QAAQ,GACZ,sBAAsB,KAAK,SAAS;YAClC,CAAC,CAAC,oBAAK,CAAC,IAAI,CAAC,IAAA,2BAAkB,EAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;YACrE,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,mBAAmB,GAAG,IAAA,6BAAoB,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAE1E,MAAM,aAAa,GAAG,oBAAK,CAAC,KAAK,CAC/B,GAAG,WAAW,GAAG,QAAQ,GAAG,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,QAAQ,GAAG,mBAAmB,EAAE,CAC1F,CAAC;QAEF,OAAO,CAAC,GAAG,MAAM,EAAE,aAAa,CAAC,CAAC;IACpC,CAAC,EACD,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,uBAAuB,2BAgClC"}
|
package/cjs/{logic/pretty-printing → pretty-printing}/captured-errors/print-effect-stacktrace.js
RENAMED
|
@@ -5,17 +5,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.printEffectStacktrace = void 0;
|
|
7
7
|
const picocolors_1 = __importDefault(require("picocolors"));
|
|
8
|
-
const
|
|
8
|
+
const path_1 = require("./../../logic/path/index.js");
|
|
9
9
|
const printEffectStacktrace = (sources, spans, { stripCwd }) => {
|
|
10
|
-
|
|
10
|
+
const isEmpty = spans === undefined ||
|
|
11
11
|
spans.length === 0 ||
|
|
12
12
|
sources === undefined ||
|
|
13
|
-
sources.length === 0
|
|
13
|
+
sources.length === 0;
|
|
14
|
+
if (isEmpty) {
|
|
14
15
|
return [];
|
|
15
16
|
}
|
|
16
17
|
const paths = sources.map(({ name, runPath, sourcesPath }) => {
|
|
17
18
|
const path = sourcesPath ?? runPath;
|
|
18
|
-
return { path: stripCwd ? (0,
|
|
19
|
+
return { path: stripCwd ? (0, path_1.stripCwdPath)(path) : path, name };
|
|
19
20
|
});
|
|
20
21
|
return [
|
|
21
22
|
`${picocolors_1.default.bold(picocolors_1.default.red('◯'))} ${picocolors_1.default.red('Sources')} 🕵️`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-effect-stacktrace.js","sourceRoot":"","sources":["../../../../src/pretty-printing/captured-errors/print-effect-stacktrace.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,sCAA2C;AAIpC,MAAM,qBAAqB,GAAG,CACnC,OAAwD,EACxD,KAA8B,EAC9B,EAAE,QAAQ,EAAsB,EAChC,EAAE;IACF,MAAM,OAAO,GACX,KAAK,KAAK,SAAS;QACnB,KAAK,CAAC,MAAM,KAAK,CAAC;QAClB,OAAO,KAAK,SAAS;QACrB,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;IACvB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC3D,MAAM,IAAI,GAAG,WAAW,IAAI,OAAO,CAAC;QACpC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAA,mBAAY,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,oBAAK,CAAC,IAAI,CAAC,oBAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,oBAAK,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM;QAC3D,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAC9B,oBAAK,CAAC,GAAG,CACP,QAAQ,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,CAC9E,CACF;QACD,oBAAK,CAAC,GAAG,CAAC,GAAG,CAAC;KACf,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,qBAAqB,yBA4BhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interrupted-message.js","sourceRoot":"","sources":["../../../../../src/pretty-printing/common/constants/interrupted-message.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing-spans-warning.js","sourceRoot":"","sources":["../../../../../src/pretty-printing/common/constants/missing-spans-warning.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAElB,QAAA,mBAAmB,GAAG,OAAO,oBAAK,CAAC,IAAI,CAAC,uDAAuD,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-error-title.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/format-error-title.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAExB,MAAM,gBAAgB,GAAG,CAC9B,SAAkB,EAClB,OAAgB,EAChB,cAAsB,EACtB,YAAoB,EACV,EAAE;IACZ,MAAM,aAAa,GACjB,cAAc,GAAG,CAAC;QAChB,CAAC,CAAC,oBAAK,CAAC,KAAK,CAAC,oBAAK,CAAC,KAAK,CAAC,KAAK,YAAY,GAAG,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC,CAAC,EAAE,CAAC;IACT,MAAM,IAAI,GAAG,oBAAK,CAAC,KAAK,CACtB,oBAAK,CAAC,KAAK,CAAC,IAAK,SAAgC,IAAI,eAAe,GAAG,CAAC,CACzE,CAAC;IACF,MAAM,gBAAgB,GAAG,oBAAK,CAAC,IAAI,CAAC,oBAAK,CAAC,KAAK,CAAC,MAAM,OAAiB,EAAE,CAAC,CAAC,CAAC;IAE5E,OAAO,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,gBAAgB,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AAhBW,QAAA,gBAAgB,oBAgB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-span-attributes.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/format-span-attributes.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,MAAM,cAAc,GAAG,CAAC,WAAoB,EAAE,EAAE,CAC9C,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,oBAAoB,GAAG,CAClC,UAAmC,EACnC,WAAoB,EACpB,EAAE;IACF,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CACnC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CACf,GAAG,cAAc,CAAC,WAAW,CAAC,OAAO,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,EAAE,CACpF,CAAC;IAEF,OAAO,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;AACrC,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-span-duration.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/format-span-duration.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAExB,MAAM,kBAAkB,GAAG,CAChC,YAA6B,EAC7B,WAAoB,EACpB,EAAE,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,YAAY,IAAI,CAAC;AAH1D,QAAA,kBAAkB,sBAGwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-title.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/format-title.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAExB,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAY,EAAE;IAC3D,IAAI,WAAW,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,EAAE,CAAC,CAAC;IACd,CAAC;IAED,MAAM,OAAO,GAAG,oBAAK,CAAC,IAAI,CACxB,GAAG,oBAAK,CAAC,SAAS,CAAC,oBAAK,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,CACvD,CAAC;IACF,MAAM,KAAK,GAAG,oBAAK,CAAC,IAAI,CACtB,oBAAK,CAAC,UAAU,CACd,GAAG,WAAW,SAAS,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAC7D,CACF,CAAC;IAEF,OAAO,CAAC,EAAE,EAAE,KAAK,OAAO,MAAM,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAfW,QAAA,WAAW,eAetB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,8DAA4C;AAC5C,4DAA0C;AAC1C,sEAAoD;AACpD,iEAA+C;AAE/C,uEAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maybe-warn-about-plain-strings.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/maybe-warn-about-plain-strings.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAExB,MAAM,0BAA0B,GAAG,CACxC,aAAsB,EACZ,EAAE;IACZ,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,EAAE;QACF,oBAAK,CAAC,IAAI,CACR,gPAAgP,CACjP;KACF,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,0BAA0B,8BAarC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spans-stack-trailing-char.js","sourceRoot":"","sources":["../../../../src/pretty-printing/common/spans-stack-trailing-char.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAExB,MAAM,qBAAqB,GAAG,CAAC,WAAoB,EAAE,EAAE,CAC5D,WAAW,CAAC,CAAC,CAAC,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,oBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AADrC,QAAA,qBAAqB,yBACgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pretty-printing/failures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,iFAA+D;AAC/D,+DAA6C"}
|