Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency typenexus to v0.5.4 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
typenexus (source) 0.3.1 -> 0.5.4 age adoption passing confidence

Release Notes

jaywcjlove/typenexus (typenexus)

v0.5.4

Compare Source

Buy me a coffee

Documentation v0.5.4: https://raw.githack.com/jaywcjlove/typenexus/ed7a9a9/index.html

npm i typenexus@0.5.4

v0.5.3

Compare Source

Buy me a coffee

Documentation v0.5.3: https://raw.githack.com/jaywcjlove/typenexus/513ed5a/index.html

npm i typenexus@0.5.3

v0.5.2

Compare Source

Documentation v0.5.2: https://raw.githack.com/jaywcjlove/typenexus/2cabd6a/index.html

npm i typenexus@0.5.2

v0.5.1

Compare Source

Documentation v0.5.1: https://raw.githack.com/jaywcjlove/typenexus/7471f66/index.html

npm i typenexus@0.5.1

v0.5.0

Compare Source

Documentation v0.5.0: https://raw.githack.com/jaywcjlove/typenexus/4cb2e14/index.html

npm i typenexus@0.5.0
Inject uploaded file

To inject uploaded file, use @UploadedFile decorator:

@​Post("/file")
saveFile(@​UploadedFile("fileName") file: Express.Multer.File) {}

To inject uploaded multiple files, use the @UploadedFiles decorator:

@​Post("/files")
saveFiles(@​UploadedFiles("fileName") file: Express.Multer.File[]) {}

You can also specify uploading options to multer this way:

import type { Options } from 'multer';
// to keep code clean better to extract this function into separate file
const fileUploadOptions: () => Options = () => ({
  storage: multerFn.diskStorage({
    destination: (req, file, cb) => {
      //...
    },
    filename: (req, file, cb) => {
      //...
    }
  }),
  fileFilter: (req, file, cb) => {
    //...
  },
  limits: {
    fieldNameSize: 255,
    fileSize: 1024 * 1024 * 2
  }
});

// use options this way:
@​Post("/file")
saveFiles(@​UploadedFile("fileName", fileUploadOptions) file: Express.Multer.File) {}

To inject all uploaded files use @UploadedFiles decorator instead. typenexus uses multer to handle file uploads.

v0.4.1

Compare Source

Documentation v0.4.1: https://raw.githack.com/jaywcjlove/typenexus/16dfdb3/index.html

npm i typenexus@0.4.1

v0.4.0

Compare Source

Documentation v0.4.0: https://raw.githack.com/jaywcjlove/typenexus/8983f54/index.html

npm i typenexus@0.4.0

@DSource() decorator injects you a DataSource object.

Support constructor @DSource() decorator

import { Controller, Get, DSource, DataSource } from 'typenexus';
import { Response, Request }from 'express';
import { User } from '../entity/User.js';

@​Controller('/users')
export class UserController {
  constructor(@​DSource() private dataSource: DataSource) {}
  @​ContentType('application/json')
  @​Get() // => GET /users
  public async getUsers(): Promise<User[]> {
    return this.dataSource.manager.find(User);
  }
}

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title fix(deps): update dependency typenexus to v0.4.1 fix(deps): update dependency typenexus to v0.5.1 Jul 8, 2023
@renovate renovate bot force-pushed the renovate/typenexus-0.x branch from f1db1c3 to 1e55a76 Compare July 8, 2023 02:35
@renovate renovate bot changed the title fix(deps): update dependency typenexus to v0.5.1 fix(deps): update dependency typenexus to v0.5.2 Sep 22, 2023
@renovate renovate bot changed the title fix(deps): update dependency typenexus to v0.5.2 fix(deps): update dependency typenexus to v0.5.3 Nov 27, 2023
@renovate renovate bot changed the title fix(deps): update dependency typenexus to v0.5.3 fix(deps): update dependency typenexus to v0.5.4 Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants