├── .github └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .node-version ├── .vscode ├── effect.code-snippets └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── biome.json ├── docs ├── parallel-errors-example.png └── pretty-print-from-captured-errors.png ├── package.json ├── pnpm-lock.yaml ├── release-please ├── config.json └── manifest.json ├── renovate.json ├── sonar-project.properties ├── src ├── capture-errors.test.ts ├── capture-errors.ts ├── dependencies │ └── fs │ │ ├── index.ts │ │ └── read-json │ │ ├── index.ts │ │ ├── json-parsing.error.ts │ │ ├── parse-json.ts │ │ └── read-json.ts ├── examples │ ├── bundling │ │ ├── big-int-replacer.ts │ │ ├── cjs-shims.ts │ │ └── from-promise.bundle.ts │ ├── data │ │ └── user.json │ ├── errors │ │ ├── fetch-error.ts │ │ ├── file-error.ts │ │ ├── schema-error.ts │ │ ├── tagged-error-with-error-ctor.ts │ │ ├── tagged-error-with-message.ts │ │ ├── tagged-error-with-meta.ts │ │ └── user-not-found.error.ts │ ├── from-promise.test.ts │ ├── from-promise.ts │ ├── long-running.test.ts │ ├── long-running.ts │ ├── parallel-errors.test.ts │ ├── parallel-errors.ts │ ├── plain-object-error.test.ts │ ├── plain-object-error.ts │ ├── schema-error.test.ts │ ├── schema-error.ts │ ├── strip-cwd.test.ts │ ├── strip-cwd.ts │ ├── tagged-error-with-error-ctor.test.ts │ ├── tagged-error-with-error-ctor.ts │ ├── tagged-error-with-meta.test.ts │ ├── tagged-error-with-meta.ts │ ├── unknown-error.test.ts │ ├── unknown-error.ts │ ├── util │ │ ├── filename.effect.ts │ │ ├── run-all.ts │ │ └── run.ts │ ├── with-string-error.test.ts │ ├── with-string-error.ts │ ├── without-spans.test.ts │ └── without-spans.ts ├── index.ts ├── logic │ ├── errors │ │ ├── capture-errors-from-cause.ts │ │ ├── extract-error-details.test.ts │ │ ├── extract-error-details.ts │ │ ├── index.ts │ │ └── parse-error.ts │ ├── path │ │ ├── index.ts │ │ └── strip-cwd-path.ts │ ├── spans │ │ ├── index.ts │ │ ├── maybe-add-error-to-spans-stack.ts │ │ └── split-spans-attributes-by-type.ts │ └── stack │ │ ├── filter-stack.ts │ │ ├── index.ts │ │ └── stack-regex.ts ├── pretty-print-from-captured-errors.ts ├── pretty-print.ts ├── pretty-printing │ ├── captured-errors │ │ ├── index.ts │ │ ├── maybe-advise-spans-usage.ts │ │ ├── maybe-print-node-stacktrace.ts │ │ ├── maybe-print-spans-timeline.ts │ │ └── print-effect-stacktrace.ts │ ├── common │ │ ├── constants │ │ │ ├── interrupted-message.ts │ │ │ └── missing-spans-warning.ts │ │ ├── format-error-title.ts │ │ ├── format-span-attributes.ts │ │ ├── format-span-duration.ts │ │ ├── format-title.ts │ │ ├── index.ts │ │ ├── maybe-warn-about-plain-strings.ts │ │ └── spans-stack-trailing-char.ts │ ├── failures │ │ ├── index.ts │ │ ├── maybe-print-node-stacktrace.ts │ │ ├── print-effect-stacktrace.ts │ │ └── spans-timeline │ │ │ ├── extract-spans.ts │ │ │ ├── format-spans-at-timeline.ts │ │ │ ├── format │ │ │ ├── get-span-attributes.ts │ │ │ ├── get-span-duration.ts │ │ │ └── index.ts │ │ │ └── maybe-print-spans-timeline.ts │ ├── format-captured-error.ts │ ├── format-failure.ts │ └── index.ts ├── runners │ ├── run-promise.ts │ └── run-sync.ts ├── source-maps │ ├── get-error-location-from-file-path.ts │ ├── get-error-related-sources.ts │ ├── get-source-code.ts │ ├── get-sources-from-map-file.ts │ ├── get-sources-from-span.ts │ ├── get-sources-from-stack.ts │ ├── index.ts │ ├── maybe-map-sourcemaps.test.ts │ ├── maybe-map-sourcemaps.ts │ └── transform-raw-error.ts ├── tests │ ├── assertions │ │ ├── check-parallel-errors-data.ts │ │ └── index.ts │ ├── bundle │ │ ├── from-promise.js │ │ └── from-promise.js.map │ ├── layers │ │ ├── console.test-layer.ts │ │ ├── file-system.test-layer.ts │ │ └── index.ts │ ├── mock-data │ │ ├── from-promises-sources.mock-data.ts │ │ ├── index.ts │ │ └── parallel-errors.mock-data.ts │ ├── mocks │ │ ├── index.ts │ │ └── process.mock.ts │ ├── regex │ │ ├── duration.regex.ts │ │ └── index.ts │ ├── runners │ │ ├── effect-cause.ts │ │ └── index.ts │ └── util │ │ ├── collect-error-details.util.ts │ │ ├── exec-shell-command.util.ts │ │ ├── get-example-sources.util.ts │ │ ├── index.ts │ │ ├── make-task-with-collected-errors.ts │ │ └── strip-ansi-codes.util.ts ├── types │ ├── error-span.type.ts │ ├── index.ts │ ├── pretty-error.type.ts │ └── pretty-print-options.type.ts └── vitest.d.ts ├── tsconfig.cjs.json ├── tsconfig.esm.json ├── tsconfig.json └── vite.config.mts /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/.gitignore -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | 22.x -------------------------------------------------------------------------------- /.vscode/effect.code-snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/.vscode/effect.code-snippets -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/README.md -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/biome.json -------------------------------------------------------------------------------- /docs/parallel-errors-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/docs/parallel-errors-example.png -------------------------------------------------------------------------------- /docs/pretty-print-from-captured-errors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/docs/pretty-print-from-captured-errors.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /release-please/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/release-please/config.json -------------------------------------------------------------------------------- /release-please/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | ".": "1.10.17" 3 | } 4 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/renovate.json -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/sonar-project.properties -------------------------------------------------------------------------------- /src/capture-errors.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/capture-errors.test.ts -------------------------------------------------------------------------------- /src/capture-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/capture-errors.ts -------------------------------------------------------------------------------- /src/dependencies/fs/index.ts: -------------------------------------------------------------------------------- 1 | export * from './read-json/index.js'; 2 | -------------------------------------------------------------------------------- /src/dependencies/fs/read-json/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/dependencies/fs/read-json/index.ts -------------------------------------------------------------------------------- /src/dependencies/fs/read-json/json-parsing.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/dependencies/fs/read-json/json-parsing.error.ts -------------------------------------------------------------------------------- /src/dependencies/fs/read-json/parse-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/dependencies/fs/read-json/parse-json.ts -------------------------------------------------------------------------------- /src/dependencies/fs/read-json/read-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/dependencies/fs/read-json/read-json.ts -------------------------------------------------------------------------------- /src/examples/bundling/big-int-replacer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/bundling/big-int-replacer.ts -------------------------------------------------------------------------------- /src/examples/bundling/cjs-shims.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/bundling/cjs-shims.ts -------------------------------------------------------------------------------- /src/examples/bundling/from-promise.bundle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/bundling/from-promise.bundle.ts -------------------------------------------------------------------------------- /src/examples/data/user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/data/user.json -------------------------------------------------------------------------------- /src/examples/errors/fetch-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/fetch-error.ts -------------------------------------------------------------------------------- /src/examples/errors/file-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/file-error.ts -------------------------------------------------------------------------------- /src/examples/errors/schema-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/schema-error.ts -------------------------------------------------------------------------------- /src/examples/errors/tagged-error-with-error-ctor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/tagged-error-with-error-ctor.ts -------------------------------------------------------------------------------- /src/examples/errors/tagged-error-with-message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/tagged-error-with-message.ts -------------------------------------------------------------------------------- /src/examples/errors/tagged-error-with-meta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/tagged-error-with-meta.ts -------------------------------------------------------------------------------- /src/examples/errors/user-not-found.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/errors/user-not-found.error.ts -------------------------------------------------------------------------------- /src/examples/from-promise.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/from-promise.test.ts -------------------------------------------------------------------------------- /src/examples/from-promise.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/from-promise.ts -------------------------------------------------------------------------------- /src/examples/long-running.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/long-running.test.ts -------------------------------------------------------------------------------- /src/examples/long-running.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/long-running.ts -------------------------------------------------------------------------------- /src/examples/parallel-errors.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/parallel-errors.test.ts -------------------------------------------------------------------------------- /src/examples/parallel-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/parallel-errors.ts -------------------------------------------------------------------------------- /src/examples/plain-object-error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/plain-object-error.test.ts -------------------------------------------------------------------------------- /src/examples/plain-object-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/plain-object-error.ts -------------------------------------------------------------------------------- /src/examples/schema-error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/schema-error.test.ts -------------------------------------------------------------------------------- /src/examples/schema-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/schema-error.ts -------------------------------------------------------------------------------- /src/examples/strip-cwd.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/strip-cwd.test.ts -------------------------------------------------------------------------------- /src/examples/strip-cwd.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/strip-cwd.ts -------------------------------------------------------------------------------- /src/examples/tagged-error-with-error-ctor.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/tagged-error-with-error-ctor.test.ts -------------------------------------------------------------------------------- /src/examples/tagged-error-with-error-ctor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/tagged-error-with-error-ctor.ts -------------------------------------------------------------------------------- /src/examples/tagged-error-with-meta.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/tagged-error-with-meta.test.ts -------------------------------------------------------------------------------- /src/examples/tagged-error-with-meta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/tagged-error-with-meta.ts -------------------------------------------------------------------------------- /src/examples/unknown-error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/unknown-error.test.ts -------------------------------------------------------------------------------- /src/examples/unknown-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/unknown-error.ts -------------------------------------------------------------------------------- /src/examples/util/filename.effect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/util/filename.effect.ts -------------------------------------------------------------------------------- /src/examples/util/run-all.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/util/run-all.ts -------------------------------------------------------------------------------- /src/examples/util/run.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/util/run.ts -------------------------------------------------------------------------------- /src/examples/with-string-error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/with-string-error.test.ts -------------------------------------------------------------------------------- /src/examples/with-string-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/with-string-error.ts -------------------------------------------------------------------------------- /src/examples/without-spans.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/without-spans.test.ts -------------------------------------------------------------------------------- /src/examples/without-spans.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/examples/without-spans.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/logic/errors/capture-errors-from-cause.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/errors/capture-errors-from-cause.ts -------------------------------------------------------------------------------- /src/logic/errors/extract-error-details.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/errors/extract-error-details.test.ts -------------------------------------------------------------------------------- /src/logic/errors/extract-error-details.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/errors/extract-error-details.ts -------------------------------------------------------------------------------- /src/logic/errors/index.ts: -------------------------------------------------------------------------------- 1 | export * from './capture-errors-from-cause.js'; 2 | -------------------------------------------------------------------------------- /src/logic/errors/parse-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/errors/parse-error.ts -------------------------------------------------------------------------------- /src/logic/path/index.ts: -------------------------------------------------------------------------------- 1 | export * from './strip-cwd-path.js'; 2 | -------------------------------------------------------------------------------- /src/logic/path/strip-cwd-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/path/strip-cwd-path.ts -------------------------------------------------------------------------------- /src/logic/spans/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/spans/index.ts -------------------------------------------------------------------------------- /src/logic/spans/maybe-add-error-to-spans-stack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/spans/maybe-add-error-to-spans-stack.ts -------------------------------------------------------------------------------- /src/logic/spans/split-spans-attributes-by-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/spans/split-spans-attributes-by-type.ts -------------------------------------------------------------------------------- /src/logic/stack/filter-stack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/stack/filter-stack.ts -------------------------------------------------------------------------------- /src/logic/stack/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/stack/index.ts -------------------------------------------------------------------------------- /src/logic/stack/stack-regex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/logic/stack/stack-regex.ts -------------------------------------------------------------------------------- /src/pretty-print-from-captured-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-print-from-captured-errors.ts -------------------------------------------------------------------------------- /src/pretty-print.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-print.ts -------------------------------------------------------------------------------- /src/pretty-printing/captured-errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/captured-errors/index.ts -------------------------------------------------------------------------------- /src/pretty-printing/captured-errors/maybe-advise-spans-usage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/captured-errors/maybe-advise-spans-usage.ts -------------------------------------------------------------------------------- /src/pretty-printing/captured-errors/maybe-print-node-stacktrace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/captured-errors/maybe-print-node-stacktrace.ts -------------------------------------------------------------------------------- /src/pretty-printing/captured-errors/maybe-print-spans-timeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/captured-errors/maybe-print-spans-timeline.ts -------------------------------------------------------------------------------- /src/pretty-printing/captured-errors/print-effect-stacktrace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/captured-errors/print-effect-stacktrace.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/constants/interrupted-message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/constants/interrupted-message.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/constants/missing-spans-warning.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/constants/missing-spans-warning.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/format-error-title.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/format-error-title.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/format-span-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/format-span-attributes.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/format-span-duration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/format-span-duration.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/format-title.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/format-title.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/index.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/maybe-warn-about-plain-strings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/maybe-warn-about-plain-strings.ts -------------------------------------------------------------------------------- /src/pretty-printing/common/spans-stack-trailing-char.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/common/spans-stack-trailing-char.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/index.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/maybe-print-node-stacktrace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/maybe-print-node-stacktrace.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/print-effect-stacktrace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/print-effect-stacktrace.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/spans-timeline/extract-spans.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/spans-timeline/extract-spans.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/spans-timeline/format-spans-at-timeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/spans-timeline/format-spans-at-timeline.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/spans-timeline/format/get-span-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/spans-timeline/format/get-span-attributes.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/spans-timeline/format/get-span-duration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/spans-timeline/format/get-span-duration.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/spans-timeline/format/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/spans-timeline/format/index.ts -------------------------------------------------------------------------------- /src/pretty-printing/failures/spans-timeline/maybe-print-spans-timeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/failures/spans-timeline/maybe-print-spans-timeline.ts -------------------------------------------------------------------------------- /src/pretty-printing/format-captured-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/format-captured-error.ts -------------------------------------------------------------------------------- /src/pretty-printing/format-failure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/format-failure.ts -------------------------------------------------------------------------------- /src/pretty-printing/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/pretty-printing/index.ts -------------------------------------------------------------------------------- /src/runners/run-promise.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/runners/run-promise.ts -------------------------------------------------------------------------------- /src/runners/run-sync.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/runners/run-sync.ts -------------------------------------------------------------------------------- /src/source-maps/get-error-location-from-file-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/get-error-location-from-file-path.ts -------------------------------------------------------------------------------- /src/source-maps/get-error-related-sources.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/get-error-related-sources.ts -------------------------------------------------------------------------------- /src/source-maps/get-source-code.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/get-source-code.ts -------------------------------------------------------------------------------- /src/source-maps/get-sources-from-map-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/get-sources-from-map-file.ts -------------------------------------------------------------------------------- /src/source-maps/get-sources-from-span.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/get-sources-from-span.ts -------------------------------------------------------------------------------- /src/source-maps/get-sources-from-stack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/get-sources-from-stack.ts -------------------------------------------------------------------------------- /src/source-maps/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/index.ts -------------------------------------------------------------------------------- /src/source-maps/maybe-map-sourcemaps.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/maybe-map-sourcemaps.test.ts -------------------------------------------------------------------------------- /src/source-maps/maybe-map-sourcemaps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/maybe-map-sourcemaps.ts -------------------------------------------------------------------------------- /src/source-maps/transform-raw-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/source-maps/transform-raw-error.ts -------------------------------------------------------------------------------- /src/tests/assertions/check-parallel-errors-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/assertions/check-parallel-errors-data.ts -------------------------------------------------------------------------------- /src/tests/assertions/index.ts: -------------------------------------------------------------------------------- 1 | export * from './check-parallel-errors-data.js'; 2 | -------------------------------------------------------------------------------- /src/tests/bundle/from-promise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/bundle/from-promise.js -------------------------------------------------------------------------------- /src/tests/bundle/from-promise.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/bundle/from-promise.js.map -------------------------------------------------------------------------------- /src/tests/layers/console.test-layer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/layers/console.test-layer.ts -------------------------------------------------------------------------------- /src/tests/layers/file-system.test-layer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/layers/file-system.test-layer.ts -------------------------------------------------------------------------------- /src/tests/layers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/layers/index.ts -------------------------------------------------------------------------------- /src/tests/mock-data/from-promises-sources.mock-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/mock-data/from-promises-sources.mock-data.ts -------------------------------------------------------------------------------- /src/tests/mock-data/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/mock-data/index.ts -------------------------------------------------------------------------------- /src/tests/mock-data/parallel-errors.mock-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/mock-data/parallel-errors.mock-data.ts -------------------------------------------------------------------------------- /src/tests/mocks/index.ts: -------------------------------------------------------------------------------- 1 | export * from './process.mock.js'; 2 | -------------------------------------------------------------------------------- /src/tests/mocks/process.mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/mocks/process.mock.ts -------------------------------------------------------------------------------- /src/tests/regex/duration.regex.ts: -------------------------------------------------------------------------------- 1 | export const durationRegex = /~ \d+ms/g; 2 | -------------------------------------------------------------------------------- /src/tests/regex/index.ts: -------------------------------------------------------------------------------- 1 | export * from './duration.regex.js'; 2 | -------------------------------------------------------------------------------- /src/tests/runners/effect-cause.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/runners/effect-cause.ts -------------------------------------------------------------------------------- /src/tests/runners/index.ts: -------------------------------------------------------------------------------- 1 | export * from './effect-cause.js'; 2 | -------------------------------------------------------------------------------- /src/tests/util/collect-error-details.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/util/collect-error-details.util.ts -------------------------------------------------------------------------------- /src/tests/util/exec-shell-command.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/util/exec-shell-command.util.ts -------------------------------------------------------------------------------- /src/tests/util/get-example-sources.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/util/get-example-sources.util.ts -------------------------------------------------------------------------------- /src/tests/util/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/util/index.ts -------------------------------------------------------------------------------- /src/tests/util/make-task-with-collected-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/util/make-task-with-collected-errors.ts -------------------------------------------------------------------------------- /src/tests/util/strip-ansi-codes.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/tests/util/strip-ansi-codes.util.ts -------------------------------------------------------------------------------- /src/types/error-span.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/types/error-span.type.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/pretty-error.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/types/pretty-error.type.ts -------------------------------------------------------------------------------- /src/types/pretty-print-options.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/types/pretty-print-options.type.ts -------------------------------------------------------------------------------- /src/vitest.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/src/vitest.d.ts -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.esm.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/tsconfig.esm.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpb06/effect-errors/HEAD/vite.config.mts --------------------------------------------------------------------------------