Socket
Socket
Sign inDemoInstall

columbidae

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

columbidae - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

package.json
{
"name": "columbidae",
"module": "ColumbidaeJS",
"version": "0.1.0",
"moduleName": "ColumbidaeJS",
"version": "0.1.1",
"description": "Error reporter for Stackdriver or Sentry",
"main": "src/main.js",
"main": "dist/columbidae.js",
"module": "src/main.js",
"scripts": {

@@ -8,0 +9,0 @@ "test": "npm run test:unit && npm run test:e2e:phantom",

@@ -27,3 +27,3 @@ import json from 'rollup-plugin-json'

export default {
moduleName: pkg.module + 'Example',
moduleName: pkg.moduleNam + 'Example',
entry: 'src/example.js',

@@ -30,0 +30,0 @@ dest: 'test/public/example.js',

@@ -25,3 +25,3 @@ import json from 'rollup-plugin-json'

export default {
moduleName: pkg.module,
moduleName: pkg.moduleName,
entry: 'src/main.js',

@@ -28,0 +28,0 @@ dest: 'dist/columbidae.js',

@@ -1,26 +0,26 @@

!function(e, t) {
"object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define([ "exports" ], t) : t(e.ColumbidaeJSExample = e.ColumbidaeJSExample || {});
!function(e, n) {
"object" == typeof exports && "undefined" != typeof module ? n(exports) : "function" == typeof define && define.amd ? define([ "exports" ], n) : n(e.undefinedExample = e.undefinedExample || {});
}(this, function(e) {
"use strict";
function t(e, t) {
if ("undefined" != typeof navigator.sendBeacon) return navigator.sendBeacon(e, t);
var n = /*@cc_on @if (@_jscript_version < 10) window.XDomainRequest || @end @*/ window.XMLHttpRequest;
if (void 0 === n) return flase;
var r = new n();
return r.open("POST", e, !0), r.send(t), !0;
function n(e, n) {
if ("undefined" != typeof navigator.sendBeacon) return navigator.sendBeacon(e, n);
var t = /*@cc_on @if (@_jscript_version < 10) window.XDomainRequest || @end @*/ window.XMLHttpRequest;
if (void 0 === t) return flase;
var r = new t();
return r.open("POST", e, !0), r.send(n), !0;
}
function n(e) {
var t = null;
return "string" == typeof e.stack && (t = r(e.stack)), {
function t(e) {
var n = null;
return "string" == typeof e.stack && (n = r(e.stack)), {
type: "Error",
value: e.message,
stacktrace: t
stacktrace: n
};
}
function r(e) {
var t = [];
return [ c, f ].forEach(function(n) {
if (!(t.length > 0)) for (var r = null; null != (r = n.exec(e)); ) {
var n = [];
return [ c, f ].forEach(function(t) {
if (!(n.length > 0)) for (var r = null; null != (r = t.exec(e)); ) {
var i = r[1].trim();
0 == i.length && (i = "?"), t.unshift({
0 == i.length && (i = "?"), n.unshift({
"function": i,

@@ -32,4 +32,4 @@ filename: r[2],

}
}), 0 == t.length ? null : {
frames: t
}), 0 == n.length ? null : {
frames: n
};

@@ -44,3 +44,3 @@ }

this.start = new Date().getTime(), this.uuidv4 = e.uuidv4, this.sendBeacon = e.sendBeacon,
this.url = "//sentry.io/api/" + e.projectId + "/store/?sentry_version=7&sentry_client=ColumbidaeJS%2F" + l + "&sentry_key=" + e.key,
this.url = "//sentry.io/api/" + e.projectId + "/store/?sentry_version=7&sentry_client=ColumbidaeJS%2F" + x + "&sentry_key=" + e.key,
this.payload = {

@@ -79,27 +79,27 @@ project: e.projectId,

if (void 0 !== e && e.getRandomValues) {
var t = new Uint16Array(8);
e.getRandomValues(t), t[3] = 4095 & t[3] | 16384, t[4] = 16383 & t[4] | 32768;
var n = function(e) {
for (var t = e.toString(16); t.length < 4; ) t = "0" + t;
return t;
var n = new Uint16Array(8);
e.getRandomValues(n), n[3] = 4095 & n[3] | 16384, n[4] = 16383 & n[4] | 32768;
var t = function(e) {
for (var n = e.toString(16); n.length < 4; ) n = "0" + n;
return n;
};
return n(t[0]) + n(t[1]) + n(t[2]) + n(t[3]) + n(t[4]) + n(t[5]) + n(t[6]) + n(t[7]);
return t(n[0]) + t(n[1]) + t(n[2]) + t(n[3]) + t(n[4]) + t(n[5]) + t(n[6]) + t(n[7]);
}
return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(e) {
var t = 16 * Math.random() | 0;
return ("x" === e ? t : 3 & t | 8).toString(16);
var n = 16 * Math.random() | 0;
return ("x" === e ? n : 3 & n | 8).toString(16);
});
}
var c = /at(.*) \(?(.+):(\d+):(\d+)/g, f = /(.*)@(.+):(\d+):(\d+)/g, l = "0.1.0";
var c = /at(.*) \(?(.+):(\d+):(\d+)/g, f = /(.*)@(.+):(\d+):(\d+)/g, x = "0.1.0";
i.prototype.send = function(e) {
var r = this.uuidv4();
return this.payload.exception.values.push(n(e)), this.payload.extra["session:duration"] = new Date().getTime() - this.start,
this.payload.event_id = r, t(this.url, JSON.stringify(this.payload)), r;
}, e.HelloSentry = function(e, t) {
return this.payload.exception.values.push(t(e)), this.payload.extra["session:duration"] = new Date().getTime() - this.start,
this.payload.event_id = r, n(this.url, JSON.stringify(this.payload)), r;
}, e.HelloSentry = function(e, n) {
e.uuidv4 = d;
var n = new i(e);
var t = new i(e);
try {
s(t);
s(n);
} catch (r) {
return n.send(r);
return t.send(r);
}

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