stacktrace-parser
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -5,12 +5,53 @@ { | ||
"description": "Parses every stack trace into a nicely formatted array of hashes.", | ||
"keywords": ["errors", "stacktrace", "parser", "exceptions"], | ||
"version": "0.1.4", | ||
"dependencies": {}, | ||
"main": "dist/stack-trace-parser.cjs.js", | ||
"module": "dist/stack-trace-parser.esm.js", | ||
"browser": "dist/stack-trace-parser.umd.js", | ||
"types": "dist/stack-trace-parser.d.ts", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"dev": "rollup -c -w", | ||
"dist": "rollup -c && cpy --rename stack-trace-parser.d.ts src/index.d.ts dist/ && cpy --rename stack-trace-parser.test-d.ts src/index.test-d.ts dist/", | ||
"prepublish": "npm run dist", | ||
"pretest": "npm run dist", | ||
"test": "mocha --require ./mocha-babel-hook 'test/**/*.spec.js' && tsd", | ||
"lint": "eslint --fix '{src,test}/**/*.js'" | ||
}, | ||
"keywords": [ | ||
"errors", | ||
"stacktrace", | ||
"parser", | ||
"exceptions" | ||
], | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"version": "0.1.5", | ||
"files": [ | ||
"dist/stack-trace-parser.cjs.js", | ||
"dist/stack-trace-parser.esm.js", | ||
"dist/stack-trace-parser.umd.js", | ||
"dist/stack-trace-parser.d.ts", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"dependencies": { | ||
"type-fest": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*", | ||
"should": "*", | ||
"expect.js": "*", | ||
"grunt-cli": "~0.1.13", | ||
"grunt": "~0.4.2", | ||
"grunt-shell-spawn": "~0.3.0" | ||
"@babel/core": "^7.4.3", | ||
"@babel/preset-env": "^7.4.3", | ||
"@babel/register": "^7.4.0", | ||
"cpy-cli": "^2.0.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.1.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"expect.js": "^0.3.1", | ||
"mocha": "^6.0.2", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.8.0", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"tsd": "^0.7.2" | ||
}, | ||
@@ -25,7 +66,3 @@ "homepage": "https://github.com/errwischt/stacktrace-parser", | ||
}, | ||
"license": "MIT", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/grunt test" | ||
} | ||
"license": "MIT" | ||
} |
@@ -0,1 +1,3 @@ | ||
[![Build Status][build-image]][build-url] [![dependencies][deps-image]][deps-url] [![dev-dependencies][dev-deps-image]][dev-deps-url] | ||
# StackTrace-Parser | ||
@@ -8,14 +10,15 @@ | ||
``` JavaScript | ||
import * as stackTraceParser from 'stacktrace-parser'; | ||
try { | ||
throw new Error('My error'); | ||
} catch(ex) { | ||
var lines = StackTraceParser.parse(ex.stack); | ||
const stack = stackTraceParser.parse(ex.stack); | ||
} | ||
``` | ||
Every line contains four properties: `lineNumber`, `methodName`, `file` and `column` (if applicable). | ||
Every line contains four properties: `lineNumber`, `methodName`, `arguments`, `file` and `column` (if applicable). | ||
## TODOs | ||
- allow to run in browser (v0.2) | ||
- parse stack traces from other sources (Ruby, etc) (v0.3) | ||
@@ -25,3 +28,4 @@ | ||
If you want to contrib, then do you thing, write tests, run `grunt test` ensure that everything is green , commit and make the pull request. Or just write an issue, or let's talk. | ||
If you want to contrib, then do you thing, write tests, run `npm run test` ensure that everything is green, | ||
commit and make the pull request. Or just write an issue, or let's talk. | ||
@@ -33,25 +37,14 @@ ## Contributors | ||
- [Alexander Kotliarskyi](https://github.com/frantic) | ||
- [Dimitri Benin](https://github.com/BendingBender) | ||
## LICENSE | ||
The MIT License (MIT) | ||
[The MIT License (MIT)](https://github.com/errwischt/stacktrace-parser/blob/master/LICENSE) | ||
Copyright (c) 2014-2015 Georg Tavonius | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
[build-image]: https://img.shields.io/travis/errwischt/stacktrace-parser/master.svg?style=flat-square | ||
[build-url]: https://travis-ci.org/errwischt/stacktrace-parser | ||
[deps-image]: https://img.shields.io/david/errwischt/stacktrace-parser.svg?style=flat-square | ||
[deps-url]: https://david-dm.org/errwischt/stacktrace-parser | ||
[dev-deps-image]: https://img.shields.io/david/dev/errwischt/stacktrace-parser.svg?style=flat-square | ||
[dev-deps-url]: https://david-dm.org/errwischt/stacktrace-parser?type=dev |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15189
1
16
7
297
48
1
+ Addedtype-fest@^0.3.0
+ Addedtype-fest@0.3.1(transitive)