Git Product home page Git Product logo

nestx-amqp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nestx-amqp's Issues

PublishQueue cannot send target params correctly

Hi, the decorator PublishQueue cannot send params to target correctly. Herer is your code

    descriptor.value = async (content) => {
      const context = Reflect.getMetadata(PUBLISH_QUEUE_CONTEXT_METADATA_TOKEN, descriptor.value)
      const producer: Producer = Reflect.getMetadata(PUBLISH_QUEUE_PRODUCER_METADATA_TOKEN, descriptor.value)
      if (producer) {
        await producer.send(content, options)
      }
      await originalHandler.call(context, content, options)
    }

I think it should be write like it

    descriptor.value = async (...content) => {
      const context = Reflect.getMetadata(PUBLISH_QUEUE_CONTEXT_METADATA_TOKEN, descriptor.value)
      const producer: Producer = Reflect.getMetadata(PUBLISH_QUEUE_PRODUCER_METADATA_TOKEN, descriptor.value)
      if (producer) {
        await producer.send(...content, options)
      }
      await originalHandler.call(context, ...content, options)
    }

PublishQueue should return a value

Hi, the decorator PublishQueue cannot return a value.Herer is your code

    descriptor.value = async (content, ...elseArgs) => {
      const context = Reflect.getMetadata(PUBLISH_QUEUE_CONTEXT_METADATA_TOKEN, descriptor.value)
      const producer: QueueProducer = Reflect.getMetadata(PUBLISH_QUEUE_PRODUCER_METADATA_TOKEN, descriptor.value)
      if (producer) {
        await producer.send(content, options)
      }
      await originalHandler.call(context, content, ...elseArgs)
    }

I think it should be write like it

    descriptor.value = async (content, ...elseArgs) => {
      const context = Reflect.getMetadata(PUBLISH_QUEUE_CONTEXT_METADATA_TOKEN, descriptor.value)
      const producer: QueueProducer = Reflect.getMetadata(PUBLISH_QUEUE_PRODUCER_METADATA_TOKEN, descriptor.value)
      if (producer) {
        await producer.send(content, options)
      }
      return originalHandler.call(context, content, ...elseArgs)
    }
    }

feature: suggest to pass all arguments to consumer

Innestx-amqp , PublishQueue and PublishExchange just send the first argument to consumer now. I don't understand why it is designed like this. I strongly recommend that I should send all arguments to consumer.

Nest 8 + amqp bug

ERROR [ExceptionHandler] Nest can't resolve dependencies of the AmqpModule (?). Please make sure that the argument ModuleRef at index [0] is available in the AmqpModule context.

Potential solutions:

  • If ModuleRef is a provider, is it part of the current AmqpModule?
  • If ModuleRef is exported from a separate @module, is that module imported within AmqpModule?
    @module({
    imports: [ /* the Module containing ModuleRef */ ]
    })

Error: Nest can't resolve dependencies of the AmqpModule (?). Please make sure that the argument ModuleRef at index [0] is available in the AmqpModule context.

Potential solutions:

  • If ModuleRef is a provider, is it part of the current AmqpModule?
  • If ModuleRef is exported from a separate @module, is that module imported within AmqpModule?
    @module({
    imports: [ /* the Module containing ModuleRef */ ]
    })

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @types/amqp-connection-manager Unavailable

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update codecov/codecov-action action to v4

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
  • rabbitmq 3-management
github-actions
.github/workflows/ci.yml
  • actions/checkout v2
  • codecov/codecov-action v1
  • rabbitmq 3-management
.github/workflows/publish.yml
  • actions/checkout v2
  • actions/setup-node v1
npm
package.json
  • @golevelup/nestjs-discovery ^2.3.1
  • @nestjs/common ^8.0.0
  • @nestjs/core ^8.0.0
  • @nestjs/platform-express ^8.0.0
  • amqp-connection-manager ^4.0.0
  • amqplib ^0.10.0
  • patch-package ^6.2.0
  • postinstall-postinstall ^2.0.0
  • reflect-metadata ^0.2.0
  • rimraf ^3.0.0
  • rxjs ^7.0.0
  • @nestjs/cli 10.4.0
  • @nestjs/schematics 9.2.0
  • @nestjs/testing 8.4.7
  • @semantic-release/changelog 6.0.3
  • @semantic-release/git 10.0.1
  • @types/amqp-connection-manager 3.4.1
  • @types/amqplib 0.10.5
  • @types/express 4.17.21
  • @types/jest 27.5.2
  • @types/node 20.14.9
  • @types/supertest 6.0.2
  • @typescript-eslint/eslint-plugin 7.15.0
  • @typescript-eslint/parser 7.15.0
  • eslint 9.6.0
  • eslint-config-prettier 9.1.0
  • eslint-config-ts-lambdas 1.2.3
  • eslint-plugin-import 2.29.1
  • eslint-plugin-prettier 5.1.3
  • jest 26.6.3
  • lodash 4.17.21
  • prettier 3.3.2
  • semantic-release 24.0.0
  • sinon 18.0.0
  • supertest 7.0.0
  • ts-jest 26.5.6
  • ts-loader 9.5.1
  • ts-node 10.9.2
  • tsconfig-paths 4.2.0
  • typescript 5.5.3

  • Check this box to trigger a request for Renovate to run again on this repository

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.