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

@appsignal/plugin-breadcrumbs-network

Package Overview
Dependencies
Maintainers
6
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/plugin-breadcrumbs-network - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

dist/cjs/index.d.ts
import Appsignal from "@appsignal/javascript";
declare type PluginOptions = {
xhrEnabled: true;
fetchEnabled: true;
xhrEnabled: boolean;
fetchEnabled: boolean;
ignoreUrls: RegExp[];
};
declare function networkBreadcrumbsPlugin({ xhrEnabled, fetchEnabled, ignoreUrls }: Partial<PluginOptions>): (this: Appsignal) => void;
declare function networkBreadcrumbsPlugin(options?: Partial<PluginOptions>): (this: Appsignal) => void;
export declare const plugin: typeof networkBreadcrumbsPlugin;
export {};
//# sourceMappingURL=index.d.ts.map
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
function networkBreadcrumbsPlugin(_a) {
var _b = _a.xhrEnabled, xhrEnabled = _b === void 0 ? true : _b, _c = _a.fetchEnabled, fetchEnabled = _c === void 0 ? true : _c, _d = _a.ignoreUrls, ignoreUrls = _d === void 0 ? [] : _d;
var DEFAULTS = {
xhrEnabled: true,
fetchEnabled: true,
ignoreUrls: []
};
function networkBreadcrumbsPlugin(options) {
var opts = __assign(__assign({}, DEFAULTS), options);
var xhrEnabled = opts.xhrEnabled, fetchEnabled = opts.fetchEnabled, ignoreUrls = opts.ignoreUrls;
var isXhrEnabled = xhrEnabled ? "XMLHttpRequest" in window : false;

@@ -6,0 +23,0 @@ var isFetchEnabled = fetchEnabled ? "fetch" in window : false;

import Appsignal from "@appsignal/javascript";
declare type PluginOptions = {
xhrEnabled: true;
fetchEnabled: true;
xhrEnabled: boolean;
fetchEnabled: boolean;
ignoreUrls: RegExp[];
};
declare function networkBreadcrumbsPlugin({ xhrEnabled, fetchEnabled, ignoreUrls }: Partial<PluginOptions>): (this: Appsignal) => void;
declare function networkBreadcrumbsPlugin(options?: Partial<PluginOptions>): (this: Appsignal) => void;
export declare const plugin: typeof networkBreadcrumbsPlugin;
export {};
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,20 @@

function networkBreadcrumbsPlugin(_a) {
var _b = _a.xhrEnabled, xhrEnabled = _b === void 0 ? true : _b, _c = _a.fetchEnabled, fetchEnabled = _c === void 0 ? true : _c, _d = _a.ignoreUrls, ignoreUrls = _d === void 0 ? [] : _d;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var DEFAULTS = {
xhrEnabled: true,
fetchEnabled: true,
ignoreUrls: []
};
function networkBreadcrumbsPlugin(options) {
var opts = __assign(__assign({}, DEFAULTS), options);
var xhrEnabled = opts.xhrEnabled, fetchEnabled = opts.fetchEnabled, ignoreUrls = opts.ignoreUrls;
var isXhrEnabled = xhrEnabled ? "XMLHttpRequest" in window : false;

@@ -4,0 +21,0 @@ var isFetchEnabled = fetchEnabled ? "fetch" in window : false;

{
"name": "@appsignal/plugin-breadcrumbs-network",
"version": "1.1.0",
"version": "1.1.1",
"main": "dist/cjs/index.js",

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

"dependencies": {
"@appsignal/javascript": "^1.3.0"
"@appsignal/javascript": "^1.3.1"
},

@@ -28,3 +28,3 @@ "publishConfig": {

},
"gitHead": "014073816af166064c91bc96548f8fd508836820"
"gitHead": "e2042e1d73e0b41725d54fd5bf34d3f27fe9b6fd"
}

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