diff --git a/packages/client-testing-proxy-helpers/package.json b/packages/client-testing-proxy-helpers/package.json new file mode 100644 index 0000000..3137a8c --- /dev/null +++ b/packages/client-testing-proxy-helpers/package.json @@ -0,0 +1,11 @@ +{ + "name": "@beda.software/client-testing-proxy-helpers", + "version": "0.0.1", + "description": "", + "main": "dist/index.js", + "scripts": { + "prepare": "tsc" + }, + "author": "", + "license": "ISC" +} diff --git a/src/utils/responses.ts b/packages/client-testing-proxy-helpers/src/index.tsx similarity index 100% rename from src/utils/responses.ts rename to packages/client-testing-proxy-helpers/src/index.tsx diff --git a/packages/client-testing-proxy-helpers/tsconfig.json b/packages/client-testing-proxy-helpers/tsconfig.json new file mode 100644 index 0000000..9f65283 --- /dev/null +++ b/packages/client-testing-proxy-helpers/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "declaration": true, + "removeComments": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "allowSyntheticDefaultImports": true, + "target": "ES2021", + "sourceMap": true, + "outDir": "./dist", + "baseUrl": "./", + "incremental": true, + "skipLibCheck": true, + "strictNullChecks": false, + "noImplicitAny": false, + "strictBindCallApply": false, + "forceConsistentCasingInFileNames": false, + "noFallthroughCasesInSwitch": false, + "noEmit": false + } +} diff --git a/src/modules/proxyapp/proxyapp.controller.ts b/src/modules/proxyapp/proxyapp.controller.ts index 1ce74e5..53e0518 100644 --- a/src/modules/proxyapp/proxyapp.controller.ts +++ b/src/modules/proxyapp/proxyapp.controller.ts @@ -1,7 +1,7 @@ import { All, Controller, Param, Req, Res } from '@nestjs/common'; import { ApiTags, ApiOperation, ApiParam } from '@nestjs/swagger'; import { createRequestObject } from 'src/utils/data'; -import { captureResponseBody } from 'src/utils/responses'; +import { captureResponseBody } from '@beda.software/client-testing-proxy-helpers'; import { RequestService } from '../requests/request.service'; import { SessionService } from '../sessions/session.service'; import { Request, Response } from 'express';