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

@sentry/webpack-plugin

Package Overview
Dependencies
Maintainers
12
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.17.0 to 1.17.1

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## v1.17.1
- fix: Fix types and array normalization for `include` option (#302)
## v1.17.0

@@ -9,0 +13,0 @@

@@ -7,2 +7,3 @@ import { Compiler, WebpackPluginInstance } from 'webpack';

SentryCliUploadSourceMapsOptions,
SourceMapsPathDescriptor,
} from '@sentry/cli';

@@ -17,4 +18,2 @@

SentryCliUploadSourceMapsOptions,
| 'include'
| 'ignore'
| 'ignoreFile'

@@ -31,2 +30,15 @@ | 'rewrite'

/**
* Filepaths to scan recursively for source and source map files
*/
include:
| string
| SourceMapsPathDescriptor
| Array<string | SourceMapsPathDescriptor>;
/**
* Filepaths to ignore when scanning for sources and source maps
*/
ignore?: string | Array<string>;
/**
* Unique name of a release, must be a string, should uniquely identify your release,

@@ -33,0 +45,0 @@ * defaults to sentry-cli releases propose-version command which should always return the correct version

2

package.json

@@ -11,3 +11,3 @@ {

"author": "Sentry",
"version": "1.17.0",
"version": "1.17.1",
"license": "MIT",

@@ -14,0 +14,0 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git",

@@ -63,3 +63,3 @@ <p align="center">

| ------------------ | ----------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| include | `string`/`array`/`object` | required | One or more paths that Sentry CLI should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. Can be given as an object with path-specific options. See [table below](#include) for details. |
| include | `string`/`array`/`object` | required | One or more paths that Sentry CLI should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. Each path can be given as an object with path-specific options. See [table below](#include) for details. |
| org | `string` | optional | The slug of the Sentry organization associated with the app. |

@@ -66,0 +66,0 @@ | project | `string` | optional | The slug of the Sentry project associated with the app. |

@@ -89,9 +89,14 @@ const SentryCli = require('@sentry/cli');

if (options.include) {
if (typeof options.include === 'string') {
this.options.include = toArray(options.include);
}
if (typeof options.include === 'object') {
this.options.include.ignore = toArray(options.include.ignore);
}
this.options.include = toArray(options.include);
this.options.include.forEach(includeEntry => {
if (
typeof includeEntry === 'object' &&
includeEntry.ignore !== undefined
) {
// eslint-disable-next-line no-param-reassign
includeEntry.ignore = toArray(includeEntry.ignore);
}
});
}
if (options.ignore) this.options.ignore = toArray(options.ignore);

@@ -98,0 +103,0 @@

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