@sentry/webpack-plugin
Advanced tools
+4
-0
@@ -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 @@ |
+14
-2
@@ -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 |
+1
-1
@@ -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", |
+1
-1
@@ -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. | |
+11
-6
@@ -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 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
45110
1.1%572
2.51%