@rafikidota/iroh 0.48.0 → 0.50.0
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/collection.json +0 -0
- package/dist/common/class/exception-handler.d.ts +3 -0
- package/dist/common/class/exception-handler.js +7 -0
- package/dist/common/class/exception-handler.js.map +1 -0
- package/dist/common/class/index.d.ts +2 -0
- package/dist/common/class/index.js +19 -0
- package/dist/common/class/index.js.map +1 -0
- package/dist/common/class/view-mapper..d.ts +3 -0
- package/dist/common/class/view-mapper..js +7 -0
- package/dist/common/class/view-mapper..js.map +1 -0
- package/dist/common/decorators/response/error-handler.decorator.d.ts +4 -0
- package/dist/common/decorators/response/error-handler.decorator.js +8 -0
- package/dist/common/decorators/response/error-handler.decorator.js.map +1 -0
- package/dist/common/decorators/response/handle-response.decorator.d.ts +1 -2
- package/dist/common/decorators/response/handle-response.decorator.js +13 -2
- package/dist/common/decorators/response/handle-response.decorator.js.map +1 -1
- package/dist/common/decorators/response/index.d.ts +2 -0
- package/dist/common/decorators/response/index.js +2 -0
- package/dist/common/decorators/response/index.js.map +1 -1
- package/dist/common/decorators/response/mapper.decorator.d.ts +6 -0
- package/dist/common/decorators/response/mapper.decorator.js +8 -0
- package/dist/common/decorators/response/mapper.decorator.js.map +1 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/interfaces/{exception-mapper.d.ts → error-handler.d.ts} +1 -1
- package/dist/common/interfaces/{exception-mapper.js → error-handler.js} +1 -1
- package/dist/common/interfaces/error-handler.js.map +1 -0
- package/dist/common/interfaces/index.d.ts +3 -1
- package/dist/common/interfaces/index.js +3 -1
- package/dist/common/interfaces/index.js.map +1 -1
- package/dist/common/interfaces/response-handler.d.ts +6 -0
- package/dist/common/interfaces/response-handler.js +3 -0
- package/dist/common/interfaces/response-handler.js.map +1 -0
- package/dist/common/interfaces/view-handler.d.ts +3 -0
- package/dist/common/interfaces/view-handler.js +3 -0
- package/dist/common/interfaces/view-handler.js.map +1 -0
- package/package.json +31 -30
- package/dist/common/interfaces/exception-mapper.js.map +0 -1
package/collection.json
CHANGED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception-handler.js","sourceRoot":"","sources":["../../../src/common/class/exception-handler.ts"],"names":[],"mappings":";;;AAAA,MAAsB,gBAAgB;CAErC;AAFD,4CAEC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./exception-handler"), exports);
|
|
18
|
+
__exportStar(require("./view-mapper."), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/class/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-mapper..js","sourceRoot":"","sources":["../../../src/common/class/view-mapper..ts"],"names":[],"mappings":";;;AAAA,MAAsB,UAAU;CAE/B;AAFD,gCAEC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Type } from '@nestjs/common';
|
|
2
|
+
import { ExceptionHandler } from '../../class/exception-handler';
|
|
3
|
+
export declare const ERROR_HANDLER_KEY = "ERROR_HANDLER_KEY";
|
|
4
|
+
export declare const UseExceptionHandler: (handler: Type<ExceptionHandler>) => import("@nestjs/common").CustomDecorator<string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseExceptionHandler = exports.ERROR_HANDLER_KEY = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
exports.ERROR_HANDLER_KEY = 'ERROR_HANDLER_KEY';
|
|
6
|
+
const UseExceptionHandler = (handler) => (0, common_1.SetMetadata)(exports.ERROR_HANDLER_KEY, handler);
|
|
7
|
+
exports.UseExceptionHandler = UseExceptionHandler;
|
|
8
|
+
//# sourceMappingURL=error-handler.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-handler.decorator.js","sourceRoot":"","sources":["../../../../src/common/decorators/response/error-handler.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAIhC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C,MAAM,mBAAmB,GAAG,CAAC,OAA+B,EAAE,EAAE,CACrE,IAAA,oBAAW,EAAC,yBAAiB,EAAE,OAAO,CAAC,CAAC;AAD7B,QAAA,mBAAmB,uBACU"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IMapper } from '../../interfaces/generic.mapper';
|
|
2
|
-
import { IExceptionMapper } from '../../interfaces/exception-mapper';
|
|
3
2
|
import { IService } from '../../interfaces/crud.service';
|
|
4
3
|
import { Persistence } from '../../../core/infra/generic.persistence';
|
|
5
4
|
import { Domain } from '../../../core/domain/generic.domain';
|
|
6
5
|
import { View } from '../../../core/app/dto/generic.view';
|
|
7
6
|
import { DtoMapper } from '../../../core/app/dto/generic.create.dto';
|
|
8
|
-
export declare function HandleResponse<M extends IMapper<T, D, V>, T extends Persistence = ReturnType<M['DomainToPersistence']>, D extends Domain = ReturnType<M['PersistenceToDomain']>, V extends View = ReturnType<M['DomainToView']>, DTO extends DtoMapper<D, DTO> = DtoMapper<D>, S extends IService<T, D, V, DTO> = IService<T, D, V, DTO>>(
|
|
7
|
+
export declare function HandleResponse<M extends IMapper<T, D, V>, T extends Persistence = ReturnType<M['DomainToPersistence']>, D extends Domain = ReturnType<M['PersistenceToDomain']>, V extends View = ReturnType<M['DomainToView']>, DTO extends DtoMapper<D, DTO> = DtoMapper<D>, S extends IService<T, D, V, DTO> = IService<T, D, V, DTO>>(): MethodDecorator;
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HandleResponse = HandleResponse;
|
|
4
|
+
const core_1 = require("@nestjs/core");
|
|
4
5
|
const response_handler_1 = require("../../../core/app/response-handler");
|
|
5
6
|
const iroh_service_1 = require("../../../core/iroh.service");
|
|
6
|
-
|
|
7
|
+
const mapper_decorator_1 = require("./mapper.decorator");
|
|
8
|
+
const error_handler_decorator_1 = require("./error-handler.decorator");
|
|
9
|
+
function HandleResponse() {
|
|
7
10
|
return function (target, propertyKey, descriptor) {
|
|
8
11
|
const { value: method } = descriptor;
|
|
12
|
+
const reflector = new core_1.Reflector();
|
|
9
13
|
const wrapped = function (...args) {
|
|
10
14
|
const result = method.apply(this, args);
|
|
11
15
|
const getMapper = () => {
|
|
16
|
+
const Mapper = reflector.get(mapper_decorator_1.MAPPER_KEY, method);
|
|
17
|
+
if (Mapper) {
|
|
18
|
+
const instance = new Mapper();
|
|
19
|
+
return (domain) => instance.map(domain);
|
|
20
|
+
}
|
|
12
21
|
if (this?.service instanceof iroh_service_1.Service) {
|
|
13
22
|
const EntityMapper = this.service.mapper;
|
|
14
23
|
return EntityMapper.DomainToView;
|
|
@@ -16,8 +25,10 @@ function HandleResponse(Handler) {
|
|
|
16
25
|
return (x) => x;
|
|
17
26
|
};
|
|
18
27
|
const getHandler = () => {
|
|
28
|
+
const Handler = reflector.get(error_handler_decorator_1.ERROR_HANDLER_KEY, method);
|
|
19
29
|
if (Handler) {
|
|
20
|
-
|
|
30
|
+
const instance = new Handler();
|
|
31
|
+
return (error) => instance.handle(error);
|
|
21
32
|
}
|
|
22
33
|
return null;
|
|
23
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-response.decorator.js","sourceRoot":"","sources":["../../../../src/common/decorators/response/handle-response.decorator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"handle-response.decorator.js","sourceRoot":"","sources":["../../../../src/common/decorators/response/handle-response.decorator.ts"],"names":[],"mappings":";;AAiBA,wCAkEC;AAlFD,uCAAyC;AAEzC,yEAAqE;AAOrE,6DAAqD;AAErD,yDAAgD;AAChD,uEAA8D;AAI9D,SAAgB,cAAc;IAQ5B,OAAO,UACL,MAAW,EACX,WAA4B,EAC5B,UAA8B;QAE9B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;QACrC,MAAM,SAAS,GAAG,IAAI,gBAAS,EAAE,CAAC;QAElC,MAAM,OAAO,GAAG,UAAiC,GAAG,IAAW;YAC7D,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAExC,MAAM,SAAS,GAAG,GAAG,EAAE;gBACrB,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAmB,6BAAU,EAAE,MAAM,CAAC,CAAC;gBACnE,IAAI,MAAM,EAAE,CAAC;oBACX,MAAM,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;oBAC9B,OAAO,CAAC,MAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC7C,CAAC;gBAED,IAAI,IAAI,EAAE,OAAO,YAAY,sBAAO,EAAE,CAAC;oBACrC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAW,CAAC;oBAC9C,OAAO,YAAY,CAAC,YAAY,CAAC;gBACnC,CAAC;gBACD,OAAO,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC;YACvB,CAAC,CAAC;YAEF,MAAM,UAAU,GAAG,GAAG,EAAE;gBACtB,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,CAC3B,2CAAiB,EACjB,MAAM,CACP,CAAC;gBACF,IAAI,OAAO,EAAE,CAAC;oBACZ,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;oBAC/B,OAAO,CAAC,KAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAChD,CAAC;gBAED,OAAO,IAAI,CAAC;YACd,CAAC,CAAC;YAEF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;YAC7B,MAAM,MAAM,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;YAEnC,IAAI,MAAM,YAAY,OAAO,EAAE,CAAC;gBAC9B,MAAM,OAAO,GAAG,MAA4B,CAAC;gBAC7C,OAAO,kCAAe,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;YACvD,CAAC;YACD,MAAM,IAAI,GAAG,MAAmB,CAAC;YACjC,OAAO,kCAAe,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,CAAC,CAAC;QAEF,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC9C,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAClD,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QAEH,UAAU,CAAC,KAAK,GAAG,OAAO,CAAC;QAC3B,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./api-response.decorator"), exports);
|
|
18
18
|
__exportStar(require("./entity-response.decorator"), exports);
|
|
19
|
+
__exportStar(require("./error-handler.decorator"), exports);
|
|
19
20
|
__exportStar(require("./handle-response.decorator"), exports);
|
|
21
|
+
__exportStar(require("./mapper.decorator"), exports);
|
|
20
22
|
__exportStar(require("./pagination-response.decorator"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/decorators/response/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8DAA4C;AAC5C,8DAA4C;AAC5C,kEAAgD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/decorators/response/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8DAA4C;AAC5C,4DAA0C;AAC1C,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Type } from '@nestjs/common';
|
|
2
|
+
import { ViewMapper } from '../../class/view-mapper.';
|
|
3
|
+
import { Domain } from '../../../core/domain/generic.domain';
|
|
4
|
+
import { View } from '../../../core/app/dto/generic.view';
|
|
5
|
+
export declare const MAPPER_KEY = "MAPPER_KEY";
|
|
6
|
+
export declare const UseMapper: <D extends Domain = Domain, V extends View = View>(mapper: Type<ViewMapper<D, V>>) => import("@nestjs/common").CustomDecorator<string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseMapper = exports.MAPPER_KEY = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
exports.MAPPER_KEY = 'MAPPER_KEY';
|
|
6
|
+
const UseMapper = (mapper) => (0, common_1.SetMetadata)(exports.MAPPER_KEY, mapper);
|
|
7
|
+
exports.UseMapper = UseMapper;
|
|
8
|
+
//# sourceMappingURL=mapper.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper.decorator.js","sourceRoot":"","sources":["../../../../src/common/decorators/response/mapper.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAMhC,QAAA,UAAU,GAAG,YAAY,CAAC;AAEhC,MAAM,SAAS,GAAG,CACvB,MAA8B,EAC9B,EAAE,CAAC,IAAA,oBAAW,EAAC,kBAAU,EAAE,MAAM,CAAC,CAAC;AAFxB,QAAA,SAAS,aAEe"}
|
package/dist/common/index.d.ts
CHANGED
package/dist/common/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./class"), exports);
|
|
17
18
|
__exportStar(require("./database"), exports);
|
|
18
19
|
__exportStar(require("./decorators"), exports);
|
|
19
20
|
__exportStar(require("./dto"), exports);
|
package/dist/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,wCAAsB;AACtB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,wCAAsB;AACtB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpException } from '@nestjs/common';
|
|
2
2
|
import { InternalServerErrorException as InternalServerError } from '@nestjs/common';
|
|
3
|
-
export interface
|
|
3
|
+
export interface IErrorHandler {
|
|
4
4
|
handle<T extends HttpException = InternalServerError>(error: T): void;
|
|
5
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../src/common/interfaces/error-handler.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './crud.controller';
|
|
2
2
|
export * from './crud.repository';
|
|
3
3
|
export * from './crud.service';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './error-handler';
|
|
5
5
|
export * from './generic.mapper';
|
|
6
6
|
export * from './generic.props';
|
|
7
7
|
export * from './nomenclator.props';
|
|
8
|
+
export * from './response-handler';
|
|
9
|
+
export * from './view-handler';
|
|
@@ -17,8 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./crud.controller"), exports);
|
|
18
18
|
__exportStar(require("./crud.repository"), exports);
|
|
19
19
|
__exportStar(require("./crud.service"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./error-handler"), exports);
|
|
21
21
|
__exportStar(require("./generic.mapper"), exports);
|
|
22
22
|
__exportStar(require("./generic.props"), exports);
|
|
23
23
|
__exportStar(require("./nomenclator.props"), exports);
|
|
24
|
+
__exportStar(require("./response-handler"), exports);
|
|
25
|
+
__exportStar(require("./view-handler"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-handler.js","sourceRoot":"","sources":["../../../src/common/interfaces/response-handler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-handler.js","sourceRoot":"","sources":["../../../src/common/interfaces/view-handler.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafikidota/iroh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "Sometimes, the best way to solve your own problems is to help someone else.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,18 +14,6 @@
|
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
|
-
"scripts": {
|
|
18
|
-
"prepare": "husky",
|
|
19
|
-
"prebuild": "rimraf -rf dist",
|
|
20
|
-
"build": "tsc -p tsconfig.json",
|
|
21
|
-
"postbuild": "npm run move:crud && npm run move:init && npm run move:usecase",
|
|
22
|
-
"move:crud": "mkdir -p dist/schematics/crud/files/ts && cp -ar ./src/schematics/crud/files/ts/* dist/schematics/crud/files/ts",
|
|
23
|
-
"move:init": "mkdir -p dist/schematics/init/files/ts && cp -ar ./src/schematics/init/files/ts/* dist/schematics/init/files/ts",
|
|
24
|
-
"move:usecase": "mkdir -p dist/schematics/use-case/files/ts && cp -ar ./src/schematics/use-case/files/ts/* dist/schematics/use-case/files/ts",
|
|
25
|
-
"lint": "npx eslint --debug . --fix",
|
|
26
|
-
"format": "prettier --write \"**/*.ts\"",
|
|
27
|
-
"prepublishOnly": "npm run lint && npm run build"
|
|
28
|
-
},
|
|
29
17
|
"dependencies": {
|
|
30
18
|
"chalk": "4.1.2"
|
|
31
19
|
},
|
|
@@ -34,39 +22,42 @@
|
|
|
34
22
|
"@angular-devkit/schematics": "19.2.13",
|
|
35
23
|
"@angular-devkit/schematics-cli": "19.2.13",
|
|
36
24
|
"@eslint/eslintrc": "3.3.1",
|
|
37
|
-
"@eslint/js": "9.
|
|
38
|
-
"@nestjs/common": "11.1.
|
|
25
|
+
"@eslint/js": "9.39.1",
|
|
26
|
+
"@nestjs/common": "11.1.9",
|
|
39
27
|
"@nestjs/config": "4.0.2",
|
|
40
|
-
"@nestjs/core": "11.1.
|
|
41
|
-
"@nestjs/swagger": "11.2.
|
|
28
|
+
"@nestjs/core": "11.1.9",
|
|
29
|
+
"@nestjs/swagger": "11.2.2",
|
|
42
30
|
"@nestjs/typeorm": "11.0.0",
|
|
43
31
|
"@rafikidota/serpens": "1.12.0",
|
|
44
|
-
"@swc/cli": "0.7.
|
|
45
|
-
"@swc/core": "1.
|
|
32
|
+
"@swc/cli": "0.7.9",
|
|
33
|
+
"@swc/core": "1.15.2",
|
|
46
34
|
"@swc/helpers": "0.5.17",
|
|
47
|
-
"@types/express": "5.0.
|
|
48
|
-
"@types/node": "24.
|
|
35
|
+
"@types/express": "5.0.5",
|
|
36
|
+
"@types/node": "24.10.1",
|
|
49
37
|
"@types/uuid": "11.0.0",
|
|
50
|
-
"@
|
|
51
|
-
"@typescript-eslint/
|
|
38
|
+
"@types/validator": "13.15.10",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "8.46.4",
|
|
40
|
+
"@typescript-eslint/parser": "8.46.4",
|
|
52
41
|
"class-transformer": "0.5.1",
|
|
53
42
|
"class-validator": "0.14.2",
|
|
54
|
-
"
|
|
43
|
+
"dotenv": "17.2.3",
|
|
44
|
+
"eslint": "9.39.1",
|
|
55
45
|
"eslint-config-prettier": "10.1.8",
|
|
56
46
|
"eslint-plugin-import": "2.32.0",
|
|
57
47
|
"eslint-plugin-prettier": "5.5.4",
|
|
58
48
|
"express": "5.1.0",
|
|
59
|
-
"globals": "16.
|
|
49
|
+
"globals": "16.5.0",
|
|
60
50
|
"husky": "9.1.7",
|
|
61
51
|
"joi": "18.0.1",
|
|
62
|
-
"
|
|
52
|
+
"libphonenumber-js": "1.12.31",
|
|
53
|
+
"lint-staged": "16.2.6",
|
|
63
54
|
"prettier": "3.6.2",
|
|
64
55
|
"reflect-metadata": "0.2.2",
|
|
65
|
-
"rimraf": "6.0
|
|
56
|
+
"rimraf": "6.1.0",
|
|
66
57
|
"rxjs": "7.8.2",
|
|
67
58
|
"typeorm": "0.3.27",
|
|
68
59
|
"typescript": "5.9.3",
|
|
69
|
-
"typescript-eslint": "8.
|
|
60
|
+
"typescript-eslint": "8.46.4",
|
|
70
61
|
"uuid": "13.0.0"
|
|
71
62
|
},
|
|
72
63
|
"peerDependencies": {
|
|
@@ -112,5 +103,15 @@
|
|
|
112
103
|
"generic",
|
|
113
104
|
"schematics",
|
|
114
105
|
"crud"
|
|
115
|
-
]
|
|
116
|
-
|
|
106
|
+
],
|
|
107
|
+
"scripts": {
|
|
108
|
+
"prebuild": "rimraf -rf dist",
|
|
109
|
+
"build": "tsc -p tsconfig.json",
|
|
110
|
+
"postbuild": "npm run move:crud && npm run move:init && npm run move:usecase",
|
|
111
|
+
"move:crud": "mkdir -p dist/schematics/crud/files/ts && cp -ar ./src/schematics/crud/files/ts/* dist/schematics/crud/files/ts",
|
|
112
|
+
"move:init": "mkdir -p dist/schematics/init/files/ts && cp -ar ./src/schematics/init/files/ts/* dist/schematics/init/files/ts",
|
|
113
|
+
"move:usecase": "mkdir -p dist/schematics/use-case/files/ts && cp -ar ./src/schematics/use-case/files/ts/* dist/schematics/use-case/files/ts",
|
|
114
|
+
"lint": "npx eslint --debug . --fix",
|
|
115
|
+
"format": "prettier --write \"**/*.ts\""
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exception-mapper.js","sourceRoot":"","sources":["../../../src/common/interfaces/exception-mapper.ts"],"names":[],"mappings":""}
|