@cardano-sdk/util
Advanced tools
Comparing version 0.8.3-nightly.0 to 0.8.3-nightly.1
import { CustomError } from 'ts-custom-error'; | ||
export declare const formatErrorMessage: (reason: string, detail?: string) => string; | ||
export declare class ComposableError<InnerError = unknown> extends CustomError { | ||
@@ -3,0 +4,0 @@ innerError?: InnerError | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InvalidArgumentError = exports.InvalidStringError = exports.ComposableError = void 0; | ||
exports.InvalidArgumentError = exports.InvalidStringError = exports.ComposableError = exports.formatErrorMessage = void 0; | ||
const ts_custom_error_1 = require("ts-custom-error"); | ||
const formatErrorMessage = (reason, detail) => reason + (detail ? ` (${detail})` : ''); | ||
exports.formatErrorMessage = formatErrorMessage; | ||
const isErrorLike = (error) => { | ||
@@ -6,0 +8,0 @@ if (!error || typeof error !== 'object' || !('message' in error && 'stack' in error)) |
import { CustomError } from 'ts-custom-error'; | ||
export declare const formatErrorMessage: (reason: string, detail?: string) => string; | ||
export declare class ComposableError<InnerError = unknown> extends CustomError { | ||
@@ -3,0 +4,0 @@ innerError?: InnerError | undefined; |
import { CustomError } from 'ts-custom-error'; | ||
export const formatErrorMessage = (reason, detail) => reason + (detail ? ` (${detail})` : ''); | ||
const isErrorLike = (error) => { | ||
@@ -3,0 +4,0 @@ if (!error || typeof error !== 'object' || !('message' in error && 'stack' in error)) |
{ | ||
"name": "@cardano-sdk/util", | ||
"version": "0.8.3-nightly.0", | ||
"version": "0.8.3-nightly.1", | ||
"description": "General, not cardano-specific utils", | ||
@@ -56,3 +56,3 @@ "engines": { | ||
"devDependencies": { | ||
"@cardano-sdk/util-dev": "^0.8.1-nightly.0", | ||
"@cardano-sdk/util-dev": "^0.8.1-nightly.2", | ||
"@types/lodash": "^4.14.182", | ||
@@ -81,3 +81,3 @@ "eslint": "^7.32.0", | ||
], | ||
"gitHead": "d9cc8ba360686cda0650410069923a744db60a32" | ||
"gitHead": "43319ac7bf111b0d8ef541b2f7d75ff436a7e48b" | ||
} |
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
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
366926
1210