Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grafana/faro-web-sdk

Package Overview
Dependencies
Maintainers
22
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grafana/faro-web-sdk - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0

dist/bundle/types/utils/json.d.ts

4

./dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEvent = exports.isErrorEvent = exports.isErrorDefined = exports.isError = exports.isElementDefined = exports.isElement = exports.isDomException = exports.isDomError = exports.isBoolean = exports.isArray = exports.internalGlobalObjectKey = exports.globalObject = exports.getTransportBody = exports.getInternalFaroFromGlobalObject = exports.getCurrentTimestamp = exports.genShortID = exports.defaultLogLevel = exports.defaultInternalLoggerLevel = exports.defaultGlobalObjectKey = exports.defaultExceptionType = exports.deepEqual = exports.createPromiseBuffer = exports.createInternalLogger = exports.Conventions = exports.BaseTransport = exports.BaseInstrumentation = exports.BaseExtension = exports.allLogLevels = exports.faro = exports.FetchTransport = exports.ConsoleTransport = exports.sdkMeta = exports.pageMeta = exports.defaultMetas = exports.createSession = exports.browserMeta = exports.PerformanceInstrumentation = exports.SessionInstrumentation = exports.WebVitalsInstrumentation = exports.ViewInstrumentation = exports.parseStacktrace = exports.getStackFramesFromError = exports.getDataFromSafariExtensions = exports.ErrorsInstrumentation = exports.ConsoleInstrumentation = exports.buildStackFrame = exports.initializeFaro = exports.defaultEventDomain = exports.makeCoreConfig = exports.getWebInstrumentations = void 0;
exports.STORAGE_KEY = exports.SESSION_INACTIVITY_TIME = exports.SESSION_EXPIRATION_TIME = exports.MAX_SESSION_PERSISTENCE_TIME_BUFFER = exports.MAX_SESSION_PERSISTENCE_TIME = exports.VolatileSessionsManager = exports.PersistentSessionsManager = exports.EVENT_VIEW_CHANGED = exports.EVENT_SESSION_START = exports.EVENT_SESSION_RESUME = exports.EVENT_SESSION_EXTEND = exports.EVENT_ROUTE_CHANGE = exports.EVENT_NAVIGATION = exports.EVENT_CLICK = exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = exports.isFunction = exports.isEventDefined = void 0;
exports.getIgnoreUrls = exports.STORAGE_KEY = exports.SESSION_INACTIVITY_TIME = exports.SESSION_EXPIRATION_TIME = exports.MAX_SESSION_PERSISTENCE_TIME_BUFFER = exports.MAX_SESSION_PERSISTENCE_TIME = exports.VolatileSessionsManager = exports.PersistentSessionsManager = exports.EVENT_VIEW_CHANGED = exports.EVENT_SESSION_START = exports.EVENT_SESSION_RESUME = exports.EVENT_SESSION_EXTEND = exports.EVENT_ROUTE_CHANGE = exports.EVENT_NAVIGATION = exports.EVENT_CLICK = exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = exports.isFunction = exports.isEventDefined = void 0;
var config_1 = require("./config");

@@ -103,2 +103,4 @@ Object.defineProperty(exports, "getWebInstrumentations", { enumerable: true, get: function () { return config_1.getWebInstrumentations; } });

Object.defineProperty(exports, "STORAGE_KEY", { enumerable: true, get: function () { return session_1.STORAGE_KEY; } });
var url_1 = require("./utils/url");
Object.defineProperty(exports, "getIgnoreUrls", { enumerable: true, get: function () { return url_1.getIgnoreUrls; } });
//# sourceMappingURL=index.js.map

@@ -13,1 +13,2 @@ export { getWebInstrumentations, makeCoreConfig } from './config';

export { PersistentSessionsManager, VolatileSessionsManager, MAX_SESSION_PERSISTENCE_TIME, MAX_SESSION_PERSISTENCE_TIME_BUFFER, SESSION_EXPIRATION_TIME, SESSION_INACTIVITY_TIME, STORAGE_KEY, } from './instrumentations/session';
export { getIgnoreUrls } from './utils/url';

@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:instrumentation-console";
readonly version = "1.11.0";
readonly version = "1.12.0";
static defaultDisabledLevels: LogLevel[];

@@ -9,0 +9,0 @@ constructor(options?: ConsoleInstrumentationOptions);

@@ -1,4 +0,6 @@

