@sentry/webpack-plugin 1.18.3 → 1.18.4
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/CHANGELOG.md +5 -0
- package/README.md +1 -0
- package/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/sentry.loader.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
- "Would I rather be feared or loved? Easy. Both. I want people to be afraid of
|
|
6
6
|
how much they love me." — Michael Scott
|
|
7
7
|
|
|
8
|
+
## v1.18.4
|
|
9
|
+
|
|
10
|
+
- deps: Bump sentry-cli to 1.72.0
|
|
11
|
+
- ref: Use `var` instead of `const` for module loader for ES5-compat (#338)
|
|
12
|
+
|
|
8
13
|
## v1.18.3
|
|
9
14
|
|
|
10
15
|
- types: Fix typo in vcsRemote config option (#327)
|
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ Also, check the [example](example) directory.
|
|
|
65
65
|
| project | `string` | optional | The slug of the Sentry project associated with the app. |
|
|
66
66
|
| authToken | `string` | optional | The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: `project:releases` (and `org:read` if `setCommits` option is used). |
|
|
67
67
|
| url | `string` | optional | The base URL of your Sentry instance. Defaults to https://sentry.io/, which is the correct value for SAAS customers. |
|
|
68
|
+
| customHeader | `string` | optional | A header added to all outgoing requests. A string in the format `header-key: header-value` |
|
|
68
69
|
| vcsRemote | `string` | optional | The name of the remote in the version control system. Defaults to `origin`. |
|
|
69
70
|
| release | `string` | optional | Unique identifier for the release. Defaults to the output of the `sentry-cli releases propose-version` command, which automatically detects values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses `HEAD`'s commit SHA. (**For `HEAD` option, requires access to `git` CLI and for the root directory to be a valid repository**). |
|
|
70
71
|
| dist | `string` | optional | Unique identifier for the distribution, used to further segment your release. Usually your build number. |
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"source-map"
|
|
9
9
|
],
|
|
10
10
|
"author": "Sentry",
|
|
11
|
-
"version": "1.18.
|
|
11
|
+
"version": "1.18.4",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"repository": "git@github.com:getsentry/sentry-webpack-plugin.git",
|
|
14
14
|
"homepage": "https://github.com/getsentry/sentry-webpack-plugin",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"node": ">= 8"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sentry/cli": "^1.
|
|
21
|
+
"@sentry/cli": "^1.72.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/webpack": "^4.41.31 || ^5.0.0",
|
package/src/sentry.loader.js
CHANGED
|
@@ -2,7 +2,7 @@ module.exports = function sentryLoader(content, map, meta) {
|
|
|
2
2
|
const { releasePromise, org, project } = this.query;
|
|
3
3
|
const callback = this.async();
|
|
4
4
|
releasePromise.then(version => {
|
|
5
|
-
let sentryRelease = `
|
|
5
|
+
let sentryRelease = `var _global = (typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}); _global.SENTRY_RELEASE={id:"${version}"};`;
|
|
6
6
|
if (project) {
|
|
7
7
|
const key = org ? `${project}@${org}` : project;
|
|
8
8
|
sentryRelease += `
|