Cody Tseng
Cody Tseng
You can try the following code: ```ts class Test { @Exclude() _someValue: number = 0 @Expose() get someValue(): number { return this._someValue } set someValue(value: number) { this._someValue = value...
issue: #596 PR: #374 ```ts // ... if (this.transformationType === TransformationType.PLAIN_TO_CLASS) { subValue = value[valueKey]; } // ... ``` I don't know why it changed to this 😂. Maybe the...
@jiayisheji If you're busy, I'd be happy to implement this PR.
```typescript consumer.apply(TestAMiddleware).exclude('/test/(.*)').forRoutes('*'); consumer .apply(TestBMiddleware) .exclude('test/test/(.*)') .forRoutes('test/*'); ``` The `exclude()` method supports wildcard parameters using the [path-to-regexp](https://github.com/pillarjs/path-to-regexp#parameters) package. So you can use `(.*)`. But the path passed to `forRoutes()` method is...
In my humble opinion, the problem is that the meaning of `.forRoutes({ path: '*', method: RequestMethod.ALL });` is defferent before and after the commit https://github.com/nestjs/nest/commit/1ae72e1fdb338a6e00ac0ca19615602a91edc5bd. Before this commit, the effect...
测试的错误是 tegg 的改动导致的 https://github.com/eggjs/tegg/pull/134/files#diff-97efa9b06dbc5312f138edf04f2e93055be52ce908ee060f2dabbbb6d575e941 简单看了下好像是 tegg 不允许调用两次 mockModuleContext,与 egg-mock 的 inject_context 功能相矛盾了?不知道我的猜测是否正确,仅供参考。
I think this is caused by https://github.com/nestjs/nest/pull/11832, which was intended to address the issue of middleware being called multiple times. However, it filters out some paths. This is effective for...
This may be a bug I wrote, I will try to fix it ASAP
I mentioned in https://github.com/nestjs/nest/issues/13401#issuecomment-2066288412 that this error was caused by another PR. I haven't thought of a good solution for now.
Perhaps adding the same filtering logic to ExpressAdapter as in FastifyAdapter could solve the issue of middleware being called multiple times. https://github.com/nestjs/nest/blob/3272606c70e97c50492e7f1e8661a58b53921c48/packages/platform-fastify/adapters/fastify-adapter.ts#L575-L584 Then we can revert https://github.com/nestjs/nest/pull/11832 to fix this...