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.8.0 to 1.8.1

dist/bundle/types/instrumentations/session/sessionManager/getSessionManagerByConfig.d.ts

2

dist/bundle/types/instrumentations/console/instrumentation.d.ts

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

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

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

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ErrorsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-errors";
readonly version = "1.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
private notifiedSession;

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

@@ -6,1 +6,2 @@ export { PersistentSessionsManager } from './PersistentSessionsManager';

export type { FaroUserSession } from './types';
export { getSessionManagerByConfig } from './getSessionManagerByConfig';

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

import type { Config } from '@grafana/faro-core';
import type { FaroUserSession, SessionManager } from './types';
import type { FaroUserSession } from './types';
type CreateUserSessionObjectParams = {

@@ -20,3 +19,2 @@ sessionId?: string;

export declare function addSessionMetadataToNextSession(newSession: FaroUserSession, previousSession: FaroUserSession | null): Required<FaroUserSession>;
export declare function getSessionManagerByConfig(sessionTrackingConfig: Config['sessionTracking']): SessionManager;
export {};
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ViewInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-view";
readonly version = "1.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
promiseBuffer: PromiseBuffer<Response | void>;

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

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

if (sessionTrackingConfig === null || sessionTrackingConfig === void 0 ? void 0 : sessionTrackingConfig.enabled) {
var SessionManager = (0, sessionManagerUtils_1.getSessionManagerByConfig)(sessionTrackingConfig);
var SessionManager = (0, sessionManager_1.getSessionManagerByConfig)(sessionTrackingConfig);
this.registerBeforeSendHook(SessionManager);

@@ -126,0 +126,0 @@ var _a = this.createInitialSession(SessionManager, sessionTrackingConfig), initialSession = _a.initialSession, lifecycleType = _a.lifecycleType;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSampled = exports.defaultSessionTrackingConfig = exports.STORAGE_UPDATE_DELAY = 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 = void 0;
exports.getSessionManagerByConfig = exports.isSampled = exports.defaultSessionTrackingConfig = exports.STORAGE_UPDATE_DELAY = 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 = void 0;
var PersistentSessionsManager_1 = require("./PersistentSessionsManager");

@@ -18,2 +18,4 @@ Object.defineProperty(exports, "PersistentSessionsManager", { enumerable: true, get: function () { return PersistentSessionsManager_1.PersistentSessionsManager; } });

Object.defineProperty(exports, "isSampled", { enumerable: true, get: function () { return sampling_1.isSampled; } });
var getSessionManagerByConfig_1 = require("./getSessionManagerByConfig");
Object.defineProperty(exports, "getSessionManagerByConfig", { enumerable: true, get: function () { return getSessionManagerByConfig_1.getSessionManagerByConfig; } });
//# sourceMappingURL=index.js.map

@@ -14,6 +14,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getSessionManagerByConfig = exports.addSessionMetadataToNextSession = exports.getUserSessionUpdater = exports.isUserSessionValid = exports.createUserSessionObject = void 0;
exports.addSessionMetadataToNextSession = exports.getUserSessionUpdater = exports.isUserSessionValid = exports.createUserSessionObject = void 0;
var faro_core_1 = require("@grafana/faro-core");
var utils_1 = require("../../../utils");
var _1 = require(".");
var sampling_1 = require("./sampling");

@@ -85,6 +84,2 @@ var sessionConstants_1 = require("./sessionConstants");

exports.addSessionMetadataToNextSession = addSessionMetadataToNextSession;
function getSessionManagerByConfig(sessionTrackingConfig) {
return (sessionTrackingConfig === null || sessionTrackingConfig === void 0 ? void 0 : sessionTrackingConfig.persistent) ? _1.PersistentSessionsManager : _1.VolatileSessionsManager;
}
exports.getSessionManagerByConfig = getSessionManagerByConfig;
//# sourceMappingURL=sessionManagerUtils.js.map

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

var faro_core_1 = require("@grafana/faro-core");
var sessionManager_1 = require("../../instrumentations/session/sessionManager");
var sessionManagerUtils_1 = require("../../instrumentations/session/sessionManager/sessionManagerUtils");

@@ -186,3 +187,3 @@ var DEFAULT_BUFFER_SIZE = 30;

if (sessionTrackingConfig === null || sessionTrackingConfig === void 0 ? void 0 : sessionTrackingConfig.enabled) {
var _a = (0, sessionManagerUtils_1.getSessionManagerByConfig)(sessionTrackingConfig), fetchUserSession = _a.fetchUserSession, storeUserSession = _a.storeUserSession;
var _a = (0, sessionManager_1.getSessionManagerByConfig)(sessionTrackingConfig), fetchUserSession = _a.fetchUserSession, storeUserSession = _a.storeUserSession;
(0, sessionManagerUtils_1.getUserSessionUpdater)({ fetchUserSession: fetchUserSession, storeUserSession: storeUserSession })({ forceSessionExtend: true });

@@ -189,0 +190,0 @@ logDebug("".concat(SessionExpiredString, " created new session."));

import { BaseInstrumentation, dateNow, EVENT_SESSION_EXTEND, EVENT_SESSION_RESUME, EVENT_SESSION_START, VERSION, } from '@grafana/faro-core';
import { createSession } from '../../metas';
import { isSampled } from './sessionManager';
import { getSessionManagerByConfig, isSampled } from './sessionManager';
import { PersistentSessionsManager } from './sessionManager/PersistentSessionsManager';
import { createUserSessionObject, getSessionManagerByConfig, isUserSessionValid, } from './sessionManager/sessionManagerUtils';
import { createUserSessionObject, isUserSessionValid } from './sessionManager/sessionManagerUtils';
export class SessionInstrumentation extends BaseInstrumentation {

@@ -7,0 +7,0 @@ constructor() {

@@ -5,2 +5,3 @@ export { PersistentSessionsManager } from './PersistentSessionsManager';

export { isSampled } from './sampling';
export { getSessionManagerByConfig } from './getSessionManagerByConfig';
//# sourceMappingURL=index.js.map
import { dateNow, faro, genShortID } from '@grafana/faro-core';
import { isLocalStorageAvailable, isSessionStorageAvailable } from '../../../utils';
import { PersistentSessionsManager, VolatileSessionsManager } from '.';
import { isSampled } from './sampling';

@@ -63,5 +62,2 @@ import { SESSION_EXPIRATION_TIME, SESSION_INACTIVITY_TIME } from './sessionConstants';

}
export function getSessionManagerByConfig(sessionTrackingConfig) {
return (sessionTrackingConfig === null || sessionTrackingConfig === void 0 ? void 0 : sessionTrackingConfig.persistent) ? PersistentSessionsManager : VolatileSessionsManager;
}
//# sourceMappingURL=sessionManagerUtils.js.map

@@ -22,3 +22,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { BaseTransport, createPromiseBuffer, getTransportBody, noop, VERSION, } from '@grafana/faro-core';
import { getSessionManagerByConfig, getUserSessionUpdater, } from '../../instrumentations/session/sessionManager/sessionManagerUtils';
import { getSessionManagerByConfig } from '../../instrumentations/session/sessionManager';
import { getUserSessionUpdater } from '../../instrumentations/session/sessionManager/sessionManagerUtils';
const DEFAULT_BUFFER_SIZE = 30;

@@ -25,0 +26,0 @@ const DEFAULT_CONCURRENCY = 5; // chrome supports 10 total, firefox 17

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

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

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

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ErrorsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-errors";
readonly version = "1.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
private notifiedSession;

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

@@ -6,1 +6,2 @@ export { PersistentSessionsManager } from './PersistentSessionsManager';

export type { FaroUserSession } from './types';
export { getSessionManagerByConfig } from './getSessionManagerByConfig';

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

import type { Config } from '@grafana/faro-core';
import type { FaroUserSession, SessionManager } from './types';
import type { FaroUserSession } from './types';
type CreateUserSessionObjectParams = {

@@ -20,3 +19,2 @@ sessionId?: string;

export declare function addSessionMetadataToNextSession(newSession: FaroUserSession, previousSession: FaroUserSession | null): Required<FaroUserSession>;
export declare function getSessionManagerByConfig(sessionTrackingConfig: Config['sessionTracking']): SessionManager;
export {};
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ViewInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-view";
readonly version = "1.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
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.8.0";
readonly version = "1.8.1";
promiseBuffer: PromiseBuffer<Response | void>;

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

{
"name": "@grafana/faro-web-sdk",
"version": "1.8.0",
"version": "1.8.1",
"description": "Faro instrumentations, metas, transports for web.",

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

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

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

},
"gitHead": "ec21b36031c20c859d64fbd75a77986397ebaf68"
"gitHead": "08d0f63dba5ff82c9b29b2f91df9d790514ea8d5"
}

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

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