@sentry/bundler-plugin-core 2.5.0 → 2.6.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/dist/cjs/index.js +23 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +23 -18
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/debug-id-upload.d.ts +1 -1
- package/dist/types/debug-id-upload.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugins/release-management.d.ts +1 -1
- package/dist/types/plugins/release-management.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -1300,7 +1300,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
|
|
|
1300
1300
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
1301
1301
|
tracesSampleRate: 1,
|
|
1302
1302
|
sampleRate: 1,
|
|
1303
|
-
release: "2.
|
|
1303
|
+
release: "2.6.0",
|
|
1304
1304
|
integrations: [],
|
|
1305
1305
|
tracePropagationTargets: ["sentry.io/api"],
|
|
1306
1306
|
stackParser: node.defaultStackParser,
|
|
@@ -1530,7 +1530,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
1530
1530
|
});
|
|
1531
1531
|
|
|
1532
1532
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
1533
|
-
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.
|
|
1533
|
+
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.6.0");
|
|
1534
1534
|
function handleRecoverableError(unknownError) {
|
|
1535
1535
|
sentrySession.status = "abnormal";
|
|
1536
1536
|
try {
|
|
@@ -1600,7 +1600,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
1600
1600
|
logger.warn("No release name provided. Will not create release. Please set the `release.name` option to identify your release.");
|
|
1601
1601
|
} else if (!options.authToken) {
|
|
1602
1602
|
logger.warn("No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
|
|
1603
|
-
} else if (!options.org) {
|
|
1603
|
+
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
|
|
1604
1604
|
logger.warn("No organization slug provided. Will not create release. Please set the `org` option to your Sentry organization slug.");
|
|
1605
1605
|
} else if (!options.project) {
|
|
1606
1606
|
logger.warn("No project provided. Will not create release. Please set the `project` option to your Sentry project slug.");
|
|
@@ -1632,7 +1632,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
1632
1632
|
plugins.push(debugIdInjectionPlugin());
|
|
1633
1633
|
if (!options.authToken) {
|
|
1634
1634
|
logger.warn("No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
|
|
1635
|
-
} else if (!options.org) {
|
|
1635
|
+
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
|
|
1636
1636
|
logger.warn("No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug.");
|
|
1637
1637
|
} else if (!options.project) {
|
|
1638
1638
|
logger.warn("No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug.");
|
|
@@ -1785,35 +1785,40 @@ function createRollupDebugIdUploadHooks(upload) {
|
|
|
1785
1785
|
while (1) switch (_context.prev = _context.next) {
|
|
1786
1786
|
case 0:
|
|
1787
1787
|
if (!outputOptions.dir) {
|
|
1788
|
-
_context.next =
|
|
1788
|
+
_context.next = 9;
|
|
1789
1789
|
break;
|
|
1790
1790
|
}
|
|
1791
1791
|
outputDir = outputOptions.dir;
|
|
1792
|
-
|
|
1793
|
-
|
|
1792
|
+
_context.next = 4;
|
|
1793
|
+
return glob.glob(["/**/*.js", "/**/*.js.map"], {
|
|
1794
|
+
root: outputDir,
|
|
1795
|
+
absolute: true,
|
|
1796
|
+
nodir: true
|
|
1794
1797
|
});
|
|
1795
|
-
|
|
1798
|
+
case 4:
|
|
1799
|
+
_buildArtifacts = _context.sent;
|
|
1800
|
+
_context.next = 7;
|
|
1796
1801
|
return upload(_buildArtifacts);
|
|
1797
|
-
case 5:
|
|
1798
|
-
_context.next = 15;
|
|
1799
|
-
break;
|
|
1800
1802
|
case 7:
|
|
1803
|
+
_context.next = 17;
|
|
1804
|
+
break;
|
|
1805
|
+
case 9:
|
|
1801
1806
|
if (!outputOptions.file) {
|
|
1802
|
-
_context.next =
|
|
1807
|
+
_context.next = 14;
|
|
1803
1808
|
break;
|
|
1804
1809
|
}
|
|
1805
|
-
_context.next =
|
|
1810
|
+
_context.next = 12;
|
|
1806
1811
|
return upload([outputOptions.file]);
|
|
1807
|
-
case 10:
|
|
1808
|
-
_context.next = 15;
|
|
1809
|
-
break;
|
|
1810
1812
|
case 12:
|
|
1813
|
+
_context.next = 17;
|
|
1814
|
+
break;
|
|
1815
|
+
case 14:
|
|
1811
1816
|
_buildArtifacts2 = Object.keys(bundle).map(function (asset) {
|
|
1812
1817
|
return path__namespace.join(path__namespace.resolve(), asset);
|
|
1813
1818
|
});
|
|
1814
|
-
_context.next =
|
|
1819
|
+
_context.next = 17;
|
|
1815
1820
|
return upload(_buildArtifacts2);
|
|
1816
|
-
case
|
|
1821
|
+
case 17:
|
|
1817
1822
|
case "end":
|
|
1818
1823
|
return _context.stop();
|
|
1819
1824
|
}
|