@deboxsoft/module-core
Advanced tools
Comparing version 3.0.0-beta.7 to 3.0.0-beta.8
@@ -29,4 +29,9 @@ import nconf from 'nconf'; | ||
}) => ConfigService; | ||
/** | ||
* Returns the path to the home directory. | ||
* | ||
* @return {string} The path to the home directory. | ||
*/ | ||
declare const getHomePath: () => string; | ||
export { type ConfigOptions, createConfig, createConfigService, getHomePath }; |
@@ -23,3 +23,3 @@ import { A as AppConfig } from './ConfigService-CqJMT-s8.js'; | ||
}; | ||
type HttpErrorResponse = Omit<DbxErrorOptions, "messages">; | ||
type HttpErrorResponse = Omit<DbxErrorOptions, "message">; | ||
declare class DbxError<Code extends string = string> extends Error { | ||
@@ -32,3 +32,16 @@ code?: Code; | ||
constructor({ code, instanceOf, args, message }?: DbxErrorOptions<Code>); | ||
protected setMessage(_message: string, args: any): void; | ||
/** | ||
* Sets the error message by rendering the given message with the provided arguments. | ||
* | ||
* @param {string} _message - The message template to render. | ||
* @param {object} args - The arguments to use when rendering the message template. | ||
* @return {void} | ||
*/ | ||
protected setMessage(_message: string, args?: object): void; | ||
/** | ||
* Creates an HTTP error response from a given DbxError. | ||
* | ||
* @param {DbxError} dbxError - The DbxError to convert into an HTTP error response. | ||
* @return {HttpErrorResponse} The HTTP error response. | ||
*/ | ||
static createHttpError(dbxError: DbxError): HttpErrorResponse; | ||
@@ -161,5 +174,20 @@ } | ||
remove(identifierOrIdentifierArray: Identifier | Identifier[]): this; | ||
/** | ||
* Resets the container by clearing its metadata map. | ||
* | ||
* @return {void} No return value. | ||
*/ | ||
reset(): void; | ||
keys(): IterableIterator<Identifier>; | ||
values(): IterableIterator<any>; | ||
/** | ||
* Returns an iterator over the values of the metadata map. | ||
* | ||
* @return {Iterator<any>} An iterator over the values of the metadata map. | ||
*/ | ||
values(): Iterator<any>; | ||
/** | ||
* Returns an iterator over the entries of the metadata map. | ||
* | ||
* @return {Iterator<[Identifier, any]>} An iterator over the entries of the metadata map. | ||
*/ | ||
entries(): IterableIterator<[Identifier, any]>; | ||
@@ -166,0 +194,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Container } from './chunk-GPLVETAS.js'; | ||
export { CONFIG_KEY, Container, ContainerDIClass, DbxDataError, DbxError, getConfig, getConfigService } from './chunk-GPLVETAS.js'; | ||
import { Container } from './chunk-A53AZXIH.js'; | ||
export { CONFIG_KEY, Container, ContainerDIClass, DbxDataError, DbxError, getConfig, getConfigService } from './chunk-A53AZXIH.js'; | ||
import * as _zod from 'zod'; | ||
@@ -4,0 +4,0 @@ import { z, ZodFirstPartyTypeKind } from 'zod'; |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "3.0.0-beta.7", | ||
"version": "3.0.0-beta.8", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
Sorry, the diff of this file is too big to display
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
157769
4636