Socket
Socket
Sign inDemoInstall

@sentry/webpack-plugin

Package Overview
Dependencies
Maintainers
12
Versions
98
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.19.0 to 1.19.1

4

CHANGELOG.md

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

## 1.19.1
- fix(deps): Add `webpack-sources` dependency (#397)
## 1.19.0

@@ -7,0 +11,0 @@

5

package.json

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

"author": "Sentry",
"version": "1.19.0",
"version": "1.19.1",
"license": "MIT",

@@ -22,3 +22,4 @@ "repository": "git@github.com:getsentry/sentry-webpack-plugin.git",

"dependencies": {
"@sentry/cli": "^1.74.4"
"@sentry/cli": "^1.74.4",
"webpack-sources": "^2.0.0 || ^3.0.0"
},

@@ -25,0 +26,0 @@ "devDependencies": {

const SentryCli = require('@sentry/cli');
const path = require('path');
const util = require('util');
const { RawSource } = require('webpack-sources');

@@ -78,2 +79,3 @@ const SENTRY_LOADER = path.resolve(__dirname, 'sentry.loader.js');

function attachAfterCodeGenerationHook(compiler, options) {
// This is only a problem for folks on webpack 3 and below
if (!compiler.hooks || !compiler.hooks.make) {

@@ -83,15 +85,2 @@ return;

let webpackSources;
try {
// eslint-disable-next-line global-require, import/no-extraneous-dependencies
webpackSources = require('webpack-sources');
} catch (_e) {
// eslint-disable-next-line no-console
console.warn(
'Coud not resolve package: webpack-sources. Skipping injection for the remote entry file.'
);
return;
}
const { RawSource } = webpackSources;
const moduleFederationPlugin =

@@ -98,0 +87,0 @@ compiler.options &&

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