@sentry/bundler-plugin-core 0.7.0 → 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 +9 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +7 -4
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -10,10 +10,11 @@ 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';
|
|
16
|
-
import
|
|
17
|
+
import webpackSources from 'webpack-sources';
|
|
17
18
|
|
|
18
19
|
function _regeneratorRuntime() {
|
|
19
20
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -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
|
|
|
@@ -2695,7 +2698,7 @@ var unplugin = createUnplugin(function (userOptions, unpluginMetaContext) {
|
|
|
2695
2698
|
newSourceMap.sources = originalSourceMap.sources; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
2696
2699
|
|
|
2697
2700
|
newSourceMap.sourcesContent = originalSourceMap.sourcesContent;
|
|
2698
|
-
var newSource = new SourceMapSource(newCode, fileName, // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
2701
|
+
var newSource = new webpackSources.SourceMapSource(newCode, fileName, // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
2699
2702
|
originalSourceMap, originalCode, newSourceMap, false);
|
|
2700
2703
|
cache.set(oldSource, newSource);
|
|
2701
2704
|
return newSource;
|