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

@fluidframework/telemetry-utils

Package Overview
Dependencies
Maintainers
1
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 2.1.0 to 2.2.0

4

CHANGELOG.md
# @fluidframework/telemetry-utils
## 2.2.0
Dependency updates only.
## 2.1.0

@@ -4,0 +8,0 @@

6

dist/errorLogging.d.ts

@@ -52,2 +52,3 @@ /*!

* Some browsers will populate stack right away, others require throwing Error, so we do auto-detection on the fly.
* @param stackTraceLimit - stack trace limit for an error
* @returns Error object that has stack populated.

@@ -57,5 +58,6 @@ *

*/
export declare function generateErrorWithStack(): Error;
export declare function generateErrorWithStack(stackTraceLimit?: number): Error;
/**
* Generate a stack at this callsite as if an error were thrown from here.
* @param stackTraceLimit - stack trace limit for an error
* @returns the callstack (does not throw)

@@ -65,3 +67,3 @@ *

*/
export declare function generateStack(): string | undefined;
export declare function generateStack(stackTraceLimit?: number): string | undefined;
/**

@@ -68,0 +70,0 @@ * Create a new error using newErrorFn, wrapping and caused by the given unknown error.

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

* Some browsers will populate stack right away, others require throwing Error, so we do auto-detection on the fly.
* @param stackTraceLimit - stack trace limit for an error
* @returns Error object that has stack populated.

@@ -140,3 +141,8 @@ *

*/
function generateErrorWithStack() {
function generateErrorWithStack(stackTraceLimit) {
const ErrorConfig = Error;
const originalStackTraceLimit = ErrorConfig.stackTraceLimit;
if (stackTraceLimit !== undefined) {
ErrorConfig.stackTraceLimit = stackTraceLimit;
}
const err = new Error("<<generated stack>>");

@@ -147,2 +153,3 @@ if (stackPopulatedOnCreation === undefined) {

if (stackPopulatedOnCreation) {
ErrorConfig.stackTraceLimit = originalStackTraceLimit;
return err;

@@ -154,2 +161,3 @@ }

catch (error) {
ErrorConfig.stackTraceLimit = originalStackTraceLimit;
return error;

@@ -161,2 +169,3 @@ }

* Generate a stack at this callsite as if an error were thrown from here.
* @param stackTraceLimit - stack trace limit for an error
* @returns the callstack (does not throw)

@@ -166,4 +175,4 @@ *

*/
function generateStack() {
return generateErrorWithStack().stack;
function generateStack(stackTraceLimit) {
return generateErrorWithStack(stackTraceLimit).stack;
}

@@ -170,0 +179,0 @@ exports.generateStack = generateStack;

@@ -52,2 +52,3 @@ /*!

* Some browsers will populate stack right away, others require throwing Error, so we do auto-detection on the fly.
* @param stackTraceLimit - stack trace limit for an error
* @returns Error object that has stack populated.

@@ -57,5 +58,6 @@ *

*/
export declare function generateErrorWithStack(): Error;
export declare function generateErrorWithStack(stackTraceLimit?: number): Error;
/**
* Generate a stack at this callsite as if an error were thrown from here.
* @param stackTraceLimit - stack trace limit for an error
* @returns the callstack (does not throw)

@@ -65,3 +67,3 @@ *

*/
export declare function generateStack(): string | undefined;
export declare function generateStack(stackTraceLimit?: number): string | undefined;
/**

@@ -68,0 +70,0 @@ * Create a new error using newErrorFn, wrapping and caused by the given unknown error.

@@ -129,2 +129,3 @@ /*!

* Some browsers will populate stack right away, others require throwing Error, so we do auto-detection on the fly.
* @param stackTraceLimit - stack trace limit for an error
* @returns Error object that has stack populated.

@@ -134,3 +135,8 @@ *

*/
export function generateErrorWithStack() {
export function generateErrorWithStack(stackTraceLimit) {
const ErrorConfig = Error;
const originalStackTraceLimit = ErrorConfig.stackTraceLimit;
if (stackTraceLimit !== undefined) {
ErrorConfig.stackTraceLimit = stackTraceLimit;
}
const err = new Error("<<generated stack>>");

@@ -141,2 +147,3 @@ if (stackPopulatedOnCreation === undefined) {

if (stackPopulatedOnCreation) {
ErrorConfig.stackTraceLimit = originalStackTraceLimit;
return err;

@@ -148,2 +155,3 @@ }

catch (error) {
ErrorConfig.stackTraceLimit = originalStackTraceLimit;
return error;

@@ -154,2 +162,3 @@ }

* Generate a stack at this callsite as if an error were thrown from here.
* @param stackTraceLimit - stack trace limit for an error
* @returns the callstack (does not throw)

@@ -159,4 +168,4 @@ *

*/
export function generateStack() {
return generateErrorWithStack().stack;
export function generateStack(stackTraceLimit) {
return generateErrorWithStack(stackTraceLimit).stack;
}

@@ -163,0 +172,0 @@ /**

{
"name": "@fluidframework/telemetry-utils",
"version": "2.1.0",
"version": "2.2.0",
"description": "Collection of telemetry relates utilities for Fluid",

@@ -70,6 +70,6 @@ "homepage": "https://fluidframework.com",

"dependencies": {
"@fluid-internal/client-utils": "~2.1.0",
"@fluidframework/core-interfaces": "~2.1.0",
"@fluidframework/core-utils": "~2.1.0",
"@fluidframework/driver-definitions": "~2.1.0",
"@fluid-internal/client-utils": "~2.2.0",
"@fluidframework/core-interfaces": "~2.2.0",
"@fluidframework/core-utils": "~2.2.0",
"@fluidframework/driver-definitions": "~2.2.0",
"debug": "^4.3.4",

@@ -81,8 +81,8 @@ "uuid": "^9.0.0"

"@biomejs/biome": "~1.8.3",
"@fluid-internal/mocha-test-setup": "~2.1.0",
"@fluid-tools/build-cli": "^0.41.0",
"@fluid-internal/mocha-test-setup": "~2.2.0",
"@fluid-tools/build-cli": "^0.43.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.41.0",
"@fluidframework/build-tools": "^0.43.0",
"@fluidframework/eslint-config-fluid": "^5.3.0",
"@fluidframework/telemetry-utils-previous": "npm:@fluidframework/telemetry-utils@2.0.0",
"@fluidframework/telemetry-utils-previous": "npm:@fluidframework/telemetry-utils@2.1.0",
"@microsoft/api-extractor": "^7.45.1",

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

@@ -5,3 +5,3 @@ # @fluidframework/telemetry-utils

<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_HEADER) -->
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_README_HEADER) -->

@@ -44,3 +44,3 @@ <!-- prettier-ignore-start -->

<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_FOOTER) -->
<!-- AUTO-GENERATED-CONTENT:START (README_FOOTER) -->

@@ -47,0 +47,0 @@ <!-- prettier-ignore-start -->

@@ -184,2 +184,3 @@ /*!

* Some browsers will populate stack right away, others require throwing Error, so we do auto-detection on the fly.
* @param stackTraceLimit - stack trace limit for an error
* @returns Error object that has stack populated.

@@ -189,3 +190,8 @@ *

*/
export function generateErrorWithStack(): Error {
export function generateErrorWithStack(stackTraceLimit?: number): Error {
const ErrorConfig = Error as unknown as { stackTraceLimit: number };
const originalStackTraceLimit = ErrorConfig.stackTraceLimit;
if (stackTraceLimit !== undefined) {
ErrorConfig.stackTraceLimit = stackTraceLimit;
}
const err = new Error("<<generated stack>>");

@@ -198,2 +204,3 @@

if (stackPopulatedOnCreation) {
ErrorConfig.stackTraceLimit = originalStackTraceLimit;
return err;

@@ -205,2 +212,3 @@ }

} catch (error) {
ErrorConfig.stackTraceLimit = originalStackTraceLimit;
return error as Error;

@@ -212,2 +220,3 @@ }

* Generate a stack at this callsite as if an error were thrown from here.
* @param stackTraceLimit - stack trace limit for an error
* @returns the callstack (does not throw)

@@ -217,4 +226,4 @@ *

*/
export function generateStack(): string | undefined {
return generateErrorWithStack().stack;
export function generateStack(stackTraceLimit?: number): string | undefined {
return generateErrorWithStack(stackTraceLimit).stack;
}

@@ -221,0 +230,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

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