nestjs-form-data
Advanced tools
Comparing version 1.8.5 to 1.8.6
@@ -8,2 +8,8 @@ import { StoredFile } from '../classes/storage'; | ||
limits?: FormDataInterceptorLimitsConfig; | ||
/** | ||
* If you want the module to be available globally | ||
* Once you import the module and configure it, it will be available globally | ||
* Only for sync configuration | ||
*/ | ||
isGlobal?: boolean; | ||
} | ||
@@ -10,0 +16,0 @@ export interface FormDataInterceptorLimitsConfig { |
@@ -9,3 +9,9 @@ import { FormDataInterceptorConfig } from './FormDataInterceptorConfig'; | ||
inject?: any[]; | ||
/** | ||
* If you want the module to be available globally | ||
* Once you import the module and configure it, it will be available globally | ||
* Only for async configuration | ||
*/ | ||
isGlobal?: boolean; | ||
} | ||
//# sourceMappingURL=NestjsFormDataAsyncOptions.d.ts.map |
@@ -19,2 +19,3 @@ "use strict"; | ||
return { | ||
global: !!config.isGlobal, | ||
module: NestjsFormDataModule_1, | ||
@@ -31,2 +32,3 @@ providers: [ | ||
return { | ||
global: !!options.isGlobal, | ||
module: NestjsFormDataModule_1, | ||
@@ -33,0 +35,0 @@ imports: options.imports || [], |
{ | ||
"name": "nestjs-form-data", | ||
"version": "1.8.5", | ||
"version": "1.8.6", | ||
"description": "NestJS middleware for handling multipart/form-data, which is primarily used for uploading files", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -141,2 +141,3 @@ [![npm version](https://badge.fury.io/js/nestjs-form-data.svg)](https://badge.fury.io/js/nestjs-form-data) | ||
### Configuration fields | ||
- `isGlobal` - If you want the module to be available globally. Once you import the module and configure it, it will be available globally | ||
- `storage` - The type of storage logic for the uploaded file (Default MemoryStoredFile) | ||
@@ -143,0 +144,0 @@ - `fileSystemStoragePath` - The path to the directory for storing temporary files, used only for `storage: FileSystemStoredFile` (Default: /tmp/nestjs-tmp-storage) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79754
823
271