Socket
Socket
Sign inDemoInstall

webpack-sentry-plugin

Package Overview
Dependencies
Maintainers
3
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 2.0.0 to 2.0.1

16

dist/index.js

@@ -5,4 +5,2 @@ "use strict";

var _path = _interopRequireDefault(require("path"));
var _fs = _interopRequireDefault(require("fs"));

@@ -106,3 +104,3 @@

const files = _this.getFiles(compiler, compilation);
const files = _this.getFiles(compilation);

@@ -134,3 +132,3 @@ if (typeof _this.releaseVersion === 'function') {

if (_this.deleteAfterCompile) {
yield _this.deleteFiles(compiler, stats);
yield _this.deleteFiles(stats);
}

@@ -169,10 +167,8 @@ });

getFiles(compiler, compilation) {
getFiles(compilation) {
return Object.keys(compilation.assets).map(name => {
if (this.isIncludeOrExclude(name)) {
const filePath = _path.default.join(compiler.options.output.path, name);
return {
name,
filePath
filePath: compilation.assets[name].existsAt
};

@@ -264,3 +260,3 @@ }

deleteFiles(compiler, stats) {
deleteFiles(stats) {
var _this4 = this;

@@ -270,3 +266,3 @@

Object.keys(stats.compilation.assets).filter(name => _this4.deleteRegex.test(name)).forEach(name => {
const filePath = _path.default.join(compiler.options.output.path, name);
const filePath = stats.compilation.assets[name].existsAt;

@@ -273,0 +269,0 @@ _fs.default.unlinkSync(filePath);

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

@@ -20,3 +20,7 @@ "engines": {

"start": "nps",
"format": "nps format",
"lint": "nps lint",
"test": "nps test",
"test:record": "nps test:record",
"validate": "nps validate",
"prepublish": "nps prepublish",

@@ -56,3 +60,2 @@ "precommit": "opt --in pre-commit --exec \"nps format lint\"",

"eslint-plugin-import": "^2.10.0",
"husky": "^0.14.3",
"jest": "^24.7.1",

@@ -63,2 +66,3 @@ "nps": "^5.9.0",

"prettier-eslint-cli": "^4.7.1",
"replayer": "^2.2.3",
"webpack": "^4.5.0"

@@ -65,0 +69,0 @@ },

@@ -5,4 +5,7 @@ # Sentry plugin

A webpack (1, 2, 3 or 4) plugin to upload source maps to [Sentry](https://sentry.io/).
A webpack plugin to upload source maps to [Sentry](https://sentry.io/).
The current version 2 is compatible with webpack 4 and 5 and requires at least NodeJS 6.
If you are running on webpack 1, 2 or 3, please use the dedicated version 1 of the module (latest is currently `1.16.0`), which provides the same API.
### Installation

@@ -9,0 +12,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