import type { LogLevel } from '@grafana/faro-core';
export interface ConsoleInstrumentationOptions {
disabledLevels?: LogLevel[];
}
import type { Config } from '@grafana/faro-core';
/**
* @deprecated Configure console instrumentation using the `consoleInstrumentation` object in the
* Faro config.
*/
export type ConsoleInstrumentationOptions = Config['consoleInstrumentation'];
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ErrorsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-errors";
readonly version = "1.11.0";
readonly version = "1.12.0";
initialize(): void;
}
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class PerformanceInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-performance";
readonly version = "1.11.0";
readonly version = "1.12.0";
initialize(): void;
private getIgnoreUrls;
}
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class SessionInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-session";
readonly version = "1.11.0";
readonly version = "1.12.0";
private notifiedSession;

@@ -6,0 +6,0 @@ private sendSessionStartEvent;

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ViewInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-view";
readonly version = "1.11.0";
readonly version = "1.12.0";
private notifiedView;

@@ -6,0 +6,0 @@ private sendViewChangedEvent;

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class WebVitalsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals";
readonly version = "1.11.0";
readonly version = "1.12.0";
initialize(): void;
private intializeWebVitalsInstrumentation;
}

@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-console";
readonly version = "1.11.0";
readonly version = "1.12.0";
constructor(options?: ConsoleTransportOptions);
send(item: TransportItem): void;
}

@@ -7,3 +7,3 @@ import { BaseTransport, PromiseBuffer } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-fetch";
readonly version = "1.11.0";
readonly version = "1.12.0";
promiseBuffer: PromiseBuffer<Response | void>;

@@ -10,0 +10,0 @@ private readonly rateLimitBackoffMs;

export { isLocalStorageAvailable, isSessionStorageAvailable, webStorageType, getItem, isWebStorageAvailable, removeItem, setItem, } from './webStorage';
export { throttle } from './throttle';
export { getCircularDependencyReplacer, stringifyExternalJson } from './json';
export { getIgnoreUrls } from './url';

@@ -87,2 +87,3 @@ "use strict";

trackWebVitalsAttribution: browserConfig.trackWebVitalsAttribution,
consoleInstrumentation: browserConfig.consoleInstrumentation,
};

@@ -89,0 +90,0 @@ return config;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEvent = exports.isErrorEvent = exports.isErrorDefined = exports.isError = exports.isElementDefined = exports.isElement = exports.isDomException = exports.isDomError = exports.isBoolean = exports.isArray = exports.internalGlobalObjectKey = exports.globalObject = exports.getTransportBody = exports.getInternalFaroFromGlobalObject = exports.getCurrentTimestamp = exports.genShortID = exports.defaultLogLevel = exports.defaultInternalLoggerLevel = exports.defaultGlobalObjectKey = exports.defaultExceptionType = exports.deepEqual = exports.createPromiseBuffer = exports.createInternalLogger = exports.Conventions = exports.BaseTransport = exports.BaseInstrumentation = exports.BaseExtension = exports.allLogLevels = exports.faro = exports.FetchTransport = exports.ConsoleTransport = exports.sdkMeta = exports.pageMeta = exports.defaultMetas = exports.createSession = exports.browserMeta = exports.PerformanceInstrumentation = exports.SessionInstrumentation = exports.WebVitalsInstrumentation = exports.ViewInstrumentation = exports.parseStacktrace = exports.getStackFramesFromError = exports.getDataFromSafariExtensions = exports.ErrorsInstrumentation = exports.ConsoleInstrumentation = exports.buildStackFrame = exports.initializeFaro = exports.defaultEventDomain = exports.makeCoreConfig = exports.getWebInstrumentations = void 0;
exports.STORAGE_KEY = exports.SESSION_INACTIVITY_TIME = exports.SESSION_EXPIRATION_TIME = exports.MAX_SESSION_PERSISTENCE_TIME_BUFFER = exports.MAX_SESSION_PERSISTENCE_TIME = exports.VolatileSessionsManager = exports.PersistentSessionsManager = exports.EVENT_VIEW_CHANGED = exports.EVENT_SESSION_START = exports.EVENT_SESSION_RESUME = exports.EVENT_SESSION_EXTEND = exports.EVENT_ROUTE_CHANGE = exports.EVENT_NAVIGATION = exports.EVENT_CLICK = exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = exports.isFunction = exports.isEventDefined = void 0;
exports.getIgnoreUrls = exports.STORAGE_KEY = exports.SESSION_INACTIVITY_TIME = exports.SESSION_EXPIRATION_TIME = exports.MAX_SESSION_PERSISTENCE_TIME_BUFFER = exports.MAX_SESSION_PERSISTENCE_TIME = exports.VolatileSessionsManager = exports.PersistentSessionsManager = exports.EVENT_VIEW_CHANGED = exports.EVENT_SESSION_START = exports.EVENT_SESSION_RESUME = exports.EVENT_SESSION_EXTEND = exports.EVENT_ROUTE_CHANGE = exports.EVENT_NAVIGATION = exports.EVENT_CLICK = exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = exports.isFunction = exports.isEventDefined = void 0;
var config_1 = require("./config");

