@sentry/bundler-plugin-core 0.7.1 → 0.7.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/dist/cjs/index.js +7 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +5 -2
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import fs__default from 'fs';
|
|
|
10
10
|
import os from 'os';
|
|
11
11
|
import crypto from 'crypto';
|
|
12
12
|
import '@sentry/tracing';
|
|
13
|
+
import { createRequire } from 'module';
|
|
13
14
|
import * as util from 'util';
|
|
14
15
|
import { promisify } from 'util';
|
|
15
16
|
import { glob } from 'glob';
|
|
@@ -1094,7 +1095,7 @@ function makeSentryClient(dsn, allowedToSendTelemetryPromise, userProject) {
|
|
|
1094
1095
|
// a dashboard.
|
|
1095
1096
|
// Yes, this is slightly abusing the purpose of this field.
|
|
1096
1097
|
dist: userProject,
|
|
1097
|
-
release: "0.7.
|
|
1098
|
+
release: "0.7.2",
|
|
1098
1099
|
integrations: [],
|
|
1099
1100
|
tracePropagationTargets: ["sentry.io/api"],
|
|
1100
1101
|
stackParser: defaultStackParser,
|
|
@@ -2116,7 +2117,9 @@ function _prepareSourceMapForDebugIdUpload() {
|
|
|
2116
2117
|
return _prepareSourceMapForDebugIdUpload.apply(this, arguments);
|
|
2117
2118
|
}
|
|
2118
2119
|
|
|
2119
|
-
var ALLOWED_TRANSFORMATION_FILE_ENDINGS = [".js", ".ts", ".jsx", ".tsx", ".mjs"];
|
|
2120
|
+
var ALLOWED_TRANSFORMATION_FILE_ENDINGS = [".js", ".ts", ".jsx", ".tsx", ".mjs"]; // Use createRequire because esm doesn't like built-in require.resolve
|
|
2121
|
+
|
|
2122
|
+
var require = createRequire(import.meta.url);
|
|
2120
2123
|
|
|
2121
2124
|
var releaseInjectionFilePath = require.resolve("@sentry/bundler-plugin-core/sentry-release-injection-file");
|
|
2122
2125
|
|