Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
Co-authored-by: eriwen <eriwen@users.noreply.github.com>
  • Loading branch information
antfu and eriwen committed Jul 12, 2023
1 parent 0251f27 commit abd6d73
Show file tree
Hide file tree
Showing 6 changed files with 1,552 additions and 735 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

A port of [stacktracejs/error-stack-parser](https://github.com/stacktracejs/error-stack-parser), rewrite with TypeScript and ES Modules.

## Usage

```ts
import { parse } from 'error-stack-parser-es'

const stacktrace = parse(new Error('BOOM!'))
```

Refer to [stacktracejs/error-stack-parser](https://github.com/stacktracejs/error-stack-parser) for more details.

## License

[MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/antfu)
Expand Down
46 changes: 26 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
"name": "error-stack-parser-es",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@8.6.0",
"description": "",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"packageManager": "pnpm@8.6.7",
"description": "Cross-browser Error parser",
"maintainers": [
"Anthony Fu <anthonyfu117@hotmail.com> (https://antfu.me)",
"Eric Wendelin <me@eriwen.com> (https://www.eriwen.com)",
"Victor Homyakov <vkhomyackov@gmail.com> (https://github.com/victor-homyakov)",
"Oliver Salzburg (https://github.com/oliversalzburg)",
"Ben Gourley (https://github.com/bengourley)"
],
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/antfu/error-stack-parser-es#readme",
Expand Down Expand Up @@ -47,32 +53,32 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.4",
"@antfu/ni": "^0.21.3",
"@antfu/utils": "^0.7.4",
"@types/node": "^18.16.16",
"bumpp": "^9.1.0",
"eslint": "^8.41.0",
"esno": "^0.16.3",
"lint-staged": "^13.2.2",
"pnpm": "^8.6.0",
"@antfu/eslint-config": "^0.39.7",
"@antfu/ni": "^0.21.4",
"@antfu/utils": "^0.7.5",
"@types/node": "^20.4.1",
"bumpp": "^9.1.1",
"eslint": "^8.44.0",
"esno": "^0.17.0",
"lint-staged": "^13.2.3",
"pnpm": "^8.6.7",
"rimraf": "^5.0.1",
"simple-git-hooks": "^2.8.1",
"stackframe": "^1.3.4",
"typescript": "^5.0.4",
"typescript": "^5.1.6",
"unbuild": "^1.2.1",
"vite": "^4.3.9",
"vitest": "^0.31.3"
"vite": "^4.4.3",
"vitest": "^0.33.0"
},
"pnpm": {
"patchedDependencies": {
"stackframe@1.3.4": "patches/stackframe@1.3.4.patch"
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
},
"pnpm": {
"patchedDependencies": {
"stackframe@1.3.4": "patches/stackframe@1.3.4.patch"
}
}
}
Loading

0 comments on commit abd6d73

Please sign in to comment.