Socket
Socket
Sign inDemoInstall

nestjs-minio

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-minio - npm Package Compare versions

Comparing version 2.3.0-5 to 2.3.0

2

package.json
{
"name": "nestjs-minio",
"version": "2.3.0-5",
"version": "2.3.0",
"description": "Minio object storage with nestjs",

@@ -5,0 +5,0 @@ "author": "Rubin Bhandari",

@@ -59,3 +59,5 @@ <p align="center">

imports: [
NestMinioModule.register({
NestMinioModule.register(
isGlobal: true,
{
endPoint: 'play.min.io',

@@ -71,3 +73,2 @@ port: 9000,

});
```

@@ -91,8 +92,12 @@ Then you can use it in the controller or service by injecting it in the controller as:

import { MINIO_CONNECTION } from '../constants';
import {Client} from 'minio';
import {Client, InjectMinio} from 'minio';
@Controller()
export class NestMinioClientController {
// use inject token
constructor(@Inject(MINIO_CONNECTION) private readonly minioClient: Client) {}
// or use inject decorator
// constructor(@InjectMinio() private readonly minioClient: Client) {}
@Get()

@@ -99,0 +104,0 @@ index() {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc