Socket
Socket
Sign inDemoInstall

@appsignal/javascript

Package Overview
Dependencies
12
Maintainers
9
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.23 to 1.3.24

6

CHANGELOG.md
# AppSignal for JavaScript changelog
## 1.3.24
### Changed
- patch - Update @appsignal/core dependency to 1.1.18.
## 1.3.23

@@ -4,0 +10,0 @@

2

dist/cjs/api.js

@@ -44,3 +44,3 @@ "use strict";

var auth = this._authorization();
return this._uri + "?" + core_1.urlEncode(auth);
return "".concat(this._uri, "?").concat((0, core_1.urlEncode)(auth));
};

@@ -47,0 +47,0 @@ PushApi.prototype._authorization = function () {

@@ -19,3 +19,3 @@ "use strict";

if (time === void 0) { time = this._duration; }
var globals = core_1.getGlobalObject();
var globals = (0, core_1.getGlobalObject)();
var BACKOFF_FACTOR = 1.3;

@@ -22,0 +22,0 @@ var cb = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {

@@ -15,3 +15,3 @@ "use strict";

Environment.origin = function () {
var globals = core_1.getGlobalObject();
var globals = (0, core_1.getGlobalObject)();
if (!globals.navigator ||

@@ -22,7 +22,7 @@ (globals.navigator.product === "ReactNative" && !globals.location)) {

return (globals.location.origin ||
globals.location.protocol + "//" + globals.location.hostname);
"".concat(globals.location.protocol, "//").concat(globals.location.hostname));
};
Environment.transport = function () {
var globals = core_1.getGlobalObject();
if (core_1.isNodeEnv() && typeof jest === "undefined") {
var globals = (0, core_1.getGlobalObject)();
if ((0, core_1.isNodeEnv)() && typeof jest === "undefined") {
return "NodeHTTP";

@@ -41,3 +41,3 @@ }

Environment.supportsPromises = function () {
var globals = core_1.getGlobalObject();
var globals = (0, core_1.getGlobalObject)();
return ("Promise" in globals &&

@@ -44,0 +44,0 @@ "resolve" in globals.Promise &&

@@ -49,3 +49,3 @@ "use strict";

this.ignored.some(function (el) { return el.test(data.message); })) {
console.warn("[APPSIGNAL]: Ignored an error: " + data.message);
console.warn("[APPSIGNAL]: Ignored an error: ".concat(data.message));
return;

@@ -56,3 +56,3 @@ }

if (error_1.message && this.ignored.some(function (el) { return el.test(error_1.message); })) {
console.warn("[APPSIGNAL]: Ignored a span: " + error_1.message);
console.warn("[APPSIGNAL]: Ignored a span: ".concat(error_1.message));
return;

@@ -64,3 +64,3 @@ }

if (this._hooks.decorators.length > 0) {
core_1.compose.apply(void 0, tslib_1.__spread(this._hooks.decorators))(span);
core_1.compose.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(this._hooks.decorators), false))(span);
}

@@ -74,3 +74,3 @@ if (tagsOrFn) {

console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a tags object is deprecated. Use the callback argument instead.");
var tags = (core_1.toHashMap(tagsOrFn) || {});
var tags = ((0, core_1.toHashMap)(tagsOrFn) || {});
span.setTags(tags);

@@ -86,3 +86,3 @@ }

if (this._hooks.overrides.length > 0) {
core_1.compose.apply(void 0, tslib_1.__spread(this._hooks.overrides))(span);
core_1.compose.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(this._hooks.overrides), false))(span);
}

@@ -167,3 +167,3 @@ if (environment_1.Environment.supportsPromises()) {

Appsignal.prototype.addBreadcrumb = function (breadcrumb) {
var crumb = tslib_1.__assign(tslib_1.__assign({ timestamp: Math.round(new Date().getTime() / 1000) }, breadcrumb), { metadata: core_1.toHashMap(breadcrumb.metadata) });
var crumb = tslib_1.__assign(tslib_1.__assign({ timestamp: Math.round(new Date().getTime() / 1000) }, breadcrumb), { metadata: (0, core_1.toHashMap)(breadcrumb.metadata) });
if (!crumb.category) {

@@ -170,0 +170,0 @@ console.warn("[APPSIGNAL]: Breadcrumb not added. `category` is missing.");

@@ -18,3 +18,3 @@ "use strict";

return Array.isArray(item)
? (_a = this._data).push.apply(_a, tslib_1.__spread(item)) : this._data.push(item);
? (_a = this._data).push.apply(_a, tslib_1.__spreadArray([], tslib_1.__read(item), false)) : this._data.push(item);
};

@@ -21,0 +21,0 @@ Queue.prototype.drain = function () {

@@ -30,3 +30,3 @@ "use strict";

Span.prototype.setError = function (error) {
if (!error || !core_1.isError(error))
if (!error || !(0, core_1.isError)(error))
return this;

@@ -36,3 +36,3 @@ this._data.error = {

message: error.message,
backtrace: core_1.getStacktrace(error)
backtrace: (0, core_1.getStacktrace)(error)
};

@@ -42,3 +42,3 @@ return this;

Span.prototype.setTags = function (tags) {
this._data.tags = tslib_1.__assign(tslib_1.__assign({}, this._data.tags), core_1.toHashMapString(tags));
this._data.tags = tslib_1.__assign(tslib_1.__assign({}, this._data.tags), (0, core_1.toHashMapString)(tags));
return this;

@@ -45,0 +45,0 @@ };

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

export declare const VERSION = "1.3.22";
export declare const VERSION = "1.3.23";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = "1.3.22";
exports.VERSION = "1.3.23";
//# sourceMappingURL=version.js.map

@@ -41,3 +41,3 @@ import { __awaiter, __generator } from "tslib";

var auth = this._authorization();
return this._uri + "?" + urlEncode(auth);
return "".concat(this._uri, "?").concat(urlEncode(auth));
};

@@ -44,0 +44,0 @@ PushApi.prototype._authorization = function () {

@@ -18,3 +18,3 @@ import { getGlobalObject, isNodeEnv } from "@appsignal/core";

return (globals.location.origin ||
globals.location.protocol + "//" + globals.location.hostname);
"".concat(globals.location.protocol, "//").concat(globals.location.hostname));
};

@@ -21,0 +21,0 @@ Environment.transport = function () {

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

import { __assign, __awaiter, __generator, __read, __spread } from "tslib";
import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib";
import { compose, toHashMap } from "@appsignal/core";

@@ -47,3 +47,3 @@ import { VERSION } from "./version";

this.ignored.some(function (el) { return el.test(data.message); })) {
console.warn("[APPSIGNAL]: Ignored an error: " + data.message);
console.warn("[APPSIGNAL]: Ignored an error: ".concat(data.message));
return;

@@ -54,3 +54,3 @@ }

if (error_1.message && this.ignored.some(function (el) { return el.test(error_1.message); })) {
console.warn("[APPSIGNAL]: Ignored a span: " + error_1.message);
console.warn("[APPSIGNAL]: Ignored a span: ".concat(error_1.message));
return;

@@ -62,3 +62,3 @@ }

if (this._hooks.decorators.length > 0) {
compose.apply(void 0, __spread(this._hooks.decorators))(span);
compose.apply(void 0, __spreadArray([], __read(this._hooks.decorators), false))(span);
}

@@ -83,3 +83,3 @@ if (tagsOrFn) {

if (this._hooks.overrides.length > 0) {
compose.apply(void 0, __spread(this._hooks.overrides))(span);
compose.apply(void 0, __spreadArray([], __read(this._hooks.overrides), false))(span);
}

@@ -86,0 +86,0 @@ if (Environment.supportsPromises()) {

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

import { __generator, __read, __spread } from "tslib";
import { __generator, __read, __spreadArray } from "tslib";
var Queue = (function () {

@@ -15,3 +15,3 @@ function Queue(data) {

return Array.isArray(item)
? (_a = this._data).push.apply(_a, __spread(item)) : this._data.push(item);
? (_a = this._data).push.apply(_a, __spreadArray([], __read(item), false)) : this._data.push(item);
};

@@ -18,0 +18,0 @@ Queue.prototype.drain = function () {

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

export declare const VERSION = "1.3.22";
export declare const VERSION = "1.3.23";
//# sourceMappingURL=version.d.ts.map

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

export var VERSION = "1.3.22";
export var VERSION = "1.3.23";
//# sourceMappingURL=version.js.map
{
"name": "@appsignal/javascript",
"version": "1.3.23",
"version": "1.3.24",
"main": "dist/cjs/index.js",

@@ -31,3 +31,3 @@ "module": "dist/esm/index.js",

"dependencies": {
"@appsignal/core": "=1.1.17",
"@appsignal/core": "=1.1.18",
"@appsignal/types": "=3.0.0",

@@ -34,0 +34,0 @@ "tslib": "^2.3.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

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

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc