jmcdo29 / nest-lab Goto Github PK
View Code? Open in Web Editor NEWA repository to hold "experimental" packages for Nest. Honestly, I'm just tired of not having a good scope to put packages under :smile_cat:
A repository to hold "experimental" packages for Nest. Honestly, I'm just tired of not having a good scope to put packages under :smile_cat:
โ Does not save to storage:
MulterOptions
in register/registerAsync
.localOptions
in FileInterceptor/FilesInterceptor
.dest
or storage: diskStorage({ destination })
in register/registerAsync
.โ Saves to storage:
dest
or storage: diskStorage({ destination })
in FileInterceptor/FilesInterceptor
.Create a raw node adapter for Nest to show how to create a custom HTTP adapter, and to give more options for what Nest is compatible with
I have a problem when using AndGuard
with JwtAuthGuard
from passport.js and RolesGuard
.
In JwtAuthGuard
user fetched in DB (inside jwt passport strategy) and returned, this will attach it to the request.
and inside RolesGuard
I'm extracting the user from context.switchToHttp().getRequest()
but I receive undefined
when using AndGuard
, btw without it everything works fine, I assume that JwtAuthGuard
must be executed before RolesGuard
so it will attach the user to req before so RolesGuard can grab it
Can you please add the following repository entry to your package.json
?
"repository": {
"type": "git",
"url": "https://github.com/jmcdo29/nest-lab.git",
"directory": "packages/or-guard"
},
to make this repo searchable from https://www.npmjs.com/package/@nest-lab/or-guard
It would be nice to have an alternative to class-transformer and class-valdiator, hence the ability to use something like @deepkit/type
for validation and marshalling the data from HTTP.
It would be great to be able to stream large files instead of load them to buffer.
Been using @nest-lab/typeschema and it is super awesome as I could switch the underlying validator. I was wondering is there a way to make it work with nestjs/config as well.
Instead of having a package for each adapter (expressjs and fastify) would be better to have a single package where a multer package, that works for the adapter in use, can be plugged in.
Multiple registered FastifyMulterModule, results in FastifyError: Content type parser 'multipart' already present.
Initial investigation done by @jmcdo29:
These happen too close to each other and the parser hasn't yet been installed but by the time the second one tries it has.
Reproduction can be found here: https://github.com/dimbslmh/multipart
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.