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

@fluidframework/telemetry-utils

Package Overview
Dependencies
Maintainers
3
Versions
584
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/telemetry-utils - npm Package Compare versions

Comparing version 0.26.1 to 0.27.0

1

dist/events.d.ts

@@ -7,3 +7,4 @@ /*!

import { ITelemetryLogger } from "@fluidframework/common-definitions";
export declare function safeRaiseEvent(emitter: EventEmitter, logger: ITelemetryLogger, event: string, ...args: any[]): void;
export declare function raiseConnectedEvent(logger: ITelemetryLogger, emitter: EventEmitter, connected: boolean, clientId?: string): void;
//# sourceMappingURL=events.d.ts.map

@@ -7,2 +7,11 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
function safeRaiseEvent(emitter, logger, event, ...args) {
try {
emitter.emit(event, ...args);
}
catch (error) {
logger.sendErrorEvent({ eventName: "RaiseEventError", event }, error);
}
}
exports.safeRaiseEvent = safeRaiseEvent;
function raiseConnectedEvent(logger, emitter, connected, clientId) {

@@ -9,0 +18,0 @@ try {

6

dist/logger.js

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

if (event.category === "performance") {
tick = `tick=${TelemetryLogger.formatTick(common_utils_1.performanceNow())}`;
tick = `tick=${TelemetryLogger.formatTick(common_utils_1.performance.now())}`;
}

@@ -350,3 +350,3 @@ // Extract stack to put it last, but also to avoid escaping '\n' in it by JSON.stringify below

this.logger = logger;
this.startTime = common_utils_1.performanceNow();
this.startTime = common_utils_1.performance.now();
this.event = Object.assign({}, event);

@@ -421,3 +421,3 @@ this.reportEvent("start");

if (eventNameSuffix !== "start") {
event.duration = common_utils_1.performanceNow() - this.startTime;
event.duration = common_utils_1.performance.now() - this.startTime;
}

@@ -424,0 +424,0 @@ this.logger.sendPerformanceEvent(event, error);

@@ -8,3 +8,3 @@ /*!

export declare const pkgName = "@fluidframework/telemetry-utils";
export declare const pkgVersion = "0.26.1";
export declare const pkgVersion = "0.27.0";
//# sourceMappingURL=packageVersion.d.ts.map

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

exports.pkgName = "@fluidframework/telemetry-utils";
exports.pkgVersion = "0.26.1";
exports.pkgVersion = "0.27.0";
//# sourceMappingURL=packageVersion.js.map

@@ -7,3 +7,4 @@ /*!

import { ITelemetryLogger } from "@fluidframework/common-definitions";
export declare function safeRaiseEvent(emitter: EventEmitter, logger: ITelemetryLogger, event: string, ...args: any[]): void;
export declare function raiseConnectedEvent(logger: ITelemetryLogger, emitter: EventEmitter, connected: boolean, clientId?: string): void;
//# sourceMappingURL=events.d.ts.map

@@ -5,2 +5,10 @@ /*!

*/
export function safeRaiseEvent(emitter, logger, event, ...args) {
try {
emitter.emit(event, ...args);
}
catch (error) {
logger.sendErrorEvent({ eventName: "RaiseEventError", event }, error);
}
}
export function raiseConnectedEvent(logger, emitter, connected, clientId) {

@@ -7,0 +15,0 @@ try {

@@ -5,3 +5,3 @@ /*!

*/
import { BaseTelemetryNullLogger, performanceNow } from "@fluidframework/common-utils";
import { BaseTelemetryNullLogger, performance } from "@fluidframework/common-utils";
import { debug as registerDebug } from "debug";

@@ -311,3 +311,3 @@ /**

if (event.category === "performance") {
tick = `tick=${TelemetryLogger.formatTick(performanceNow())}`;
tick = `tick=${TelemetryLogger.formatTick(performance.now())}`;
}

@@ -345,3 +345,3 @@ // Extract stack to put it last, but also to avoid escaping '\n' in it by JSON.stringify below

this.logger = logger;
this.startTime = performanceNow();
this.startTime = performance.now();
this.event = Object.assign({}, event);

@@ -416,3 +416,3 @@ this.reportEvent("start");

if (eventNameSuffix !== "start") {
event.duration = performanceNow() - this.startTime;
event.duration = performance.now() - this.startTime;
}

@@ -419,0 +419,0 @@ this.logger.sendPerformanceEvent(event, error);

@@ -8,3 +8,3 @@ /*!

export declare const pkgName = "@fluidframework/telemetry-utils";
export declare const pkgVersion = "0.26.1";
export declare const pkgVersion = "0.27.0";
//# sourceMappingURL=packageVersion.d.ts.map

@@ -8,3 +8,3 @@ /*!

export const pkgName = "@fluidframework/telemetry-utils";
export const pkgVersion = "0.26.1";
export const pkgVersion = "0.27.0";
//# sourceMappingURL=packageVersion.js.map
{
"name": "@fluidframework/telemetry-utils",
"version": "0.26.1",
"version": "0.27.0",
"description": "Collection of telemetry relates utilities for Fluid",

@@ -28,5 +28,2 @@ "homepage": "https://fluidframework.com",

"bump-version": "npm version minor --no-push --no-git-tag-version && npm run build:genver",
"ci:build": "npm run build:genver && npm run build:compile",
"ci:test": "npm run test:report",
"ci:test:coverage": "npm run test:coverage",
"clean": "rimraf dist lib *.tsbuildinfo *.build.log",

@@ -38,3 +35,2 @@ "eslint": "eslint --ext=ts,tsx --format stylish src",

"test": "npm run test:mocha",
"test:ci": "npm run test:report",
"test:coverage": "nyc npm run test:report",

@@ -68,3 +64,3 @@ "test:mocha": "mocha --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",

"@fluidframework/common-definitions": "^0.19.1",
"@fluidframework/common-utils": "^0.23.0",
"@fluidframework/common-utils": "^0.24.0",
"debug": "^4.1.1",

@@ -76,3 +72,3 @@ "events": "^3.1.0"

"@fluidframework/eslint-config-fluid": "^0.19.1",
"@fluidframework/mocha-test-setup": "^0.26.1",
"@fluidframework/mocha-test-setup": "^0.27.0",
"@microsoft/api-extractor": "^7.7.2",

@@ -79,0 +75,0 @@ "@types/debug": "^4.1.5",

@@ -11,2 +11,14 @@ /*!

export function safeRaiseEvent(
emitter: EventEmitter,
logger: ITelemetryLogger,
event: string,
...args) {
try {
emitter.emit(event, ...args);
} catch (error) {
logger.sendErrorEvent({ eventName: "RaiseEventError", event }, error);
}
}
export function raiseConnectedEvent(

@@ -13,0 +25,0 @@ logger: ITelemetryLogger,

@@ -16,3 +16,3 @@ /*!

} from "@fluidframework/common-definitions";
import { BaseTelemetryNullLogger, performanceNow } from "@fluidframework/common-utils";
import { BaseTelemetryNullLogger, performance } from "@fluidframework/common-utils";
import { debug as registerDebug, IDebugger } from "debug";

@@ -400,3 +400,3 @@

if (event.category === "performance") {
tick = `tick=${TelemetryLogger.formatTick(performanceNow())}`;
tick = `tick=${TelemetryLogger.formatTick(performance.now())}`;
}

@@ -480,3 +480,3 @@

private event?: ITelemetryGenericEvent;
private readonly startTime = performanceNow();
private readonly startTime = performance.now();
private startMark?: string;

@@ -531,3 +531,3 @@

if (eventNameSuffix !== "start") {
event.duration = performanceNow() - this.startTime;
event.duration = performance.now() - this.startTime;
}

@@ -534,0 +534,0 @@

@@ -9,2 +9,2 @@ /*!

export const pkgName = "@fluidframework/telemetry-utils";
export const pkgVersion = "0.26.1";
export const pkgVersion = "0.27.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

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