@spotlightjs/spotlight 2.9.0 → 2.10.0
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/bin/instrument.js +3 -2
- package/bin/run.js +2 -1
- package/dist/overlay/assets/main.js +73 -73
- package/dist/spotlight.cjs +37 -36
- package/package.json +4 -4
package/bin/instrument.js
CHANGED
|
@@ -3,7 +3,7 @@ import { init } from '@sentry/node';
|
|
|
3
3
|
init({
|
|
4
4
|
dsn: 'https://51bcd92dba1128934afd1c5726c84442@o1.ingest.us.sentry.io/4508404727283713',
|
|
5
5
|
environment: process.env.NODE_ENV || 'development',
|
|
6
|
-
release: process.env.npm_package_version
|
|
6
|
+
release: `spotlight@${process.env.npm_package_version}`,
|
|
7
7
|
debug: Boolean(process.env.SENTRY_DEBUG),
|
|
8
8
|
|
|
9
9
|
tracesSampleRate: 1,
|
|
@@ -28,7 +28,8 @@ init({
|
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
const homeDir = process.env.HOME || process.env.USERPROFILE;
|
|
32
|
+
frame.filename = frame.filename?.replace(homeDir, '~');
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
package/bin/run.js
CHANGED
|
@@ -17,10 +17,11 @@ try {
|
|
|
17
17
|
sea = { isSea: () => false };
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
const homeDir = process.env.HOME || process.env.USERPROFILE;
|
|
20
21
|
setContext('CLI', {
|
|
21
22
|
sea: sea.isSea(),
|
|
22
23
|
// TODO: Be less naive with path obscuring
|
|
23
|
-
argv: process.argv.map(arg => arg.replace(
|
|
24
|
+
argv: process.argv.map(arg => arg.replace(homeDir, '~')),
|
|
24
25
|
});
|
|
25
26
|
|
|
26
27
|
const withTracing =
|