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

webpack-sentry-plugin

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-sentry-plugin - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

8

dist/index.js

@@ -24,3 +24,3 @@ 'use strict';

var DEFAULT_TRANSFORM = function DEFAULT_TRANSFORM(filename) {
return filename;
return '~/' + filename;
};

@@ -37,3 +37,3 @@

this.releaseVersion = _lodash2.default.isFunction(options.release) ? options.release() : options.release;
this.releaseVersion = options.release;

@@ -61,2 +61,6 @@ this.include = options.include || /\.js$|\.map$/;

if (_lodash2.default.isFunction(_this.releaseVersion)) {
_this.releaseVersion = _this.releaseVersion(compilation.hash);
}
return _this.createRelease().then(function () {

@@ -63,0 +67,0 @@ return _this.uploadFiles(files);

{
"name": "webpack-sentry-plugin",
"version": "1.6.0",
"version": "1.7.0",
"description": "Webpack plugin to upload source maps to Sentry",

@@ -5,0 +5,0 @@ "keywords": [

@@ -82,3 +82,3 @@ # Sentry plugin

- `filenameTransform`: Function to transform filename before uploading to Sentry
- `filenameTransform`: Function to transform filename before uploading to Sentry. Defaults to prefixing filename with `~/`, which is used by Sentry as a [host wildcard](https://docs.sentry.io/clients/javascript/sourcemaps/#assets-multiple-origins)

@@ -97,2 +97,16 @@ ```js

- `release`: Release name to attach source maps to. Can be string or function that returns a string. If a function is passed, it will receive the build hash as an argument
```js
var config = {
plugins: [
new SentryPlugin({
release: function(hash) {
return hash
}
})
]
}
```
- `suppressErrors`: Display warnings instead of failing webpack build - useful in case webpack compilation is done during deploy on multiple instances

@@ -108,3 +122,2 @@

- `release`: Release name to attach source maps to. Can be string or function that returns a string

@@ -118,9 +131,9 @@ ### Thanks

Contributions are welcome 😄. To run the tests, please ensure you have the relevant environment variables set up. You can `cp .env.example .env` and fill it in.
Contributions are welcome 😄. To run the tests, please ensure you have the relevant environment variables set up. You can `cp .env.example .env` and fill it in with test account credentials. An API key can be created [here](https://sentry.io/api/), assuming you are signed in.
#### Commands to be aware of
*Warning*: The test suite will create releases & upload files. They should be cleaned up afterward, but ensure that you are not overwriting something important!
*Warning* ⚠️: The test suite will create releases & upload files. They should be cleaned up afterward, but ensure that you are not overwriting something important!
- `npm test`: Runs the test suite
- `npm run build`: Compiles distribution build
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