@sentry/bundler-plugins 11.17.0 → 11.19.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/build/cjs/core/build-plugin-manager.js +4 -10
- package/build/cjs/core/build-plugin-manager.js.map +1 -1
- package/build/cjs/core/debug-id-upload.js +1 -1
- package/build/cjs/core/debug-id-upload.js.map +1 -1
- package/build/cjs/core/index.js +3 -2
- package/build/cjs/core/index.js.map +1 -1
- package/build/cjs/core/options-mapping.js +3 -6
- package/build/cjs/core/options-mapping.js.map +1 -1
- package/build/cjs/core/sentry/telemetry.js +1 -1
- package/build/cjs/core/sentry/telemetry.js.map +1 -1
- package/build/cjs/core/sourcemap-settings.js +26 -22
- package/build/cjs/core/sourcemap-settings.js.map +1 -1
- package/build/cjs/core/upload-credentials.js +49 -0
- package/build/cjs/core/upload-credentials.js.map +1 -0
- package/build/cjs/core/version.js +1 -1
- package/build/cjs/core/version.js.map +1 -1
- package/build/cjs/vite/source-map-hooks.js +1 -1
- package/build/cjs/vite/source-map-hooks.js.map +1 -1
- package/build/esm/core/build-plugin-manager.js +4 -9
- package/build/esm/core/build-plugin-manager.js.map +1 -1
- package/build/esm/core/debug-id-upload.js +1 -1
- package/build/esm/core/debug-id-upload.js.map +1 -1
- package/build/esm/core/index.js +3 -2
- package/build/esm/core/index.js.map +1 -1
- package/build/esm/core/options-mapping.js +4 -7
- package/build/esm/core/options-mapping.js.map +1 -1
- package/build/esm/core/sentry/telemetry.js +1 -1
- package/build/esm/core/sentry/telemetry.js.map +1 -1
- package/build/esm/core/sourcemap-settings.js +26 -21
- package/build/esm/core/sourcemap-settings.js.map +1 -1
- package/build/esm/core/upload-credentials.js +42 -0
- package/build/esm/core/upload-credentials.js.map +1 -0
- package/build/esm/core/version.js +1 -1
- package/build/esm/core/version.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/vite/source-map-hooks.js +2 -2
- package/build/esm/vite/source-map-hooks.js.map +1 -1
- package/build/types/core/build-plugin-manager.d.ts.map +1 -1
- package/build/types/core/debug-id-upload.d.ts.map +1 -1
- package/build/types/core/index.d.ts +2 -1
- package/build/types/core/index.d.ts.map +1 -1
- package/build/types/core/options-mapping.d.ts +2 -2
- package/build/types/core/options-mapping.d.ts.map +1 -1
- package/build/types/core/sentry/telemetry.d.ts.map +1 -1
- package/build/types/core/sourcemap-settings.d.ts +8 -6
- package/build/types/core/sourcemap-settings.d.ts.map +1 -1
- package/build/types/core/types.d.ts +14 -11
- package/build/types/core/types.d.ts.map +1 -1
- package/build/types/core/upload-credentials.d.ts +18 -0
- package/build/types/core/upload-credentials.d.ts.map +1 -0
- package/build/types/core/version.d.ts +1 -1
- package/build/types/vite/source-map-hooks.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","names":[],"sources":["../../../../src/core/sentry/telemetry.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport type { ServerRuntimeClientOptions } from '@sentry/core/server';\nimport { applySdkMetadata } from '@sentry/core';\nimport { ServerRuntimeClient } from '@sentry/core/server';\nimport type { NormalizedOptions } from '../options-mapping';\nimport { SENTRY_SAAS_URL } from '../options-mapping';\nimport { Scope } from '@sentry/core';\nimport { createStackParser } from '@sentry/core';\nimport { nodeStackLineParser } from '@sentry/core/server';\nimport { makeOptionallyEnabledNodeTransport } from './transports';\nimport { SentryCliAdapter } from '../cli';\nimport { LIB_VERSION } from '../version';\n\nconst SENTRY_SAAS_HOSTNAME = 'sentry.io';\n\nconst stackParser = createStackParser(nodeStackLineParser());\n\nexport function createSentryInstance(\n options: NormalizedOptions,\n shouldSendTelemetry: Promise<boolean>,\n buildTool: string,\n buildToolMajorVersion: string | undefined,\n): { sentryScope: Scope; sentryClient: Client } {\n const clientOptions: ServerRuntimeClientOptions = {\n platform: 'node',\n runtime: { name: 'node', version: global.process.version },\n\n dsn: 'https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737',\n\n tracesSampleRate: 0.3,\n traceLifecycle: 'static',\n sampleRate: 1,\n\n release: LIB_VERSION,\n integrations: [],\n tracePropagationTargets: ['sentry.io/api'],\n\n stackParser,\n\n beforeSend: event => {\n event.exception?.values?.forEach(exception => {\n delete exception.stacktrace;\n });\n\n delete event.server_name; // Server name might contain PII\n return event;\n },\n\n // Deprecated, but still applied because this client runs on the static trace lifecycle.\n // oxlint-disable-next-line typescript/no-deprecated\n beforeSendTransaction: event => {\n delete event.server_name; // Server name might contain PII\n return event;\n },\n\n // We create a transport that stalls sending events until we know that we're allowed to (i.e. when Sentry CLI told\n // us that the upload URL is the Sentry SaaS URL)\n transport: makeOptionallyEnabledNodeTransport(shouldSendTelemetry),\n };\n\n applySdkMetadata(clientOptions, 'node');\n\n const client = new ServerRuntimeClient(clientOptions);\n const scope = new Scope();\n scope.setClient(client);\n\n // Integration tests snapshot the emitted transaction, so the sampling decision must not depend on chance.\n if (process.env['SENTRY_TEST_OUT_DIR']) {\n scope.setPropagationContext({ ...scope.getPropagationContext(), sampleRand: 0 });\n }\n\n setTelemetryDataOnScope(options, scope, buildTool, buildToolMajorVersion);\n\n return { sentryScope: scope, sentryClient: client };\n}\n\nexport function setTelemetryDataOnScope(\n options: NormalizedOptions,\n scope: Scope,\n buildTool: string,\n buildToolMajorVersion?: string,\n): void {\n const { org, project, release, errorHandler, sourcemaps, reactComponentAnnotation } = options;\n\n scope.setTag('upload-legacy-sourcemaps', !!release.uploadLegacySourcemaps);\n if (release.uploadLegacySourcemaps) {\n scope.setTag(\n 'uploadLegacySourcemapsEntries',\n Array.isArray(release.uploadLegacySourcemaps) ? release.uploadLegacySourcemaps.length : 1,\n );\n }\n\n scope.setTag('module-metadata', !!options.moduleMetadata);\n scope.setTag('inject-build-information', !!options._experiments.injectBuildInformation);\n\n // Optional release pipeline steps\n if (release.setCommits) {\n scope.setTag('set-commits', release.setCommits.auto === true ? 'auto' : 'manual');\n } else {\n scope.setTag('set-commits', 'undefined');\n }\n scope.setTag('finalize-release', release.finalize);\n scope.setTag('deploy-options', !!release.deploy);\n\n // Miscellaneous options\n scope.setTag('custom-error-handler', !!errorHandler);\n scope.setTag('sourcemaps-assets', !!sourcemaps?.assets);\n scope.setTag('delete-after-upload', !!sourcemaps?.filesToDeleteAfterUpload);\n scope.setTag(\n 'delete-sourcemaps-after-upload',\n
|
|
1
|
+
{"version":3,"file":"telemetry.js","names":[],"sources":["../../../../src/core/sentry/telemetry.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport type { ServerRuntimeClientOptions } from '@sentry/core/server';\nimport { applySdkMetadata } from '@sentry/core';\nimport { ServerRuntimeClient } from '@sentry/core/server';\nimport type { NormalizedOptions } from '../options-mapping';\nimport { SENTRY_SAAS_URL } from '../options-mapping';\nimport { Scope } from '@sentry/core';\nimport { createStackParser } from '@sentry/core';\nimport { nodeStackLineParser } from '@sentry/core/server';\nimport { makeOptionallyEnabledNodeTransport } from './transports';\nimport { SentryCliAdapter } from '../cli';\nimport { LIB_VERSION } from '../version';\n\nconst SENTRY_SAAS_HOSTNAME = 'sentry.io';\n\nconst stackParser = createStackParser(nodeStackLineParser());\n\nexport function createSentryInstance(\n options: NormalizedOptions,\n shouldSendTelemetry: Promise<boolean>,\n buildTool: string,\n buildToolMajorVersion: string | undefined,\n): { sentryScope: Scope; sentryClient: Client } {\n const clientOptions: ServerRuntimeClientOptions = {\n platform: 'node',\n runtime: { name: 'node', version: global.process.version },\n\n dsn: 'https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737',\n\n tracesSampleRate: 0.3,\n traceLifecycle: 'static',\n sampleRate: 1,\n\n release: LIB_VERSION,\n integrations: [],\n tracePropagationTargets: ['sentry.io/api'],\n\n stackParser,\n\n beforeSend: event => {\n event.exception?.values?.forEach(exception => {\n delete exception.stacktrace;\n });\n\n delete event.server_name; // Server name might contain PII\n return event;\n },\n\n // Deprecated, but still applied because this client runs on the static trace lifecycle.\n // oxlint-disable-next-line typescript/no-deprecated\n beforeSendTransaction: event => {\n delete event.server_name; // Server name might contain PII\n return event;\n },\n\n // We create a transport that stalls sending events until we know that we're allowed to (i.e. when Sentry CLI told\n // us that the upload URL is the Sentry SaaS URL)\n transport: makeOptionallyEnabledNodeTransport(shouldSendTelemetry),\n };\n\n applySdkMetadata(clientOptions, 'node');\n\n const client = new ServerRuntimeClient(clientOptions);\n const scope = new Scope();\n scope.setClient(client);\n\n // Integration tests snapshot the emitted transaction, so the sampling decision must not depend on chance.\n if (process.env['SENTRY_TEST_OUT_DIR']) {\n scope.setPropagationContext({ ...scope.getPropagationContext(), sampleRand: 0 });\n }\n\n setTelemetryDataOnScope(options, scope, buildTool, buildToolMajorVersion);\n\n return { sentryScope: scope, sentryClient: client };\n}\n\nexport function setTelemetryDataOnScope(\n options: NormalizedOptions,\n scope: Scope,\n buildTool: string,\n buildToolMajorVersion?: string,\n): void {\n const { org, project, release, errorHandler, sourcemaps, reactComponentAnnotation } = options;\n\n scope.setTag('upload-legacy-sourcemaps', !!release.uploadLegacySourcemaps);\n if (release.uploadLegacySourcemaps) {\n scope.setTag(\n 'uploadLegacySourcemapsEntries',\n Array.isArray(release.uploadLegacySourcemaps) ? release.uploadLegacySourcemaps.length : 1,\n );\n }\n\n scope.setTag('module-metadata', !!options.moduleMetadata);\n scope.setTag('inject-build-information', !!options._experiments.injectBuildInformation);\n\n // Optional release pipeline steps\n if (release.setCommits) {\n scope.setTag('set-commits', release.setCommits.auto === true ? 'auto' : 'manual');\n } else {\n scope.setTag('set-commits', 'undefined');\n }\n scope.setTag('finalize-release', release.finalize);\n scope.setTag('deploy-options', !!release.deploy);\n\n // Miscellaneous options\n scope.setTag('custom-error-handler', !!errorHandler);\n scope.setTag('sourcemaps-assets', !!sourcemaps?.assets);\n scope.setTag('delete-after-upload', !!sourcemaps?.filesToDeleteAfterUpload);\n scope.setTag(\n 'delete-sourcemaps-after-upload',\n sourcemaps?.deleteSourcemapsAfterUpload === undefined ? 'auto' : String(sourcemaps.deleteSourcemapsAfterUpload),\n );\n scope.setTag('sourcemaps-disabled', !!sourcemaps?.disable);\n scope.setTag('sourcemaps-upload', sourcemaps?.upload === undefined ? 'auto' : String(sourcemaps.upload));\n scope.setTag(\n 'sourcemaps-inject-debug-ids',\n sourcemaps?.injectDebugIds === undefined ? 'auto' : String(sourcemaps.injectDebugIds),\n );\n scope.setTag('sourcemaps-delete', sourcemaps?.delete === undefined ? 'auto' : String(sourcemaps.delete));\n\n scope.setTag('react-annotate', !!reactComponentAnnotation?.enabled);\n\n scope.setTag('node', process.version);\n scope.setTag('platform', process.platform);\n\n scope.setTag('meta-framework', options._metaOptions.telemetry.metaFramework ?? 'none');\n\n scope.setTag('application-key-set', options.applicationKey !== undefined);\n\n scope.setTag('ci', !!process.env['CI']);\n\n scope.setTags({\n organization: org,\n project: Array.isArray(project) ? project.join(', ') : (project ?? 'undefined'),\n bundler: buildTool,\n });\n\n if (buildToolMajorVersion) {\n scope.setTag('bundler-major-version', buildToolMajorVersion);\n }\n\n scope.setUser({ id: org });\n}\n\nexport async function allowedToSendTelemetry(options: NormalizedOptions): Promise<boolean> {\n const { telemetry } = options;\n const url = options.url ?? SENTRY_SAAS_URL;\n\n // `options.telemetry` defaults to true\n if (telemetry === false) {\n return false;\n }\n\n if (url === SENTRY_SAAS_URL) {\n return true;\n }\n\n // Ask the CLI which Sentry server URL it resolves to. This can differ from the default (or the\n // configured `url`) because the CLI also honors a possibly existing `.sentryclirc` file.\n const cliInfoUrl = await new SentryCliAdapter(options).getServerUrl();\n\n if (cliInfoUrl === undefined) {\n return false;\n }\n\n return new URL(cliInfoUrl).hostname === SENTRY_SAAS_HOSTNAME;\n}\n\n/**\n * Flushing the SDK client can fail. We never want to crash the plugin because of telemetry.\n */\nexport async function safeFlushTelemetry(sentryClient: Client): Promise<void> {\n try {\n await sentryClient.flush(2000);\n } catch {\n // Noop when flushing fails.\n // We don't even need to log anything because there's likely nothing the user can do and they likely will not care.\n }\n}\n"],"mappings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;AAEA,eAAsB,uBAAuB,SAA8C;CACzF,MAAM,EAAE,cAAc;CACtB,MAAM,MAAM,QAAQ,OAAA;CAGpB,IAAI,cAAc,OAChB,OAAO;CAGT,IAAI,QAAA,qBACF,OAAO;CAKT,MAAM,aAAa,MAAM,IAAI,iBAAiB,OAAO,CAAC,CAAC,aAAa;CAEpE,IAAI,eAAe,KAAA,GACjB,OAAO;CAGT,OAAO,IAAI,IAAI,UAAU,CAAC,CAAC,aAAa;AAC1C;;;;AAKA,eAAsB,mBAAmB,cAAqC;CAC5E,IAAI;EACF,MAAM,aAAa,MAAM,GAAI;CAC/B,QAAQ,CAGR;AACF"}
|
|
@@ -18,33 +18,35 @@ function getSourceMapFeatures(options) {
|
|
|
18
18
|
stampEmittedFiles: injectDebugIds && !upload
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
/** Reads `sourcemaps.
|
|
22
|
-
function
|
|
23
|
-
const value = options.sourcemaps?.
|
|
21
|
+
/** Reads the internal `sourcemaps.sdkDeleteSourceMaps` option, calling its function form if given. */
|
|
22
|
+
function getSdkDeleteSourceMaps(options, environment) {
|
|
23
|
+
const value = options.sourcemaps?.sdkDeleteSourceMaps;
|
|
24
24
|
return typeof value === "function" ? value(environment) : value;
|
|
25
25
|
}
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Reads `sourcemaps.delete`. When it is unset, `sourcemaps.deleteSourcemapsAfterUpload` decides, and
|
|
28
|
+
* then the SDK.
|
|
29
|
+
*/
|
|
27
30
|
function getDeleteOption(options, environment) {
|
|
28
|
-
return options.sourcemaps?.delete ??
|
|
29
|
-
}
|
|
30
|
-
/** Reads the internal `sourcemaps.sdkEnabledSourceMaps` option, calling its function form if given. */
|
|
31
|
-
function getSdkEnabledSourceMaps(options, environment) {
|
|
32
|
-
const value = options.sourcemaps?.sdkEnabledSourceMaps;
|
|
33
|
-
return (typeof value === "function" ? value(environment) : value) === true;
|
|
31
|
+
return options.sourcemaps?.delete ?? options.sourcemaps?.deleteSourcemapsAfterUpload ?? getSdkDeleteSourceMaps(options, environment);
|
|
34
32
|
}
|
|
35
33
|
/**
|
|
36
34
|
* Decides whether the plugin turns hidden source maps on and whether it removes the maps from the
|
|
37
35
|
* build output after the upload. The plugin only turns maps on when an upload can run, and only
|
|
38
|
-
* removes maps it turned on itself unless `deleteSourcemapsAfterUpload`
|
|
36
|
+
* removes maps it turned on itself unless `deleteSourcemapsAfterUpload` or the SDK's
|
|
37
|
+
* `sdkDeleteSourceMaps` says otherwise. The user's `deleteSourcemapsAfterUpload` wins over the SDK.
|
|
39
38
|
*/
|
|
40
39
|
function decideSourceMapHandling(kind, options, uploadPossible, environment) {
|
|
41
40
|
const features = getSourceMapFeatures(options);
|
|
42
41
|
if (options.sourcemaps?.delete !== void 0) return decideWithDeleteOption(kind, options.sourcemaps.delete, features, uploadPossible);
|
|
43
|
-
const
|
|
44
|
-
const
|
|
42
|
+
const userDeleteOption = options.sourcemaps?.deleteSourcemapsAfterUpload;
|
|
43
|
+
const sdkDeleteOption = getSdkDeleteSourceMaps(options, environment);
|
|
44
|
+
const deleteOption = userDeleteOption ?? sdkDeleteOption;
|
|
45
|
+
const sdkRemovesAll = sdkDeleteOption === true;
|
|
46
|
+
const fromUser = userDeleteOption !== void 0;
|
|
45
47
|
if (!uploadPossible || !features.upload) {
|
|
46
48
|
if (deleteOption !== true || kind !== "hidden" && kind !== "visible") return NO_CHANGE;
|
|
47
|
-
if (!features.upload && !
|
|
49
|
+
if (!features.upload && !sdkRemovesAll) return {
|
|
48
50
|
...NO_CHANGE,
|
|
49
51
|
log: {
|
|
50
52
|
level: "warn",
|
|
@@ -54,10 +56,13 @@ function decideSourceMapHandling(kind, options, uploadPossible, environment) {
|
|
|
54
56
|
return {
|
|
55
57
|
enableHidden: kind === "visible",
|
|
56
58
|
deleteAfterUpload: true,
|
|
57
|
-
removeAllSourceMaps:
|
|
58
|
-
log: {
|
|
59
|
+
removeAllSourceMaps: sdkRemovesAll,
|
|
60
|
+
log: fromUser ? {
|
|
59
61
|
level: "warn",
|
|
60
62
|
message: "Source maps are not uploaded, but they are removed from the build output because `sourcemaps.deleteSourcemapsAfterUpload` is set."
|
|
63
|
+
} : {
|
|
64
|
+
level: "info",
|
|
65
|
+
message: "Source maps are not uploaded, but the Sentry SDK removes them from the build output."
|
|
61
66
|
}
|
|
62
67
|
};
|
|
63
68
|
}
|
|
@@ -91,7 +96,7 @@ function decideSourceMapHandling(kind, options, uploadPossible, environment) {
|
|
|
91
96
|
removeAllSourceMaps: true,
|
|
92
97
|
log: {
|
|
93
98
|
level: "info",
|
|
94
|
-
message: "Enabling hidden source maps. They are uploaded to Sentry and removed from the build output. Set `sourcemaps.
|
|
99
|
+
message: "Enabling hidden source maps. They are uploaded to Sentry and removed from the build output. Set `sourcemaps.delete: false` to keep them."
|
|
95
100
|
}
|
|
96
101
|
};
|
|
97
102
|
case "hidden":
|
|
@@ -99,17 +104,17 @@ function decideSourceMapHandling(kind, options, uploadPossible, environment) {
|
|
|
99
104
|
return {
|
|
100
105
|
enableHidden: false,
|
|
101
106
|
deleteAfterUpload: true,
|
|
102
|
-
removeAllSourceMaps:
|
|
107
|
+
removeAllSourceMaps: sdkRemovesAll
|
|
103
108
|
};
|
|
104
109
|
case "visible":
|
|
105
110
|
if (deleteOption !== true) return NO_CHANGE;
|
|
106
111
|
return {
|
|
107
112
|
enableHidden: true,
|
|
108
113
|
deleteAfterUpload: true,
|
|
109
|
-
removeAllSourceMaps:
|
|
114
|
+
removeAllSourceMaps: sdkRemovesAll,
|
|
110
115
|
log: {
|
|
111
116
|
level: "info",
|
|
112
|
-
message: "Switching to hidden source maps because `sourcemaps.deleteSourcemapsAfterUpload` is set. Without the `sourceMappingURL` comment browsers do not request the removed map files."
|
|
117
|
+
message: fromUser ? "Switching to hidden source maps because `sourcemaps.deleteSourcemapsAfterUpload` is set. Without the `sourceMappingURL` comment browsers do not request the removed map files." : "Switching to hidden source maps, because the Sentry SDK removes them from the build output. Without the `sourceMappingURL` comment browsers do not request the removed map files."
|
|
113
118
|
}
|
|
114
119
|
};
|
|
115
120
|
}
|
|
@@ -171,6 +176,6 @@ function decideWithDeleteOption(kind, deleteSourceMaps, features, uploadPossible
|
|
|
171
176
|
};
|
|
172
177
|
}
|
|
173
178
|
}
|
|
174
|
-
export { decideSourceMapHandling, getDeleteOption,
|
|
179
|
+
export { decideSourceMapHandling, getDeleteOption, getSdkDeleteSourceMaps, getSourceMapFeatures };
|
|
175
180
|
|
|
176
181
|
//# sourceMappingURL=sourcemap-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcemap-settings.js","names":[],"sources":["../../../src/core/sourcemap-settings.ts"],"sourcesContent":["import { resolveSourceMapsFeatures } from '@sentry/core';\nimport type { NormalizedOptions } from './options-mapping';\n\n/**\n * The user's source map setting in the bundler, reduced to what matters for upload and deletion.\n *\n * - `unset`: the user did not configure source maps\n * - `off`: source map generation is turned off\n * - `visible`: separate map files with a `sourceMappingURL` comment\n * - `hidden`: separate map files without the comment\n * - `inline`: the map is embedded into the bundle\n */\nexport type SourceMapKind = 'unset' | 'off' | 'visible' | 'hidden' | 'inline';\n\nexport type SourceMapDecision = {\n /** Switch the bundler to hidden source maps. */\n enableHidden: boolean;\n /** Remove the source maps from the build output once they are uploaded. */\n deleteAfterUpload: boolean;\n /**\n * With `deleteAfterUpload`, remove every source map of the build, also those of CSS and of chunks\n * the upload leaves out. Set when the plugin or the SDK turned the source maps on.\n */\n removeAllSourceMaps?: boolean;\n log?: { level: 'info' | 'warn'; message: string };\n};\n\nconst NO_CHANGE: SourceMapDecision = { enableHidden: false, deleteAfterUpload: false };\n\nconst SOURCE_MAPS_OFF_MESSAGE =\n 'Source map generation is turned off in your bundler, so Sentry cannot un-minify your stack traces. ' +\n 'Remove the setting to let the plugin generate hidden source maps, upload them to Sentry and remove them from the build output.';\n\nconst INLINE_SOURCE_MAPS_MESSAGE =\n 'Source maps are inlined into your bundles. They are uploaded to Sentry, but inline source maps ship your source code to users and cannot be removed after the upload. ' +\n 'Remove the setting to let the plugin generate hidden source maps instead.';\n\nexport type SourceMapFeatures = {\n /** The plugin adds debug IDs to the bundles and their source maps. */\n injectDebugIds: boolean;\n /** The plugin uploads the source maps. Never `true` without `injectDebugIds`. */\n upload: boolean;\n /**\n * The plugin writes the debug IDs into the emitted files and source maps. The upload only stamps\n * temp copies, so without an upload the emitted files get them and a later manual upload needs\n * no inject step.\n */\n stampEmittedFiles: boolean;\n};\n\n/**\n * Reads `sourcemaps.upload` and `sourcemaps.injectDebugIds`. When neither is set,\n * `sourcemaps.disable` decides.\n */\nexport function getSourceMapFeatures(options: NormalizedOptions): SourceMapFeatures {\n const { injectDebugIds, upload } = resolveSourceMapsFeatures(options.sourcemaps);\n\n return { injectDebugIds, upload, stampEmittedFiles: injectDebugIds && !upload };\n}\n\n/** Reads `sourcemaps.deleteSourcemapsAfterUpload`, calling the internal function form if given. */\nexport function getDeleteSourcemapsAfterUpload(options: NormalizedOptions, environment?: string): boolean | undefined {\n const value = options.sourcemaps?.deleteSourcemapsAfterUpload;\n return typeof value === 'function' ? value(environment) : value;\n}\n\n/** Reads `sourcemaps.delete`. When it is unset, `sourcemaps.deleteSourcemapsAfterUpload` decides. */\nexport function getDeleteOption(options: NormalizedOptions, environment?: string): boolean | undefined {\n return options.sourcemaps?.delete ?? getDeleteSourcemapsAfterUpload(options, environment);\n}\n\n/** Reads the internal `sourcemaps.sdkEnabledSourceMaps` option, calling its function form if given. */\nexport function getSdkEnabledSourceMaps(options: NormalizedOptions, environment?: string): boolean {\n const value = options.sourcemaps?.sdkEnabledSourceMaps;\n return (typeof value === 'function' ? value(environment) : value) === true;\n}\n\n/**\n * Decides whether the plugin turns hidden source maps on and whether it removes the maps from the\n * build output after the upload. The plugin only turns maps on when an upload can run, and only\n * removes maps it turned on itself unless `deleteSourcemapsAfterUpload` says otherwise.\n */\nexport function decideSourceMapHandling(\n kind: SourceMapKind,\n options: NormalizedOptions,\n uploadPossible: boolean,\n environment?: string,\n): SourceMapDecision {\n const features = getSourceMapFeatures(options);\n\n if (options.sourcemaps?.delete !== undefined) {\n return decideWithDeleteOption(kind, options.sourcemaps.delete, features, uploadPossible);\n }\n\n const deleteOption = getDeleteSourcemapsAfterUpload(options, environment);\n const sdkEnabledSourceMaps = getSdkEnabledSourceMaps(options, environment);\n\n if (!uploadPossible || !features.upload) {\n if (deleteOption !== true || (kind !== 'hidden' && kind !== 'visible')) {\n return NO_CHANGE;\n }\n // Users switch the upload off to upload the maps themselves. Maps the\n // SDK turned on are still removed, as the SDKs' own globs did.\n if (!features.upload && !sdkEnabledSourceMaps) {\n return {\n ...NO_CHANGE,\n log: {\n level: 'warn',\n message: `\\`sourcemaps.deleteSourcemapsAfterUpload\\` is set, but source map upload is disabled with ${\n resolveSourceMapsFeatures(options.sourcemaps).legacyDisable\n ? '`sourcemaps.disable`'\n : '`sourcemaps.upload` or `sourcemaps.injectDebugIds`'\n }, so the source maps are not removed.`,\n },\n };\n }\n return {\n enableHidden: kind === 'visible',\n deleteAfterUpload: true,\n removeAllSourceMaps: sdkEnabledSourceMaps,\n log: {\n level: 'warn',\n message:\n 'Source maps are not uploaded, but they are removed from the build output because `sourcemaps.deleteSourcemapsAfterUpload` is set.',\n },\n };\n }\n\n switch (kind) {\n case 'off':\n return {\n ...NO_CHANGE,\n log: {\n level: 'warn',\n message: SOURCE_MAPS_OFF_MESSAGE,\n },\n };\n\n case 'inline':\n return {\n ...NO_CHANGE,\n log: {\n level: 'warn',\n message: INLINE_SOURCE_MAPS_MESSAGE,\n },\n };\n\n case 'unset':\n if (deleteOption === false) {\n return {\n enableHidden: true,\n deleteAfterUpload: false,\n log: {\n level: 'info',\n message: 'Enabling hidden source maps. They are uploaded to Sentry and kept in the build output.',\n },\n };\n }\n return {\n enableHidden: true,\n deleteAfterUpload: true,\n removeAllSourceMaps: true,\n log: {\n level: 'info',\n message:\n 'Enabling hidden source maps. They are uploaded to Sentry and removed from the build output. ' +\n 'Set `sourcemaps.deleteSourcemapsAfterUpload: false` to keep them.',\n },\n };\n\n case 'hidden':\n if (deleteOption !== true) {\n return NO_CHANGE;\n }\n return { enableHidden: false, deleteAfterUpload: true, removeAllSourceMaps: sdkEnabledSourceMaps };\n\n case 'visible':\n if (deleteOption !== true) {\n return NO_CHANGE;\n }\n return {\n enableHidden: true,\n deleteAfterUpload: true,\n removeAllSourceMaps: sdkEnabledSourceMaps,\n log: {\n level: 'info',\n message:\n 'Switching to hidden source maps because `sourcemaps.deleteSourcemapsAfterUpload` is set. ' +\n 'Without the `sourceMappingURL` comment browsers do not request the removed map files.',\n },\n };\n }\n}\n\n/**\n * The decision when `sourcemaps.delete` is set. Unlike `deleteSourcemapsAfterUpload`, it does not\n * depend on an upload: `true` removes every source map of the build, and `false` keeps the hidden\n * source maps the plugin turns on, also when nothing is uploaded.\n */\nfunction decideWithDeleteOption(\n kind: SourceMapKind,\n deleteSourceMaps: boolean,\n features: SourceMapFeatures,\n uploadPossible: boolean,\n): SourceMapDecision {\n switch (kind) {\n case 'off':\n return uploadPossible ? { ...NO_CHANGE, log: { level: 'warn', message: SOURCE_MAPS_OFF_MESSAGE } } : NO_CHANGE;\n\n case 'inline':\n return uploadPossible ? { ...NO_CHANGE, log: { level: 'warn', message: INLINE_SOURCE_MAPS_MESSAGE } } : NO_CHANGE;\n\n case 'unset':\n if (deleteSourceMaps) {\n // Maps that are only turned on to be removed again are not turned on.\n return uploadPossible\n ? {\n enableHidden: true,\n deleteAfterUpload: true,\n removeAllSourceMaps: true,\n log: {\n level: 'info',\n message: 'Enabling hidden source maps. They are uploaded to Sentry and removed from the build output.',\n },\n }\n : NO_CHANGE;\n }\n // Without debug IDs the maps are of no use to Sentry.\n if (!features.injectDebugIds) {\n return NO_CHANGE;\n }\n return {\n enableHidden: true,\n deleteAfterUpload: false,\n log: {\n level: 'info',\n message: uploadPossible\n ? 'Enabling hidden source maps. They are uploaded to Sentry and kept in the build output.'\n : 'Enabling hidden source maps. They are not uploaded to Sentry and are kept in the build output, because `sourcemaps.delete` is `false`.',\n },\n };\n\n case 'hidden':\n case 'visible':\n if (!deleteSourceMaps) {\n return NO_CHANGE;\n }\n return {\n enableHidden: kind === 'visible',\n deleteAfterUpload: true,\n removeAllSourceMaps: true,\n log: uploadPossible\n ? kind === 'visible'\n ? {\n level: 'info',\n message:\n 'Switching to hidden source maps because `sourcemaps.delete` is set. ' +\n 'Without the `sourceMappingURL` comment browsers do not request the removed map files.',\n }\n : undefined\n : {\n level: 'warn',\n message:\n 'Source maps are not uploaded, but they are removed from the build output because `sourcemaps.delete` is set.',\n },\n };\n }\n}\n"],"mappings":";;AA2BA,MAAM,YAA+B;CAAE,cAAc;CAAO,mBAAmB;AAAM;AAErF,MAAM,0BACJ;AAGF,MAAM,6BACJ;;;;;AAoBF,SAAgB,qBAAqB,SAA+C;CAClF,MAAM,EAAE,gBAAgB,WAAW,0BAA0B,QAAQ,UAAU;CAE/E,OAAO;EAAE;EAAgB;EAAQ,mBAAmB,kBAAkB,CAAC;CAAO;AAChF;;AAGA,SAAgB,+BAA+B,SAA4B,aAA2C;CACpH,MAAM,QAAQ,QAAQ,YAAY;CAClC,OAAO,OAAO,UAAU,aAAa,MAAM,WAAW,IAAI;AAC5D;;AAGA,SAAgB,gBAAgB,SAA4B,aAA2C;CACrG,OAAO,QAAQ,YAAY,UAAU,+BAA+B,SAAS,WAAW;AAC1F;;AAGA,SAAgB,wBAAwB,SAA4B,aAA+B;CACjG,MAAM,QAAQ,QAAQ,YAAY;CAClC,QAAQ,OAAO,UAAU,aAAa,MAAM,WAAW,IAAI,WAAW;AACxE;;;;;;AAOA,SAAgB,wBACd,MACA,SACA,gBACA,aACmB;CACnB,MAAM,WAAW,qBAAqB,OAAO;CAE7C,IAAI,QAAQ,YAAY,WAAW,KAAA,GACjC,OAAO,uBAAuB,MAAM,QAAQ,WAAW,QAAQ,UAAU,cAAc;CAGzF,MAAM,eAAe,+BAA+B,SAAS,WAAW;CACxE,MAAM,uBAA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;GAAW,KAAK;IAAE,OAAO;IAAQ,SAAS;GAA2B;EAAE,IAAI;EAE1G,KAAK;GACH,IAAI,kBAEF,OAAO,iBACH;IACE,cAAc;IACd,mBAAmB;IACnB,qBAAqB;IACrB,KAAK;KACH,OAAO;KACP,SAAS;IACX;GACF,IACA;GAGN,IAAI,CAAC,SAAS,gBACZ,OAAO;GAET,OAAO;IACL,cAAc;IACd,mBAAmB;IACnB,KAAK;KACH,OAAO;KACP,SAAS,iBACL,2FACA;IACN;GACF;EAEF,KAAK;EACL,KAAK;GACH,IAAI,CAAC,kBACH,OAAO;GAET,OAAO;IACL,cAAc,SAAS;IACvB,mBAAmB;IACnB,qBAAqB;IACrB,KAAK,iBACD,SAAS,YACP;KACE,OAAO;KACP,SACE;IAEJ,IACA,KAAA,IACF;KACE,OAAO;KACP,SACE;IACJ;GACN;CACJ;AACF"}
|
|
1
|
+
{"version":3,"file":"sourcemap-settings.js","names":[],"sources":["../../../src/core/sourcemap-settings.ts"],"sourcesContent":["import { resolveSourceMapsFeatures } from '@sentry/core';\nimport type { NormalizedOptions } from './options-mapping';\n\n/**\n * The user's source map setting in the bundler, reduced to what matters for upload and deletion.\n *\n * - `unset`: the user did not configure source maps\n * - `off`: source map generation is turned off\n * - `visible`: separate map files with a `sourceMappingURL` comment\n * - `hidden`: separate map files without the comment\n * - `inline`: the map is embedded into the bundle\n */\nexport type SourceMapKind = 'unset' | 'off' | 'visible' | 'hidden' | 'inline';\n\nexport type SourceMapDecision = {\n /** Switch the bundler to hidden source maps. */\n enableHidden: boolean;\n /** Remove the source maps from the build output once they are uploaded. */\n deleteAfterUpload: boolean;\n /**\n * With `deleteAfterUpload`, remove every source map of the build, also those of CSS and of chunks\n * the upload leaves out. Set when the plugin or the SDK turned the source maps on.\n */\n removeAllSourceMaps?: boolean;\n log?: { level: 'info' | 'warn'; message: string };\n};\n\nconst NO_CHANGE: SourceMapDecision = { enableHidden: false, deleteAfterUpload: false };\n\nconst SOURCE_MAPS_OFF_MESSAGE =\n 'Source map generation is turned off in your bundler, so Sentry cannot un-minify your stack traces. ' +\n 'Remove the setting to let the plugin generate hidden source maps, upload them to Sentry and remove them from the build output.';\n\nconst INLINE_SOURCE_MAPS_MESSAGE =\n 'Source maps are inlined into your bundles. They are uploaded to Sentry, but inline source maps ship your source code to users and cannot be removed after the upload. ' +\n 'Remove the setting to let the plugin generate hidden source maps instead.';\n\nexport type SourceMapFeatures = {\n /** The plugin adds debug IDs to the bundles and their source maps. */\n injectDebugIds: boolean;\n /** The plugin uploads the source maps. Never `true` without `injectDebugIds`. */\n upload: boolean;\n /**\n * The plugin writes the debug IDs into the emitted files and source maps. The upload only stamps\n * temp copies, so without an upload the emitted files get them and a later manual upload needs\n * no inject step.\n */\n stampEmittedFiles: boolean;\n};\n\n/**\n * Reads `sourcemaps.upload` and `sourcemaps.injectDebugIds`. When neither is set,\n * `sourcemaps.disable` decides.\n */\nexport function getSourceMapFeatures(options: NormalizedOptions): SourceMapFeatures {\n const { injectDebugIds, upload } = resolveSourceMapsFeatures(options.sourcemaps);\n\n return { injectDebugIds, upload, stampEmittedFiles: injectDebugIds && !upload };\n}\n\n/** Reads the internal `sourcemaps.sdkDeleteSourceMaps` option, calling its function form if given. */\nexport function getSdkDeleteSourceMaps(options: NormalizedOptions, environment?: string): boolean | undefined {\n const value = options.sourcemaps?.sdkDeleteSourceMaps;\n return typeof value === 'function' ? value(environment) : value;\n}\n\n/**\n * Reads `sourcemaps.delete`. When it is unset, `sourcemaps.deleteSourcemapsAfterUpload` decides, and\n * then the SDK.\n */\nexport function getDeleteOption(options: NormalizedOptions, environment?: string): boolean | undefined {\n return (\n options.sourcemaps?.delete ??\n options.sourcemaps?.deleteSourcemapsAfterUpload ??\n getSdkDeleteSourceMaps(options, environment)\n );\n}\n\n/**\n * Decides whether the plugin turns hidden source maps on and whether it removes the maps from the\n * build output after the upload. The plugin only turns maps on when an upload can run, and only\n * removes maps it turned on itself unless `deleteSourcemapsAfterUpload` or the SDK's\n * `sdkDeleteSourceMaps` says otherwise. The user's `deleteSourcemapsAfterUpload` wins over the SDK.\n */\nexport function decideSourceMapHandling(\n kind: SourceMapKind,\n options: NormalizedOptions,\n uploadPossible: boolean,\n environment?: string,\n): SourceMapDecision {\n const features = getSourceMapFeatures(options);\n\n if (options.sourcemaps?.delete !== undefined) {\n return decideWithDeleteOption(kind, options.sourcemaps.delete, features, uploadPossible);\n }\n\n const userDeleteOption = options.sourcemaps?.deleteSourcemapsAfterUpload;\n const sdkDeleteOption = getSdkDeleteSourceMaps(options, environment);\n const deleteOption = userDeleteOption ?? sdkDeleteOption;\n const sdkRemovesAll = sdkDeleteOption === true;\n const fromUser = userDeleteOption !== undefined;\n\n if (!uploadPossible || !features.upload) {\n if (deleteOption !== true || (kind !== 'hidden' && kind !== 'visible')) {\n return NO_CHANGE;\n }\n // Users switch the upload off to upload the maps themselves. The SDK's\n // deletion still runs, as the SDKs' own globs did.\n if (!features.upload && !sdkRemovesAll) {\n return {\n ...NO_CHANGE,\n log: {\n level: 'warn',\n message: `\\`sourcemaps.deleteSourcemapsAfterUpload\\` is set, but source map upload is disabled with ${\n resolveSourceMapsFeatures(options.sourcemaps).legacyDisable\n ? '`sourcemaps.disable`'\n : '`sourcemaps.upload` or `sourcemaps.injectDebugIds`'\n }, so the source maps are not removed.`,\n },\n };\n }\n return {\n enableHidden: kind === 'visible',\n deleteAfterUpload: true,\n removeAllSourceMaps: sdkRemovesAll,\n log: fromUser\n ? {\n level: 'warn',\n message:\n 'Source maps are not uploaded, but they are removed from the build output because `sourcemaps.deleteSourcemapsAfterUpload` is set.',\n }\n : {\n level: 'info',\n message: 'Source maps are not uploaded, but the Sentry SDK removes them from the build output.',\n },\n };\n }\n\n switch (kind) {\n case 'off':\n return {\n ...NO_CHANGE,\n log: {\n level: 'warn',\n message: SOURCE_MAPS_OFF_MESSAGE,\n },\n };\n\n case 'inline':\n return {\n ...NO_CHANGE,\n log: {\n level: 'warn',\n message: INLINE_SOURCE_MAPS_MESSAGE,\n },\n };\n\n case 'unset':\n if (deleteOption === false) {\n return {\n enableHidden: true,\n deleteAfterUpload: false,\n log: {\n level: 'info',\n message: 'Enabling hidden source maps. They are uploaded to Sentry and kept in the build output.',\n },\n };\n }\n return {\n enableHidden: true,\n deleteAfterUpload: true,\n removeAllSourceMaps: true,\n log: {\n level: 'info',\n message:\n 'Enabling hidden source maps. They are uploaded to Sentry and removed from the build output. ' +\n 'Set `sourcemaps.delete: false` to keep them.',\n },\n };\n\n case 'hidden':\n if (deleteOption !== true) {\n return NO_CHANGE;\n }\n return { enableHidden: false, deleteAfterUpload: true, removeAllSourceMaps: sdkRemovesAll };\n\n case 'visible':\n if (deleteOption !== true) {\n return NO_CHANGE;\n }\n return {\n enableHidden: true,\n deleteAfterUpload: true,\n removeAllSourceMaps: sdkRemovesAll,\n log: {\n level: 'info',\n message: fromUser\n ? 'Switching to hidden source maps because `sourcemaps.deleteSourcemapsAfterUpload` is set. ' +\n 'Without the `sourceMappingURL` comment browsers do not request the removed map files.'\n : 'Switching to hidden source maps, because the Sentry SDK removes them from the build output. ' +\n 'Without the `sourceMappingURL` comment browsers do not request the removed map files.',\n },\n };\n }\n}\n\n/**\n * The decision when `sourcemaps.delete` is set. Unlike `deleteSourcemapsAfterUpload`, it does not\n * depend on an upload: `true` removes every source map of the build, and `false` keeps the hidden\n * source maps the plugin turns on, also when nothing is uploaded.\n */\nfunction decideWithDeleteOption(\n kind: SourceMapKind,\n deleteSourceMaps: boolean,\n features: SourceMapFeatures,\n uploadPossible: boolean,\n): SourceMapDecision {\n switch (kind) {\n case 'off':\n return uploadPossible ? { ...NO_CHANGE, log: { level: 'warn', message: SOURCE_MAPS_OFF_MESSAGE } } : NO_CHANGE;\n\n case 'inline':\n return uploadPossible ? { ...NO_CHANGE, log: { level: 'warn', message: INLINE_SOURCE_MAPS_MESSAGE } } : NO_CHANGE;\n\n case 'unset':\n if (deleteSourceMaps) {\n // Maps that are only turned on to be removed again are not turned on.\n return uploadPossible\n ? {\n enableHidden: true,\n deleteAfterUpload: true,\n removeAllSourceMaps: true,\n log: {\n level: 'info',\n message: 'Enabling hidden source maps. They are uploaded to Sentry and removed from the build output.',\n },\n }\n : NO_CHANGE;\n }\n // Without debug IDs the maps are of no use to Sentry.\n if (!features.injectDebugIds) {\n return NO_CHANGE;\n }\n return {\n enableHidden: true,\n deleteAfterUpload: false,\n log: {\n level: 'info',\n message: uploadPossible\n ? 'Enabling hidden source maps. They are uploaded to Sentry and kept in the build output.'\n : 'Enabling hidden source maps. They are not uploaded to Sentry and are kept in the build output, because `sourcemaps.delete` is `false`.',\n },\n };\n\n case 'hidden':\n case 'visible':\n if (!deleteSourceMaps) {\n return NO_CHANGE;\n }\n return {\n enableHidden: kind === 'visible',\n deleteAfterUpload: true,\n removeAllSourceMaps: true,\n log: uploadPossible\n ? kind === 'visible'\n ? {\n level: 'info',\n message:\n 'Switching to hidden source maps because `sourcemaps.delete` is set. ' +\n 'Without the `sourceMappingURL` comment browsers do not request the removed map files.',\n }\n : undefined\n : {\n level: 'warn',\n message:\n 'Source maps are not uploaded, but they are removed from the build output because `sourcemaps.delete` is set.',\n },\n };\n }\n}\n"],"mappings":";;AA2BA,MAAM,YAA+B;CAAE,cAAc;CAAO,mBAAmB;AAAM;AAErF,MAAM,0BACJ;AAGF,MAAM,6BACJ;;;;;AAoBF,SAAgB,qBAAqB,SAA+C;CAClF,MAAM,EAAE,gBAAgB,WAAW,0BAA0B,QAAQ,UAAU;CAE/E,OAAO;EAAE;EAAgB;EAAQ,mBAAmB,kBAAkB,CAAC;CAAO;AAChF;;AAGA,SAAgB,uBAAuB,SAA4B,aAA2C;CAC5G,MAAM,QAAQ,QAAQ,YAAY;CAClC,OAAO,OAAO,UAAU,aAAa,MAAM,WAAW,IAAI;AAC5D;;;;;AAMA,SAAgB,gBAAgB,SAA4B,aAA2C;CACrG,OACE,QAAQ,YAAY,UACpB,QAAQ,YAAY,+BACpB,uBAAuB,SAAS,WAAW;AAE/C;;;;;;;AA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GACH,IAAI,iBAAiB,MACnB,OAAO;GAET,OAAO;IACL,cAAc;IACd,mBAAmB;IACnB,qBAAqB;IACrB,KAAK;KACH,OAAO;KACP,SAAS,WACL,mLAEA;IAEN;GACF;CACJ;AACF;;;;;;AAOA,SAAS,uBACP,MACA,kBACA,UACA,gBACmB;CACnB,QAAQ,MAAR;EACE,KAAK,OACH,OAAO,iBAAiB;GAAE,GAAG;GAAW,KAAK;IAAE,OAAO;IAAQ,SAAS;GAAwB;EAAE,IAAI;EAEvG,KAAK,UACH,OAAO,iBAAiB;GAAE,GAAG;GAAW,KAAK;IAAE,OAAO;IAAQ,SAAS;GAA2B;EAAE,IAAI;EAE1G,KAAK;GACH,IAAI,kBAEF,OAAO,iBACH;IACE,cAAc;IACd,mBAAmB;IACnB,qBAAqB;IACrB,KAAK;KACH,OAAO;KACP,SAAS;IACX;GACF,IACA;GAGN,IAAI,CAAC,SAAS,gBACZ,OAAO;GAET,OAAO;IACL,cAAc;IACd,mBAAmB;IACnB,KAAK;KACH,OAAO;KACP,SAAS,iBACL,2FACA;IACN;GACF;EAEF,KAAK;EACL,KAAK;GACH,IAAI,CAAC,kBACH,OAAO;GAET,OAAO;IACL,cAAc,SAAS;IACvB,mBAAmB;IACnB,qBAAqB;IACrB,KAAK,iBACD,SAAS,YACP;KACE,OAAO;KACP,SACE;IAEJ,IACA,KAAA,IACF;KACE,OAAO;KACP,SACE;IACJ;GACN;CACJ;AACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getProjects } from "./utils.js";
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
import * as fs from "fs";
|
|
4
|
+
import * as dotenv from "dotenv";
|
|
5
|
+
// src/core/upload-credentials.ts
|
|
6
|
+
/** The variables in `.env.sentry-build-plugin`, or `undefined` when the file does not exist. */
|
|
7
|
+
function readSentryBuildPluginEnvFile() {
|
|
8
|
+
try {
|
|
9
|
+
const dotenvFile = fs.readFileSync(path.join(process.cwd(), ".env.sentry-build-plugin"), "utf-8");
|
|
10
|
+
return dotenv.parse(dotenvFile);
|
|
11
|
+
} catch (e) {
|
|
12
|
+
if (typeof e === "object" && e && "code" in e && e.code !== "ENOENT") throw e;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/** Reads `SENTRY_PROJECT`, which holds one project or a comma-separated list. */
|
|
17
|
+
function parseProjectEnvVar(value) {
|
|
18
|
+
return value?.includes(",") ? value.split(",").map((p) => p.trim()) : value;
|
|
19
|
+
}
|
|
20
|
+
/** The first credential the upload needs that is missing. */
|
|
21
|
+
function getMissingUploadCredential({ authToken, org, project }) {
|
|
22
|
+
if (!authToken) return "no-auth-token";
|
|
23
|
+
if (!org && !authToken.startsWith("sntrys_")) return "no-org";
|
|
24
|
+
if (!getProjects(project)?.[0]) return "no-project";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Whether the plugin has the credentials to upload source maps. It reads the same environment
|
|
28
|
+
* variables and `.env.sentry-build-plugin` file as the plugin, so SDKs can call it before they
|
|
29
|
+
* create the plugin.
|
|
30
|
+
*/
|
|
31
|
+
function hasSourceMapUploadCredentials(options) {
|
|
32
|
+
const envFile = readSentryBuildPluginEnvFile();
|
|
33
|
+
const env = (name) => envFile?.[name] ?? process.env[name];
|
|
34
|
+
return getMissingUploadCredential({
|
|
35
|
+
authToken: options?.authToken ?? env("SENTRY_AUTH_TOKEN"),
|
|
36
|
+
org: options?.org ?? env("SENTRY_ORG"),
|
|
37
|
+
project: options?.project ?? parseProjectEnvVar(env("SENTRY_PROJECT"))
|
|
38
|
+
}) === void 0;
|
|
39
|
+
}
|
|
40
|
+
export { getMissingUploadCredential, hasSourceMapUploadCredentials, parseProjectEnvVar, readSentryBuildPluginEnvFile };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=upload-credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-credentials.js","names":[],"sources":["../../../src/core/upload-credentials.ts"],"sourcesContent":["import * as dotenv from 'dotenv';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { getProjects } from './utils';\n\nexport type UploadCredentials = {\n authToken?: string;\n org?: string;\n project?: string | string[];\n};\n\n/** The variables in `.env.sentry-build-plugin`, or `undefined` when the file does not exist. */\nexport function readSentryBuildPluginEnvFile(): Record<string, string> | undefined {\n try {\n const dotenvFile = fs.readFileSync(path.join(process.cwd(), '.env.sentry-build-plugin'), 'utf-8');\n // NOTE: Do not use the dotenv.config API directly to read the dotenv file! For some ungodly reason, it falls back to reading `${process.cwd()}/.env` which is absolutely not what we want.\n return dotenv.parse(dotenvFile);\n } catch (e: unknown) {\n // Ignore \"file not found\" errors but throw all others\n if (typeof e === 'object' && e && 'code' in e && e.code !== 'ENOENT') {\n throw e;\n }\n return undefined;\n }\n}\n\n/** Reads `SENTRY_PROJECT`, which holds one project or a comma-separated list. */\nexport function parseProjectEnvVar(value: string | undefined): string | string[] | undefined {\n return value?.includes(',') ? value.split(',').map(p => p.trim()) : value;\n}\n\n/** The first credential the upload needs that is missing. */\nexport function getMissingUploadCredential({\n authToken,\n org,\n project,\n}: UploadCredentials): 'no-auth-token' | 'no-org' | 'no-project' | undefined {\n if (!authToken) {\n return 'no-auth-token';\n }\n if (!org && !authToken.startsWith('sntrys_')) {\n return 'no-org';\n }\n if (!getProjects(project)?.[0]) {\n return 'no-project';\n }\n return undefined;\n}\n\n/**\n * Whether the plugin has the credentials to upload source maps. It reads the same environment\n * variables and `.env.sentry-build-plugin` file as the plugin, so SDKs can call it before they\n * create the plugin.\n */\nexport function hasSourceMapUploadCredentials(options: UploadCredentials | undefined): boolean {\n const envFile = readSentryBuildPluginEnvFile();\n const env = (name: string): string | undefined => envFile?.[name] ?? process.env[name];\n\n return (\n getMissingUploadCredential({\n authToken: options?.authToken ?? env('SENTRY_AUTH_TOKEN'),\n org: options?.org ?? env('SENTRY_ORG'),\n project: options?.project ?? parseProjectEnvVar(env('SENTRY_PROJECT')),\n }) === undefined\n );\n}\n"],"mappings":";;;;;;AAYA,SAAgB,+BAAmE;CACjF,IAAI;EACF,MAAM,aAAa,GAAG,aAAa,KAAK,KAAK,QAAQ,IAAI,GAAG,0BAA0B,GAAG,OAAO;EAEhG,OAAO,OAAO,MAAM,UAAU;CAChC,SAAS,GAAY;EAEnB,IAAI,OAAO,MAAM,YAAY,KAAK,UAAU,KAAK,EAAE,SAAS,UAC1D,MAAM;EAER;CACF;AACF;;AAGA,SAAgB,mBAAmB,OAA0D;CAC3F,OAAO,OAAO,SAAS,GAAG,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,KAAI,MAAK,EAAE,KAAK,CAAC,IAAI;AACtE;;AAGA,SAAgB,2BAA2B,EACzC,WACA,KACA,WAC2E;CAC3E,IAAI,CAAC,WACH,OAAO;CAET,IAAI,CAAC,OAAO,CAAC,UAAU,WAAW,SAAS,GACzC,OAAO;CAET,IAAI,CAAC,YAAY,OAAO,CAAC,GAAG,IAC1B,OAAO;AAGX;;;;;;AAOA,SAAgB,8BAA8B,SAAiD;CAC7F,MAAM,UAAU,6BAA6B;CAC7C,MAAM,OAAO,SAAqC,UAAU,SAAS,QAAQ,IAAI;CAEjF,OACE,2BAA2B;EACzB,WAAW,SAAS,aAAa,IAAI,mBAAmB;EACxD,KAAK,SAAS,OAAO,IAAI,YAAY;EACrC,SAAS,SAAS,WAAW,mBAAmB,IAAI,gBAAgB,CAAC;CACvE,CAAC,MAAM,KAAA;AAEX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../../src/core/version.ts"],"sourcesContent":["export const LIB_VERSION = \"11.
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../../src/core/version.ts"],"sourcesContent":["export const LIB_VERSION = \"11.19.0\";\n"],"mappings":";AAAA,MAAa,cAAc"}
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"11.
|
|
1
|
+
{"type":"module","version":"11.19.0","sideEffects":["./sentry-release-injection-file.js","./sentry-esbuild-debugid-injection-file.js"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDeleteOption,
|
|
1
|
+
import { getDeleteOption, getSdkDeleteSourceMaps } from "../core/sourcemap-settings.js";
|
|
2
2
|
import "../core/index.js";
|
|
3
3
|
import { getOutputMatch, sourceMapKindFromRollupSetting } from "../rollup/source-map-handling.js";
|
|
4
4
|
import * as path from "node:path";
|
|
@@ -76,7 +76,7 @@ function createViteSourceMapHooks(sentryBuildPluginManager, sourceMapHandling) {
|
|
|
76
76
|
const environmentName = decisions.has(name) ? name : void 0;
|
|
77
77
|
const { normalizedOptions } = sentryBuildPluginManager;
|
|
78
78
|
const deleteOption = getDeleteOption(normalizedOptions, environmentName);
|
|
79
|
-
const removeAll = normalizedOptions.sourcemaps?.delete === true ||
|
|
79
|
+
const removeAll = normalizedOptions.sourcemaps?.delete === true || getSdkDeleteSourceMaps(normalizedOptions, environmentName) === true;
|
|
80
80
|
for (const output of getOutputs(config.root, environment.build)) {
|
|
81
81
|
if (output.ownSetting) {
|
|
82
82
|
const outputKind = sourceMapKindFromRollupSetting(output.sourcemap);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-map-hooks.js","names":[],"sources":["../../../src/vite/source-map-hooks.ts"],"sourcesContent":["import * as path from 'node:path';\nimport type { SentryBuildPluginManager, SourceMapDecision, SourceMapKind } from '../core';\nimport { getDeleteOption,
|
|
1
|
+
{"version":3,"file":"source-map-hooks.js","names":[],"sources":["../../../src/vite/source-map-hooks.ts"],"sourcesContent":["import * as path from 'node:path';\nimport type { SentryBuildPluginManager, SourceMapDecision, SourceMapKind } from '../core';\nimport { getDeleteOption, getSdkDeleteSourceMaps } from '../core';\nimport type { OutputMatch, RollupSourceMapSetting, SourceMapHandling } from '../rollup/source-map-handling';\nimport { getOutputMatch, sourceMapKindFromRollupSetting } from '../rollup/source-map-handling';\n\ntype BundlerOutput = OutputMatch & { dir?: string; sourcemap?: RollupSourceMapSetting };\ntype BundlerOutputOptions = BundlerOutput | BundlerOutput[] | undefined;\n\ntype ViteBuildOptions = {\n sourcemap?: RollupSourceMapSetting;\n outDir?: string;\n rollupOptions?: { output?: BundlerOutputOptions };\n rolldownOptions?: { output?: BundlerOutputOptions };\n};\n\nexport type ViteUserConfig = {\n build?: ViteBuildOptions;\n environments?: Record<string, { build?: ViteBuildOptions } | undefined>;\n};\n\nexport type ViteResolvedConfig = {\n root: string;\n build: ViteBuildOptions;\n environments?: Record<string, { build: ViteBuildOptions }>;\n};\n\nexport type ViteSourceMapHooks = {\n config: (userConfig: ViteUserConfig, env: { command: string }) => ViteUserConfig | null;\n configResolved: (config: ViteResolvedConfig) => void;\n outputOptions: SourceMapHandling['applyHiddenDecision'];\n};\n\nconst NO_CHANGE: SourceMapDecision = { enableHidden: false, deleteAfterUpload: false };\n\ntype EnvironmentOutput = {\n destination: string;\n match: OutputMatch;\n sourcemap: RollupSourceMapSetting;\n /** The output sets `sourcemap` itself, which overrides `build.sourcemap`. */\n ownSetting: boolean;\n};\n\n/**\n * The outputs an environment writes: one per entry of `rollupOptions.output` or\n * `rolldownOptions.output`. An output writes to `build.outDir` (relative to the root) unless it\n * sets its own `dir`, which the bundler resolves from the working directory. An output's own\n * `sourcemap` overrides `build.sourcemap`.\n */\nfunction getOutputs(root: string, build: ViteBuildOptions): EnvironmentOutput[] {\n const configured = build.rolldownOptions?.output ?? build.rollupOptions?.output;\n const outputs = Array.isArray(configured) ? configured : [configured ?? {}];\n\n return outputs.map(output => {\n const sourcemap = output.sourcemap ?? build.sourcemap;\n return {\n destination: output.dir === undefined ? path.resolve(root, build.outDir ?? 'dist') : path.resolve(output.dir),\n match: getOutputMatch({ ...output, sourcemap }),\n sourcemap,\n ownSetting: output.sourcemap !== undefined,\n };\n });\n}\n\n/**\n * Vite warns about `rollupOptions.output.sourcemap`, so the Vite plugin decides on `build.sourcemap`\n * in a `config` hook. The hook belongs on the post plugin: framework plugins that set\n * `build.sourcemap` themselves run first, and the decision sees the merged setting. The output\n * directories are only known in `configResolved`, which then records the decision for each of them.\n */\nexport function createViteSourceMapHooks(\n sentryBuildPluginManager: SentryBuildPluginManager,\n sourceMapHandling: SourceMapHandling,\n): ViteSourceMapHooks {\n // `'*'` for the top-level setting, otherwise the name of an environment with its own.\n const decisions = new Map<string, { kind: SourceMapKind; decision: SourceMapDecision }>();\n\n return {\n config: (userConfig, env) => {\n if (env.command !== 'build') {\n return null;\n }\n\n // The same plugin instances can serve several builds in a row.\n decisions.clear();\n\n const kind = sourceMapKindFromRollupSetting(userConfig.build?.sourcemap);\n // Logged in `generateBundle`, which knows whether the output is written.\n const decision = sentryBuildPluginManager.sourceMaps.decide(kind, { log: false });\n decisions.set('*', { kind, decision });\n\n const result: ViteUserConfig = decision.enableHidden ? { build: { sourcemap: 'hidden' } } : {};\n\n for (const [name, environment] of Object.entries(userConfig.environments ?? {})) {\n const setting = environment?.build?.sourcemap;\n if (setting === undefined) {\n continue;\n }\n\n const environmentKind = sourceMapKindFromRollupSetting(setting);\n const environmentDecision = sentryBuildPluginManager.sourceMaps.decide(environmentKind, {\n log: false,\n environment: name,\n });\n decisions.set(name, { kind: environmentKind, decision: environmentDecision });\n\n if (environmentDecision.enableHidden) {\n result.environments = { ...result.environments, [name]: { build: { sourcemap: 'hidden' } } };\n }\n }\n\n return result;\n },\n\n configResolved: config => {\n const environments = config.environments ?? { client: { build: config.build } };\n\n for (const [name, environment] of Object.entries(environments)) {\n const { kind, decision } = decisions.get(name) ?? decisions.get('*') ?? { kind: 'unset', decision: NO_CHANGE };\n const environmentName = decisions.has(name) ? name : undefined;\n const { normalizedOptions } = sentryBuildPluginManager;\n const deleteOption = getDeleteOption(normalizedOptions, environmentName);\n // `sourcemaps.delete: true` removes every source map, like for maps the SDK turned on.\n const removeAll =\n normalizedOptions.sourcemaps?.delete === true ||\n getSdkDeleteSourceMaps(normalizedOptions, environmentName) === true;\n\n for (const output of getOutputs(config.root, environment.build)) {\n // Hidden maps of an output's own setting are removed when the user\n // asks for it, visible ones only when every source map is removed.\n // Removed visible maps switch to hidden in `outputOptions`, so no\n // `sourceMappingURL` comment points at a removed file.\n if (output.ownSetting) {\n const outputKind = sourceMapKindFromRollupSetting(output.sourcemap);\n const removeAllSourceMaps = removeAll && (outputKind === 'hidden' || outputKind === 'visible');\n const deleteAfterUpload = deleteOption === true && (outputKind === 'hidden' || removeAllSourceMaps);\n sourceMapHandling.setDecision(output.destination, {\n match: output.match,\n kind: outputKind,\n decision: {\n enableHidden: outputKind === 'visible' && deleteAfterUpload,\n deleteAfterUpload,\n removeAllSourceMaps,\n },\n });\n continue;\n }\n\n // A plugin that ran after ours may have changed the setting again.\n if (decision.deleteAfterUpload && output.sourcemap !== 'hidden') {\n sentryBuildPluginManager.logger.debug(\n `Source maps of the \"${name}\" environment are set to ${JSON.stringify(output.sourcemap)}. Not removing them after upload.`,\n );\n sourceMapHandling.setDecision(output.destination, { match: output.match, kind, decision: NO_CHANGE });\n } else {\n sourceMapHandling.setDecision(output.destination, { match: output.match, kind, decision });\n }\n }\n }\n },\n\n outputOptions: sourceMapHandling.applyHiddenDecision,\n };\n}\n"],"mappings":";;;;;AAiCA,MAAM,YAA+B;CAAE,cAAc;CAAO,mBAAmB;AAAM;;;;;;;AAgBrF,SAAS,WAAW,MAAc,OAA8C;CAC9E,MAAM,aAAa,MAAM,iBAAiB,UAAU,MAAM,eAAe;CAGzE,QAFgB,MAAM,QAAQ,UAAU,IAAI,aAAa,CAAC,cAAc,CAAC,CAAC,EAAA,CAE3D,KAAI,WAAU;EAC3B,MAAM,YAAY,OAAO,aAAa,MAAM;EAC5C,OAAO;GACL,aAAa,OAAO,QAAQ,KAAA,IAAY,KAAK,QAAQ,MAAM,MAAM,UAAU,MAAM,IAAI,KAAK,QAAQ,OAAO,GAAG;GAC5G,OAAO,eAAe;IAAE,GAAG;IAAQ;GAAU,CAAC;GAC9C;GACA,YAAY,OAAO,cAAc,KAAA;EACnC;CACF,C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B;IAC9B,MAAM,eAAe,gBAAgB,mBAAmB,eAAe;IAEvE,MAAM,YACJ,kBAAkB,YAAY,WAAW,QACzC,uBAAuB,mBAAmB,eAAe,MAAM;IAEjE,KAAK,MAAM,UAAU,WAAW,OAAO,MAAM,YAAY,KAAK,GAAG;KAK/D,IAAI,OAAO,YAAY;MACrB,MAAM,aAAa,+BAA+B,OAAO,SAAS;MAClE,MAAM,sBAAsB,cAAc,eAAe,YAAY,eAAe;MACpF,MAAM,oBAAoB,iBAAiB,SAAS,eAAe,YAAY;MAC/E,kBAAkB,YAAY,OAAO,aAAa;OAChD,OAAO,OAAO;OACd,MAAM;OACN,UAAU;QACR,cAAc,eAAe,aAAa;QAC1C;QACA;OACF;MACF,CAAC;MACD;KACF;KAGA,IAAI,SAAS,qBAAqB,OAAO,cAAc,UAAU;MAC/D,yBAAyB,OAAO,MAC9B,uBAAuB,KAAK,2BAA2B,KAAK,UAAU,OAAO,SAAS,EAAE,kCAC1F;MACA,kBAAkB,YAAY,OAAO,aAAa;OAAE,OAAO,OAAO;OAAO;OAAM,UAAU;MAAU,CAAC;KACtG,OACE,kBAAkB,YAAY,OAAO,aAAa;MAAE,OAAO,OAAO;MAAO;MAAM;KAAS,CAAC;IAE7F;GACF;EACF;EAEA,eAAe,kBAAkB;CACnC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-plugin-manager.d.ts","sourceRoot":"","sources":["../../../src/core/build-plugin-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-plugin-manager.d.ts","sourceRoot":"","sources":["../../../src/core/build-plugin-manager.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AASpE,OAAO,KAAK,EAAE,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ACb,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,GAAG,qBAAqB,CA6BxB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,IAAI,CAAC,CAYf;AAwCD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAaF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAyBpH;AAED;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,GACrD,OAAO,CAAC,IAAI,CAAC,CA4Cf;AAYD;;;;GAIG;AACH,wBAAsB,gCAAgC,CACpD,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,GACrD,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA2D7B;AAGD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOhE"}
|
|
@@ -42,7 +42,8 @@ export { CodeInjection, replaceBooleanFlagsInCode, stringToUUID, generateRelease
|
|
|
42
42
|
export { createSentryBuildPluginManager } from './build-plugin-manager';
|
|
43
43
|
export type { SentryBuildPluginManager, UploadResult, UploadStaging } from './build-plugin-manager';
|
|
44
44
|
export { createDebugIdUploadFunction, addDebugIdToEmittedArtifacts, stampDebugId } from './debug-id-upload';
|
|
45
|
-
export { decideSourceMapHandling, getDeleteOption,
|
|
45
|
+
export { decideSourceMapHandling, getDeleteOption, getSdkDeleteSourceMaps, getSourceMapFeatures, } from './sourcemap-settings';
|
|
46
46
|
export type { SourceMapDecision, SourceMapKind } from './sourcemap-settings';
|
|
47
|
+
export { hasSourceMapUploadCredentials } from './upload-credentials';
|
|
47
48
|
export type { UploadFilter } from './upload-filter';
|
|
48
49
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkD,MAAM,SAAS,CAAC;AAExF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGlD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAYxG;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AA8BD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,EACnD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,SAAS,GACjD,OAAO,CAMT;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAE9E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAIhE;AAED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AAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAE9E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAIhE;AAED,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,YAAY,EACZ,2BAA2B,EAC3B,kCAAkC,EAClC,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -21,8 +21,8 @@ export type NormalizedOptions = {
|
|
|
21
21
|
rewriteSources?: RewriteSourcesHook;
|
|
22
22
|
resolveSourceMap?: ResolveSourceMapHook;
|
|
23
23
|
filesToDeleteAfterUpload?: string | string[] | Promise<string | string[] | undefined>;
|
|
24
|
-
deleteSourcemapsAfterUpload?: boolean
|
|
25
|
-
|
|
24
|
+
deleteSourcemapsAfterUpload?: boolean;
|
|
25
|
+
sdkDeleteSourceMaps?: boolean | ((environment?: string) => boolean | undefined);
|
|
26
26
|
} | undefined;
|
|
27
27
|
release: {
|
|
28
28
|
name: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options-mapping.d.ts","sourceRoot":"","sources":["../../../src/core/options-mapping.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,IAAI,WAAW,EAC9B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"options-mapping.d.ts","sourceRoot":"","sources":["../../../src/core/options-mapping.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,IAAI,WAAW,EAC9B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAIjB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IACvC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EACN;QACE,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAAC;QACrC,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,cAAc,CAAC,E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AC,CAsBzF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO5E"}
|
|
@@ -41,16 +41,18 @@ export type SourceMapFeatures = {
|
|
|
41
41
|
* `sourcemaps.disable` decides.
|
|
42
42
|
*/
|
|
43
43
|
export declare function getSourceMapFeatures(options: NormalizedOptions): SourceMapFeatures;
|
|
44
|
-
/** Reads `sourcemaps.
|
|
45
|
-
export declare function
|
|
46
|
-
/**
|
|
44
|
+
/** Reads the internal `sourcemaps.sdkDeleteSourceMaps` option, calling its function form if given. */
|
|
45
|
+
export declare function getSdkDeleteSourceMaps(options: NormalizedOptions, environment?: string): boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Reads `sourcemaps.delete`. When it is unset, `sourcemaps.deleteSourcemapsAfterUpload` decides, and
|
|
48
|
+
* then the SDK.
|
|
49
|
+
*/
|
|
47
50
|
export declare function getDeleteOption(options: NormalizedOptions, environment?: string): boolean | undefined;
|
|
48
|
-
/** Reads the internal `sourcemaps.sdkEnabledSourceMaps` option, calling its function form if given. */
|
|
49
|
-
export declare function getSdkEnabledSourceMaps(options: NormalizedOptions, environment?: string): boolean;
|
|
50
51
|
/**
|
|
51
52
|
* Decides whether the plugin turns hidden source maps on and whether it removes the maps from the
|
|
52
53
|
* build output after the upload. The plugin only turns maps on when an upload can run, and only
|
|
53
|
-
* removes maps it turned on itself unless `deleteSourcemapsAfterUpload`
|
|
54
|
+
* removes maps it turned on itself unless `deleteSourcemapsAfterUpload` or the SDK's
|
|
55
|
+
* `sdkDeleteSourceMaps` says otherwise. The user's `deleteSourcemapsAfterUpload` wins over the SDK.
|
|
54
56
|
*/
|
|
55
57
|
export declare function decideSourceMapHandling(kind: SourceMapKind, options: NormalizedOptions, uploadPossible: boolean, environment?: string): SourceMapDecision;
|
|
56
58
|
//# sourceMappingURL=sourcemap-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcemap-settings.d.ts","sourceRoot":"","sources":["../../../src/core/sourcemap-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gDAAgD;IAChD,YAAY,EAAE,OAAO,CAAC;IACtB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD,CAAC;AAYF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,sEAAsE;IACtE,cAAc,EAAE,OAAO,CAAC;IACxB,iFAAiF;IACjF,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAIlF;AAED,
|
|
1
|
+
{"version":3,"file":"sourcemap-settings.d.ts","sourceRoot":"","sources":["../../../src/core/sourcemap-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gDAAgD;IAChD,YAAY,EAAE,OAAO,CAAC;IACtB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD,CAAC;AAYF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,sEAAsE;IACtE,cAAc,EAAE,OAAO,CAAC;IACxB,iFAAiF;IACjF,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAIlF;AAED,sGAAsG;AACtG,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAG5G;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAMrG;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,iBAAiB,EAC1B,cAAc,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,MAAM,GACnB,iBAAiB,CAmHnB"}
|
|
@@ -658,21 +658,24 @@ export type HandleRecoverableErrorFn = (error: unknown, throwByDefault: boolean)
|
|
|
658
658
|
/**
|
|
659
659
|
* @internal For Sentry SDK packages only. It can change in any release.
|
|
660
660
|
*
|
|
661
|
-
* Like `Options`, but
|
|
662
|
-
* `sourcemaps.
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
661
|
+
* Like `Options`, but with the SDK's own source map deletion decision in
|
|
662
|
+
* `sourcemaps.sdkDeleteSourceMaps`. The plugin calls its function form when it decides how to treat
|
|
663
|
+
* the bundler's source map setting, so an SDK can give a value that it only knows after it created
|
|
664
|
+
* the plugin. Vite passes the name of an environment with its own `build.sourcemap`, and `undefined`
|
|
665
|
+
* for the top-level `build.sourcemap`.
|
|
666
666
|
*/
|
|
667
667
|
export type InternalOptions = Omit<Options, 'sourcemaps'> & {
|
|
668
|
-
sourcemaps?:
|
|
669
|
-
deleteSourcemapsAfterUpload?: boolean | ((environment?: string) => boolean | undefined);
|
|
668
|
+
sourcemaps?: NonNullable<Options['sourcemaps']> & {
|
|
670
669
|
/**
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
*
|
|
670
|
+
* - `true`: the SDK turned the source maps on, so the plugin removes every source map, also those of
|
|
671
|
+
* CSS and of chunks that the upload leaves out.
|
|
672
|
+
* - `false`: the plugin keeps the source maps.
|
|
673
|
+
* - `undefined`: the plugin's own rules apply.
|
|
674
|
+
*
|
|
675
|
+
* The user's `sourcemaps.delete` replaces it. The user's `sourcemaps.deleteSourcemapsAfterUpload`
|
|
676
|
+
* decides whether source maps are removed, and `true` here still makes that all of them.
|
|
674
677
|
*/
|
|
675
|
-
|
|
678
|
+
sdkDeleteSourceMaps?: boolean | ((environment?: string) => boolean | undefined);
|
|
676
679
|
};
|
|
677
680
|
};
|
|
678
681
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEjG,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM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C;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;AAEzF;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG;IAC1D,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG;QAChD;;;;;;;;WAQG;QACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,CAAC,CAAC;KACjF,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type UploadCredentials = {
|
|
2
|
+
authToken?: string;
|
|
3
|
+
org?: string;
|
|
4
|
+
project?: string | string[];
|
|
5
|
+
};
|
|
6
|
+
/** The variables in `.env.sentry-build-plugin`, or `undefined` when the file does not exist. */
|
|
7
|
+
export declare function readSentryBuildPluginEnvFile(): Record<string, string> | undefined;
|
|
8
|
+
/** Reads `SENTRY_PROJECT`, which holds one project or a comma-separated list. */
|
|
9
|
+
export declare function parseProjectEnvVar(value: string | undefined): string | string[] | undefined;
|
|
10
|
+
/** The first credential the upload needs that is missing. */
|
|
11
|
+
export declare function getMissingUploadCredential({ authToken, org, project, }: UploadCredentials): 'no-auth-token' | 'no-org' | 'no-project' | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the plugin has the credentials to upload source maps. It reads the same environment
|
|
14
|
+
* variables and `.env.sentry-build-plugin` file as the plugin, so SDKs can call it before they
|
|
15
|
+
* create the plugin.
|
|
16
|
+
*/
|
|
17
|
+
export declare function hasSourceMapUploadCredentials(options: UploadCredentials | undefined): boolean;
|
|
18
|
+
//# sourceMappingURL=upload-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-credentials.d.ts","sourceRoot":"","sources":["../../../src/core/upload-credentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,gGAAgG;AAChG,wBAAgB,4BAA4B,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAYjF;AAED,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAE3F;AAED,6DAA6D;AAC7D,wBAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,GAAG,EACH,OAAO,GACR,EAAE,iBAAiB,GAAG,eAAe,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAW3E;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAW7F"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.
|
|
1
|
+
export declare const LIB_VERSION = "11.19.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-map-hooks.d.ts","sourceRoot":"","sources":["../../../src/vite/source-map-hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAoC,MAAM,SAAS,CAAC;AAE1F,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAG5G,KAAK,aAAa,GAAG,WAAW,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,sBAAsB,CAAA;CAAE,CAAC;AACxF,KAAK,oBAAoB,GAAG,aAAa,GAAG,aAAa,EAAE,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