@milaz/mlz-ilovepdf 1.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Riccardo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ <p align="center">
2
+ <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
+ </p>
4
+
5
+ [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
+ [circleci-url]: https://circleci.com/gh/nestjs/nest
7
+
8
+ <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13
+ <a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14
+ <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
15
+ <a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
16
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
17
+ <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
18
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
19
+ <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
20
+ </p>
21
+ <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
22
+ [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
23
+
24
+ ## Description
25
+
26
+ [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
27
+
28
+ ## Project setup
29
+
30
+ ```bash
31
+ $ npm install
32
+ ```
33
+
34
+ ## Compile and run the project
35
+
36
+ ```bash
37
+ # development
38
+ $ npm run start
39
+
40
+ # watch mode
41
+ $ npm run start:dev
42
+
43
+ # production mode
44
+ $ npm run start:prod
45
+ ```
46
+
47
+ ## Run tests
48
+
49
+ ```bash
50
+ # unit tests
51
+ $ npm run test
52
+
53
+ # e2e tests
54
+ $ npm run test:e2e
55
+
56
+ # test coverage
57
+ $ npm run test:cov
58
+ ```
59
+
60
+ ## Deployment
61
+
62
+ When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the [deployment documentation](https://docs.nestjs.com/deployment) for more information.
63
+
64
+ If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
65
+
66
+ ```bash
67
+ $ npm install -g @nestjs/mau
68
+ $ mau deploy
69
+ ```
70
+
71
+ With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
72
+
73
+ ## Resources
74
+
75
+ Check out a few resources that may come in handy when working with NestJS:
76
+
77
+ - Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
78
+ - For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
79
+ - To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
80
+ - Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.
81
+ - Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
82
+ - Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
83
+ - To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
84
+ - Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
85
+
86
+ ## Support
87
+
88
+ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
89
+
90
+ ## Stay in touch
91
+
92
+ - Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
93
+ - Website - [https://nestjs.com](https://nestjs.com/)
94
+ - Twitter - [@nestframework](https://twitter.com/nestframework)
95
+
96
+ ## License
97
+
98
+ Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
@@ -0,0 +1,5 @@
1
+ import type { ModuleMetadata } from '@nestjs/common';
2
+ export interface AsyncModuleOptions<T> extends Pick<ModuleMetadata, 'imports'> {
3
+ readonly useFactory: (...args: any[]) => Promise<T> | T;
4
+ readonly inject?: any[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=async-module-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-module-options.js","sourceRoot":"","sources":["../src/async-module-options.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { DynamicModule } from "@nestjs/common";
2
+ import { AsyncModuleOptions } from "./async-module-options";
3
+ import { ILovePdfConfig } from "./models/ilovepdf.config";
4
+ export declare class ILovePdfModule {
5
+ static register(cfg: ILovePdfConfig): DynamicModule;
6
+ static registerAsync(cfg: AsyncModuleOptions<ILovePdfConfig>): DynamicModule;
7
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ var ILovePdfModule_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.ILovePdfModule = void 0;
14
+ const common_1 = require("@nestjs/common");
15
+ const ilovepdf_nodejs_1 = __importDefault(require("@ilovepdf/ilovepdf-nodejs"));
16
+ const tokens_1 = require("./tokens");
17
+ const ilovepdf_service_1 = require("./services/ilovepdf.service");
18
+ let ILovePdfModule = ILovePdfModule_1 = class ILovePdfModule {
19
+ static register(cfg) {
20
+ const apiProvider = {
21
+ provide: ilovepdf_nodejs_1.default,
22
+ useFactory: () => new ilovepdf_nodejs_1.default(cfg.public, cfg.secret),
23
+ };
24
+ return {
25
+ module: ILovePdfModule_1,
26
+ providers: [
27
+ apiProvider,
28
+ ilovepdf_service_1.ILovePdfService
29
+ ],
30
+ exports: [
31
+ ilovepdf_nodejs_1.default,
32
+ ilovepdf_service_1.ILovePdfService
33
+ ],
34
+ };
35
+ }
36
+ static registerAsync(cfg) {
37
+ const configProvider = {
38
+ provide: tokens_1.ILOVEPDF_CONFIG,
39
+ useFactory: cfg.useFactory,
40
+ inject: cfg.inject || [],
41
+ };
42
+ const apiProvider = {
43
+ provide: ilovepdf_nodejs_1.default,
44
+ useFactory: (options) => new ilovepdf_nodejs_1.default(options.public, options.secret),
45
+ inject: [tokens_1.ILOVEPDF_CONFIG],
46
+ };
47
+ return {
48
+ module: ILovePdfModule_1,
49
+ imports: cfg.imports || [],
50
+ providers: [
51
+ configProvider,
52
+ apiProvider,
53
+ ilovepdf_service_1.ILovePdfService
54
+ ],
55
+ exports: [
56
+ ilovepdf_nodejs_1.default,
57
+ ilovepdf_service_1.ILovePdfService
58
+ ],
59
+ };
60
+ }
61
+ };
62
+ exports.ILovePdfModule = ILovePdfModule;
63
+ exports.ILovePdfModule = ILovePdfModule = ILovePdfModule_1 = __decorate([
64
+ (0, common_1.Module)({})
65
+ ], ILovePdfModule);
66
+ //# sourceMappingURL=ilovepdf.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ilovepdf.module.js","sourceRoot":"","sources":["../src/ilovepdf.module.ts"],"names":[],"mappings":";;;;;;;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ilovepdf.module';
package/dist/index.js ADDED
@@ -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("./services"), exports);
18
+ __exportStar(require("./ilovepdf.module"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAE3B,oDAAkC"}
@@ -0,0 +1,4 @@
1
+ export interface ILovePdfConfig {
2
+ public: string;
3
+ secret: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ilovepdf.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ilovepdf.config.js","sourceRoot":"","sources":["../../src/models/ilovepdf.config.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './ilovepdf.config';
@@ -0,0 +1,18 @@
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("./ilovepdf.config"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,11 @@
1
+ import ILovePDFApi from "@ilovepdf/ilovepdf-nodejs";
2
+ export declare class ILovePdfService {
3
+ private readonly ilovepdf;
4
+ private readonly _logger;
5
+ constructor(ilovepdf: ILovePDFApi);
6
+ merge(file1: string, file2: string): Promise<{
7
+ message: string;
8
+ fileName: string;
9
+ path: string;
10
+ }>;
11
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ var ILovePdfService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ILovePdfService = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const ilovepdf_nodejs_1 = __importDefault(require("@ilovepdf/ilovepdf-nodejs"));
19
+ const promises_1 = require("node:fs/promises");
20
+ const node_path_1 = require("node:path");
21
+ let ILovePdfService = ILovePdfService_1 = class ILovePdfService {
22
+ ilovepdf;
23
+ _logger = new common_1.Logger(ILovePdfService_1.name);
24
+ constructor(ilovepdf) {
25
+ this.ilovepdf = ilovepdf;
26
+ }
27
+ async merge(file1, file2) {
28
+ const task = this.ilovepdf.newTask("merge");
29
+ await task.start();
30
+ this._logger.log("Task avviata con successo");
31
+ await task.addFile(file1);
32
+ await task.addFile(file2);
33
+ this._logger.log("File aggiunti con successo");
34
+ await task.process();
35
+ this._logger.log("Elaborazione completata");
36
+ const data = await task.download();
37
+ const fileName = `merged-${Date.now()}.pdf`;
38
+ const outputPath = (0, node_path_1.join)(process.cwd(), fileName);
39
+ const fileBuffer = Buffer.isBuffer(data)
40
+ ? data
41
+ : data instanceof Uint8Array
42
+ ? Buffer.from(data)
43
+ : Buffer.from(data);
44
+ await (0, promises_1.writeFile)(outputPath, fileBuffer);
45
+ this._logger.log(`File salvato con successo in: ${outputPath}`);
46
+ return {
47
+ message: "Merge completato",
48
+ fileName,
49
+ path: outputPath,
50
+ };
51
+ }
52
+ };
53
+ exports.ILovePdfService = ILovePdfService;
54
+ exports.ILovePdfService = ILovePdfService = ILovePdfService_1 = __decorate([
55
+ (0, common_1.Injectable)(),
56
+ __metadata("design:paramtypes", [ilovepdf_nodejs_1.default])
57
+ ], ILovePdfService);
58
+ //# sourceMappingURL=ilovepdf.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ilovepdf.service.js","sourceRoot":"","sources":["../../src/services/ilovepdf.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,gFAAoD;AACpD,+C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C,CAAC;QACxC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,UAAU,EAAE,CAAC,CAAC;QAEhE,OAAO;YACL,OAAO,EAAE,kBAAkB;YAC3B,QAAQ;YACR,IAAI,EAAE,UAAU;SACjB,CAAC;IACJ,CAAC;CACF,CAAA;AAvCY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAKkB,yBAAW;GAJ7B,eAAe,CAuC3B"}
@@ -0,0 +1 @@
1
+ export * from './ilovepdf.service';
@@ -0,0 +1,18 @@
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("./ilovepdf.service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -0,0 +1 @@
1
+ export declare const ILOVEPDF_CONFIG = "ILOVEPDF_CONFIG";
package/dist/tokens.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ILOVEPDF_CONFIG = void 0;
4
+ exports.ILOVEPDF_CONFIG = "ILOVEPDF_CONFIG";
5
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,iBAAiB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@milaz/mlz-ilovepdf",
3
+ "version": "1.0.3",
4
+ "description": "",
5
+ "author": "",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "scripts": {
10
+ "build": "nest build",
11
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
12
+ "start": "nest start",
13
+ "start:dev": "nest start --watch",
14
+ "start:debug": "nest start --debug --watch",
15
+ "start:prod": "node dist/main",
16
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
17
+ "test": "jest",
18
+ "test:watch": "jest --watch",
19
+ "test:cov": "jest --coverage",
20
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
21
+ "test:e2e": "jest --config ./test/jest-e2e.json",
22
+ "release": "standard-version"
23
+ },
24
+ "dependencies": {
25
+ "@ilovepdf/ilovepdf-nodejs": "^0.3.1",
26
+ "@nestjs/common": "^11.0.1",
27
+ "@nestjs/core": "^11.0.1",
28
+ "@nestjs/platform-express": "^11.0.1",
29
+ "reflect-metadata": "^0.2.2",
30
+ "rxjs": "^7.8.1",
31
+ "standard-version": "^9.5.0"
32
+ },
33
+ "devDependencies": {
34
+ "@eslint/eslintrc": "^3.2.0",
35
+ "@eslint/js": "^9.18.0",
36
+ "@nestjs/cli": "^11.0.0",
37
+ "@nestjs/schematics": "^11.0.0",
38
+ "@nestjs/testing": "^11.0.1",
39
+ "@types/express": "^5.0.0",
40
+ "@types/jest": "^30.0.0",
41
+ "@types/node": "^24.0.0",
42
+ "@types/supertest": "^7.0.0",
43
+ "eslint": "^9.18.0",
44
+ "eslint-config-prettier": "^10.0.1",
45
+ "eslint-plugin-prettier": "^5.2.2",
46
+ "globals": "^17.0.0",
47
+ "jest": "^30.0.0",
48
+ "prettier": "^3.4.2",
49
+ "source-map-support": "^0.5.21",
50
+ "supertest": "^7.0.0",
51
+ "ts-jest": "^29.2.5",
52
+ "ts-loader": "^9.5.2",
53
+ "ts-node": "^10.9.2",
54
+ "tsconfig-paths": "^4.2.0",
55
+ "typescript": "^5.7.3",
56
+ "typescript-eslint": "^8.20.0"
57
+ },
58
+ "jest": {
59
+ "moduleFileExtensions": [
60
+ "js",
61
+ "json",
62
+ "ts"
63
+ ],
64
+ "rootDir": "src",
65
+ "testRegex": ".*\\.spec\\.ts$",
66
+ "transform": {
67
+ "^.+\\.(t|j)s$": "ts-jest"
68
+ },
69
+ "collectCoverageFrom": [
70
+ "**/*.(t|j)s"
71
+ ],
72
+ "coverageDirectory": "../coverage",
73
+ "testEnvironment": "node"
74
+ },
75
+ "files": [
76
+ "dist"
77
+ ]
78
+ }