@sentry/webpack-plugin
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -11,3 +11,3 @@ { | ||
"author": "Sentry", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", | ||
"dependencies": { | ||
"@sentry/cli": "^1.28.1" | ||
"@sentry/cli": "^1.30.2" | ||
}, | ||
@@ -37,7 +37,11 @@ "devDependencies": { | ||
"test": "jest", | ||
"test:integration": "cd example && yarn && yarn test", | ||
"codecov": "codecov" | ||
}, | ||
"jest": { | ||
"collectCoverage": true | ||
"collectCoverage": true, | ||
"testPathIgnorePatterns": [ | ||
"example" | ||
] | ||
} | ||
} |
@@ -64,5 +64,6 @@ <p align="center"> | ||
* `ext [optional]` - `string`, adds an additional file extension to be considered. By default the following file extensions are processed: js, map, jsbundle and bundle. | ||
* `urlPrefix [optional]` - `string`, this sets an URL prefix in front of all files. This defaults to `~/` but you might want to set this to the full URL. This is also useful if your files are stored in a sub folder. eg: `--url-prefix '~/static/js'` | ||
* `urlPrefix [optional]` - `string`, this sets an URL prefix in front of all files. This defaults to `~/` but you might want to set this to the full URL. This is also useful if your files are stored in a sub folder. eg: `url-prefix '~/static/js'` | ||
* `validate [optional]` - `boolean`, this attempts sourcemap validation before upload when rewriting is not enabled. It will spot a variety of issues with source maps and cancel the upload if any are found. This is not the default as this can cause false positives. | ||
* `stripPrefix | stripCommonPrefix [optional]` - `string`, when paired with `--rewrite` this will chop-off a prefix from uploaded files. For instance you can use this to remove a path that is build machine specific. | ||
* `stripPrefix [optional]` - `array`, when paired with `rewrite` this will chop-off a prefix from uploaded files. For instance you can use this to remove a path that is build machine specific. | ||
* `stripCommonPrefix [optional]` - `boolean`, when paired with `rewrite` this will add `~` to the `stripPrefix` array. | ||
* `sourceMapReference [optional]` - `boolean`, this prevents the automatic detection of sourcemap references. | ||
@@ -69,0 +70,0 @@ * `rewrite [optional]` - `boolean`, enables rewriting of matching sourcemaps so that indexed maps are flattened and missing sources are inlined if possible., defaults to `true` |
@@ -21,2 +21,7 @@ const SentryCli = require('@sentry/cli'); | ||
if (typeof originalEntry === 'function') { | ||
return () => | ||
Promise.resolve(originalEntry()).then(entry => injectEntry(entry, newEntry)); | ||
} | ||
return newEntry; | ||
@@ -73,6 +78,22 @@ } | ||
(Array.isArray(options.ignore) ? options.ignore : [options.ignore]); | ||
this.dryRun = this.options.dryRun === true; | ||
} | ||
getSentryCli() { | ||
if (!this.dryRun) { | ||
return new SentryCli(this.options.configFile); | ||
} | ||
return { | ||
releases: { | ||
proposeVersion: () => Promise.resolve('1.0.0-dev'), | ||
new: () => Promise.resolve(), | ||
uploadSourceMaps: () => Promise.resolve(), | ||
finalize: () => Promise.resolve(), | ||
}, | ||
}; | ||
} | ||
apply(compiler) { | ||
const sentryCli = new SentryCli(this.options.configFile); | ||
const sentryCli = this.getSentryCli(); | ||
const { release, include } = this.options; | ||
@@ -79,0 +100,0 @@ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
124098
283
72
0
28
Updated@sentry/cli@^1.30.2