@sentry/webpack-plugin
Advanced tools
Comparing version 1.19.1 to 1.20.0
@@ -5,2 +5,8 @@ # Changelog | ||
## 1.20.0 | ||
- build: Bump `@sentry/cli` version to `1.74.6` (#406) | ||
- feat: Add a means to detect if the CLI binary exists (#402) | ||
- feat: Add pipeline argument (#403) | ||
## 1.19.1 | ||
@@ -7,0 +13,0 @@ |
@@ -133,2 +133,3 @@ import { Compiler, WebpackPluginInstance } from 'webpack'; | ||
constructor(options: SentryCliPlugin.SentryCliPluginOptions); | ||
static cliBinaryExists(): string; | ||
apply(compiler: Compiler): void; | ||
@@ -135,0 +136,0 @@ } |
@@ -11,3 +11,3 @@ { | ||
"author": "Sentry", | ||
"version": "1.19.1", | ||
"version": "1.20.0", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git", | ||
"dependencies": { | ||
"@sentry/cli": "^1.74.4", | ||
"@sentry/cli": "^1.74.6", | ||
"webpack-sources": "^2.0.0 || ^3.0.0" | ||
@@ -25,0 +25,0 @@ }, |
const SentryCli = require('@sentry/cli'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const util = require('util'); | ||
const { RawSource } = require('webpack-sources'); | ||
const pjson = require('../package.json'); | ||
@@ -9,2 +11,5 @@ const SENTRY_LOADER = path.resolve(__dirname, 'sentry.loader.js'); | ||
// Set the User-Agent string. | ||
process.env.SENTRY_PIPELINE = `webpack-plugin/${pjson.version}`; | ||
/** | ||
@@ -197,2 +202,6 @@ * Helper function that ensures an object key is defined. This mutates target! | ||
static cliBinaryExists() { | ||
return fs.existsSync(SentryCli.getPath()); | ||
} | ||
/** Creates a new Sentry CLI instance. */ | ||
@@ -199,0 +208,0 @@ getSentryCli() { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
54360
706
10
Updated@sentry/cli@^1.74.6