├── .github └── workflows │ └── relese.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── LICENSE ├── README.MD ├── package.json ├── src ├── classes │ ├── FileData.ts │ └── MultipleFileData.ts ├── config │ ├── defaultFileSaver.config.ts │ └── defaultInterceptor.config.ts ├── fileSaver │ ├── default.file-saver.ts │ ├── local.file-saver.ts │ └── s3.file-saver.ts ├── index.ts ├── interceptors │ └── formdata.interceptor.ts ├── interfaces │ └── file.interface.ts ├── test │ ├── fileSaver │ │ ├── defaultFileSaver.spec.ts │ │ ├── localFileSaver.spec.ts │ │ └── s3FileSaver.spec.ts │ ├── interceptor │ │ └── fileInterceptor.spec.ts │ └── validators │ │ ├── hasMimetype.spec.ts │ │ ├── isFileData.spec.ts │ │ ├── maxFileSize.spec.ts │ │ └── minFileSize.spec.ts └── validators │ ├── hasMimeType.decorator.ts │ ├── isFileData.decorator.ts │ ├── maxFileSize.decorator.ts │ └── minFileSize.decorator.ts └── tsconfig.json /.github/workflows/relese.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/.github/workflows/relese.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | 3 | node_modules -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | dist/test/ -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/LICENSE -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/README.MD -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/package.json -------------------------------------------------------------------------------- /src/classes/FileData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/classes/FileData.ts -------------------------------------------------------------------------------- /src/classes/MultipleFileData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/classes/MultipleFileData.ts -------------------------------------------------------------------------------- /src/config/defaultFileSaver.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/config/defaultFileSaver.config.ts -------------------------------------------------------------------------------- /src/config/defaultInterceptor.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/config/defaultInterceptor.config.ts -------------------------------------------------------------------------------- /src/fileSaver/default.file-saver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/fileSaver/default.file-saver.ts -------------------------------------------------------------------------------- /src/fileSaver/local.file-saver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/fileSaver/local.file-saver.ts -------------------------------------------------------------------------------- /src/fileSaver/s3.file-saver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/fileSaver/s3.file-saver.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interceptors/formdata.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/interceptors/formdata.interceptor.ts -------------------------------------------------------------------------------- /src/interfaces/file.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/interfaces/file.interface.ts -------------------------------------------------------------------------------- /src/test/fileSaver/defaultFileSaver.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/fileSaver/defaultFileSaver.spec.ts -------------------------------------------------------------------------------- /src/test/fileSaver/localFileSaver.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/fileSaver/localFileSaver.spec.ts -------------------------------------------------------------------------------- /src/test/fileSaver/s3FileSaver.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/fileSaver/s3FileSaver.spec.ts -------------------------------------------------------------------------------- /src/test/interceptor/fileInterceptor.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/interceptor/fileInterceptor.spec.ts -------------------------------------------------------------------------------- /src/test/validators/hasMimetype.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/validators/hasMimetype.spec.ts -------------------------------------------------------------------------------- /src/test/validators/isFileData.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/validators/isFileData.spec.ts -------------------------------------------------------------------------------- /src/test/validators/maxFileSize.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/validators/maxFileSize.spec.ts -------------------------------------------------------------------------------- /src/test/validators/minFileSize.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/test/validators/minFileSize.spec.ts -------------------------------------------------------------------------------- /src/validators/hasMimeType.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/validators/hasMimeType.decorator.ts -------------------------------------------------------------------------------- /src/validators/isFileData.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/validators/isFileData.decorator.ts -------------------------------------------------------------------------------- /src/validators/maxFileSize.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/validators/maxFileSize.decorator.ts -------------------------------------------------------------------------------- /src/validators/minFileSize.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/src/validators/minFileSize.decorator.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h3llmy/nest-formdata-interceptor/HEAD/tsconfig.json --------------------------------------------------------------------------------