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

@sentry/integrations

Package Overview
Dependencies
Maintainers
12
Versions
391
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/integrations - npm Package Compare versions

Comparing version 6.3.0-beta.7 to 6.3.0

9

build/rewriteframes.js

@@ -678,2 +678,6 @@ (function (__window) {

*/
this._prefix = 'app:///';
/**
* @inheritDoc
*/
this._iteratee = function (frame) {

@@ -693,3 +697,3 @@ if (!frame.filename) {

var base = _this._root ? relative(_this._root, filename) : basename(filename);
frame.filename = "app:///" + base;
frame.filename = "" + _this._prefix + base;
}

@@ -701,2 +705,5 @@ return frame;

}
if (options.prefix) {
this._prefix = options.prefix;
}
if (options.iteratee) {

@@ -703,0 +710,0 @@ this._iteratee = options.iteratee;

2

build/rewriteframes.min.js

@@ -1,2 +0,2 @@

!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,o(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function a(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function s(t){var e=a();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=a(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),a();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=i()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=a().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=a().performance;if(t){var e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=r<36e5,i=t.timing&&t.timing.navigationStart,c="number"==typeof i?Math.abs(i+e-n):36e5;(o||c<36e5)&&(r<=c&&t.timeOrigin)}}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window);
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,o(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function a(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function s(t){var e=a();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=a(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),a();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=i()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=a().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=a().performance;if(t){var e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=r<36e5,i=t.timing&&t.timing.navigationStart,c="number"==typeof i?Math.abs(i+e-n):36e5;(o||c<36e5)&&(r<=c&&t.timeOrigin)}}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._prefix="app:///",this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename=""+n._prefix+i}return t},e.root&&(this._root=e.root),e.prefix&&(this._prefix=e.prefix),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window);
//# sourceMappingURL=rewriteframes.min.js.map

@@ -20,4 +20,9 @@ import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';

*/
private readonly _prefix;
/**
* @inheritDoc
*/
constructor(options?: {
root?: string;
prefix?: string;
iteratee?: StackFrameIteratee;

@@ -24,0 +29,0 @@ });

@@ -19,2 +19,6 @@ Object.defineProperty(exports, "__esModule", { value: true });

*/
this._prefix = 'app:///';
/**
* @inheritDoc
*/
this._iteratee = function (frame) {

@@ -34,3 +38,3 @@ if (!frame.filename) {

var base = _this._root ? utils_1.relative(_this._root, filename) : utils_1.basename(filename);
frame.filename = "app:///" + base;
frame.filename = "" + _this._prefix + base;
}

@@ -42,2 +46,5 @@ return frame;

}
if (options.prefix) {
this._prefix = options.prefix;
}
if (options.iteratee) {

@@ -44,0 +51,0 @@ this._iteratee = options.iteratee;

@@ -20,4 +20,9 @@ import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';

*/
private readonly _prefix;
/**
* @inheritDoc
*/
constructor(options?: {
root?: string;
prefix?: string;
iteratee?: StackFrameIteratee;

@@ -24,0 +29,0 @@ });

@@ -18,2 +18,6 @@ import { __assign } from "tslib";

*/
this._prefix = 'app:///';
/**
* @inheritDoc
*/
this._iteratee = function (frame) {

@@ -33,3 +37,3 @@ if (!frame.filename) {

var base = _this._root ? relative(_this._root, filename) : basename(filename);
frame.filename = "app:///" + base;
frame.filename = "" + _this._prefix + base;
}

@@ -41,2 +45,5 @@ return frame;

}
if (options.prefix) {
this._prefix = options.prefix;
}
if (options.iteratee) {

@@ -43,0 +50,0 @@ this._iteratee = options.iteratee;

{
"name": "@sentry/integrations",
"version": "6.3.0-beta.7",
"version": "6.3.0",
"description": "Pluggable integrations that can be used to enhance JS SDKs",

@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/types": "6.3.0-beta.7",
"@sentry/utils": "6.3.0-beta.7",
"@sentry/types": "6.3.0",
"@sentry/utils": "6.3.0",
"localforage": "^1.8.1",

@@ -26,3 +26,3 @@ "tslib": "^1.9.3"

"devDependencies": {
"@sentry-internal/eslint-config-sdk": "6.3.0-beta.7",
"@sentry-internal/eslint-config-sdk": "6.3.0",
"chai": "^4.1.2",

@@ -29,0 +29,0 @@ "eslint": "7.6.0",

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

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