@@ -103,2 +103,4 @@ Object.defineProperty(exports, "getWebInstrumentations", { enumerable: true, get: function () { return config_1.getWebInstrumentations; } });

Object.defineProperty(exports, "STORAGE_KEY", { enumerable: true, get: function () { return session_1.STORAGE_KEY; } });
var url_1 = require("./utils/url");
Object.defineProperty(exports, "getIgnoreUrls", { enumerable: true, get: function () { return url_1.getIgnoreUrls; } });
//# sourceMappingURL=index.js.map

@@ -17,5 +17,17 @@ "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 });
exports.ConsoleInstrumentation = void 0;
var faro_core_1 = require("@grafana/faro-core");
var utils_1 = require("../../utils");
var ConsoleInstrumentation = /** @class */ (function (_super) {

@@ -34,4 +46,5 @@ __extends(ConsoleInstrumentation, _super);

this.logDebug('Initializing\n', this.options);
this.options = __assign(__assign({}, this.options), this.config.consoleInstrumentation);
faro_core_1.allLogLevels
.filter(function (level) { var _a; return !((_a = _this.options.disabledLevels) !== null && _a !== void 0 ? _a : ConsoleInstrumentation.defaultDisabledLevels).includes(level); })
.filter(function (level) { var _a, _b; return !((_b = (_a = _this.options) === null || _a === void 0 ? void 0 : _a.disabledLevels) !== null && _b !== void 0 ? _b : ConsoleInstrumentation.defaultDisabledLevels).includes(level); })
.forEach(function (level) {

@@ -41,2 +54,3 @@ /* eslint-disable-next-line no-console */

var _a;
var _b;
var args = [];

@@ -47,7 +61,8 @@ for (var _i = 0; _i < arguments.length; _i++) {

try {
if (level === faro_core_1.LogLevel.ERROR) {
_this.api.pushError(new Error(args.map(function (arg) { return ((0, faro_core_1.isObject)(arg) || (0, faro_core_1.isArray)(arg) ? JSON.stringify(arg) : arg); }).join(' ')));
if (level === faro_core_1.LogLevel.ERROR && !((_b = _this.options) === null || _b === void 0 ? void 0 : _b.consoleErrorAsLog)) {
_this.api.pushError(new Error('console.error: ' +
args.map(function (arg) { return ((0, faro_core_1.isObject)(arg) || (0, faro_core_1.isArray)(arg) ? (0, utils_1.stringifyExternalJson)(arg) : arg); }).join(' ')));
}
else {
_this.api.pushLog(args, { level: level });
_this.api.pushLog([args.map(function (arg) { return ((0, faro_core_1.isObject)(arg) || (0, faro_core_1.isArray)(arg) ? JSON.stringify(arg) : arg); }).join(' ')], { level: level });
}

@@ -54,0 +69,0 @@ }

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

PersistentSessionsManager.storeUserSession = function (session) {
(0, webStorage_1.setItem)(sessionConstants_1.STORAGE_KEY, JSON.stringify(session), PersistentSessionsManager.storageTypeLocal);
(0, webStorage_1.setItem)(sessionConstants_1.STORAGE_KEY, (0, utils_1.stringifyExternalJson)(session), PersistentSessionsManager.storageTypeLocal);
};

@@ -27,0 +27,0 @@ PersistentSessionsManager.fetchUserSession = function () {

@@ -6,2 +6,3 @@ "use strict";

var utils_1 = require("../../../utils");
var json_1 = require("../../../utils/json");
var webStorage_1 = require("../../../utils/webStorage");

@@ -25,3 +26,3 @@ var sampling_1 = require("./sampling");

VolatileSessionsManager.storeUserSession = function (session) {
(0, webStorage_1.setItem)(sessionConstants_1.STORAGE_KEY, JSON.stringify(session), VolatileSessionsManager.storageTypeSession);
(0, webStorage_1.setItem)(sessionConstants_1.STORAGE_KEY, (0, json_1.stringifyExternalJson)(session), VolatileSessionsManager.storageTypeSession);
};

@@ -28,0 +29,0 @@ VolatileSessionsManager.fetchUserSession = function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.throttle = exports.setItem = exports.removeItem = exports.isWebStorageAvailable = exports.getItem = exports.webStorageType = exports.isSessionStorageAvailable = exports.isLocalStorageAvailable = void 0;
exports.getIgnoreUrls = exports.stringifyExternalJson = exports.getCircularDependencyReplacer = exports.throttle = exports.setItem = exports.removeItem = exports.isWebStorageAvailable = exports.getItem = exports.webStorageType = exports.isSessionStorageAvailable = exports.isLocalStorageAvailable = void 0;
var webStorage_1 = require("./webStorage");

@@ -14,2 +14,7 @@ Object.defineProperty(exports, "isLocalStorageAvailable", { enumerable: true, get: function () { return webStorage_1.isLocalStorageAvailable; } });

Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } });
var json_1 = require("./json");
Object.defineProperty(exports, "getCircularDependencyReplacer", { enumerable: true, get: function () { return json_1.getCircularDependencyReplacer; } });
Object.defineProperty(exports, "stringifyExternalJson", { enumerable: true, get: function () { return json_1.stringifyExternalJson; } });
var url_1 = require("./url");
Object.defineProperty(exports, "getIgnoreUrls", { enumerable: true, get: function () { return url_1.getIgnoreUrls; } });
//# sourceMappingURL=index.js.map

@@ -64,2 +64,3 @@ import { createInternalLogger, defaultBatchingConfig, defaultGlobalObjectKey, defaultInternalLoggerLevel, defaultLogArgsSerializer, defaultUnpatchedConsole, isObject, } from '@grafana/faro-core';

trackWebVitalsAttribution: browserConfig.trackWebVitalsAttribution,
consoleInstrumentation: browserConfig.consoleInstrumentation,
};

@@ -66,0 +67,0 @@ return config;

@@ -9,2 +9,3 @@ export { getWebInstrumentations, makeCoreConfig } from './config';

export { PersistentSessionsManager, VolatileSessionsManager, MAX_SESSION_PERSISTENCE_TIME, MAX_SESSION_PERSISTENCE_TIME_BUFFER, SESSION_EXPIRATION_TIME, SESSION_INACTIVITY_TIME, STORAGE_KEY, } from './instrumentations/session';
export { getIgnoreUrls } from './utils/url';
//# sourceMappingURL=index.js.map
import { allLogLevels, BaseInstrumentation, isArray, isObject, LogLevel, VERSION } from '@grafana/faro-core';
import { stringifyExternalJson } from '../../utils';
export class ConsoleInstrumentation extends BaseInstrumentation {

@@ -11,13 +12,16 @@ constructor(options = {}) {

this.logDebug('Initializing\n', this.options);
this.options = Object.assign(Object.assign({}, this.options), this.config.consoleInstrumentation);
allLogLevels
.filter((level) => { var _a; return !((_a = this.options.disabledLevels) !== null && _a !== void 0 ? _a : ConsoleInstrumentation.defaultDisabledLevels).includes(level); })
.filter((level) => { var _a, _b; return !((_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.disabledLevels) !== null && _b !== void 0 ? _b : ConsoleInstrumentation.defaultDisabledLevels).includes(level); })
.forEach((level) => {
/* eslint-disable-next-line no-console */
console[level] = (...args) => {
var _a;
try {
if (level === LogLevel.ERROR) {
this.api.pushError(new Error(args.map((arg) => (isObject(arg) || isArray(arg) ? JSON.stringify(arg) : arg)).join(' ')));
if (level === LogLevel.ERROR && !((_a = this.options) === null || _a === void 0 ? void 0 : _a.consoleErrorAsLog)) {
this.api.pushError(new Error('console.error: ' +
args.map((arg) => (isObject(arg) || isArray(arg) ? stringifyExternalJson(arg) : arg)).join(' ')));
}
else {
this.api.pushLog(args, { level });
this.api.pushLog([args.map((arg) => (isObject(arg) || isArray(arg) ? JSON.stringify(arg) : arg)).join(' ')], { level });
}

@@ -24,0 +28,0 @@ }

import { faro } from '@grafana/faro-core';
import { throttle } from '../../../utils';
import { stringifyExternalJson, throttle } from '../../../utils';
import { getItem, removeItem, setItem, webStorageType } from '../../../utils/webStorage';

@@ -20,3 +20,3 @@ import { isSampled } from './sampling';

static storeUserSession(session) {
setItem(STORAGE_KEY, JSON.stringify(session), PersistentSessionsManager.storageTypeLocal);
setItem(STORAGE_KEY, stringifyExternalJson(session), PersistentSessionsManager.storageTypeLocal);
}

@@ -23,0 +23,0 @@ static fetchUserSession() {

import { faro } from '@grafana/faro-core';
import { throttle } from '../../../utils';
import { stringifyExternalJson } from '../../../utils/json';
import { getItem, removeItem, setItem, webStorageType } from '../../../utils/webStorage';

@@ -20,3 +21,3 @@ import { isSampled } from './sampling';

static storeUserSession(session) {
setItem(STORAGE_KEY, JSON.stringify(session), VolatileSessionsManager.storageTypeSession);
setItem(STORAGE_KEY, stringifyExternalJson(session), VolatileSessionsManager.storageTypeSession);
}

@@ -23,0 +24,0 @@ static fetchUserSession() {

export { isLocalStorageAvailable, isSessionStorageAvailable, webStorageType, getItem, isWebStorageAvailable, removeItem, setItem, } from './webStorage';
export { throttle } from './throttle';
export { getCircularDependencyReplacer, stringifyExternalJson } from './json';
export { getIgnoreUrls } from './url';
//# sourceMappingURL=index.js.map

@@ -13,1 +13,2 @@ export { getWebInstrumentations, makeCoreConfig } from './config';

export { PersistentSessionsManager, VolatileSessionsManager, MAX_SESSION_PERSISTENCE_TIME, MAX_SESSION_PERSISTENCE_TIME_BUFFER, SESSION_EXPIRATION_TIME, SESSION_INACTIVITY_TIME, STORAGE_KEY, } from './instrumentations/session';
export { getIgnoreUrls } from './utils/url';

@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:instrumentation-console";
readonly version = "1.11.0";
readonly version = "1.12.0";
static defaultDisabledLevels: LogLevel[];

@@ -9,0 +9,0 @@ constructor(options?: ConsoleInstrumentationOptions);

@@ -1,4 +0,6 @@

import type { LogLevel } from '@grafana/faro-core';
export interface ConsoleInstrumentationOptions {
disabledLevels?: LogLevel[];
}
import type { Config } from '@grafana/faro-core';
/**
* @deprecated Configure console instrumentation using the `consoleInstrumentation` object in the
* Faro config.
*/
export type ConsoleInstrumentationOptions = Config['consoleInstrumentation'];
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ErrorsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-errors";
readonly version = "1.11.0";
readonly version = "1.12.0";
initialize(): void;
}
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class PerformanceInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-performance";
readonly version = "1.11.0";
readonly version = "1.12.0";
initialize(): void;
private getIgnoreUrls;
}
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class SessionInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-session";
readonly version = "1.11.0";
readonly version = "1.12.0";
private notifiedSession;

@@ -6,0 +6,0 @@ private sendSessionStartEvent;

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ViewInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-view";
readonly version = "1.11.0";
readonly version = "1.12.0";
private notifiedView;

@@ -6,0 +6,0 @@ private sendViewChangedEvent;

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class WebVitalsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals";
readonly version = "1.11.0";
readonly version = "1.12.0";
initialize(): void;
private intializeWebVitalsInstrumentation;
}

@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-console";
readonly version = "1.11.0";
readonly version = "1.12.0";
constructor(options?: ConsoleTransportOptions);
send(item: TransportItem): void;
}

@@ -7,3 +7,3 @@ import { BaseTransport, PromiseBuffer } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-fetch";
readonly version = "1.11.0";
readonly version = "1.12.0";
promiseBuffer: PromiseBuffer<Response | void>;

@@ -10,0 +10,0 @@ private readonly rateLimitBackoffMs;

export { isLocalStorageAvailable, isSessionStorageAvailable, webStorageType, getItem, isWebStorageAvailable, removeItem, setItem, } from './webStorage';
export { throttle } from './throttle';
export { getCircularDependencyReplacer, stringifyExternalJson } from './json';
export { getIgnoreUrls } from './url';
{
"name": "@grafana/faro-web-sdk",
"version": "1.11.0",
"version": "1.12.0",
"description": "Faro instrumentations, metas, transports for web.",

@@ -55,3 +55,3 @@ "keywords": [

"dependencies": {
"@grafana/faro-core": "^1.11.0",
"@grafana/faro-core": "^1.12.0",
"ua-parser-js": "^1.0.32",

@@ -67,3 +67,3 @@ "web-vitals": "^4.0.1"

},
"gitHead": "b82e827db7ec58961b8930b0500f0cc976d3a24e"
"gitHead": "f8209d591f250148b55ccc191059972e8e579784"
}

Sorry, the diff of this file is too big to display

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc