New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/esbuild-plugin

Package Overview
Dependencies
Maintainers
12
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/esbuild-plugin - npm Package Compare versions

Comparing version 2.8.0 to 2.9.0

119

dist/cjs/index.js

@@ -29,2 +29,50 @@ 'use strict';

function _iterableToArrayLimit(arr, i) {
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
if (null != _i) {
var _s,
_e,
_x,
_r,
_arr = [],
_n = !0,
_d = !1;
try {
if (_x = (_i = _i.call(arr)).next, 0 === i) {
if (Object(_i) !== _i) return;
_n = !1;
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
} catch (err) {
_d = !0, _e = err;
} finally {
try {
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
} finally {
if (_d) throw _e;
}
}
return _arr;
}
}
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 _regeneratorRuntime() {

@@ -361,2 +409,52 @@ _regeneratorRuntime = function () {

}
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 _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
}
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
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);
}

@@ -605,2 +703,20 @@ function esbuildReleaseInjectionPlugin(injectionCode) {

}
function esbuildBundleSizeOptimizationsPlugin(replacementValues) {
return {
name: "sentry-esbuild-bundle-size-optimizations-plugin",
esbuild: {
setup: function setup(_ref6) {
var initialOptions = _ref6.initialOptions;
var replacementStringValues = {};
Object.entries(replacementValues).forEach(function (_ref7) {
var _ref8 = _slicedToArray(_ref7, 2),
key = _ref8[0],
value = _ref8[1];
replacementStringValues[key] = JSON.stringify(value);
});
initialOptions.define = _objectSpread2(_objectSpread2({}, initialOptions.define), replacementStringValues);
}
}
};
}
var sentryUnplugin = bundlerPluginCore.sentryUnpluginFactory({

@@ -610,3 +726,4 @@ releaseInjectionPlugin: esbuildReleaseInjectionPlugin,

moduleMetadataInjectionPlugin: esbuildModuleMetadataInjectionPlugin,
debugIdUploadPlugin: esbuildDebugIdUploadPlugin
debugIdUploadPlugin: esbuildDebugIdUploadPlugin,
bundleSizeOptimizationsPlugin: esbuildBundleSizeOptimizationsPlugin
});

@@ -613,0 +730,0 @@

8

package.json
{
"name": "@sentry/esbuild-plugin",
"version": "2.8.0",
"version": "2.9.0",
"description": "Official Sentry esbuild 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-node-resolve": "13.3.0",
"@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

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