@sentry/bundler-plugin-core 2.0.0 → 2.2.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 +955 -1078
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +954 -1078
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/{plugins/debug-id-upload.d.ts → debug-id-upload.d.ts} +3 -4
- package/dist/types/index.d.ts +10 -1
- package/dist/types/options-mapping.d.ts +3 -3
- package/dist/types/plugins/telemetry.d.ts +3 -3
- package/dist/types/sentry/logger.d.ts +1 -1
- package/dist/types/types.d.ts +8 -6
- package/dist/types/utils.d.ts +2 -1
- package/package.json +4 -4
package/dist/types/types.d.ts
CHANGED
|
@@ -83,11 +83,13 @@ export interface Options {
|
|
|
83
83
|
/**
|
|
84
84
|
* A glob or an array of globs that specifies the build artifacts that should be uploaded to Sentry.
|
|
85
85
|
*
|
|
86
|
+
* If this option is not specified, the plugin will try to upload all JavaScript files and source map files that are created during build.
|
|
87
|
+
*
|
|
86
88
|
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
|
|
87
89
|
*
|
|
88
90
|
* Use the `debug` option to print information about which files end up being uploaded.
|
|
89
91
|
*/
|
|
90
|
-
assets
|
|
92
|
+
assets?: string | string[];
|
|
91
93
|
/**
|
|
92
94
|
* A glob or an array of globs that specifies which build artifacts should not be uploaded to Sentry.
|
|
93
95
|
*
|
|
@@ -205,7 +207,7 @@ export interface Options {
|
|
|
205
207
|
injectBuildInformation?: boolean;
|
|
206
208
|
};
|
|
207
209
|
}
|
|
208
|
-
export
|
|
210
|
+
export type IncludeEntry = {
|
|
209
211
|
/**
|
|
210
212
|
* One or more paths to scan for files to upload.
|
|
211
213
|
*/
|
|
@@ -276,7 +278,7 @@ export declare type IncludeEntry = {
|
|
|
276
278
|
*/
|
|
277
279
|
validate?: boolean;
|
|
278
280
|
};
|
|
279
|
-
|
|
281
|
+
type SetCommitsOptions = (AutoSetCommitsOptions | ManualSetCommitsOptions) & {
|
|
280
282
|
/**
|
|
281
283
|
* The commit before the beginning of this release (in other words,
|
|
282
284
|
* the last commit of the previous release).
|
|
@@ -302,7 +304,7 @@ declare type SetCommitsOptions = (AutoSetCommitsOptions | ManualSetCommitsOption
|
|
|
302
304
|
*/
|
|
303
305
|
ignoreEmpty?: boolean;
|
|
304
306
|
};
|
|
305
|
-
|
|
307
|
+
type AutoSetCommitsOptions = {
|
|
306
308
|
/**
|
|
307
309
|
* Automatically sets `commit` and `previousCommit`. Sets `commit` to `HEAD`
|
|
308
310
|
* and `previousCommit` as described in the option's documentation.
|
|
@@ -315,7 +317,7 @@ declare type AutoSetCommitsOptions = {
|
|
|
315
317
|
repo?: undefined;
|
|
316
318
|
commit?: undefined;
|
|
317
319
|
};
|
|
318
|
-
|
|
320
|
+
type ManualSetCommitsOptions = {
|
|
319
321
|
auto?: false | undefined;
|
|
320
322
|
/**
|
|
321
323
|
* The full repo name as defined in Sentry.
|
|
@@ -330,7 +332,7 @@ declare type ManualSetCommitsOptions = {
|
|
|
330
332
|
*/
|
|
331
333
|
commit: string;
|
|
332
334
|
};
|
|
333
|
-
|
|
335
|
+
type DeployOptions = {
|
|
334
336
|
/**
|
|
335
337
|
* Environment for this release. Values that make sense here would
|
|
336
338
|
* be `production` or `staging`.
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @returns The input, if already an array, or an array with the input as the only element, if not
|
|
6
6
|
*/
|
|
7
7
|
export declare function arrayify<T = unknown>(maybeArray: T | T[]): T[];
|
|
8
|
-
|
|
8
|
+
type PackageJson = Record<string, unknown>;
|
|
9
9
|
/**
|
|
10
10
|
* Get the closes package.json from a given starting point upwards.
|
|
11
11
|
* This handles a few edge cases:
|
|
@@ -37,4 +37,5 @@ export declare function generateGlobalInjectorCode({ release, injectBuildInforma
|
|
|
37
37
|
release: string;
|
|
38
38
|
injectBuildInformation: boolean;
|
|
39
39
|
}): string;
|
|
40
|
+
export declare function stripQueryAndHashFromPath(path: string): string;
|
|
40
41
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/bundler-plugin-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Sentry Bundler Plugin Core",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/bundler-plugin-core",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@sentry/cli": "^2.17.0",
|
|
56
|
-
"@sentry/node": "7.
|
|
56
|
+
"@sentry/node": "7.53.1",
|
|
57
57
|
"find-up": "5.0.0",
|
|
58
58
|
"glob": "9.3.2",
|
|
59
59
|
"magic-string": "0.27.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@rollup/plugin-json": "4.1.0",
|
|
68
68
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
69
69
|
"@rollup/plugin-replace": "^4.0.0",
|
|
70
|
-
"@sentry-internal/eslint-config": "2.
|
|
71
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.
|
|
70
|
+
"@sentry-internal/eslint-config": "2.2.0",
|
|
71
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.2.0",
|
|
72
72
|
"@swc/core": "^1.2.205",
|
|
73
73
|
"@swc/jest": "^0.2.21",
|
|
74
74
|
"@types/jest": "^28.1.3",
|