@rarible/utils
Advanced tools
Comparing version 0.10.0-alpha.10 to 0.10.0-alpha.13
export declare function extractErrorMessage(error: unknown): string | undefined; | ||
export declare function extractErrorName(error: unknown): string | undefined; | ||
export declare function extractErrorStack(error: unknown): string | undefined; | ||
export type ErrorLike = { | ||
message: string; | ||
name: string; | ||
stack?: string; | ||
}; | ||
export declare function isErrorLike(obj: unknown): obj is ErrorLike; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extractErrorStack = exports.extractErrorName = exports.extractErrorMessage = void 0; | ||
exports.isErrorLike = exports.extractErrorStack = exports.extractErrorName = exports.extractErrorMessage = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -41,1 +41,5 @@ const tg = tslib_1.__importStar(require("generic-type-guard")); | ||
exports.extractErrorStack = extractErrorStack; | ||
function isErrorLike(obj) { | ||
return hasName(obj) && hasMessage(obj); | ||
} | ||
exports.isErrorLike = isErrorLike; |
export * from "./bn"; | ||
export * from "./id"; | ||
export * from "./error"; | ||
export * from "./common"; |
@@ -7,1 +7,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./error"), exports); | ||
tslib_1.__exportStar(require("./common"), exports); |
{ | ||
"name": "@rarible/utils", | ||
"version": "0.10.0-alpha.10", | ||
"version": "0.10.0-alpha.13", | ||
"keywords": [ | ||
@@ -36,3 +36,3 @@ "rarible", | ||
}, | ||
"gitHead": "db86bc82bfc491a74c3717c5c7f1e996306206ef" | ||
"gitHead": "248bce48687c674c82baeaf28130f91975b7a4dc" | ||
} |
Sorry, the diff of this file is not supported yet
38867
21
252