Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nestjs/nest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.2.3
Choose a base ref
...
head repository: nestjs/nest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.2.4
Choose a head ref

Commits on Nov 20, 2021

  1. Update events.gateway.ts

    "Since Socket.IO v3, you need to explicitly enable Cross-Origin Resource Sharing (CORS).".
    
    updated WebSocketGateway() with cors. otherwise, client always get error like below
    
    "Access to XMLHttpRequest at 'http://localhost:3000/socket.io/?EIO=4&transport=polling&t=Nq-4zs6' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
    ABNG authored Nov 20, 2021
    Copy the full SHA
    0818a56 View commit details
  2. Update main.ts

    added cors
    ABNG authored Nov 20, 2021
    Copy the full SHA
    1a35773 View commit details

Commits on Nov 22, 2021

  1. chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/04-grpc

    Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
    - [Release notes](https://github.com/jbgutierrez/path-parse/releases)
    - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: path-parse
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 22, 2021
    Copy the full SHA
    cdd1615 View commit details
  2. chore(deps): bump ansi-regex in /sample/05-sql-typeorm

    Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
    - [Release notes](https://github.com/chalk/ansi-regex/releases)
    - [Commits](chalk/ansi-regex@v5.0.0...v5.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: ansi-regex
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 22, 2021
    Copy the full SHA
    374f045 View commit details
  3. chore(): update readme

    kamilmysliwiec committed Nov 22, 2021
    Copy the full SHA
    21d5b6a View commit details
  4. Copy the full SHA
    82560ac View commit details
  5. Copy the full SHA
    105268b View commit details
  6. Copy the full SHA
    7ca8b19 View commit details
  7. Update main.ts

    remove enableCors() line.
    ABNG authored Nov 22, 2021
    Copy the full SHA
    bfe4868 View commit details

Commits on Nov 23, 2021

  1. Merge pull request #8636 from ABNG/patch-1

    Patch 1
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    6b6cd7e View commit details
  2. Copy the full SHA
    600a5ac View commit details
  3. Copy the full SHA
    cdda257 View commit details
  4. Copy the full SHA
    e2cc4ed View commit details
  5. Copy the full SHA
    6d2a646 View commit details
  6. Copy the full SHA
    c498eda View commit details
  7. Copy the full SHA
    791c86c View commit details
  8. Copy the full SHA
    50a67b4 View commit details
  9. Copy the full SHA
    53fe5de View commit details
  10. Copy the full SHA
    86fe3e1 View commit details
  11. Copy the full SHA
    c0463c2 View commit details
  12. Copy the full SHA
    b2e6cd7 View commit details
  13. Copy the full SHA
    c1e7810 View commit details
  14. Copy the full SHA
    4780c6d View commit details
  15. Merge pull request #8668 from nestjs/renovate/npm-yargs-parser-vulner…

    …ability
    
    chore(deps): update dependency yargs-parser to 5.0.1 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    82fd2b6 View commit details
  16. Merge pull request #8634 from nestjs/renovate/node-16.x

    chore(deps): update dependency @types/node to v16.11.9
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    99032bd View commit details
  17. Merge pull request #8655 from nestjs/renovate/lint-staged-12.x

    chore(deps): update dependency lint-staged to v12.1.2
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    ed3f991 View commit details
  18. Merge pull request #8654 from nestjs/renovate/class-validator-0.x

    fix(deps): update dependency class-validator to v0.13.2
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    46e339a View commit details
  19. Merge pull request #8656 from nestjs/renovate/npm-handlebars-vulnerab…

    …ility
    
    chore(deps): update dependency handlebars to 4.7.7 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    71b6d66 View commit details
  20. Merge pull request #8657 from nestjs/renovate/npm-hosted-git-info-vul…

    …nerability
    
    chore(deps): update dependency hosted-git-info to 2.8.9 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    a269275 View commit details
  21. Merge pull request #8658 from nestjs/renovate/npm-ini-vulnerability

    chore(deps): update dependency ini to 1.3.6 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    2b258a9 View commit details
  22. Merge pull request #8659 from nestjs/renovate/npm-kind-of-vulnerability

    chore(deps): update dependency kind-of to 6.0.3 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    88b34dd View commit details
  23. chore(deps): bump path-parse in /sample/03-microservices

    Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
    - [Release notes](https://github.com/jbgutierrez/path-parse/releases)
    - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: path-parse
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 23, 2021
    Copy the full SHA
    6d3339b View commit details
  24. chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /sample/02-gateways

    Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
    - [Release notes](https://github.com/chalk/ansi-regex/releases)
    - [Commits](chalk/ansi-regex@v5.0.0...v5.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: ansi-regex
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 23, 2021
    Copy the full SHA
    7c50236 View commit details
  25. Merge pull request #8660 from nestjs/renovate/npm-lodash-vulnerability

    chore(deps): update dependency lodash to 4.17.21 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    57a069b View commit details
  26. chore(deps): bump ansi-regex in /sample/03-microservices

    Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
    - [Release notes](https://github.com/chalk/ansi-regex/releases)
    - [Commits](chalk/ansi-regex@v5.0.0...v5.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: ansi-regex
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 23, 2021
    Copy the full SHA
    9fe95f1 View commit details
  27. Merge pull request #8662 from nestjs/renovate/npm-minimist-vulnerability

    chore(deps): update dependency minimist to 0.2.1 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    78b628f View commit details
  28. Merge pull request #8661 from nestjs/renovate/npm-lodash.template-vul…

    …nerability
    
    chore(deps): update dependency lodash.template to 4.5.0 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    1127fc3 View commit details
  29. chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /sample/02-gateways

    Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
    - [Release notes](https://github.com/jbgutierrez/path-parse/releases)
    - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: path-parse
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 23, 2021
    Copy the full SHA
    78e9db7 View commit details
  30. Merge pull request #8664 from nestjs/renovate/npm-set-value-vulnerabi…

    …lity
    
    chore(deps): update dependency set-value to 2.0.1 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    d6c9723 View commit details
  31. Merge pull request #8663 from nestjs/renovate/npm-postcss-vulnerability

    chore(deps): update dependency postcss to 7.0.36 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    b320e2d View commit details
  32. Merge pull request #8666 from nestjs/renovate/npm-ws-vulnerability

    chore(deps): update dependency ws to 7.4.6 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    2f16358 View commit details
  33. Merge pull request #8667 from nestjs/renovate/npm-y18n-vulnerability

    chore(deps): update dependency y18n to 3.2.2 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    58aa96f View commit details
  34. Merge pull request #8665 from nestjs/renovate/npm-url-parse-vulnerabi…

    …lity
    
    chore(deps): update dependency url-parse to 1.5.2 [security]
    kamilmysliwiec authored Nov 23, 2021
    Copy the full SHA
    44bfeba View commit details
  35. chore(deps): bump path-parse from 1.0.6 to 1.0.7

    Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
    - [Release notes](https://github.com/jbgutierrez/path-parse/releases)
    - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: path-parse
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 23, 2021
    Copy the full SHA
    403d14d View commit details
  36. chore(deps): bump socket.io from 4.3.2 to 4.4.0

    Bumps [socket.io](https://github.com/socketio/socket.io) from 4.3.2 to 4.4.0.
    - [Release notes](https://github.com/socketio/socket.io/releases)
    - [Changelog](https://github.com/socketio/socket.io/blob/master/CHANGELOG.md)
    - [Commits](socketio/socket.io@4.3.2...4.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: socket.io
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 23, 2021
    Copy the full SHA
    62eafaa View commit details
  37. Copy the full SHA
    a791d48 View commit details
  38. Copy the full SHA
    b44d313 View commit details
  39. Copy the full SHA
    f89ab83 View commit details
  40. Copy the full SHA
    657ac58 View commit details
  41. Copy the full SHA
    b3bf493 View commit details
Showing with 24,181 additions and 2,591 deletions.
  1. +4 −0 .husky/commit-msg
  2. +4 −0 .husky/pre-commit
  3. +2 −1 Readme.md
  4. +2 −2 integration/docker-compose.yml
  5. +2 −2 integration/microservices/e2e/orders-grpc.spec.ts
  6. +2 −2 integration/microservices/e2e/sum-grpc.spec.ts
  7. +1 −1 lerna.json
  8. +213 −248 package-lock.json
  9. +20 −25 package.json
  10. +6 −3 packages/common/Readme.md
  11. +3 −0 packages/common/constants.ts
  12. +2 −1 packages/common/decorators/core/catch.decorator.ts
  13. +5 −1 packages/common/decorators/core/controller.decorator.ts
  14. +2 −1 packages/common/decorators/core/injectable.decorator.ts
  15. +5 −0 packages/common/decorators/core/version.decorator.ts
  16. +2 −4 packages/common/file-stream/streamable-file.ts
  17. +2 −1 packages/common/interfaces/nest-application-context.interface.ts
  18. +4 −1 packages/common/interfaces/version-options.interface.ts
  19. +1 −1 packages/common/package.json
  20. +4 −6 packages/common/pipes/parse-array.pipe.ts
  21. +1 −1 packages/common/pipes/parse-enum.pipe.ts
  22. +2 −2 packages/common/pipes/validation.pipe.ts
  23. +3 −3 packages/common/services/console-logger.service.ts
  24. +7 −1 packages/common/test/decorators/catch.decorator.spec.ts
  25. +23 −4 packages/common/test/decorators/controller.decorator.spec.ts
  26. +26 −3 packages/common/test/decorators/injectable.decorator.spec.ts
  27. +15 −2 packages/common/test/decorators/version.decorator.spec.ts
  28. +2 −1 packages/common/utils/is-uuid.ts
  29. +6 −3 packages/core/Readme.md
  30. +5 −0 packages/core/application-config.ts
  31. +10 −0 packages/core/errors/exceptions/invalid-class-module.exception.ts
  32. +24 −5 packages/core/errors/messages.ts
  33. +12 −8 packages/core/helpers/messages.ts
  34. +3 −2 packages/core/injector/module-token-factory.ts
  35. +1 −1 packages/core/middleware/utils.ts
  36. +12 −0 packages/core/nest-application-context.ts
  37. +4 −4 packages/core/nest-application.ts
  38. +3 −0 packages/core/nest-factory.ts
  39. +2 −2 packages/core/package.json
  40. +21 −9 packages/core/router/route-path-factory.ts
  41. +4 −3 packages/core/router/router-execution-context.ts
  42. +46 −15 packages/core/router/router-response-controller.ts
  43. +21 −3 packages/core/router/sse-stream.ts
  44. +2 −2 packages/core/router/utils/flatten-route-paths.util.ts
  45. +48 −6 packages/core/scanner.ts
  46. +11 −1 packages/core/test/application-config.spec.ts
  47. +38 −1 packages/core/test/router/route-path-factory.spec.ts
  48. +33 −0 packages/core/test/router/router-execution-context.spec.ts
  49. +78 −6 packages/core/test/router/router-response-controller.spec.ts
  50. +15 −0 packages/core/test/router/sse-stream.spec.ts
  51. +38 −3 packages/core/test/scanner.spec.ts
  52. +6 −3 packages/microservices/Readme.md
  53. +2 −1 packages/microservices/client/client-nats.ts
  54. +3 −3 packages/microservices/package.json
  55. +2 −1 packages/microservices/serializers/mqtt-record.serializer.ts
  56. +2 −1 packages/microservices/serializers/rmq-record.serializer.ts
  57. +1 −1 packages/microservices/server/server-grpc.ts
  58. +1 −2 packages/microservices/server/server-mqtt.ts
  59. +2 −2 packages/microservices/server/server-nats.ts
  60. +6 −3 packages/platform-express/Readme.md
  61. +4 −4 packages/platform-express/package.json
  62. +6 −3 packages/platform-fastify/Readme.md
  63. +4 −3 packages/platform-fastify/adapters/fastify-adapter.ts
  64. +3 −3 packages/platform-fastify/package.json
  65. +6 −3 packages/platform-socket.io/Readme.md
  66. +2 −2 packages/platform-socket.io/package.json
  67. +6 −3 packages/platform-ws/Readme.md
  68. +2 −2 packages/platform-ws/package.json
  69. +6 −3 packages/testing/Readme.md
  70. +1 −1 packages/testing/package.json
  71. +6 −3 packages/websockets/Readme.md
  72. +3 −3 packages/websockets/package.json
  73. +26 −32 sample/01-cats-app/package-lock.json
  74. +7 −7 sample/01-cats-app/package.json
  75. +47 −59 sample/02-gateways/package-lock.json
  76. +9 −9 sample/02-gateways/package.json
  77. +5 −1 sample/02-gateways/src/events/events.gateway.ts
  78. +41 −53 sample/03-microservices/package-lock.json
  79. +8 −8 sample/03-microservices/package.json
  80. +41 −53 sample/04-grpc/package-lock.json
  81. +8 −8 sample/04-grpc/package.json
  82. +27 −33 sample/05-sql-typeorm/package-lock.json
  83. +6 −6 sample/05-sql-typeorm/package.json
  84. +10,578 −37 sample/06-mongoose/package-lock.json
  85. +7 −7 sample/06-mongoose/package.json
  86. +18 −18 sample/07-sequelize/package-lock.json
  87. +6 −6 sample/07-sequelize/package.json
  88. +26 −16 sample/08-webpack/package-lock.json
  89. +5 −5 sample/08-webpack/package.json
  90. +636 −644 sample/09-babel-example/package-lock.json
  91. +14 −14 sample/09-babel-example/package.json
  92. +32 −38 sample/10-fastify/package-lock.json
  93. +7 −7 sample/10-fastify/package.json
  94. +29 −35 sample/11-swagger/package-lock.json
  95. +7 −7 sample/11-swagger/package.json
  96. +48 −60 sample/12-graphql-schema-first/package-lock.json
  97. +8 −8 sample/12-graphql-schema-first/package.json
  98. +18 −18 sample/13-mongo-typeorm/package-lock.json
  99. +6 −6 sample/13-mongo-typeorm/package.json
  100. +10,298 −39 sample/14-mongoose-base/package-lock.json
  101. +7 −7 sample/14-mongoose-base/package.json
  102. +28 −28 sample/15-mvc/package-lock.json
  103. +7 −7 sample/15-mvc/package.json
  104. +43 −44 sample/16-gateways-ws/package-lock.json
  105. +10 −10 sample/16-gateways-ws/package.json
  106. +24 −24 sample/17-mvc-fastify/package-lock.json
  107. +7 −7 sample/17-mvc-fastify/package.json
  108. +12 −12 sample/18-context/package-lock.json
  109. +4 −4 sample/18-context/package.json
  110. +18 −18 sample/19-auth-jwt/package-lock.json
  111. +6 −6 sample/19-auth-jwt/package.json
  112. +29 −35 sample/20-cache/package-lock.json
  113. +7 −7 sample/20-cache/package.json
  114. +18 −18 sample/21-serializer/package-lock.json
  115. +6 −6 sample/21-serializer/package.json
  116. +38 −38 sample/22-graphql-prisma/package-lock.json
  117. +7 −7 sample/22-graphql-prisma/package.json
  118. +48 −60 sample/23-graphql-code-first/package-lock.json
  119. +8 −8 sample/23-graphql-code-first/package.json
  120. +29 −35 sample/24-serve-static/package-lock.json
  121. +7 −7 sample/24-serve-static/package.json
  122. +18 −18 sample/25-dynamic-modules/package-lock.json
  123. +6 −6 sample/25-dynamic-modules/package.json
  124. +35 −25 sample/26-queues/package-lock.json
  125. +7 −7 sample/26-queues/package.json
  126. +35 −25 sample/27-scheduling/package-lock.json
  127. +7 −7 sample/27-scheduling/package.json
  128. +18 −18 sample/28-sse/package-lock.json
  129. +6 −6 sample/28-sse/package.json
  130. +29 −35 sample/29-file-upload/package-lock.json
  131. +7 −7 sample/29-file-upload/package.json
  132. +18 −18 sample/30-event-emitter/package-lock.json
  133. +6 −6 sample/30-event-emitter/package.json
  134. +121 −49 sample/31-graphql-federation-code-first/gateway/package-lock.json
  135. +8 −8 sample/31-graphql-federation-code-first/gateway/package.json
  136. +121 −49 sample/31-graphql-federation-code-first/posts-application/package-lock.json
  137. +10 −10 sample/31-graphql-federation-code-first/posts-application/package.json
  138. +121 −49 sample/31-graphql-federation-code-first/users-application/package-lock.json
  139. +10 −10 sample/31-graphql-federation-code-first/users-application/package.json
  140. +121 −49 sample/32-graphql-federation-schema-first/gateway/package-lock.json
  141. +8 −8 sample/32-graphql-federation-schema-first/gateway/package.json
  142. +121 −49 sample/32-graphql-federation-schema-first/posts-application/package-lock.json
  143. +10 −10 sample/32-graphql-federation-schema-first/posts-application/package.json
  144. +121 −49 sample/32-graphql-federation-schema-first/users-application/package-lock.json
  145. +10 −10 sample/32-graphql-federation-schema-first/users-application/package.json
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -59,6 +59,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
#### Principal Sponsors
<table style="text-align:center;"><tr>
<td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
<td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/red-hat-logo.svg" width="200" valign="middle" /></a></td>
<td>
<a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
<td>
@@ -80,7 +81,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
<table style="text-align:center;"><tr><td>
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> </td><td>
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" width="100" /></a> </td><td>
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td><td>
<a href="https://www.myleodsc.com/" target="_blank"><img src="https://nestjs.com/img/myleo-logo.png" width="180" valign="middle" /></td><td>
<a href="https://careers.meetdandy.com/?gh_src=063ba61e3us" target="_blank"><img src="https://nestjs.com/img/dandy-roles-logo.svg" width="150" valign="middle" /></td><td>
<a href="https://www.castlecraft.in" target="_blank"><img src="https://nestjs.com/img/castlecraft-logo.png" width="150" valign="middle" /></td>
<td><a href="https://www.tinystacks.com" target="_blank"><img src="https://nestjs.com/img/tinystacks-logo.png#1" width="140" valign="middle" /></td></tr></table>
4 changes: 2 additions & 2 deletions integration/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ services:
zookeeper:
container_name: test-zookeeper
hostname: zookeeper
image: confluentinc/cp-zookeeper:6.2.1
image: confluentinc/cp-zookeeper:7.0.1
ports:
- "2181:2181"
environment:
@@ -57,7 +57,7 @@ services:
kafka:
container_name: test-kafka
hostname: kafka
image: confluentinc/cp-kafka:7.0.0
image: confluentinc/cp-kafka:7.0.1
depends_on:
- zookeeper
ports:
4 changes: 2 additions & 2 deletions integration/microservices/e2e/orders-grpc.spec.ts
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ describe('Advanced GRPC transport', () => {
callHandler.on('error', (err: any) => {
// We want to fail only on real errors while Cancellation error
// is expected
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
if (!String(err).toLowerCase().includes('cancelled')) {
fail('gRPC Stream error happened, error: ' + err);
}
});
@@ -166,7 +166,7 @@ describe('Advanced GRPC transport', () => {
callHandler.on('error', (err: any) => {
// We want to fail only on real errors while Cancellation error
// is expected
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
if (!String(err).toLowerCase().includes('cancelled')) {
fail('gRPC Stream error happened, error: ' + err);
}
});
4 changes: 2 additions & 2 deletions integration/microservices/e2e/sum-grpc.spec.ts
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ describe('GRPC transport', () => {
callHandler.on('error', (err: any) => {
// We want to fail only on real errors while Cancellation error
// is expected
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
if (!String(err).toLowerCase().includes('cancelled')) {
fail('gRPC Stream error happened, error: ' + err);
}
});
@@ -100,7 +100,7 @@ describe('GRPC transport', () => {
callHandler.on('error', (err: any) => {
// We want to fail only on real errors while Cancellation error
// is expected
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
if (!String(err).toLowerCase().includes('cancelled')) {
fail('gRPC Stream error happened, error: ' + err);
}
});
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "8.2.3"
"version": "8.2.4"
}
Loading