@appsignal/plugin-breadcrumbs-network
Advanced tools
Comparing version 1.1.0 to 1.1.1
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
20215
212
0
Updated@appsignal/javascript@^1.3.1