@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/cjs/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var fs = require('fs');
|
|
|
12
12
|
var os = require('os');
|
|
13
13
|
var crypto = require('crypto');
|
|
14
14
|
require('@sentry/tracing');
|
|
15
|
+
var module$1 = require('module');
|
|
15
16
|
var util = require('util');
|
|
16
17
|
var glob = require('glob');
|
|
17
18
|
var webpackSources = require('webpack-sources');
|
|
@@ -46,6 +47,7 @@ var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
|
46
47
|
var os__default = /*#__PURE__*/_interopDefaultLegacy(os);
|
|
47
48
|
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
48
49
|
var util__namespace = /*#__PURE__*/_interopNamespace(util);
|
|
50
|
+
var webpackSources__default = /*#__PURE__*/_interopDefaultLegacy(webpackSources);
|
|
49
51
|
|
|
50
52
|
function _regeneratorRuntime() {
|
|
51
53
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -1126,7 +1128,7 @@ function makeSentryClient(dsn, allowedToSendTelemetryPromise, userProject) {
|
|
|
1126
1128
|
// a dashboard.
|
|
1127
1129
|
// Yes, this is slightly abusing the purpose of this field.
|
|
1128
1130
|
dist: userProject,
|
|
1129
|
-
release: "0.7.
|
|
1131
|
+
release: "0.7.2",
|
|
1130
1132
|
integrations: [],
|
|
1131
1133
|
tracePropagationTargets: ["sentry.io/api"],
|
|
1132
1134
|
stackParser: node.defaultStackParser,
|
|
@@ -2148,11 +2150,13 @@ function _prepareSourceMapForDebugIdUpload() {
|
|
|
2148
2150
|
return _prepareSourceMapForDebugIdUpload.apply(this, arguments);
|
|
2149
2151
|
}
|
|
2150
2152
|
|
|
2151
|
-
var ALLOWED_TRANSFORMATION_FILE_ENDINGS = [".js", ".ts", ".jsx", ".tsx", ".mjs"];
|
|
2153
|
+
var ALLOWED_TRANSFORMATION_FILE_ENDINGS = [".js", ".ts", ".jsx", ".tsx", ".mjs"]; // Use createRequire because esm doesn't like built-in require.resolve
|
|
2152
2154
|
|
|
2153
|
-
var
|
|
2155
|
+
var require$1 = module$1.createRequire((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)));
|
|
2154
2156
|
|
|
2155
|
-
var
|
|
2157
|
+
var releaseInjectionFilePath = require$1.resolve("@sentry/bundler-plugin-core/sentry-release-injection-file");
|
|
2158
|
+
|
|
2159
|
+
var esbuildDebugIdInjectionFilePath = require$1.resolve("@sentry/bundler-plugin-core/sentry-esbuild-debugid-injection-file");
|
|
2156
2160
|
/**
|
|
2157
2161
|
* The sentry bundler plugin concerns itself with two things:
|
|
2158
2162
|
* - Release injection
|
|
@@ -2727,7 +2731,7 @@ var unplugin = unplugin$1.createUnplugin(function (userOptions, unpluginMetaCont
|
|
|
2727
2731
|
newSourceMap.sources = originalSourceMap.sources; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
2728
2732
|
|
|
2729
2733
|
newSourceMap.sourcesContent = originalSourceMap.sourcesContent;
|
|
2730
|
-
var newSource = new
|
|
2734
|
+
var newSource = new webpackSources__default["default"].SourceMapSource(newCode, fileName, // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
2731
2735
|
originalSourceMap, originalCode, newSourceMap, false);
|
|
2732
2736
|
cache.set(oldSource, newSource);
|
|
2733
2737
|
return newSource;
|