@nest-lab/fastify-multer
Advanced tools
Comparing version 1.0.1 to 1.0.2
# @nest-lab/fastify-multer | ||
## 1.0.2 | ||
### Patch Changes | ||
- 19eb008: Options now persist via being set in the module | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@nest-lab/fastify-multer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A File Upload package for NestJS when using fastify", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,2 +8,3 @@ "use strict"; | ||
const fastify_multer_module_definition_1 = require("./fastify-multer.module-definition"); | ||
const files_constants_1 = require("./files.constants"); | ||
let FastifyMulterModule = class FastifyMulterModule extends fastify_multer_module_definition_1.ConfigurableModuleClass { | ||
@@ -15,4 +16,10 @@ }; | ||
controllers: [], | ||
providers: [], | ||
exports: [], | ||
providers: [ | ||
{ | ||
provide: files_constants_1.MULTER_OPTIONS, | ||
useFactory: (options) => (Object.assign({}, (options !== null && options !== void 0 ? options : {}))), | ||
inject: [{ token: fastify_multer_module_definition_1.MODULE_OPTIONS_TOKEN, optional: true }], | ||
}, | ||
], | ||
exports: [files_constants_1.MULTER_OPTIONS], | ||
}) | ||
@@ -19,0 +26,0 @@ ], FastifyMulterModule); |
@@ -1,1 +0,1 @@ | ||
export declare const MULTER_MODULE_OPTIONS: string | symbol; | ||
export declare const MULTER_OPTIONS = "MULTER_OPTIONS"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MULTER_MODULE_OPTIONS = void 0; | ||
const fastify_multer_module_definition_1 = require("./fastify-multer.module-definition"); | ||
exports.MULTER_MODULE_OPTIONS = fastify_multer_module_definition_1.MODULE_OPTIONS_TOKEN; | ||
exports.MULTER_OPTIONS = void 0; | ||
exports.MULTER_OPTIONS = 'MULTER_OPTIONS'; | ||
//# sourceMappingURL=files.constants.js.map |
@@ -32,3 +32,3 @@ "use strict"; | ||
tslib_1.__param(0, (0, common_1.Optional)()), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_OPTIONS)), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
@@ -35,0 +35,0 @@ ], MixinInterceptor); |
@@ -32,3 +32,3 @@ "use strict"; | ||
tslib_1.__param(0, (0, common_1.Optional)()), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_OPTIONS)), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
@@ -35,0 +35,0 @@ ], MixinInterceptor); |
@@ -32,3 +32,3 @@ "use strict"; | ||
tslib_1.__param(0, (0, common_1.Optional)()), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_OPTIONS)), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
@@ -35,0 +35,0 @@ ], MixinInterceptor); |
export * from './any-files.interceptor'; | ||
export * from './file-fields.interceptor'; | ||
export * from './file.intereptor'; | ||
export * from './file.interceptor'; | ||
export * from './files.interceptor'; | ||
export * from './no-files.interceptor'; |
@@ -6,5 +6,5 @@ "use strict"; | ||
tslib_1.__exportStar(require("./file-fields.interceptor"), exports); | ||
tslib_1.__exportStar(require("./file.intereptor"), exports); | ||
tslib_1.__exportStar(require("./file.interceptor"), exports); | ||
tslib_1.__exportStar(require("./files.interceptor"), exports); | ||
tslib_1.__exportStar(require("./no-files.interceptor"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -32,3 +32,3 @@ "use strict"; | ||
tslib_1.__param(0, (0, common_1.Optional)()), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_MODULE_OPTIONS)), | ||
tslib_1.__param(0, (0, common_1.Inject)(files_constants_1.MULTER_OPTIONS)), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
@@ -35,0 +35,0 @@ ], MixinInterceptor); |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32161
425