@fluidframework/driver-utils
Advanced tools
Comparing version 0.31.1 to 0.32.0
@@ -6,3 +6,3 @@ /*! | ||
import { IThrottlingWarning, IDriverErrorBase, IAuthorizationError, DriverErrorType } from "@fluidframework/driver-definitions"; | ||
import { CustomErrorWithProps } from "@fluidframework/telemetry-utils"; | ||
import { LoggingError } from "@fluidframework/telemetry-utils"; | ||
export declare enum OnlineStatus { | ||
@@ -17,3 +17,3 @@ Offline = 0, | ||
*/ | ||
export declare class GenericNetworkError extends CustomErrorWithProps implements IDriverErrorBase { | ||
export declare class GenericNetworkError extends LoggingError implements IDriverErrorBase { | ||
readonly canRetry: boolean; | ||
@@ -23,3 +23,3 @@ readonly errorType = DriverErrorType.genericNetworkError; | ||
} | ||
export declare class AuthorizationError extends CustomErrorWithProps implements IAuthorizationError { | ||
export declare class AuthorizationError extends LoggingError implements IAuthorizationError { | ||
readonly claims: string | undefined; | ||
@@ -30,3 +30,3 @@ readonly errorType = DriverErrorType.authorizationError; | ||
} | ||
export declare class NetworkErrorBasic<T> extends CustomErrorWithProps { | ||
export declare class NetworkErrorBasic<T> extends LoggingError { | ||
readonly errorType: T; | ||
@@ -43,3 +43,3 @@ readonly canRetry: boolean; | ||
*/ | ||
export declare class ThrottlingError extends CustomErrorWithProps implements IThrottlingWarning { | ||
export declare class ThrottlingError extends LoggingError implements IThrottlingWarning { | ||
readonly retryAfterSeconds: number; | ||
@@ -46,0 +46,0 @@ readonly errorType = DriverErrorType.throttlingError; |
@@ -29,3 +29,3 @@ "use strict"; | ||
*/ | ||
class GenericNetworkError extends telemetry_utils_1.CustomErrorWithProps { | ||
class GenericNetworkError extends telemetry_utils_1.LoggingError { | ||
constructor(errorMessage, canRetry, statusCode) { | ||
@@ -38,3 +38,3 @@ super(errorMessage, { statusCode }); | ||
exports.GenericNetworkError = GenericNetworkError; | ||
class AuthorizationError extends telemetry_utils_1.CustomErrorWithProps { | ||
class AuthorizationError extends telemetry_utils_1.LoggingError { | ||
constructor(errorMessage, claims, statusCode) { | ||
@@ -48,3 +48,3 @@ super(errorMessage, { statusCode }); | ||
exports.AuthorizationError = AuthorizationError; | ||
class NetworkErrorBasic extends telemetry_utils_1.CustomErrorWithProps { | ||
class NetworkErrorBasic extends telemetry_utils_1.LoggingError { | ||
constructor(errorMessage, errorType, canRetry, statusCode) { | ||
@@ -67,3 +67,3 @@ super(errorMessage, { statusCode }); | ||
*/ | ||
class ThrottlingError extends telemetry_utils_1.CustomErrorWithProps { | ||
class ThrottlingError extends telemetry_utils_1.LoggingError { | ||
constructor(errorMessage, retryAfterSeconds, statusCode) { | ||
@@ -70,0 +70,0 @@ super(errorMessage, { statusCode }); |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/driver-utils"; | ||
export declare const pkgVersion = "0.31.1"; | ||
export declare const pkgVersion = "0.32.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/driver-utils"; | ||
exports.pkgVersion = "0.31.1"; | ||
exports.pkgVersion = "0.32.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -6,3 +6,3 @@ /*! | ||
import { IThrottlingWarning, IDriverErrorBase, IAuthorizationError, DriverErrorType } from "@fluidframework/driver-definitions"; | ||
import { CustomErrorWithProps } from "@fluidframework/telemetry-utils"; | ||
import { LoggingError } from "@fluidframework/telemetry-utils"; | ||
export declare enum OnlineStatus { | ||
@@ -17,3 +17,3 @@ Offline = 0, | ||
*/ | ||
export declare class GenericNetworkError extends CustomErrorWithProps implements IDriverErrorBase { | ||
export declare class GenericNetworkError extends LoggingError implements IDriverErrorBase { | ||
readonly canRetry: boolean; | ||
@@ -23,3 +23,3 @@ readonly errorType = DriverErrorType.genericNetworkError; | ||
} | ||
export declare class AuthorizationError extends CustomErrorWithProps implements IAuthorizationError { | ||
export declare class AuthorizationError extends LoggingError implements IAuthorizationError { | ||
readonly claims: string | undefined; | ||
@@ -30,3 +30,3 @@ readonly errorType = DriverErrorType.authorizationError; | ||
} | ||
export declare class NetworkErrorBasic<T> extends CustomErrorWithProps { | ||
export declare class NetworkErrorBasic<T> extends LoggingError { | ||
readonly errorType: T; | ||
@@ -43,3 +43,3 @@ readonly canRetry: boolean; | ||
*/ | ||
export declare class ThrottlingError extends CustomErrorWithProps implements IThrottlingWarning { | ||
export declare class ThrottlingError extends LoggingError implements IThrottlingWarning { | ||
readonly retryAfterSeconds: number; | ||
@@ -46,0 +46,0 @@ readonly errorType = DriverErrorType.throttlingError; |
@@ -6,3 +6,3 @@ /*! | ||
import { DriverErrorType, } from "@fluidframework/driver-definitions"; | ||
import { CustomErrorWithProps } from "@fluidframework/telemetry-utils"; | ||
import { LoggingError } from "@fluidframework/telemetry-utils"; | ||
export var OnlineStatus; | ||
@@ -27,3 +27,3 @@ (function (OnlineStatus) { | ||
*/ | ||
export class GenericNetworkError extends CustomErrorWithProps { | ||
export class GenericNetworkError extends LoggingError { | ||
constructor(errorMessage, canRetry, statusCode) { | ||
@@ -35,3 +35,3 @@ super(errorMessage, { statusCode }); | ||
} | ||
export class AuthorizationError extends CustomErrorWithProps { | ||
export class AuthorizationError extends LoggingError { | ||
constructor(errorMessage, claims, statusCode) { | ||
@@ -44,3 +44,3 @@ super(errorMessage, { statusCode }); | ||
} | ||
export class NetworkErrorBasic extends CustomErrorWithProps { | ||
export class NetworkErrorBasic extends LoggingError { | ||
constructor(errorMessage, errorType, canRetry, statusCode) { | ||
@@ -61,3 +61,3 @@ super(errorMessage, { statusCode }); | ||
*/ | ||
export class ThrottlingError extends CustomErrorWithProps { | ||
export class ThrottlingError extends LoggingError { | ||
constructor(errorMessage, retryAfterSeconds, statusCode) { | ||
@@ -64,0 +64,0 @@ super(errorMessage, { statusCode }); |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/driver-utils"; | ||
export declare const pkgVersion = "0.31.1"; | ||
export declare const pkgVersion = "0.32.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/driver-utils"; | ||
export const pkgVersion = "0.31.1"; | ||
export const pkgVersion = "0.32.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
{ | ||
"name": "@fluidframework/driver-utils", | ||
"version": "0.31.1", | ||
"version": "0.32.0", | ||
"description": "Collection of utility functions for Fluid drivers", | ||
@@ -52,8 +52,8 @@ "homepage": "https://fluidframework.com", | ||
"@fluidframework/common-utils": "^0.26.0", | ||
"@fluidframework/core-interfaces": "^0.31.1", | ||
"@fluidframework/driver-definitions": "^0.31.1", | ||
"@fluidframework/gitresources": "^0.1016.1", | ||
"@fluidframework/protocol-base": "^0.1016.1", | ||
"@fluidframework/protocol-definitions": "^0.1016.1", | ||
"@fluidframework/telemetry-utils": "^0.31.1", | ||
"@fluidframework/core-interfaces": "^0.32.0", | ||
"@fluidframework/driver-definitions": "^0.32.0", | ||
"@fluidframework/gitresources": "^0.1017.0", | ||
"@fluidframework/protocol-base": "^0.1017.0", | ||
"@fluidframework/protocol-definitions": "^0.1017.0", | ||
"@fluidframework/telemetry-utils": "^0.32.0", | ||
"assert": "^2.0.0", | ||
@@ -60,0 +60,0 @@ "uuid": "^8.3.1" |
@@ -12,3 +12,3 @@ /*! | ||
} from "@fluidframework/driver-definitions"; | ||
import { CustomErrorWithProps } from "@fluidframework/telemetry-utils"; | ||
import { LoggingError } from "@fluidframework/telemetry-utils"; | ||
@@ -35,3 +35,3 @@ export enum OnlineStatus { | ||
*/ | ||
export class GenericNetworkError extends CustomErrorWithProps implements IDriverErrorBase { | ||
export class GenericNetworkError extends LoggingError implements IDriverErrorBase { | ||
readonly errorType = DriverErrorType.genericNetworkError; | ||
@@ -48,3 +48,3 @@ | ||
export class AuthorizationError extends CustomErrorWithProps implements IAuthorizationError { | ||
export class AuthorizationError extends LoggingError implements IAuthorizationError { | ||
readonly errorType = DriverErrorType.authorizationError; | ||
@@ -62,3 +62,3 @@ readonly canRetry = false; | ||
export class NetworkErrorBasic<T> extends CustomErrorWithProps { | ||
export class NetworkErrorBasic<T> extends LoggingError { | ||
constructor( | ||
@@ -87,3 +87,3 @@ errorMessage: string, | ||
*/ | ||
export class ThrottlingError extends CustomErrorWithProps implements IThrottlingWarning { | ||
export class ThrottlingError extends LoggingError implements IThrottlingWarning { | ||
readonly errorType = DriverErrorType.throttlingError; | ||
@@ -90,0 +90,0 @@ readonly canRetry = true; |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/driver-utils"; | ||
export const pkgVersion = "0.31.1"; | ||
export const pkgVersion = "0.32.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
154607
+ Added@fluidframework/core-interfaces@0.32.5(transitive)
+ Added@fluidframework/driver-definitions@0.32.5(transitive)
+ Added@fluidframework/gitresources@0.1017.1(transitive)
+ Added@fluidframework/protocol-base@0.1017.1(transitive)
+ Added@fluidframework/protocol-definitions@0.1017.1(transitive)
+ Added@fluidframework/telemetry-utils@0.32.5(transitive)
- Removed@fluidframework/core-interfaces@0.31.2(transitive)
- Removed@fluidframework/driver-definitions@0.31.2(transitive)
- Removed@fluidframework/gitresources@0.1016.1(transitive)
- Removed@fluidframework/protocol-base@0.1016.1(transitive)
- Removed@fluidframework/protocol-definitions@0.1016.1(transitive)
- Removed@fluidframework/telemetry-utils@0.31.2(transitive)