@dxos/debug
Advanced tools
Comparing version 2.10.8 to 2.10.9
@@ -1,2 +0,2 @@ | ||
export declare type ErrorHandler = (error: Error) => void; | ||
export declare type ErrorHandlerCallback = (error: Error) => void; | ||
/** | ||
@@ -12,3 +12,3 @@ * Represents a stream of errors that entities can expose. | ||
raise(error: Error): void; | ||
handle(handler: ErrorHandler): void; | ||
handle(handler: ErrorHandlerCallback): void; | ||
pipeTo(receiver: ErrorStream): void; | ||
@@ -15,0 +15,0 @@ private _unhandledError; |
@@ -1,11 +0,12 @@ | ||
export * from "./assert"; | ||
export * from "./console"; | ||
export * from "./error-handler"; | ||
export * from "./error-stream"; | ||
export * from "./logging"; | ||
export * from "./raise"; | ||
export * from "./strings"; | ||
export * from "./stack-trace"; | ||
export * from "./throw"; | ||
export * from "./timeout-warning"; | ||
export * from './assert'; | ||
export * from './console'; | ||
export * from './error-handler'; | ||
export * from './error-stream'; | ||
export * from './logging'; | ||
export * from './raise'; | ||
export * from './strings'; | ||
export * from './stack-trace'; | ||
export * from './throw'; | ||
export * from './timeout-warning'; | ||
export * from './log-method'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -26,2 +26,3 @@ "use strict"; | ||
__exportStar(require("./timeout-warning"), exports); | ||
__exportStar(require("./log-method"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -14,3 +14,3 @@ /** | ||
* class Foo { | ||
* @timed(5000) | ||
* @timed(5_000) | ||
* async doStuff() { | ||
@@ -17,0 +17,0 @@ * // long task |
@@ -33,3 +33,3 @@ "use strict"; | ||
* class Foo { | ||
* @timed(5000) | ||
* @timed(5_000) | ||
* async doStuff() { | ||
@@ -36,0 +36,0 @@ * // long task |
{ | ||
"name": "@dxos/debug", | ||
"version": "2.10.8", | ||
"version": "2.10.9", | ||
"description": "Debug utilities", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -7,3 +7,3 @@ // | ||
export type ErrorHandler = (error: Error) => void; | ||
export type ErrorHandlerCallback = (error: Error) => void; | ||
@@ -16,3 +16,3 @@ /** | ||
private _handler: ErrorHandler | undefined; | ||
private _handler: ErrorHandlerCallback | undefined; | ||
@@ -39,3 +39,3 @@ private _unhandledErrors = 0; | ||
handle (handler: ErrorHandler) { | ||
handle (handler: ErrorHandlerCallback) { | ||
this._handler = handler; | ||
@@ -42,0 +42,0 @@ } |
@@ -32,3 +32,3 @@ // | ||
* class Foo { | ||
* @timed(5000) | ||
* @timed(5_000) | ||
* async doStuff() { | ||
@@ -35,0 +35,0 @@ * // long task |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113765
68
830