Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nest-lab/fastify-multer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nest-lab/fastify-multer - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

src/lib/interceptors/file.interceptor.d.ts

6

CHANGELOG.md
# @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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc