🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@sentry/webpack-plugin

Package Overview
Dependencies
Maintainers
12
Versions
117
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

to
2.9.0

81

dist/cjs/index.js

@@ -31,2 +31,52 @@ 'use strict';

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
function webpackReleaseInjectionPlugin(injectionCode) {

@@ -56,2 +106,22 @@ return {

}
function webpackBundleSizeOptimizationsPlugin(replacementValues) {
return {
name: "sentry-webpack-bundle-size-optimizations-plugin",
webpack: function webpack(compiler) {
var _compiler$webpack2, _webback4or5$default2;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore webpack version compatibility shenanigans
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
var DefinePlugin =
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore webpack version compatibility shenanigans
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(compiler === null || compiler === void 0 ? void 0 : (_compiler$webpack2 = compiler.webpack) === null || _compiler$webpack2 === void 0 ? void 0 : _compiler$webpack2.DefinePlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : webback4or5__namespace.DefinePlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : (_webback4or5$default2 = webback4or5__namespace["default"]) === null || _webback4or5$default2 === void 0 ? void 0 : _webback4or5$default2.DefinePlugin);
compiler.options.plugins = compiler.options.plugins || [];
compiler.options.plugins.push(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call
new DefinePlugin(_objectSpread2({}, replacementValues)));
}
};
}
function webpackDebugIdInjectionPlugin() {

@@ -61,3 +131,3 @@ return {

webpack: function webpack(compiler) {
var _compiler$webpack2, _webback4or5$default2;
var _compiler$webpack3, _webback4or5$default3;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment

@@ -70,3 +140,3 @@ // @ts-ignore webpack version compatibility shenanigans

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(compiler === null || compiler === void 0 ? void 0 : (_compiler$webpack2 = compiler.webpack) === null || _compiler$webpack2 === void 0 ? void 0 : _compiler$webpack2.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : webback4or5__namespace.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : (_webback4or5$default2 = webback4or5__namespace["default"]) === null || _webback4or5$default2 === void 0 ? void 0 : _webback4or5$default2.BannerPlugin);
(compiler === null || compiler === void 0 ? void 0 : (_compiler$webpack3 = compiler.webpack) === null || _compiler$webpack3 === void 0 ? void 0 : _compiler$webpack3.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : webback4or5__namespace.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : (_webback4or5$default3 = webback4or5__namespace["default"]) === null || _webback4or5$default3 === void 0 ? void 0 : _webback4or5$default3.BannerPlugin);
compiler.options.plugins = compiler.options.plugins || [];

@@ -110,3 +180,3 @@ compiler.options.plugins.push(

webpack: function webpack(compiler) {
var _compiler$webpack3, _webback4or5$default3;
var _compiler$webpack4, _webback4or5$default4;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment

@@ -119,3 +189,3 @@ // @ts-ignore webpack version compatibility shenanigans

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(compiler === null || compiler === void 0 ? void 0 : (_compiler$webpack3 = compiler.webpack) === null || _compiler$webpack3 === void 0 ? void 0 : _compiler$webpack3.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : webback4or5__namespace.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : (_webback4or5$default3 = webback4or5__namespace["default"]) === null || _webback4or5$default3 === void 0 ? void 0 : _webback4or5$default3.BannerPlugin);
(compiler === null || compiler === void 0 ? void 0 : (_compiler$webpack4 = compiler.webpack) === null || _compiler$webpack4 === void 0 ? void 0 : _compiler$webpack4.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : webback4or5__namespace.BannerPlugin) || (webback4or5__namespace === null || webback4or5__namespace === void 0 ? void 0 : (_webback4or5$default4 = webback4or5__namespace["default"]) === null || _webback4or5$default4 === void 0 ? void 0 : _webback4or5$default4.BannerPlugin);
compiler.options.plugins = compiler.options.plugins || [];

@@ -136,3 +206,4 @@ compiler.options.plugins.push(

debugIdInjectionPlugin: webpackDebugIdInjectionPlugin,
debugIdUploadPlugin: webpackDebugIdUploadPlugin
debugIdUploadPlugin: webpackDebugIdUploadPlugin,
bundleSizeOptimizationsPlugin: webpackBundleSizeOptimizationsPlugin
});

@@ -139,0 +210,0 @@

8

package.json
{
"name": "@sentry/webpack-plugin",
"version": "2.8.0",
"version": "2.9.0",
"description": "Official Sentry Webpack plugin",

@@ -51,3 +51,3 @@ "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",

"dependencies": {
"@sentry/bundler-plugin-core": "2.8.0",
"@sentry/bundler-plugin-core": "2.9.0",
"unplugin": "1.0.1",

@@ -62,4 +62,4 @@ "uuid": "^9.0.0"

"@rollup/plugin-commonjs": "22.0.1",
"@sentry-internal/eslint-config": "2.8.0",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.8.0",
"@sentry-internal/eslint-config": "2.9.0",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.9.0",
"@swc/core": "^1.2.205",

@@ -66,0 +66,0 @@ "@swc/jest": "^0.2.21",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet