@sentry/webpack-plugin
Advanced tools
Comparing version 1.12.1 to 1.13.0
# Changelog | ||
## Unreleased | ||
- "Would I rather be feared or loved? Easy. Both. I want people to be afraid of how much they love me." | ||
## v1.13.0 | ||
- feat: Support minimal CLI options (#225) | ||
- fix: Return an actual error for propagation (#224) | ||
- deps: Bump sentry-cli to `1.58.0` | ||
## v1.12.1 | ||
@@ -4,0 +14,0 @@ |
import { Plugin, Compiler } from 'webpack'; | ||
export interface SentryCliPluginOptions { | ||
// general configuration for sentry-cli | ||
// Sentry instance | ||
url?: string; | ||
// Authentication token for API | ||
authToken?: string; | ||
// Organization slug | ||
org?: string; | ||
// Project slug | ||
project?: string; | ||
// VCS remote name | ||
vcsRemote?: string; | ||
/** | ||
@@ -5,0 +18,0 @@ * Unique name of a release, must be a string, should uniquely identify your release, |
{ | ||
"name": "@sentry/webpack-plugin", | ||
"description": "Official webpack plugin for Sentry", | ||
"keywords": [ | ||
"sentry", | ||
"sentry-cli", | ||
"webpack", | ||
"source-map" | ||
], | ||
"keywords": ["sentry", "sentry-cli", "webpack", "source-map"], | ||
"author": "Sentry", | ||
"version": "1.12.1", | ||
"version": "1.13.0", | ||
"license": "MIT", | ||
@@ -21,3 +16,3 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", | ||
"dependencies": { | ||
"@sentry/cli": "^1.55.0" | ||
"@sentry/cli": "^1.58.0" | ||
}, | ||
@@ -24,0 +19,0 @@ "devDependencies": { |
@@ -27,3 +27,3 @@ <p align="center"> | ||
``` | ||
$ npm install @sentry/webpack-plugin --only=dev | ||
$ npm install @sentry/webpack-plugin --save-dev | ||
``` | ||
@@ -40,3 +40,3 @@ | ||
You can use either `.sentryclirc` file or ENV variables described here | ||
https://docs.sentry.io/learn/cli/configuration/ | ||
https://docs.sentry.io/cli/configuration. | ||
@@ -43,0 +43,0 @@ ### Usage |
@@ -141,3 +141,3 @@ /*eslint-disable*/ | ||
expect(compilation.errors).toEqual([ | ||
'Sentry CLI Plugin: `include` option is required', | ||
new Error('Sentry CLI Plugin: `include` option is required'), | ||
]); | ||
@@ -210,3 +210,5 @@ done(); | ||
setImmediate(() => { | ||
expect(compilation.errors).toEqual(['Sentry CLI Plugin: Pickle Rick']); | ||
expect(compilation.errors).toEqual([ | ||
new Error('Sentry CLI Plugin: Pickle Rick'), | ||
]); | ||
expect(compilationDoneCallback).toBeCalled(); | ||
@@ -213,0 +215,0 @@ done(); |
@@ -129,2 +129,7 @@ const SentryCli = require('@sentry/cli'); | ||
silent: this.isSilent(), | ||
org: this.options.org, | ||
project: this.options.project, | ||
authToken: this.options.authToken, | ||
url: this.options.url, | ||
vcsRemote: this.options.vcsRemote, | ||
}); | ||
@@ -374,9 +379,12 @@ | ||
}) | ||
.catch(err => | ||
.catch(err => { | ||
errorHandler( | ||
err, | ||
() => compilation.errors.push(`Sentry CLI Plugin: ${err.message}`), | ||
() => | ||
compilation.errors.push( | ||
new Error(`Sentry CLI Plugin: ${err.message}`) | ||
), | ||
compilation | ||
) | ||
); | ||
); | ||
}); | ||
} | ||
@@ -383,0 +391,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45980
997
Updated@sentry/cli@^1.58.0