-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path@sentry+node+4.4.1.patch
31 lines (31 loc) · 1.44 KB
/
@sentry+node+4.4.1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/node_modules/@sentry/node/dist/integrations/console.js b/node_modules/@sentry/node/dist/integrations/console.js
index 98ef49a..81deb50 100644
--- a/node_modules/@sentry/node/dist/integrations/console.js
+++ b/node_modules/@sentry/node/dist/integrations/console.js
@@ -19,8 +19,6 @@ var Console = /** @class */ (function () {
Console.prototype.setupOnce = function () {
var nativeModule = require('module');
object_1.fill(nativeModule, '_load', loadWrapper(nativeModule));
- // special case: since console is built-in and app-level code won't require() it, do that here
- require('console');
};
/**
* @inheritDoc
diff --git a/node_modules/@sentry/node/dist/parsers.js b/node_modules/@sentry/node/dist/parsers.js
index 45e5984..3a14dc5 100644
--- a/node_modules/@sentry/node/dist/parsers.js
+++ b/node_modules/@sentry/node/dist/parsers.js
@@ -18,11 +18,11 @@ function getFunction(frame) {
return '<anonymous>';
}
}
-var mainModule = ((require.main && require.main.filename && path_1.dirname(require.main.filename)) ||
- global.process.cwd()) + "/";
/** JSDoc */
function getModule(filename, base) {
if (!base) {
+ var mainModule = ((require.main && require.main.filename && path_1.dirname(require.main.filename)) ||
+ global.process.cwd()) + "/";
base = mainModule; // tslint:disable-line:no-parameter-reassignment
}
// It's specifically a module