nodexh 2.1.0 → 2.1.1

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.
Files changed (2) hide show
  1. package/package.json +3 -4
  2. package/pnpm-lock.yaml +38 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodexh",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "a wrapper around the `node` executable for better stacktraces with sourcemaps, sourcecode excerpts",
5
5
  "main": "lib/main.js",
6
6
  "bin": {
@@ -25,11 +25,10 @@
25
25
  "dependencies": {
26
26
  "cnd": "^9.1.0",
27
27
  "error-callsites": "^2.0.3",
28
- "load-source-map": "^2.0.0",
28
+ "load-source-map": "3.0.1",
29
29
  "stacktracey": "^2.0.14"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "coffee --map -o lib -c src"
33
- },
34
- "readme": "\n\n# NodeXH: NodeJS With a Better Exception Handler\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [What It Is](#what-it-is)\n- [How to Install](#how-to-install)\n- [How to Use](#how-to-use)\n- [What to Expect](#what-to-expect)\n- [Related](#related)\n- [To Do](#to-do)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## What It Is\n\nNodeXH is a drop-in wrapper for the NodeJS executable hat provides better stacktraces.\n\n## How to Install\n\n`npm install -g nodexh`\n\n## How to Use\n\nUse `nodexh path/to/file.js` instead of `node path/to/file.js`, and you're good to go.\n\n## What to Expect\n\n* Stack trace items will be reversed, so most recent calls will be shown *last*, i.e. also closest to where\n the cursor of your terminal is.\n* Stack traces will show source contexts (3 lines by default) except where files can not be opened or are\n NodeJS internals.\n* Source code shown will honor sourcemaps, which is great when you're using the likes of CoffeeScript or\n TypeScript.\n* The error message will be repeated to avoid having to scroll up when stack traces get longer.\n* Colors!\n\n## Related\n\n* https://github.com/mozilla/source-map/\n* https://sokra.github.io/source-map-visualization/\n* https://medium.com/@nodejs/source-maps-in-node-js-482872b56116:\n * \"In v13.7.0 a public API was introduced for interacting with source\n maps.\"—[link](https://nodejs.org/dist/latest-v14.x/docs/api/all.html#modules_source_map_v3_support)\n * \"You can start using Node.js’ source map functionality today: make sure you have an up-to-date version\n of Node.js installed, and run your programs with the flag --enable-source-maps.\"\n\n## To Do\n\n* [ ] Add `error.name`, `error.code`; where `node` reports `TypeError: TEMPLATES.main_2 is not a function`,\n `nodexh` only reports `EXCEPTION: TEMPLATES.main_2 is not a function`\n* [ ] visually indicate spot of error (e.g. by reversing)\n* [ ] fix async stacktraces (probably not yet handled correctly; might be issue with `stackman`?)\n* [ ] consider [utf8ize-sourcemaps](https://github.com/twada/utf8ize-sourcemaps) in case there should be\n problems w/ 32bit characters\n* [ ] truncate long lines in context\n* [ ] offer capabilities of NodeXH as API so applications (such as test libraries) can easily retrieve\n source code, display source lines with contexts\n\n\n\n"
33
+ }
35
34
  }
package/pnpm-lock.yaml CHANGED
@@ -1,15 +1,15 @@
1
- lockfileVersion: 5.3
1
+ lockfileVersion: 5.4
2
2
 
3
3
  specifiers:
4
4
  cnd: ^9.1.0
5
5
  error-callsites: ^2.0.3
6
- load-source-map: ^2.0.0
6
+ load-source-map: 3.0.1
7
7
  stacktracey: ^2.0.14
8
8
 
9
9
  dependencies:
10
10
  cnd: 9.2.2
11
11
  error-callsites: 2.0.4
12
- load-source-map: 2.0.0
12
+ load-source-map: 3.0.1
13
13
  stacktracey: 2.1.8
14
14
 
15
15
  packages:
@@ -47,25 +47,36 @@ packages:
47
47
  resolution: {integrity: sha512-uPc/Q90XqZoRE7Cu1OLFQB2cSrA2Dy8+okzPOtML8vbagNFDSipbndIPme+q0odBjEhL+wf3WH3Wo52was4Tsg==}
48
48
  dev: false
49
49
 
50
- /load-source-map/2.0.0:
51
- resolution: {integrity: sha512-QNZzJ2wMrTmCdeobMuMNEXHN1QGk8HG6louEkzD/zwQ7EU2RarrzlhQ4GnUYEFzLhK+Jq7IGyF/qy+XYBSO7AQ==}
52
- engines: {node: '>= 8'}
50
+ /load-source-map/3.0.1:
51
+ resolution: {integrity: sha512-TMYgVXwivT/VeOk0h+chnlhgCclG9xaB8v0Z07gOGDuvE1Vg60fW4NOIPMQ+h64jYYgfgenp0AsdczQWfRAoVw==}
52
+ engines: {node: '>=12'}
53
53
  dependencies:
54
- source-map: 0.7.3
54
+ source-map: 0.8.0-beta.0
55
+ dev: false
56
+
57
+ /lodash.sortby/4.7.0:
58
+ resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
55
59
  dev: false
56
60
 
57
61
  /printable-characters/1.0.42:
58
62
  resolution: {integrity: sha1-Pxjpd6m9jrN/zE/1ZZ176Qhos9g=}
59
63
  dev: false
60
64
 
65
+ /punycode/2.1.1:
66
+ resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==}
67
+ engines: {node: '>=6'}
68
+ dev: false
69
+
61
70
  /source-map/0.6.1:
62
71
  resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
63
72
  engines: {node: '>=0.10.0'}
64
73
  dev: false
65
74
 
66
- /source-map/0.7.3:
67
- resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==}
75
+ /source-map/0.8.0-beta.0:
76
+ resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
68
77
  engines: {node: '>= 8'}
78
+ dependencies:
79
+ whatwg-url: 7.1.0
69
80
  dev: false
70
81
 
71
82
  /stacktracey/2.1.8:
@@ -74,3 +85,21 @@ packages:
74
85
  as-table: 1.0.55
75
86
  get-source: 2.0.12
76
87
  dev: false
88
+
89
+ /tr46/1.0.1:
90
+ resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==}
91
+ dependencies:
92
+ punycode: 2.1.1
93
+ dev: false
94
+
95
+ /webidl-conversions/4.0.2:
96
+ resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}
97
+ dev: false
98
+
99
+ /whatwg-url/7.1.0:
100
+ resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==}
101
+ dependencies:
102
+ lodash.sortby: 4.7.0
103
+ tr46: 1.0.1
104
+ webidl-conversions: 4.0.2
105
+ dev: false