@hemia/common 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hemia-common.esm.js
CHANGED
|
@@ -324,6 +324,12 @@ const Controller = (basePath = '/') => {
|
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
const ManualRegister = () => {
|
|
328
|
+
return (target) => {
|
|
329
|
+
Reflect.defineMetadata(METADATA_KEYS.MANUAL_REGISTER, true, target);
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
|
|
327
333
|
/**
|
|
328
334
|
* Decorador para extraer datos personalizados del request.
|
|
329
335
|
*
|
|
@@ -693,4 +699,4 @@ class InfraDataDeserializationError extends InfrastructureError {
|
|
|
693
699
|
}
|
|
694
700
|
}
|
|
695
701
|
|
|
696
|
-
export { ApiResponse, BackupError, BadRequestError, Body, BusinessRuleViolationError, ConfigurationError, ConflictError, ConnectionError, Controller, ControllerRegistry, Cookies, Custom, CustomHttpError, DataConflictError, DataIntegrityError, DataMigrationError, DataNotFoundError, DataValidationError, Delete, DependencyError, DomainError, DuplicateEntityError, EntityNotFoundError, File, Files, ForbiddenError, GatewayTimeoutError, Get, Head, Header, Headers, Host, HttpError, HttpErrorWithDetails, HttpMethod, IndexingError, InfraAuthenticationError, InfraAuthorizationError, InfraCacheConnectionError, InfraConfigurationError, InfraDataDeserializationError, InfraDataSerializationError, InfraDatabaseConnectionError, InfraExternalServiceError, InfraMessageQueueError, InfraNetworkError, InfraServiceUnavailableError, InfraTimeoutError, InfrastructureError, InternalServerError, Ip, Locale, METADATA_KEYS, Module, Next, NotFoundError, OperationNotAllowedError, Options, Param, ParamType, Patch, PersistenceError, Post, Put, Query, QueryExecutionError, Redirect, Repository, Req, ReqAuth, ReqContext, ReqPermissions, ReqUser, Request, Res, ResourceLimitError, ResourceLimitExceededError, Response, RestoreError, SchemaMismatchError, Serialize, Service, ServiceUnavailableError, Session, SetMetadata, TimeoutError, TransactionError, Transform, UnauthorizedError, UnprocessableEntityError, UseGuards, UseInterceptors, Validate, ValidationError, isRedirectResponse };
|
|
702
|
+
export { ApiResponse, BackupError, BadRequestError, Body, BusinessRuleViolationError, ConfigurationError, ConflictError, ConnectionError, Controller, ControllerRegistry, Cookies, Custom, CustomHttpError, DataConflictError, DataIntegrityError, DataMigrationError, DataNotFoundError, DataValidationError, Delete, DependencyError, DomainError, DuplicateEntityError, EntityNotFoundError, File, Files, ForbiddenError, GatewayTimeoutError, Get, Head, Header, Headers, Host, HttpError, HttpErrorWithDetails, HttpMethod, IndexingError, InfraAuthenticationError, InfraAuthorizationError, InfraCacheConnectionError, InfraConfigurationError, InfraDataDeserializationError, InfraDataSerializationError, InfraDatabaseConnectionError, InfraExternalServiceError, InfraMessageQueueError, InfraNetworkError, InfraServiceUnavailableError, InfraTimeoutError, InfrastructureError, InternalServerError, Ip, Locale, METADATA_KEYS, ManualRegister, Module, Next, NotFoundError, OperationNotAllowedError, Options, Param, ParamType, Patch, PersistenceError, Post, Put, Query, QueryExecutionError, Redirect, Repository, Req, ReqAuth, ReqContext, ReqPermissions, ReqUser, Request, Res, ResourceLimitError, ResourceLimitExceededError, Response, RestoreError, SchemaMismatchError, Serialize, Service, ServiceUnavailableError, Session, SetMetadata, TimeoutError, TransactionError, Transform, UnauthorizedError, UnprocessableEntityError, UseGuards, UseInterceptors, Validate, ValidationError, isRedirectResponse };
|
package/dist/hemia-common.js
CHANGED
|
@@ -326,6 +326,12 @@ const Controller = (basePath = '/') => {
|
|
|
326
326
|
};
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
+
const ManualRegister = () => {
|
|
330
|
+
return (target) => {
|
|
331
|
+
Reflect.defineMetadata(METADATA_KEYS.MANUAL_REGISTER, true, target);
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
|
|
329
335
|
/**
|
|
330
336
|
* Decorador para extraer datos personalizados del request.
|
|
331
337
|
*
|
|
@@ -747,6 +753,7 @@ exports.InternalServerError = InternalServerError;
|
|
|
747
753
|
exports.Ip = Ip;
|
|
748
754
|
exports.Locale = Locale;
|
|
749
755
|
exports.METADATA_KEYS = METADATA_KEYS;
|
|
756
|
+
exports.ManualRegister = ManualRegister;
|
|
750
757
|
exports.Module = Module;
|
|
751
758
|
exports.Next = Next;
|
|
752
759
|
exports.NotFoundError = NotFoundError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hemia/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Paquete común para proyectos de Hemia",
|
|
5
5
|
"main": "dist/hemia-common.js",
|
|
6
6
|
"module": "dist/hemia-common.esm.js",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"build": "npm run clean && npm run tscBuild",
|
|
12
12
|
"test": "jest --detectOpenHandles",
|
|
13
13
|
"test:coverage": "jest --coverage",
|
|
14
|
-
"test:watch": "jest --watch"
|
|
14
|
+
"test:watch": "jest --watch",
|
|
15
|
+
"prepublish": "npm run build"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
18
|
"@rollup/plugin-commonjs": "^26.0.1",
|