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

fastify-file-interceptor

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-file-interceptor - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

package.json
{
"name": "fastify-file-interceptor",
"version": "1.0.7",
"version": "1.0.8",
"main": "dist/index.js",

@@ -46,3 +46,3 @@ "types": "dist/index.d.ts",

"fastify-multer": "2.0.3",
"multer": "1.4.5-lts",
"multer": "1.4.5-lts.1",
"tslib": "^2.2.0"

@@ -49,0 +49,0 @@ },

@@ -1,13 +0,9 @@

## Installation
#### Installation
This libray for Nest.Js Application use FastifyAdapter that can't use
This libray for Nest.Js Application use FastifyAdapter that can't use
@UseInterceptor or UploadFile decorator this package has provide same functionality as Nest.Js Application use ExpressAdaper,Now it support @UseInterceptor for upload file
### Warning
FileFastifyInterceptor() may not be compatible with third party cloud providers like Google Firebase or others ,This package is base on fastify-multer
#### Warning
FileFastifyInterceptor() may not be compatible with third party cloud providers like Google Firebase or others,This package is base on fastify-multer
### npm
```shell
$ npm install fastify-file-interceptor
```

@@ -20,3 +16,3 @@ ### yarn

---

@@ -40,5 +36,7 @@

//add this line
app.register(contentParser); yarn add fastify-multer
app.useStaticAsset({root: join(__dirname,"../../example")}) yarn add fastify-static
// Note: add this line
// yarn add fastify-multer
// yarn add fastify-static
app.register(contentParser);
app.useStaticAsset({root: join(__dirname,"../../example")})
}

@@ -205,3 +203,3 @@ bootstrap();

### Create url display image in browser
#### We use interface FastifyRequest
#### We use interface FastifyRequest

@@ -211,3 +209,3 @@

```javascript
/* file-mapper.ts */
/* file-mapper.ts */

@@ -249,7 +247,5 @@ import { FastifyRequest } from "fastify";

**Usage**
### @nestjs/platform-fastify
```typescript
import {

@@ -261,3 +257,3 @@ FastifyMulterModule,

FilesFastifyInterceptor,
diskStorage,
diskStorage,
memoryStorage,

@@ -270,15 +266,2 @@ MulterFile

### @nestjs/platform-express
```typescript
import {
AnyFilesInterceptor,
FileFieldsInterceptor,
FileInterceptor,
FilesInterceptor,
} from "@nestjs/platform-express";
```
#### you can install example test on swagger
[If it useful please give me some star on github :star: :star: :star: :star: :star: ](https://www.google.com)
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