@saptools/cf-inspector 0.2.1 → 0.2.2
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.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ export SAP_PASSWORD=...
|
|
|
69
69
|
cf-inspector snapshot \
|
|
70
70
|
--region eu10 --org my-org --space dev --app my-srv \
|
|
71
71
|
--bp src/handler.ts:42 \
|
|
72
|
-
--remote-root 'regex:^/(home/vcap/app|
|
|
72
|
+
--remote-root 'regex:^/(home/vcap/app|example-root-.*)$'
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
The first form connects directly to `localhost:9229`. The second internally calls `@saptools/cf-debugger` to open the SSH tunnel, runs the snapshot through it, and tears the tunnel down on exit.
|
|
@@ -265,8 +265,8 @@ Path mapping uses CDP's first-class `urlRegex`:
|
|
|
265
265
|
| --- | --- |
|
|
266
266
|
| _omitted_ | `(?:^|/)src/handler\.(?:ts\|js)$` |
|
|
267
267
|
| `/home/vcap/app` (literal) | `^file:///home/vcap/app/src/handler\.(?:ts\|js)$` |
|
|
268
|
-
| `regex:^/
|
|
269
|
-
| `/^/
|
|
268
|
+
| `regex:^/example-root-.*$` | `^file:///example-root-[^/]+/src/handler\.(?:ts\|js)$` |
|
|
269
|
+
| `/^/example-root-.*$/` | same as above |
|
|
270
270
|
|
|
271
271
|
`.ts ↔ .js` is folded into the regex automatically because Node's V8 inspector normally serves both the source-mapped TypeScript URL and the runtime JavaScript URL — matching either is correct.
|
|
272
272
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saptools/cf-inspector",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Set breakpoints, capture variable snapshots, and evaluate expressions on a SAP BTP Cloud Foundry Node.js app via the Chrome DevTools Protocol — agent-friendly, no IDE required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|