Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/webpack-plugin

Package Overview
Dependencies
Maintainers
9
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/webpack-plugin - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

10

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc