[READ-ONLY] Mirror of https://github.com/danielroe/errx. Zero dependency library to capture and parse stack traces in Node, Bun, Deno and more.
error stack-trace
0

Configure Feed

Select the types of activity you want to include in your feed.

chore: update repo links

+26 -26
+1 -1
.github/ISSUE_TEMPLATE/---bug-report.yml
··· 13 13 required: true 14 14 attributes: 15 15 label: 🛠️ To reproduce 16 - description: A reproduction of the bug via https://stackblitz.com/github/danielroe/errx/tree/main/playground 16 + description: A reproduction of the bug via https://stackblitz.com/github/unjs/errx/tree/main/playground 17 17 placeholder: https://stackblitz.com/[...] 18 18 - type: textarea 19 19 validations:
+5 -5
README.md
··· 30 30 console.log(captureStackTrace()) 31 31 // [{ 32 32 // function: undefined, 33 - // source: 'file:///code/danielroe/errx/playground/index.js', 33 + // source: 'file:///code/unjs/errx/playground/index.js', 34 34 // line: '5', 35 35 // column: '13' 36 36 // }] ··· 55 55 [npm-version-href]: https://npmjs.com/package/errx 56 56 [npm-downloads-src]: https://img.shields.io/npm/dm/errx?style=flat-square 57 57 [npm-downloads-href]: https://npmjs.com/package/errx 58 - [github-actions-src]: https://img.shields.io/github/actions/workflow/status/danielroe/errx/ci.yml?branch=main&style=flat-square 59 - [github-actions-href]: https://github.com/danielroe/errx/actions?query=workflow%3Aci 60 - [codecov-src]: https://img.shields.io/codecov/c/gh/danielroe/errx/main?style=flat-square 61 - [codecov-href]: https://codecov.io/gh/danielroe/errx 58 + [github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/errx/ci.yml?branch=main&style=flat-square 59 + [github-actions-href]: https://github.com/unjs/errx/actions?query=workflow%3Aci 60 + [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/errx/main?style=flat-square 61 + [codecov-href]: https://codecov.io/gh/unjs/errx
+1 -1
package.json
··· 5 5 "packageManager": "pnpm@9.4.0", 6 6 "description": "Zero dependency library to capture and parse stack traces in Node, Bun and Deno", 7 7 "license": "MIT", 8 - "repository": "danielroe/errx", 8 + "repository": "unjs/errx", 9 9 "sideEffects": false, 10 10 "exports": { 11 11 ".": "./dist/index.js"
+10 -10
test/__snapshots__/vitest.json5
··· 3 3 "column": 12, 4 4 "function": undefined, 5 5 "line": 6, 6 - "source": "file:///Users/daniel/code/danielroe/errx/test/index.test.ts", 6 + "source": "file:///Users/daniel/code/unjs/errx/test/index.test.ts", 7 7 }, 8 8 { 9 9 "column": 14, 10 10 "function": undefined, 11 11 "line": 135, 12 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 12 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 13 13 }, 14 14 { 15 15 "column": 26, 16 16 "function": undefined, 17 17 "line": 60, 18 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 18 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 19 19 }, 20 20 { 21 21 "column": 17, 22 22 "function": "runTest", 23 23 "line": 781, 24 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 24 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 25 25 }, 26 26 { 27 27 "column": 15, 28 28 "function": "runSuite", 29 29 "line": 909, 30 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 30 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 31 31 }, 32 32 { 33 33 "column": 15, 34 34 "function": "runSuite", 35 35 "line": 909, 36 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 36 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 37 37 }, 38 38 { 39 39 "column": 5, 40 40 "function": "runFiles", 41 41 "line": 958, 42 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 42 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 43 43 }, 44 44 { 45 45 "column": 3, 46 46 "function": "startTests", 47 47 "line": 967, 48 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 48 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js", 49 49 }, 50 50 { 51 51 "column": 7, 52 52 "function": undefined, 53 53 "line": 116, 54 - "source": "file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/vitest@1.6.0_@types+node@20.14.9/node_modules/vitest/dist/chunks/runtime-runBaseTests.oAvMKtQC.js", 54 + "source": "file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/vitest@1.6.0_@types+node@20.14.9/node_modules/vitest/dist/chunks/runtime-runBaseTests.oAvMKtQC.js", 55 55 }, 56 - ] 56 + ]
+9 -9
test/index.test.ts
··· 70 70 const vitestTrace = ` 71 71 Error: 72 72 at Module.getTrace (${sourcePath}:10:9) 73 - at /Users/daniel/code/danielroe/errx/test/index.test.ts:6:12 74 - at file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:135:14 75 - at file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:60:26 76 - at runTest (file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:781:17) 77 - at runSuite (file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:909:15) 78 - at runSuite (file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:909:15) 79 - at runFiles (file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:958:5) 80 - at startTests (file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:967:3) 81 - at file:///Users/daniel/code/danielroe/errx/node_modules/.pnpm/vitest@1.6.0_@types+node@20.14.9/node_modules/vitest/dist/chunks/runtime-runBaseTests.oAvMKtQC.js:116:7` 73 + at /Users/daniel/code/unjs/errx/test/index.test.ts:6:12 74 + at file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:135:14 75 + at file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:60:26 76 + at runTest (file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:781:17) 77 + at runSuite (file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:909:15) 78 + at runSuite (file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:909:15) 79 + at runFiles (file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:958:5) 80 + at startTests (file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/@vitest+runner@1.6.0/node_modules/@vitest/runner/dist/index.js:967:3) 81 + at file:///Users/daniel/code/unjs/errx/node_modules/.pnpm/vitest@1.6.0_@types+node@20.14.9/node_modules/vitest/dist/chunks/runtime-runBaseTests.oAvMKtQC.js:116:7` 82 82 83 83 const jitiTrace = ` 84 84 Error