diff --git a/.github/ISSUE_TEMPLATE/Bug_report.yml b/.github/ISSUE_TEMPLATE/Bug_report.yml index 8efa990da86..72d2a458730 100644 --- a/.github/ISSUE_TEMPLATE/Bug_report.yml +++ b/.github/ISSUE_TEMPLATE/Bug_report.yml @@ -1,6 +1,6 @@ name: "\U0001F41B Bug Report" description: "If something isn't working as expected \U0001F914" -labels: ["needs triage"] +labels: ['needs triage'] type: bug body: - type: markdown @@ -21,25 +21,25 @@ body: - type: checkboxes attributes: - label: "Is there an existing issue for this?" - description: "Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for the bug you encountered" + label: 'Is there an existing issue for this?' + description: 'Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for the bug you encountered' options: - - label: "I have searched the existing issues" - required: true + - label: 'I have searched the existing issues' + required: true - type: textarea validations: required: true attributes: - label: "Current behavior" - description: "How the issue manifests?" + label: 'Current behavior' + description: 'How the issue manifests?' - type: input validations: required: true attributes: - label: "Minimum reproduction code" - placeholder: "https://github.com/..." + label: 'Minimum reproduction code' + placeholder: 'https://github.com/...' description: | An URL to some Git repository/[StackBlitz](https://stackblitz.com/fork/github/nestjs/typescript-starter)/[CodeSandbox](https://codesandbox.io/s/github/nestjs/typescript-starter/tree/master) project that reproduces your issue. [What is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction) @@ -48,7 +48,7 @@ body: - type: textarea attributes: - label: "Steps to reproduce" + label: 'Steps to reproduce' description: | How the issue manifests? You could leave this blank if you already write this in your reproduction code @@ -61,8 +61,8 @@ body: validations: required: true attributes: - label: "Expected behavior" - description: "A clear and concise description of what you expected to happened (or code)" + label: 'Expected behavior' + description: 'A clear and concise description of what you expected to happened (or code)' - type: markdown attributes: @@ -73,7 +73,7 @@ body: validations: required: true attributes: - label: "Package" + label: 'Package' description: | Which package (or packages) do you think your issue is related to? **Tip**: The first line of the stack trace can help you to figure out this @@ -81,35 +81,35 @@ body: The package isn't listed below? Try to find its repository [here](https://github.com/orgs/nestjs/repositories) and open the issue there instead options: - label: "I don't know. Or some 3rd-party package" - - label: "@nestjs/common" - - label: "@nestjs/core" - - label: "@nestjs/microservices" - - label: "@nestjs/platform-express" - - label: "@nestjs/platform-fastify" - - label: "@nestjs/platform-socket.io" - - label: "@nestjs/platform-ws" - - label: "@nestjs/testing" - - label: "@nestjs/websockets" - - label: "Other (see below)" + - label: '@nestjs/common' + - label: '@nestjs/core' + - label: '@nestjs/microservices' + - label: '@nestjs/platform-express' + - label: '@nestjs/platform-fastify' + - label: '@nestjs/platform-socket.io' + - label: '@nestjs/platform-ws' + - label: '@nestjs/testing' + - label: '@nestjs/websockets' + - label: 'Other (see below)' - type: input attributes: - label: "Other package" - description: "If your issue is related to some package that is not listed above nor under @nestjs org, write its name here" + label: 'Other package' + description: 'If your issue is related to some package that is not listed above nor under @nestjs org, write its name here' - type: input attributes: - label: "NestJS version" + label: 'NestJS version' description: | Which version of `@nestjs/core` are you using? **Tip**: Make sure that all of yours `@nestjs/*` dependencies are in sync! - placeholder: "8.1.3" + placeholder: '8.1.3' - type: textarea validations: required: true attributes: - label: "Packages versions" + label: 'Packages versions' description: | You could leave your whole `package.json` dependencies list here, or just indicate which version of `@nestjs/*` you are using **Tip**: run _npx nest info_ @@ -120,15 +120,15 @@ body: - type: input attributes: - label: "Node.js version" - description: "Which version of Node.js are you using?" - placeholder: "14.17.6" + label: 'Node.js version' + description: 'Which version of Node.js are you using?' + placeholder: '14.17.6' - type: checkboxes validations: required: true attributes: - label: "In which operating systems have you tested?" + label: 'In which operating systems have you tested?' options: - label: macOS - label: Windows @@ -141,7 +141,7 @@ body: - type: textarea attributes: - label: "Other" + label: 'Other' description: | Anything else relevant? eg: Logs, OS version, IDE, package manager, etc. **Tip:** You can attach images, recordings or log files by clicking this area to highlight it and then dragging files in diff --git a/.github/ISSUE_TEMPLATE/Feature_request.yml b/.github/ISSUE_TEMPLATE/Feature_request.yml index 9b27abf9407..4abd4fede09 100644 --- a/.github/ISSUE_TEMPLATE/Feature_request.yml +++ b/.github/ISSUE_TEMPLATE/Feature_request.yml @@ -1,6 +1,6 @@ name: "\U0001F680 Feature Request" description: "I have a suggestion \U0001F63B!" -labels: ["type: enhancement :wolf:", "needs triage"] +labels: ['type: enhancement :wolf:', 'needs triage'] type: feature body: - type: markdown @@ -19,18 +19,18 @@ body: - type: checkboxes attributes: - label: "Is there an existing issue that is already proposing this?" - description: "Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for the feature you are requesting" + label: 'Is there an existing issue that is already proposing this?' + description: 'Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for the feature you are requesting' options: - - label: "I have searched the existing issues" - required: true + - label: 'I have searched the existing issues' + required: true - type: textarea validations: required: true attributes: - label: "Is your feature request related to a problem? Please describe it" - description: "A clear and concise description of what the problem is" + label: 'Is your feature request related to a problem? Please describe it' + description: 'A clear and concise description of what the problem is' placeholder: | I have an issue when ... @@ -39,18 +39,18 @@ body: required: true attributes: label: "Describe the solution you'd like" - description: "A clear and concise description of what you want to happen. Add any considered drawbacks" + description: 'A clear and concise description of what you want to happen. Add any considered drawbacks' - type: textarea validations: required: true attributes: - label: "Teachability, documentation, adoption, migration strategy" - description: "If you can, explain how users will be able to use this and possibly write out a version the docs. Maybe a screenshot or design?" + label: 'Teachability, documentation, adoption, migration strategy' + description: 'If you can, explain how users will be able to use this and possibly write out a version the docs. Maybe a screenshot or design?' - type: textarea validations: required: true attributes: - label: "What is the motivation / use case for changing the behavior?" - description: "Describe the motivation or the concrete use case" + label: 'What is the motivation / use case for changing the behavior?' + description: 'Describe the motivation or the concrete use case' diff --git a/.github/ISSUE_TEMPLATE/Regression.yml b/.github/ISSUE_TEMPLATE/Regression.yml index 49be1f68736..a6851928ff5 100644 --- a/.github/ISSUE_TEMPLATE/Regression.yml +++ b/.github/ISSUE_TEMPLATE/Regression.yml @@ -1,6 +1,6 @@ name: "\U0001F4A5 Regression" -description: "Report an unexpected while upgrading your Nest application!" -labels: ["type: bug :sob:", "needs triage"] +description: 'Report an unexpected while upgrading your Nest application!' +labels: ['type: bug :sob:', 'needs triage'] type: bug body: - type: markdown @@ -21,50 +21,50 @@ body: - type: checkboxes attributes: - label: "Did you read the migration guide?" - description: "Check out the [migration guide here](https://docs.nestjs.com/migration-guide)!" + label: 'Did you read the migration guide?' + description: 'Check out the [migration guide here](https://docs.nestjs.com/migration-guide)!' options: - - label: "I have read the whole migration guide" - required: false + - label: 'I have read the whole migration guide' + required: false - type: checkboxes attributes: - label: "Is there an existing issue that is already proposing this?" - description: "Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for the feature you are requesting" + label: 'Is there an existing issue that is already proposing this?' + description: 'Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for the feature you are requesting' options: - - label: "I have searched the existing issues" - required: true + - label: 'I have searched the existing issues' + required: true - type: input attributes: - label: "Potential Commit/PR that introduced the regression" - description: "If you have time to investigate, what PR/date/version introduced this issue" - placeholder: "PR #123 or commit 5b3c4a4" + label: 'Potential Commit/PR that introduced the regression' + description: 'If you have time to investigate, what PR/date/version introduced this issue' + placeholder: 'PR #123 or commit 5b3c4a4' - type: input validations: required: true attributes: - label: "NestJS version" - placeholder: "8.1.0 -> 8.1.3" + label: 'NestJS version' + placeholder: '8.1.0 -> 8.1.3' - type: textarea validations: required: true attributes: - label: "Describe the regression" - description: "A clear and concise description of what the regression is" + label: 'Describe the regression' + description: 'A clear and concise description of what the regression is' - type: input attributes: - label: "Minimum reproduction code" - description: "An URL to some git repository that reproduces this issue. [Wtf is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction)" - placeholder: "https://github.com/..." + label: 'Minimum reproduction code' + description: 'An URL to some git repository that reproduces this issue. [Wtf is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction)' + placeholder: 'https://github.com/...' - type: textarea attributes: - label: "Input code" - description: "Write some code snippets if you think it is worth it" + label: 'Input code' + description: 'Write some code snippets if you think it is worth it' value: | ```ts @@ -74,12 +74,12 @@ body: validations: required: true attributes: - label: "Expected behavior" - description: "A clear and concise description of what you expected to happened (or code)" + label: 'Expected behavior' + description: 'A clear and concise description of what you expected to happened (or code)' - type: textarea attributes: - label: "Other" + label: 'Other' description: | Anything else relevant? eg: Logs, OS version, IDE, package manager, etc. **Tip:** You can attach images, recordings or log files by clicking this area to highlight it and then dragging files in diff --git a/.github/ISSUE_TEMPLATE/Suggestion_improve_performance.yml b/.github/ISSUE_TEMPLATE/Suggestion_improve_performance.yml index 3e46c0e2c11..a10889a022a 100644 --- a/.github/ISSUE_TEMPLATE/Suggestion_improve_performance.yml +++ b/.github/ISSUE_TEMPLATE/Suggestion_improve_performance.yml @@ -1,43 +1,43 @@ -title: "perf: " +title: 'perf: ' name: "\U0001F525 Suggestion for Improving Performance" description: "I have a suggestion that might improve the performance of Nest \U00002728" -labels: ["type: enhancement :wolf:", "needs triage"] +labels: ['type: enhancement :wolf:', 'needs triage'] type: task body: - type: checkboxes attributes: - label: "Is there an existing issue that is already proposing this?" - description: "Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for this" + label: 'Is there an existing issue that is already proposing this?' + description: 'Please search [here](../issues?q=is%3Aissue) to see if an issue already exists for this' options: - - label: "I have searched the existing issues" - required: true + - label: 'I have searched the existing issues' + required: true - type: input validations: required: true attributes: - label: "NestJS version" - description: "Which version do you intend to improve?" - placeholder: "8.1.3" + label: 'NestJS version' + description: 'Which version do you intend to improve?' + placeholder: '8.1.3' - type: textarea attributes: - label: "Is your performance suggestion related to a problem? Please describe it" - description: "A clear and concise description of what the problem is" + label: 'Is your performance suggestion related to a problem? Please describe it' + description: 'A clear and concise description of what the problem is' - type: textarea validations: required: true attributes: - label: "Describe the performance enhancement you are proposing and how we can try it out" + label: 'Describe the performance enhancement you are proposing and how we can try it out' placeholder: | Cache `array.length` on the following lines ... - type: textarea validations: - required: true + required: true attributes: - label: "Benchmarks result or another proof (eg: POC)" + label: 'Benchmarks result or another proof (eg: POC)' description: | If you've already prototyped a solution, share your results here If not, what makes you believe there will be a performance improvement? @@ -46,4 +46,3 @@ body: ``` MacBook Pro Mid 2014, 2.5 GHz Quad-Core Intel Core i7, 16 GB 1600 MHz DDR3, SSD - diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 0bf87e0366d..535401d1915 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -3,8 +3,8 @@ blank_issues_enabled: false contact_links: - name: "\u2049 FAQ" - url: "https://docs.nestjs.com/faq" - about: "Make sure you have read the Frequently Asked Questions page." + url: 'https://docs.nestjs.com/faq' + about: 'Make sure you have read the Frequently Asked Questions page.' - name: "\u2753 Discord Community of NestJS" - url: "https://discord.gg/NestJS" - about: "Please ask support questions or discuss suggestions/enhancements here." + url: 'https://discord.gg/NestJS' + about: 'Please ask support questions or discuss suggestions/enhancements here.' diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c543605f2c1..4bebc507d29 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,15 +1,17 @@ ## PR Checklist + Please check if your PR fulfills the following requirements: - [ ] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md - [ ] Tests for the changes have been added (for bug fixes / features) - [ ] Docs have been added / updated (for bug fixes / features) - ## PR Type + What kind of change does this PR introduce? + - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, local variables) @@ -19,19 +21,18 @@ What kind of change does this PR introduce? - [ ] Other... Please describe: ## What is the current behavior? + Issue Number: N/A - ## What is the new behavior? - ## Does this PR introduce a breaking change? + - [ ] Yes - [ ] No - -## Other information \ No newline at end of file +## Other information diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b31110af1a2..dd4aad0e65b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,12 +1,12 @@ version: 2 updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 + - package-ecosystem: npm + directory: '/' + schedule: + interval: daily + open-pull-requests-limit: 10 + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/.github/lock.yml b/.github/lock.yml index ff376149542..1cdcf92a79c 100644 --- a/.github/lock.yml +++ b/.github/lock.yml @@ -19,7 +19,6 @@ lockComment: > # Assign `resolved` as the reason for locking. Set to `false` to disable setLockReason: true - # Limit to only `issues` or `pulls` # only: issues @@ -33,4 +32,4 @@ setLockReason: true # daysUntilLock: 30 # Repository to extend settings from -# _extends: repo \ No newline at end of file +# _extends: repo diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d6beb71c4b1..6e8e5390e0a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,8 +1,8 @@ -name: "CodeQL" +name: 'CodeQL' on: push: - branches: [master, ] + branches: [master] pull_request: # The branches below must be a subset of the branches above branches: [master] @@ -20,42 +20,42 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - queries: +security-extended - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + - name: Checkout repository + uses: actions/checkout@v4 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 + + # If this run was triggered by a pull request event, then checkout + # the head of the pull request instead of the merge commit. + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + queries: +security-extended + # Override language selection by uncommenting this and choosing your languages + # with: + # languages: go, javascript, csharp, python, cpp, java + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index a674ec251b1..28bc43be5d3 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation. Examples of behavior that contributes to creating a positive environment include: -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting +- The use of sexualized language or imagery and unwelcome sexual attention or + advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic + address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting ## Our Responsibilities diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 465ba827773..aff6c301f76 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -116,7 +116,6 @@ We cannot accept code without this. 1. In GitHub, send a pull request to `nestjs:master`. - If we suggest changes then: - - Make the required updates. - Re-run the Nest test suites to ensure tests are still passing. - Rebase your branch and force push to your GitHub repository (this will update your Pull Request): @@ -322,8 +321,10 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise [commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit# + + [dev-doc]: https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md [github]: https://github.com/nestjs/nest [stackoverflow]: https://stackoverflow.com/questions/tagged/nestjs diff --git a/benchmarks/fastify.js b/benchmarks/fastify.js index eb70ea0baac..a78b1d24035 100644 --- a/benchmarks/fastify.js +++ b/benchmarks/fastify.js @@ -3,5 +3,5 @@ const fastify = require('fastify')(); fastify.get('/', async (req, reply) => reply.send('Hello world')); fastify.listen({ - port: 3000 + port: 3000, }); diff --git a/benchmarks/nest/app.controller.js b/benchmarks/nest/app.controller.js index 972139d1b8a..dd9676bf61e 100644 --- a/benchmarks/nest/app.controller.js +++ b/benchmarks/nest/app.controller.js @@ -1,14 +1,14 @@ 'use strict'; var __decorate = (this && this.__decorate) || - function(decorators, target, key, desc) { + function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null - ? (desc = Object.getOwnPropertyDescriptor(target, key)) - : desc, + ? (desc = Object.getOwnPropertyDescriptor(target, key)) + : desc, d; if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc); @@ -16,11 +16,11 @@ var __decorate = for (var i = decorators.length - 1; i >= 0; i--) if ((d = decorators[i])) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; + return (c > 3 && r && Object.defineProperty(target, key, r), r); }; var __metadata = (this && this.__metadata) || - function(k, v) { + function (k, v) { if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function') return Reflect.metadata(k, v); }; diff --git a/benchmarks/nest/app.module.js b/benchmarks/nest/app.module.js index 2b793167611..31e399ae61e 100644 --- a/benchmarks/nest/app.module.js +++ b/benchmarks/nest/app.module.js @@ -1,20 +1,35 @@ -"use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const common_1 = require("@nestjs/common"); -const app_controller_1 = require("./app.controller"); -let AppModule = class AppModule { -}; -AppModule = __decorate([ +'use strict'; +var __decorate = + (this && this.__decorate) || + function (decorators, target, key, desc) { + var c = arguments.length, + r = + c < 3 + ? target + : desc === null + ? (desc = Object.getOwnPropertyDescriptor(target, key)) + : desc, + d; + if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function') + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if ((d = decorators[i])) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return (c > 3 && r && Object.defineProperty(target, key, r), r); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +const common_1 = require('@nestjs/common'); +const app_controller_1 = require('./app.controller'); +let AppModule = class AppModule {}; +AppModule = __decorate( + [ common_1.Module({ - imports: [], - controllers: [app_controller_1.AppController], - }) -], AppModule); + imports: [], + controllers: [app_controller_1.AppController], + }), + ], + AppModule, +); exports.AppModule = AppModule; -//# sourceMappingURL=app.module.js.map \ No newline at end of file +//# sourceMappingURL=app.module.js.map diff --git a/eslint.config.mjs b/eslint.config.mjs index b651263d2c8..057f2e22177 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -38,18 +38,18 @@ export default tseslint.config( '@typescript-eslint/no-unused-expressions': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-unused-vars': 'off', - "@typescript-eslint/no-misused-promises": [ - "error", + '@typescript-eslint/no-misused-promises': [ + 'error', { - "checksVoidReturn": false, - "checksConditionals": false - } + checksVoidReturn: false, + checksConditionals: false, + }, ], - "@typescript-eslint/require-await": "off", + '@typescript-eslint/require-await': 'off', '@typescript-eslint/prefer-promise-reject-errors': 'off', '@typescript-eslint/no-base-to-string': 'off', '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/only-throw-error': 'off', }, }, -); \ No newline at end of file +); diff --git a/gulpfile.js b/gulpfile.js index a0962e1a387..e59b04fd73a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,7 +10,7 @@ const projectDir = __dirname; const tsconfigPath = path.join(projectDir, 'tools/gulp/tsconfig.json'); require('ts-node').register({ - project: tsconfigPath + project: tsconfigPath, }); -require('./tools/gulp/gulpfile'); \ No newline at end of file +require('./tools/gulp/gulpfile'); diff --git a/integration/auto-mock/tsconfig.json b/integration/auto-mock/tsconfig.json index 2d3b89de293..4f5eca7eacf 100644 --- a/integration/auto-mock/tsconfig.json +++ b/integration/auto-mock/tsconfig.json @@ -31,12 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*", - "test/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*", "test/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/cors/tsconfig.json b/integration/cors/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/cors/tsconfig.json +++ b/integration/cors/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/discovery/tsconfig.json b/integration/discovery/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/discovery/tsconfig.json +++ b/integration/discovery/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/docker-compose.yml b/integration/docker-compose.yml index 340a5c579a2..6fc45040e5d 100644 --- a/integration/docker-compose.yml +++ b/integration/docker-compose.yml @@ -1,19 +1,19 @@ -version: "3" +version: '3' services: redis: container_name: test-redis image: redis ports: - - "6379:6379" + - '6379:6379' restart: always nats: container_name: test-nats image: nats ports: - - "8222:8222" - - "4222:4222" - - "6222:6222" + - '8222:8222' + - '4222:4222' + - '6222:6222' restart: always mqtt: container_name: test-mqtt @@ -21,8 +21,8 @@ services: volumes: - ./mosquitto.conf:/mosquitto/config/mosquitto.conf ports: - - "1883:1883" - - "9001:9001" + - '1883:1883' + - '9001:9001' restart: always mysql: image: mysql:9.3.0 @@ -31,7 +31,7 @@ services: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: test ports: - - "3306:3306" + - '3306:3306' restart: always mongodb: container_name: test-mongodb @@ -43,17 +43,17 @@ services: rabbit: container_name: test-rabbit hostname: rabbit - image: "rabbitmq:management" + image: 'rabbitmq:management' ports: - - "15672:15672" - - "5672:5672" + - '15672:15672' + - '5672:5672' tty: true zookeeper: container_name: test-zookeeper hostname: zookeeper image: confluentinc/cp-zookeeper:7.9.2 ports: - - "2181:2181" + - '2181:2181' environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 @@ -64,8 +64,8 @@ services: depends_on: - zookeeper ports: - - "29092:29092" - - "9092:9092" + - '29092:29092' + - '9092:9092' environment: KAFKA_BROKER_ID: 1 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 diff --git a/integration/graphql-code-first/schema.gql b/integration/graphql-code-first/schema.gql index c196e332d4f..855f2e9ed9b 100644 --- a/integration/graphql-code-first/schema.gql +++ b/integration/graphql-code-first/schema.gql @@ -10,7 +10,9 @@ type Recipe { ingredients: [String!]! } -"""Date custom scalar type""" +""" +Date custom scalar type +""" scalar Date type Query { @@ -31,4 +33,4 @@ input NewRecipeInput { type Subscription { recipeAdded: Recipe! -} \ No newline at end of file +} diff --git a/integration/graphql-code-first/tsconfig.json b/integration/graphql-code-first/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/graphql-code-first/tsconfig.json +++ b/integration/graphql-code-first/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/graphql-schema-first/tsconfig.json b/integration/graphql-schema-first/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/graphql-schema-first/tsconfig.json +++ b/integration/graphql-schema-first/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/hello-world/tsconfig.json b/integration/hello-world/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/hello-world/tsconfig.json +++ b/integration/hello-world/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/hooks/tsconfig.json b/integration/hooks/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/hooks/tsconfig.json +++ b/integration/hooks/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/injector/tsconfig.json b/integration/injector/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/injector/tsconfig.json +++ b/integration/injector/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/inspector/e2e/fixtures/post-init-graph.json b/integration/inspector/e2e/fixtures/post-init-graph.json index be476d57e32..79ab7c7ba81 100644 --- a/integration/inspector/e2e/fixtures/post-init-graph.json +++ b/integration/inspector/e2e/fixtures/post-init-graph.json @@ -2719,9 +2719,7 @@ "metadata": { "key": "createExternalSvc", "transportId": "TCP", - "patterns": [ - "createExternalSvc" - ], + "patterns": ["createExternalSvc"], "isEventHandler": false, "extras": {} }, @@ -2735,9 +2733,7 @@ "metadata": { "key": "findAllExternalSvc", "transportId": "TCP", - "patterns": [ - "findAllExternalSvc" - ], + "patterns": ["findAllExternalSvc"], "isEventHandler": false, "extras": {} }, @@ -2751,9 +2747,7 @@ "metadata": { "key": "findOneExternalSvc", "transportId": "TCP", - "patterns": [ - "findOneExternalSvc" - ], + "patterns": ["findOneExternalSvc"], "isEventHandler": false, "extras": {} }, @@ -2767,9 +2761,7 @@ "metadata": { "key": "updateExternalSvc", "transportId": "TCP", - "patterns": [ - "updateExternalSvc" - ], + "patterns": ["updateExternalSvc"], "isEventHandler": false, "extras": {} }, @@ -2783,9 +2775,7 @@ "metadata": { "key": "removeExternalSvc", "transportId": "TCP", - "patterns": [ - "removeExternalSvc" - ], + "patterns": ["removeExternalSvc"], "isEventHandler": false, "extras": {} }, @@ -3139,4 +3129,4 @@ ] }, "status": "complete" -} \ No newline at end of file +} diff --git a/integration/inspector/e2e/fixtures/pre-init-graph.json b/integration/inspector/e2e/fixtures/pre-init-graph.json index 7f35f11538f..7f2d2df0967 100644 --- a/integration/inspector/e2e/fixtures/pre-init-graph.json +++ b/integration/inspector/e2e/fixtures/pre-init-graph.json @@ -2592,4 +2592,4 @@ ] }, "status": "complete" -} \ No newline at end of file +} diff --git a/integration/inspector/e2e/graph-inspector.spec.ts b/integration/inspector/e2e/graph-inspector.spec.ts index 9c02de6902c..1cc2283aea3 100644 --- a/integration/inspector/e2e/graph-inspector.spec.ts +++ b/integration/inspector/e2e/graph-inspector.spec.ts @@ -4,7 +4,7 @@ import { SerializedGraph } from '@nestjs/core/inspector/serialized-graph'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test, TestingModule } from '@nestjs/testing'; import { expect } from 'chai'; -import { readFileSync } from 'fs'; +import { readFileSync, writeFileSync } from 'fs'; import { join } from 'path'; import * as sinon from 'sinon'; import { AppModule } from '../src/app.module'; @@ -26,10 +26,10 @@ describe('Graph inspector', () => { const graph = testingModule.get(SerializedGraph); // Update snapshot: - // writeFileSync( - // join(__dirname, 'fixtures', 'pre-init-graph.json'), - // graph.toString(), - // ); + writeFileSync( + join(__dirname, 'fixtures', 'pre-init-graph.json'), + graph.toString(), + ); const snapshot = readFileSync( join(__dirname, 'fixtures', 'pre-init-graph.json'), @@ -54,10 +54,10 @@ describe('Graph inspector', () => { const graph = testingModule.get(SerializedGraph); // Update snapshot: - // writeFileSync( - // join(__dirname, 'fixtures', 'post-init-graph.json'), - // graph.toString(), - // ); + writeFileSync( + join(__dirname, 'fixtures', 'post-init-graph.json'), + graph.toString(), + ); const snapshot = readFileSync( join(__dirname, 'fixtures', 'post-init-graph.json'), diff --git a/integration/inspector/tsconfig.json b/integration/inspector/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/inspector/tsconfig.json +++ b/integration/inspector/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/lazy-modules/tsconfig.json b/integration/lazy-modules/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/lazy-modules/tsconfig.json +++ b/integration/lazy-modules/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/microservices/tsconfig.json b/integration/microservices/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/microservices/tsconfig.json +++ b/integration/microservices/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/module-utils/tsconfig.json b/integration/module-utils/tsconfig.json index 2d3b89de293..4f5eca7eacf 100644 --- a/integration/module-utils/tsconfig.json +++ b/integration/module-utils/tsconfig.json @@ -31,12 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*", - "test/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*", "test/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/mongoose/tsconfig.json b/integration/mongoose/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/mongoose/tsconfig.json +++ b/integration/mongoose/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/app-locals/tsconfig.json b/integration/nest-application/app-locals/tsconfig.json index 259f2b525f8..001dec464b7 100644 --- a/integration/nest-application/app-locals/tsconfig.json +++ b/integration/nest-application/app-locals/tsconfig.json @@ -26,16 +26,13 @@ "@nestjs/platform-express": ["../../../packages/platform-express"], "@nestjs/platform-express/*": ["../../../packages/platform-express/*"], "@nestjs/platform-socket.io": ["../../../packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["../../../packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": [ + "../../../packages/platform-socket.io/*" + ], "@nestjs/platform-ws": ["../../../packages/platform-ws"], "@nestjs/platform-ws/*": ["../../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/get-url/tsconfig.json b/integration/nest-application/get-url/tsconfig.json index 259f2b525f8..001dec464b7 100644 --- a/integration/nest-application/get-url/tsconfig.json +++ b/integration/nest-application/get-url/tsconfig.json @@ -26,16 +26,13 @@ "@nestjs/platform-express": ["../../../packages/platform-express"], "@nestjs/platform-express/*": ["../../../packages/platform-express/*"], "@nestjs/platform-socket.io": ["../../../packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["../../../packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": [ + "../../../packages/platform-socket.io/*" + ], "@nestjs/platform-ws": ["../../../packages/platform-ws"], "@nestjs/platform-ws/*": ["../../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/global-prefix/tsconfig.json b/integration/nest-application/global-prefix/tsconfig.json index 259f2b525f8..001dec464b7 100644 --- a/integration/nest-application/global-prefix/tsconfig.json +++ b/integration/nest-application/global-prefix/tsconfig.json @@ -26,16 +26,13 @@ "@nestjs/platform-express": ["../../../packages/platform-express"], "@nestjs/platform-express/*": ["../../../packages/platform-express/*"], "@nestjs/platform-socket.io": ["../../../packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["../../../packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": [ + "../../../packages/platform-socket.io/*" + ], "@nestjs/platform-ws": ["../../../packages/platform-ws"], "@nestjs/platform-ws/*": ["../../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/listen/tsconfig.json b/integration/nest-application/listen/tsconfig.json index 259f2b525f8..001dec464b7 100644 --- a/integration/nest-application/listen/tsconfig.json +++ b/integration/nest-application/listen/tsconfig.json @@ -26,16 +26,13 @@ "@nestjs/platform-express": ["../../../packages/platform-express"], "@nestjs/platform-express/*": ["../../../packages/platform-express/*"], "@nestjs/platform-socket.io": ["../../../packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["../../../packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": [ + "../../../packages/platform-socket.io/*" + ], "@nestjs/platform-ws": ["../../../packages/platform-ws"], "@nestjs/platform-ws/*": ["../../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/raw-body/tsconfig.json b/integration/nest-application/raw-body/tsconfig.json index 259f2b525f8..001dec464b7 100644 --- a/integration/nest-application/raw-body/tsconfig.json +++ b/integration/nest-application/raw-body/tsconfig.json @@ -26,16 +26,13 @@ "@nestjs/platform-express": ["../../../packages/platform-express"], "@nestjs/platform-express/*": ["../../../packages/platform-express/*"], "@nestjs/platform-socket.io": ["../../../packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["../../../packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": [ + "../../../packages/platform-socket.io/*" + ], "@nestjs/platform-ws": ["../../../packages/platform-ws"], "@nestjs/platform-ws/*": ["../../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/sse/tsconfig.json b/integration/nest-application/sse/tsconfig.json index 23ca656104e..1fee56f9996 100644 --- a/integration/nest-application/sse/tsconfig.json +++ b/integration/nest-application/sse/tsconfig.json @@ -26,16 +26,13 @@ "@nestjs/platform-express": ["../../../packages/platform-express"], "@nestjs/platform-express/*": ["../../../packages/platform-express/*"], "@nestjs/platform-socket.io": ["../../../packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["../../../packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": [ + "../../../packages/platform-socket.io/*" + ], "@nestjs/platform-ws": ["../../../packages/platform-ws"], "@nestjs/platform-ws/*": ["../../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/nest-application/use-body-parser/tsconfig.json b/integration/nest-application/use-body-parser/tsconfig.json index 999ab15b777..42915d3bd0a 100644 --- a/integration/nest-application/use-body-parser/tsconfig.json +++ b/integration/nest-application/use-body-parser/tsconfig.json @@ -13,11 +13,6 @@ "allowJs": true, "outDir": "./dist" }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules" - ] + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] } diff --git a/integration/repl/tsconfig.json b/integration/repl/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/repl/tsconfig.json +++ b/integration/repl/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/scopes/tsconfig.json b/integration/scopes/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/scopes/tsconfig.json +++ b/integration/scopes/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/send-files/tsconfig.json b/integration/send-files/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/send-files/tsconfig.json +++ b/integration/send-files/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/testing-module-override/tsconfig.json b/integration/testing-module-override/tsconfig.json index c43c3d1b1be..6480fad2b75 100644 --- a/integration/testing-module-override/tsconfig.json +++ b/integration/testing-module-override/tsconfig.json @@ -31,5 +31,5 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": ["src/**/*", "e2e/**/*"], + "include": ["src/**/*", "e2e/**/*"] } diff --git a/integration/typeorm/tsconfig.json b/integration/typeorm/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/typeorm/tsconfig.json +++ b/integration/typeorm/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/versioning/tsconfig.json b/integration/versioning/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/versioning/tsconfig.json +++ b/integration/versioning/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/integration/websockets/tsconfig.json b/integration/websockets/tsconfig.json index 4a0f01e0ec4..9720d195239 100644 --- a/integration/websockets/tsconfig.json +++ b/integration/websockets/tsconfig.json @@ -31,11 +31,6 @@ "@nestjs/platform-ws/*": ["../../packages/platform-ws/*"] } }, - "include": [ - "src/**/*", - "e2e/**/*" - ], - "exclude": [ - "node_modules", - ] -} \ No newline at end of file + "include": ["src/**/*", "e2e/**/*"], + "exclude": ["node_modules"] +} diff --git a/lerna.json b/lerna.json index 1bc39a67ef7..9ec3d62379d 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,5 @@ { "lerna": "2.4.0", - "packages": [ - "packages/*" - ], + "packages": ["packages/*"], "version": "11.1.3" } diff --git a/package-lock.json b/package-lock.json index 1110dd0b905..0ad7bee6cba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4656,7 +4656,6 @@ "resolved": "https://registry.npmjs.org/@conventional-changelog/git-client/-/git-client-2.5.1.tgz", "integrity": "sha512-lAw7iA5oTPWOLjiweb7DlGEMDEvzqzLLa6aWOly2FSZ64IwLE8T458rC+o+WvI31Doz6joM7X2DoNog7mX8r4A==", "dev": true, - "license": "MIT", "dependencies": { "@simple-libs/child-process-utils": "^1.0.0", "@simple-libs/stream-utils": "^1.1.0", @@ -4683,7 +4682,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -4761,7 +4759,6 @@ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.1.tgz", "integrity": "sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", @@ -4973,7 +4970,6 @@ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } @@ -6493,9 +6489,9 @@ } }, "node_modules/@mongodb-js/saslprep": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz", - "integrity": "sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.3.0.tgz", + "integrity": "sha512-zlayKCsIjYb7/IdfqxorK5+xUMyi4vOKcFy10wKJYc63NSdKI8mNME+uJqfatkPmOSMMUiojrL58IePKBm3gvQ==", "dev": true, "dependencies": { "sparse-bitfield": "^3.0.3" @@ -10829,7 +10825,6 @@ "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.27.0.tgz", "integrity": "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==", "dev": true, - "license": "MIT", "dependencies": { "fast-glob": "^3.3.3", "minimatch": "^10.0.1", @@ -10841,7 +10836,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "dev": true, - "license": "ISC", "dependencies": { "@isaacs/brace-expansion": "^5.0.0" }, @@ -11086,7 +11080,6 @@ "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.3.tgz", "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==", "dev": true, - "license": "MIT", "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^5.0.0", @@ -11430,15 +11423,13 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/whatwg-url": { "version": "11.0.5", "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz", "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/webidl-conversions": "*" } @@ -11458,7 +11449,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.35.0.tgz", "integrity": "sha512-ijItUYaiWuce0N1SoSMrEd0b6b6lYkYt99pqCPfybd+HKVXtEvYhICfLdwp42MhiI5mp0oq7PKEL+g1cNiz/Eg==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.35.0", @@ -11488,7 +11478,6 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } @@ -11498,7 +11487,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.35.0.tgz", "integrity": "sha512-6sMvZePQrnZH2/cJkwRpkT7DxoAWh+g6+GFRK6bV3YQo7ogi3SX5rgF6099r5Q53Ma5qeT7LGmOmuIutF4t3lA==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/scope-manager": "8.35.0", "@typescript-eslint/types": "8.35.0", @@ -11523,7 +11511,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -11540,15 +11527,13 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@typescript-eslint/project-service": { "version": "8.35.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.35.0.tgz", "integrity": "sha512-41xatqRwWZuhUMF/aZm2fcUsOFKNcG28xqRSS6ZVr9BVJtGExosLAm5A1OxTjRMagx8nJqva+P5zNIGt8RIgbQ==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.35.0", "@typescript-eslint/types": "^8.35.0", @@ -11570,7 +11555,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -11587,15 +11571,13 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@typescript-eslint/scope-manager": { "version": "8.35.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.35.0.tgz", "integrity": "sha512-+AgL5+mcoLxl1vGjwNfiWq5fLDZM1TmTPYs2UkyHfFhgERxBbqHlNjRzhThJqz+ktBqTChRYY6zwbMwy0591AA==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/types": "8.35.0", "@typescript-eslint/visitor-keys": "8.35.0" @@ -11613,7 +11595,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.35.0.tgz", "integrity": "sha512-04k/7247kZzFraweuEirmvUj+W3bJLI9fX6fbo1Qm2YykuBvEhRTPl8tcxlYO8kZZW+HIXfkZNoasVb8EV4jpA==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -11630,7 +11611,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.35.0.tgz", "integrity": "sha512-ceNNttjfmSEoM9PW87bWLDEIaLAyR+E6BoYJQ5PfaDau37UGca9Nyq3lBk8Bw2ad0AKvYabz6wxc7DMTO2jnNA==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/typescript-estree": "8.35.0", "@typescript-eslint/utils": "8.35.0", @@ -11654,7 +11634,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -11671,15 +11650,13 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@typescript-eslint/types": { "version": "8.35.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.35.0.tgz", "integrity": "sha512-0mYH3emanku0vHw2aRLNGqe7EXh9WHEhi7kZzscrMDf6IIRUQ5Jk4wp1QrledE/36KtdZrVfKnE32eZCf/vaVQ==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -11693,7 +11670,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.35.0.tgz", "integrity": "sha512-F+BhnaBemgu1Qf8oHrxyw14wq6vbL8xwWKKMwTMwYIRmFFY/1n/9T/jpbobZL8vp7QyEUcC6xGrnAO4ua8Kp7w==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/project-service": "8.35.0", "@typescript-eslint/tsconfig-utils": "8.35.0", @@ -11722,7 +11698,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } @@ -11732,7 +11707,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -11750,7 +11724,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -11765,15 +11738,13 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { "version": "7.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -11786,7 +11757,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.35.0.tgz", "integrity": "sha512-nqoMu7WWM7ki5tPgLVsmPM8CkqtoPUG6xXGeefM5t4x3XumOEKMoUZPdi+7F+/EotukN4R9OWdmDxN80fqoZeg==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.35.0", @@ -11810,7 +11780,6 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.35.0.tgz", "integrity": "sha512-zTh2+1Y8ZpmeQaQVIc/ZZxsx8UzgKJyNg1PTvjzC7WMhPSVS8bfDX34k1SrwOf016qd5RU3az2UxUNue3IfQ5g==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/types": "8.35.0", "eslint-visitor-keys": "^4.2.1" @@ -14280,7 +14249,6 @@ "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.4.tgz", "integrity": "sha512-WIsKqkSC0ABoBJuT1LEX+2HEvNmNKKgnTAyd0fL8qzK4SH2i9NXg+t08YtdZp/V9IZ33cxe3iV4yM0qg8lMQng==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=16.20.1" } @@ -14595,7 +14563,6 @@ "resolved": "https://registry.npmjs.org/cache-manager/-/cache-manager-7.0.0.tgz", "integrity": "sha512-5HLGorfU4g2GyLTXd+bbq8RhZPwLRlVm7hfS1EssJx4Ujq1FjyQAjHND93sI6ByQTlUlCQ0jrHZqLI0qtBFyHA==", "dev": true, - "license": "MIT", "dependencies": { "keyv": "^5.3.3" } @@ -15936,7 +15903,6 @@ "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-7.1.0.tgz", "integrity": "sha512-2hHa/MpDunPnYK3QcZdHl4MOnyLlicBmohsM5/dfvfeoPp0faIjYKHbKyb8nKth/Zd4HhxtlMWfVKrmM9OMj/Q==", "dev": true, - "license": "MIT", "dependencies": { "@conventional-changelog/git-client": "^2.5.1", "@types/normalize-package-data": "^2.4.4", @@ -17293,7 +17259,6 @@ "integrity": "sha512-N6wEbTTZSYOY2rYAn85CuvWWkCK6QweMn7/4Nr3w+gDBeBhk/x4EJeY6FPo4QzDoJZxVTv8U7CMvgWk6pOHHqA==", "dev": true, "hasInstallScript": true, - "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" @@ -19168,7 +19133,6 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.29.0.tgz", "integrity": "sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", @@ -19430,7 +19394,6 @@ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -19535,7 +19498,6 @@ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", @@ -20471,7 +20433,6 @@ "url": "https://opencollective.com/fastify" } ], - "license": "MIT", "dependencies": { "@fastify/ajv-compiler": "^4.0.0", "@fastify/error": "^4.0.0", @@ -22131,8 +22092,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/graphql": { "version": "16.11.0", @@ -28124,7 +28084,6 @@ "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-16.1.2.tgz", "integrity": "sha512-sQKw2Si2g9KUZNY3XNvRuDq4UJqpHwF0/FQzZR2M7I5MvtpWvibikCjUVJzZdGE0ByurEl3KQNvsGetd1ty1/Q==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^5.4.1", "commander": "^14.0.0", @@ -30135,7 +30094,6 @@ "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.17.0.tgz", "integrity": "sha512-neerUzg/8U26cgruLysKEjJvoNSXhyID3RvzvdcpsIi2COYM3FS3o9nlH7fxFtefTb942dX3W9i37oPfCVj4wA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@mongodb-js/saslprep": "^1.1.9", "bson": "^6.10.4", @@ -30182,7 +30140,6 @@ "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz", "integrity": "sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@types/whatwg-url": "^11.0.2", "whatwg-url": "^14.1.0 || ^13.0.0" @@ -30193,7 +30150,6 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz", "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==", "dev": true, - "license": "MIT", "dependencies": { "punycode": "^2.3.1" }, @@ -30206,7 +30162,6 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", "dev": true, - "license": "BSD-2-Clause", "engines": { "node": ">=12" } @@ -30216,7 +30171,6 @@ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz", "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==", "dev": true, - "license": "MIT", "dependencies": { "tr46": "^5.1.0", "webidl-conversions": "^7.0.0" @@ -32879,8 +32833,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/path-dirname": { "version": "1.0.2", @@ -35805,7 +35758,6 @@ "resolved": "https://registry.npmjs.org/sinon/-/sinon-21.0.0.tgz", "integrity": "sha512-TOgRcwFPbfGtpqvZw+hyqJDvqfapr1qUlOizROIk4bBLjlsjlB00Pg6wMFXNtJRpu+eCZuVOaLatG7M8105kAw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.1", "@sinonjs/fake-timers": "^13.0.5", @@ -38284,7 +38236,6 @@ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=18.12" }, @@ -38316,7 +38267,6 @@ "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-26.0.0.tgz", "integrity": "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==", "dev": true, - "license": "MIT", "dependencies": { "@ts-morph/common": "~0.27.0", "code-block-writer": "^13.0.3" @@ -38748,7 +38698,6 @@ "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.25.tgz", "integrity": "sha512-fTKDFzWXKwAaBdEMU4k661seZewbNYET4r1J/z3Jwf+eAvlzMVpTLKAVcAzg75WwQk7GDmtsmkZ5MfkmXCiFWg==", "dev": true, - "license": "MIT", "dependencies": { "@sqltools/formatter": "^1.2.5", "ansis": "^3.17.0", @@ -38991,7 +38940,6 @@ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.35.0.tgz", "integrity": "sha512-uEnz70b7kBz6eg/j0Czy6K5NivaYopgxRjsnAJ2Fx5oTLo3wefTHIbL7AkQr1+7tJCRVpTs/wiM8JR/11Loq9A==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/eslint-plugin": "8.35.0", "@typescript-eslint/parser": "8.35.0", diff --git a/packages/common/pipes/file/interfaces/file.interface.ts b/packages/common/pipes/file/interfaces/file.interface.ts index 418fd8be88e..dfce1b9d346 100644 --- a/packages/common/pipes/file/interfaces/file.interface.ts +++ b/packages/common/pipes/file/interfaces/file.interface.ts @@ -2,4 +2,5 @@ export interface IFile { mimetype: string; size: number; buffer?: Buffer; + originalname?: string; } diff --git a/packages/common/pipes/file/parse-file-pipe.builder.ts b/packages/common/pipes/file/parse-file-pipe.builder.ts index 9199fec3d9c..4f34e8dd260 100644 --- a/packages/common/pipes/file/parse-file-pipe.builder.ts +++ b/packages/common/pipes/file/parse-file-pipe.builder.ts @@ -21,7 +21,12 @@ export class ParseFilePipeBuilder { } addFileTypeValidator(options: FileTypeValidatorOptions) { - return this.addValidator(new FileTypeValidator(options)); + const enhancedOptions = { + ...options, + mimeTypeFallback: true, // Enables fallback to file extension if mime-type is `application/octet-stream` + }; + + return this.addValidator(new FileTypeValidator(enhancedOptions)); } addValidator(validator: FileValidator) { diff --git a/packages/common/test/pipes/file/parse-file-pipe.builder.spec.ts b/packages/common/test/pipes/file/parse-file-pipe.builder.spec.ts index 84c2752a465..dba4c305521 100644 --- a/packages/common/test/pipes/file/parse-file-pipe.builder.spec.ts +++ b/packages/common/test/pipes/file/parse-file-pipe.builder.spec.ts @@ -45,9 +45,12 @@ describe('ParseFilePipeBuilder', () => { .addFileTypeValidator(options) .build(); - expect(parseFilePipe.getValidators()).to.deep.include( - new FileTypeValidator(options), + const validators = parseFilePipe.getValidators(); + const fileTypeValidator = validators.find( + v => v instanceof FileTypeValidator, ); + + expect(fileTypeValidator).to.exist; }); }); diff --git a/packages/core/test/pipes/pipes-consumer.spec.ts b/packages/core/test/pipes/pipes-consumer.spec.ts index 08771997ca2..bae8d33899d 100644 --- a/packages/core/test/pipes/pipes-consumer.spec.ts +++ b/packages/core/test/pipes/pipes-consumer.spec.ts @@ -15,7 +15,7 @@ describe('PipesConsumer', () => { beforeEach(() => { value = 0; data = null; - (metatype = {}), (type = RouteParamtypes.QUERY); + ((metatype = {}), (type = RouteParamtypes.QUERY)); stringifiedType = 'query'; transforms = [ createPipe(sinon.stub().callsFake(val => val + 1)), diff --git a/readme_jp.md b/readme_jp.md index 5e793672b0d..8d7549ab6d6 100644 --- a/readme_jp.md +++ b/readme_jp.md @@ -39,10 +39,10 @@ ## はじめに -* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books: -* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books: -* [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books: -* [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books: +- To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books: +- 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books: +- [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books: +- [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books: ## 質問 @@ -62,9 +62,9 @@ Nestは、MITライセンスのオープンソースプロジェクトです。 ## 連絡先 -* 著者 - [Kamil Myśliwiec](https://twitter.com/kammysliwiec) -* ウェブサイト - [https://nestjs.com](https://nestjs.com/) -* X - [@nestframework](https://twitter.com/nestframework) +- 著者 - [Kamil Myśliwiec](https://twitter.com/kammysliwiec) +- ウェブサイト - [https://nestjs.com](https://nestjs.com/) +- X - [@nestframework](https://twitter.com/nestframework) ## ライセンス diff --git a/readme_kr.md b/readme_kr.md index 5b5da7c5e93..f2bd07b82e8 100644 --- a/readme_kr.md +++ b/readme_kr.md @@ -35,10 +35,10 @@ Nest는 효율적이고 확장 가능한 - + diff --git a/sample/02-gateways/e2e/jest-e2e.json b/sample/02-gateways/e2e/jest-e2e.json index 72eb5c3c0a3..5be9543ccbb 100644 --- a/sample/02-gateways/e2e/jest-e2e.json +++ b/sample/02-gateways/e2e/jest-e2e.json @@ -1,14 +1,13 @@ { - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ], - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/e2e/.*\\.(e2e-test|e2e-spec).(ts|tsx|js)$", - "collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"], - "coverageReporters": ["json", "lcov"] -} \ No newline at end of file + "moduleFileExtensions": ["ts", "tsx", "js", "json"], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, + "testRegex": "/e2e/.*\\.(e2e-test|e2e-spec).(ts|tsx|js)$", + "collectCoverageFrom": [ + "src/**/*.{js,jsx,tsx,ts}", + "!**/node_modules/**", + "!**/vendor/**" + ], + "coverageReporters": ["json", "lcov"] +} diff --git a/sample/02-gateways/eslint.config.mjs b/sample/02-gateways/eslint.config.mjs index ba1c7112882..a86196e6956 100644 --- a/sample/02-gateways/eslint.config.mjs +++ b/sample/02-gateways/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/02-gateways/jest.json b/sample/02-gateways/jest.json index 591de12b6ec..6c004e4cac1 100644 --- a/sample/02-gateways/jest.json +++ b/sample/02-gateways/jest.json @@ -1,14 +1,13 @@ { - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ], - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", - "collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"], - "coverageReporters": ["json", "lcov"] -} \ No newline at end of file + "moduleFileExtensions": ["ts", "tsx", "js", "json"], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, + "testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", + "collectCoverageFrom": [ + "src/**/*.{js,jsx,tsx,ts}", + "!**/node_modules/**", + "!**/vendor/**" + ], + "coverageReporters": ["json", "lcov"] +} diff --git a/sample/03-microservices/eslint.config.mjs b/sample/03-microservices/eslint.config.mjs index ba1c7112882..a86196e6956 100644 --- a/sample/03-microservices/eslint.config.mjs +++ b/sample/03-microservices/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/04-grpc/eslint.config.mjs b/sample/04-grpc/eslint.config.mjs index ba1c7112882..a86196e6956 100644 --- a/sample/04-grpc/eslint.config.mjs +++ b/sample/04-grpc/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/05-sql-typeorm/README.md b/sample/05-sql-typeorm/README.md index 8d26795c7d0..3c8004eee16 100644 --- a/sample/05-sql-typeorm/README.md +++ b/sample/05-sql-typeorm/README.md @@ -2,12 +2,11 @@ ### Installation - `npm install` ### Running -This example requires docker or a local MySQL installation. If using a local MySQL database, see `app.module.ts` for credentials, and make sure there are matching credentials in the database and the source code. +This example requires docker or a local MySQL installation. If using a local MySQL database, see `app.module.ts` for credentials, and make sure there are matching credentials in the database and the source code. #### Docker @@ -24,4 +23,3 @@ After running the sample, you can stop the Docker container with Then, run Nest as usual: `npm run start` - diff --git a/sample/05-sql-typeorm/docker-compose.yml b/sample/05-sql-typeorm/docker-compose.yml index 5bdffb01c18..199ca54293c 100644 --- a/sample/05-sql-typeorm/docker-compose.yml +++ b/sample/05-sql-typeorm/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: mysql: @@ -8,7 +8,7 @@ services: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: test ports: - - "3306:3306" + - '3306:3306' db-test: image: mysql:9 restart: always @@ -16,4 +16,4 @@ services: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: test ports: - - "3307:3306" \ No newline at end of file + - '3307:3306' diff --git a/sample/05-sql-typeorm/eslint.config.mjs b/sample/05-sql-typeorm/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/05-sql-typeorm/eslint.config.mjs +++ b/sample/05-sql-typeorm/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/05-sql-typeorm/jest.json b/sample/05-sql-typeorm/jest.json index dc660f0f260..5744694563e 100644 --- a/sample/05-sql-typeorm/jest.json +++ b/sample/05-sql-typeorm/jest.json @@ -1,14 +1,13 @@ { - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ], - "transform": { - "^.+\\.tsx?$": "babel-jest" - }, - "testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", - "collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"], - "coverageReporters": ["json", "lcov"] - } \ No newline at end of file + "moduleFileExtensions": ["ts", "tsx", "js", "json"], + "transform": { + "^.+\\.tsx?$": "babel-jest" + }, + "testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", + "collectCoverageFrom": [ + "src/**/*.{js,jsx,tsx,ts}", + "!**/node_modules/**", + "!**/vendor/**" + ], + "coverageReporters": ["json", "lcov"] +} diff --git a/sample/05-sql-typeorm/tsconfig.json b/sample/05-sql-typeorm/tsconfig.json index 29bde718a4f..cb582116d27 100644 --- a/sample/05-sql-typeorm/tsconfig.json +++ b/sample/05-sql-typeorm/tsconfig.json @@ -13,5 +13,5 @@ "incremental": true, "skipLibCheck": true }, - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*", "test/**/*"] } diff --git a/sample/06-mongoose/README.md b/sample/06-mongoose/README.md index 2c1c385d348..9a45362cf28 100644 --- a/sample/06-mongoose/README.md +++ b/sample/06-mongoose/README.md @@ -2,12 +2,11 @@ ### Installation - `npm install` ### Running -This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code. +This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code. #### Docker @@ -24,4 +23,3 @@ After running the sample, you can stop the Docker container with Then, run Nest as usual: `npm run start` - diff --git a/sample/06-mongoose/docker-compose.yml b/sample/06-mongoose/docker-compose.yml index b81b2ca57d8..0d3ff7df8a5 100644 --- a/sample/06-mongoose/docker-compose.yml +++ b/sample/06-mongoose/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: mongodb: @@ -6,4 +6,4 @@ services: environment: - MONGODB_DATABASE="test" ports: - - 27017:27017 \ No newline at end of file + - 27017:27017 diff --git a/sample/06-mongoose/eslint.config.mjs b/sample/06-mongoose/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/06-mongoose/eslint.config.mjs +++ b/sample/06-mongoose/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/07-sequelize/README.md b/sample/07-sequelize/README.md index b693ae476b4..29a8e023f12 100644 --- a/sample/07-sequelize/README.md +++ b/sample/07-sequelize/README.md @@ -6,7 +6,7 @@ ### Running -This example requires docker or a local MySQL installation. If using a local MySQL database, see `app.module.ts` for credentials, and make sure there are matching credentials in the database and the source code. +This example requires docker or a local MySQL installation. If using a local MySQL database, see `app.module.ts` for credentials, and make sure there are matching credentials in the database and the source code. #### Docker @@ -23,4 +23,3 @@ After running the sample, you can stop the Docker container with Then, run Nest as usual: `npm run start` - diff --git a/sample/07-sequelize/docker-compose.yml b/sample/07-sequelize/docker-compose.yml index 0f5a153b638..23a44e18e1e 100644 --- a/sample/07-sequelize/docker-compose.yml +++ b/sample/07-sequelize/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: mysql: @@ -8,4 +8,4 @@ services: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: test ports: - - "3306:3306" + - '3306:3306' diff --git a/sample/07-sequelize/eslint.config.mjs b/sample/07-sequelize/eslint.config.mjs index b9dc3228945..a5ed8d06fbb 100644 --- a/sample/07-sequelize/eslint.config.mjs +++ b/sample/07-sequelize/eslint.config.mjs @@ -37,7 +37,7 @@ export default tseslint.config( '@typescript-eslint/no-unsafe-member-access': 'warn', '@typescript-eslint/require-await': 'warn', '@typescript-eslint/no-unused-vars': 'warn', - '@typescript-eslint/unbound-method': 'warn' + '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/08-webpack/eslint.config.mjs b/sample/08-webpack/eslint.config.mjs index ba1c7112882..a86196e6956 100644 --- a/sample/08-webpack/eslint.config.mjs +++ b/sample/08-webpack/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/08-webpack/webpack-hmr.config.js b/sample/08-webpack/webpack-hmr.config.js index 1547982b765..e5e6ff87975 100644 --- a/sample/08-webpack/webpack-hmr.config.js +++ b/sample/08-webpack/webpack-hmr.config.js @@ -1,6 +1,6 @@ const nodeExternals = require('webpack-node-externals'); -module.exports = function(options, webpack) { +module.exports = function (options, webpack) { return { ...options, entry: ['webpack/hot/poll?100', options.entry], diff --git a/sample/09-babel-example/jsconfig.json b/sample/09-babel-example/jsconfig.json index 9ac2315dd2b..32939be30ef 100644 --- a/sample/09-babel-example/jsconfig.json +++ b/sample/09-babel-example/jsconfig.json @@ -1,9 +1,7 @@ { "compilerOptions": { - "target": "ES6", - "experimentalDecorators": true + "target": "ES6", + "experimentalDecorators": true }, - "exclude": [ - "node_modules" - ] -} \ No newline at end of file + "exclude": ["node_modules"] +} diff --git a/sample/09-babel-example/src/cats/cats.service.js b/sample/09-babel-example/src/cats/cats.service.js index 4449739536e..12438a76266 100644 --- a/sample/09-babel-example/src/cats/cats.service.js +++ b/sample/09-babel-example/src/cats/cats.service.js @@ -13,4 +13,4 @@ export class CatsService { findAll() { return this.cats; } -} \ No newline at end of file +} diff --git a/sample/10-fastify/README.md b/sample/10-fastify/README.md index c54ca52f257..1accab53441 100644 --- a/sample/10-fastify/README.md +++ b/sample/10-fastify/README.md @@ -2,4 +2,4 @@ Note that if you are running the Nest app on a remote machine, you may need to change the listen address, as per [these instructions](https://docs.nestjs.com/techniques/performance#adapter): -`await app.listen(3000, '0.0.0.0')` \ No newline at end of file +`await app.listen(3000, '0.0.0.0')` diff --git a/sample/10-fastify/eslint.config.mjs b/sample/10-fastify/eslint.config.mjs index ba1c7112882..a86196e6956 100644 --- a/sample/10-fastify/eslint.config.mjs +++ b/sample/10-fastify/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/11-swagger/README.md b/sample/11-swagger/README.md index a0ab176b625..1e92ae7e874 100644 --- a/sample/11-swagger/README.md +++ b/sample/11-swagger/README.md @@ -8,4 +8,4 @@ Once the application is running you can visit [http://localhost:3000/api](http://localhost:3000/api) to see the Swagger interface. -See [here](https://docs.nestjs.com/recipes/swagger#bootstrap) for more information. \ No newline at end of file +See [here](https://docs.nestjs.com/recipes/swagger#bootstrap) for more information. diff --git a/sample/11-swagger/eslint.config.mjs b/sample/11-swagger/eslint.config.mjs index ba1c7112882..a86196e6956 100644 --- a/sample/11-swagger/eslint.config.mjs +++ b/sample/11-swagger/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/12-graphql-schema-first/README.md b/sample/12-graphql-schema-first/README.md index b01ab098c75..01a8c3827da 100644 --- a/sample/12-graphql-schema-first/README.md +++ b/sample/12-graphql-schema-first/README.md @@ -6,4 +6,4 @@ ### Graphql Playground -When the application is running, you can go to [http://localhost:3000/graphql](http://localhost:3000/graphql) to access the GraphQL Playground. See [here](https://docs.nestjs.com/graphql/quick-start#playground) for more. \ No newline at end of file +When the application is running, you can go to [http://localhost:3000/graphql](http://localhost:3000/graphql) to access the GraphQL Playground. See [here](https://docs.nestjs.com/graphql/quick-start#playground) for more. diff --git a/sample/12-graphql-schema-first/eslint.config.mjs b/sample/12-graphql-schema-first/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/12-graphql-schema-first/eslint.config.mjs +++ b/sample/12-graphql-schema-first/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/13-mongo-typeorm/README.md b/sample/13-mongo-typeorm/README.md index f9207ca338a..7493bd9107a 100644 --- a/sample/13-mongo-typeorm/README.md +++ b/sample/13-mongo-typeorm/README.md @@ -6,7 +6,7 @@ ### Running -This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code. +This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code. #### Docker diff --git a/sample/13-mongo-typeorm/docker-compose.yml b/sample/13-mongo-typeorm/docker-compose.yml index 9162eb9d0ef..5915977b453 100644 --- a/sample/13-mongo-typeorm/docker-compose.yml +++ b/sample/13-mongo-typeorm/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: mongodb: @@ -6,4 +6,4 @@ services: environment: - MONGODB_DATABASE="test" ports: - - 27017:27017 \ No newline at end of file + - 27017:27017 diff --git a/sample/13-mongo-typeorm/eslint.config.mjs b/sample/13-mongo-typeorm/eslint.config.mjs index 86bd271de77..f68c4423758 100644 --- a/sample/13-mongo-typeorm/eslint.config.mjs +++ b/sample/13-mongo-typeorm/eslint.config.mjs @@ -38,4 +38,4 @@ export default tseslint.config( '@typescript-eslint/no-unused-vars': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/14-mongoose-base/README.md b/sample/14-mongoose-base/README.md index 65289e5b2a7..b4cfe951fc1 100644 --- a/sample/14-mongoose-base/README.md +++ b/sample/14-mongoose-base/README.md @@ -2,12 +2,11 @@ ### Installation - `npm install` ### Running -This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code. +This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code. #### Docker @@ -23,4 +22,4 @@ After running the sample, you can stop the Docker container with Then, run Nest as usual: -`npm run start` \ No newline at end of file +`npm run start` diff --git a/sample/14-mongoose-base/docker-compose.yml b/sample/14-mongoose-base/docker-compose.yml index b81b2ca57d8..0d3ff7df8a5 100644 --- a/sample/14-mongoose-base/docker-compose.yml +++ b/sample/14-mongoose-base/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: mongodb: @@ -6,4 +6,4 @@ services: environment: - MONGODB_DATABASE="test" ports: - - 27017:27017 \ No newline at end of file + - 27017:27017 diff --git a/sample/14-mongoose-base/eslint.config.mjs b/sample/14-mongoose-base/eslint.config.mjs index 0c8a9ec0fc0..115479dad71 100644 --- a/sample/14-mongoose-base/eslint.config.mjs +++ b/sample/14-mongoose-base/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/require-await': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/15-mvc/eslint.config.mjs b/sample/15-mvc/eslint.config.mjs index 0c8a9ec0fc0..115479dad71 100644 --- a/sample/15-mvc/eslint.config.mjs +++ b/sample/15-mvc/eslint.config.mjs @@ -39,4 +39,4 @@ export default tseslint.config( '@typescript-eslint/require-await': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/15-mvc/views/index.hbs b/sample/15-mvc/views/index.hbs index 5c75994b4e9..e0b335d01de 100644 --- a/sample/15-mvc/views/index.hbs +++ b/sample/15-mvc/views/index.hbs @@ -1,13 +1,12 @@ - - - - App - + + + App + - - {{ message }} - + + {{message}} + \ No newline at end of file diff --git a/sample/16-gateways-ws/client/index.html b/sample/16-gateways-ws/client/index.html index 6ef5c8552af..2c9a8168e39 100644 --- a/sample/16-gateways-ws/client/index.html +++ b/sample/16-gateways-ws/client/index.html @@ -2,7 +2,7 @@ \ No newline at end of file + }; + diff --git a/sample/29-file-upload/README.md b/sample/29-file-upload/README.md index 431e3f8b94e..6235580beeb 100644 --- a/sample/29-file-upload/README.md +++ b/sample/29-file-upload/README.md @@ -8,4 +8,4 @@ A simple example of file upload npm run start # OR npm run start:dev # in another terminal curl http://localhost:3000/file -F 'file=@./package.json' -F 'name=test' -``` \ No newline at end of file +``` diff --git a/sample/29-file-upload/e2e/jest-e2e.json b/sample/29-file-upload/e2e/jest-e2e.json index 72eb5c3c0a3..5be9543ccbb 100644 --- a/sample/29-file-upload/e2e/jest-e2e.json +++ b/sample/29-file-upload/e2e/jest-e2e.json @@ -1,14 +1,13 @@ { - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ], - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/e2e/.*\\.(e2e-test|e2e-spec).(ts|tsx|js)$", - "collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"], - "coverageReporters": ["json", "lcov"] -} \ No newline at end of file + "moduleFileExtensions": ["ts", "tsx", "js", "json"], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, + "testRegex": "/e2e/.*\\.(e2e-test|e2e-spec).(ts|tsx|js)$", + "collectCoverageFrom": [ + "src/**/*.{js,jsx,tsx,ts}", + "!**/node_modules/**", + "!**/vendor/**" + ], + "coverageReporters": ["json", "lcov"] +} diff --git a/sample/29-file-upload/eslint.config.mjs b/sample/29-file-upload/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/29-file-upload/eslint.config.mjs +++ b/sample/29-file-upload/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/29-file-upload/jest.json b/sample/29-file-upload/jest.json index 591de12b6ec..6c004e4cac1 100644 --- a/sample/29-file-upload/jest.json +++ b/sample/29-file-upload/jest.json @@ -1,14 +1,13 @@ { - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ], - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", - "collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"], - "coverageReporters": ["json", "lcov"] -} \ No newline at end of file + "moduleFileExtensions": ["ts", "tsx", "js", "json"], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, + "testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", + "collectCoverageFrom": [ + "src/**/*.{js,jsx,tsx,ts}", + "!**/node_modules/**", + "!**/vendor/**" + ], + "coverageReporters": ["json", "lcov"] +} diff --git a/sample/30-event-emitter/.prettierrc b/sample/30-event-emitter/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/30-event-emitter/.prettierrc +++ b/sample/30-event-emitter/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/30-event-emitter/eslint.config.mjs b/sample/30-event-emitter/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/30-event-emitter/eslint.config.mjs +++ b/sample/30-event-emitter/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/30-event-emitter/tsconfig.json b/sample/30-event-emitter/tsconfig.json index 29bde718a4f..cb582116d27 100644 --- a/sample/30-event-emitter/tsconfig.json +++ b/sample/30-event-emitter/tsconfig.json @@ -13,5 +13,5 @@ "incremental": true, "skipLibCheck": true }, - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*", "test/**/*"] } diff --git a/sample/31-graphql-federation-code-first/gateway/.prettierrc b/sample/31-graphql-federation-code-first/gateway/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/31-graphql-federation-code-first/gateway/.prettierrc +++ b/sample/31-graphql-federation-code-first/gateway/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/31-graphql-federation-code-first/gateway/eslint.config.mjs b/sample/31-graphql-federation-code-first/gateway/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/31-graphql-federation-code-first/gateway/eslint.config.mjs +++ b/sample/31-graphql-federation-code-first/gateway/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/31-graphql-federation-code-first/posts-application/.prettierrc b/sample/31-graphql-federation-code-first/posts-application/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/31-graphql-federation-code-first/posts-application/.prettierrc +++ b/sample/31-graphql-federation-code-first/posts-application/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/31-graphql-federation-code-first/posts-application/eslint.config.mjs b/sample/31-graphql-federation-code-first/posts-application/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/31-graphql-federation-code-first/posts-application/eslint.config.mjs +++ b/sample/31-graphql-federation-code-first/posts-application/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/31-graphql-federation-code-first/users-application/.prettierrc b/sample/31-graphql-federation-code-first/users-application/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/31-graphql-federation-code-first/users-application/.prettierrc +++ b/sample/31-graphql-federation-code-first/users-application/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/31-graphql-federation-code-first/users-application/eslint.config.mjs b/sample/31-graphql-federation-code-first/users-application/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/31-graphql-federation-code-first/users-application/eslint.config.mjs +++ b/sample/31-graphql-federation-code-first/users-application/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/32-graphql-federation-schema-first/gateway/.prettierrc b/sample/32-graphql-federation-schema-first/gateway/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/32-graphql-federation-schema-first/gateway/.prettierrc +++ b/sample/32-graphql-federation-schema-first/gateway/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/32-graphql-federation-schema-first/gateway/eslint.config.mjs b/sample/32-graphql-federation-schema-first/gateway/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/32-graphql-federation-schema-first/gateway/eslint.config.mjs +++ b/sample/32-graphql-federation-schema-first/gateway/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/32-graphql-federation-schema-first/posts-application/.prettierrc b/sample/32-graphql-federation-schema-first/posts-application/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/32-graphql-federation-schema-first/posts-application/.prettierrc +++ b/sample/32-graphql-federation-schema-first/posts-application/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/32-graphql-federation-schema-first/posts-application/eslint.config.mjs b/sample/32-graphql-federation-schema-first/posts-application/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/32-graphql-federation-schema-first/posts-application/eslint.config.mjs +++ b/sample/32-graphql-federation-schema-first/posts-application/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/32-graphql-federation-schema-first/users-application/.prettierrc b/sample/32-graphql-federation-schema-first/users-application/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/32-graphql-federation-schema-first/users-application/.prettierrc +++ b/sample/32-graphql-federation-schema-first/users-application/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/32-graphql-federation-schema-first/users-application/eslint.config.mjs b/sample/32-graphql-federation-schema-first/users-application/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/32-graphql-federation-schema-first/users-application/eslint.config.mjs +++ b/sample/32-graphql-federation-schema-first/users-application/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/33-graphql-mercurius/eslint.config.mjs b/sample/33-graphql-mercurius/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/33-graphql-mercurius/eslint.config.mjs +++ b/sample/33-graphql-mercurius/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/33-graphql-mercurius/schema.gql b/sample/33-graphql-mercurius/schema.gql index bf7b8131ccc..39d79d620ac 100644 --- a/sample/33-graphql-mercurius/schema.gql +++ b/sample/33-graphql-mercurius/schema.gql @@ -2,7 +2,9 @@ # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) # ------------------------------------------------------ -"""recipe """ +""" +recipe +""" type Recipe { id: ID! title: String! @@ -11,7 +13,9 @@ type Recipe { ingredients: [String!]! } -"""Date custom scalar type""" +""" +Date custom scalar type +""" scalar Date type Query { @@ -32,4 +36,4 @@ input NewRecipeInput { type Subscription { recipeAdded: Recipe! -} \ No newline at end of file +} diff --git a/sample/34-using-esm-packages/.prettierrc b/sample/34-using-esm-packages/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/34-using-esm-packages/.prettierrc +++ b/sample/34-using-esm-packages/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/34-using-esm-packages/README.md b/sample/34-using-esm-packages/README.md index f7bab1901aa..c59e5278349 100644 --- a/sample/34-using-esm-packages/README.md +++ b/sample/34-using-esm-packages/README.md @@ -3,4 +3,4 @@ We are using the `--experimental-vm-modules` NodeJS v18 flag as explained at https://jestjs.io/docs/ecmascript-modules You can see how to mock an ESM package at [`app.controller.spec.ts`](./src/app.controller.spec.ts) -You can see how that the real import of an ESM package is working at [`app.e2e-spec.ts`](./test/app.e2e-spec.ts) \ No newline at end of file +You can see how that the real import of an ESM package is working at [`app.e2e-spec.ts`](./test/app.e2e-spec.ts) diff --git a/sample/34-using-esm-packages/eslint.config.mjs b/sample/34-using-esm-packages/eslint.config.mjs index 041d87639cf..2b2962fbc60 100644 --- a/sample/34-using-esm-packages/eslint.config.mjs +++ b/sample/34-using-esm-packages/eslint.config.mjs @@ -38,7 +38,7 @@ export default tseslint.config( '@typescript-eslint/require-await': 'warn', '@typescript-eslint/no-unused-vars': 'warn', '@typescript-eslint/unbound-method': 'warn', - '@typescript-eslint/no-implied-eval': 'warn' + '@typescript-eslint/no-implied-eval': 'warn', }, }, -); \ No newline at end of file +); diff --git a/sample/35-use-esm-package-after-node22/.prettierrc b/sample/35-use-esm-package-after-node22/.prettierrc index dcb72794f53..a20502b7f06 100644 --- a/sample/35-use-esm-package-after-node22/.prettierrc +++ b/sample/35-use-esm-package-after-node22/.prettierrc @@ -1,4 +1,4 @@ { "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/sample/35-use-esm-package-after-node22/README.md b/sample/35-use-esm-package-after-node22/README.md index e1f3b0cc045..f3e9f11afc7 100644 --- a/sample/35-use-esm-package-after-node22/README.md +++ b/sample/35-use-esm-package-after-node22/README.md @@ -6,4 +6,4 @@ Check out the `package.json` file. ## About automated tests with Jest -While Jest [does not supports](https://github.com/jestjs/jest/issues/15275) the `--experimental-require-module` flag, we cannot use Jest in this project! \ No newline at end of file +While Jest [does not supports](https://github.com/jestjs/jest/issues/15275) the `--experimental-require-module` flag, we cannot use Jest in this project! diff --git a/sample/35-use-esm-package-after-node22/eslint.config.mjs b/sample/35-use-esm-package-after-node22/eslint.config.mjs index e297312aefb..a5ed8d06fbb 100644 --- a/sample/35-use-esm-package-after-node22/eslint.config.mjs +++ b/sample/35-use-esm-package-after-node22/eslint.config.mjs @@ -40,4 +40,4 @@ export default tseslint.config( '@typescript-eslint/unbound-method': 'warn', }, }, -); \ No newline at end of file +); diff --git a/tools/gulp/tsconfig.json b/tools/gulp/tsconfig.json index 0432178305b..971302a0418 100644 --- a/tools/gulp/tsconfig.json +++ b/tools/gulp/tsconfig.json @@ -12,13 +12,9 @@ "noEmitOnError": true, "noImplicitAny": false, "target": "ES2021", - "types": [ - "node" - ], + "types": ["node"], "typeRoots": ["./typings", "../../node_modules/@types/"], - "baseUrl": ".", + "baseUrl": "." }, - "files": [ - "gulpfile.ts" - ] + "files": ["gulpfile.ts"] } diff --git a/tsconfig.json b/tsconfig.json index b9e2adb889f..1dceca49cc1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -34,7 +34,7 @@ "@nestjs/platform-fastify": ["./packages/platform-fastify"], "@nestjs/platform-fastify/*": ["./packages/platform-fastify/*"], "@nestjs/platform-socket.io": ["./packages/platform-socket.io"], - "@nestjs/platform-socket.io/*": ["./packages/platform-socket.io/*"], + "@nestjs/platform-socket.io/*": ["./packages/platform-socket.io/*"] } }, "include": ["packages/**/*", "integration/**/*"], diff --git a/tsconfig.spec.json b/tsconfig.spec.json index 204fc267bb6..858b661cc2d 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -1,5 +1,9 @@ { "extends": "./tsconfig.json", - "include": ["integration/**/*", "integration/**/*.spec.ts", "packages/**/*.spec.ts"], + "include": [ + "integration/**/*", + "integration/**/*.spec.ts", + "packages/**/*.spec.ts" + ], "exclude": ["node_modules", "dist"] -} \ No newline at end of file +}