diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 07b59d1..80e22c7 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -16,7 +16,7 @@ body: attributes: value: | ## Ask for help through appropriate channels - If you feel unsure about the cause of the problem, consider asking for help on for example [StackOverflow](https://stackoverflow.com/questions/ask) or our [Discord](https://discord.gg/mZyBkA936X) before posting a bug report. The issue tracker is not a help forum. + If you feel unsure about the cause of the problem, consider asking for help on for example [StackOverflow](https://stackoverflow.com/questions/ask) or our [Discord](https://discord.gg/JdEbBAKw6X) before posting a bug report. The issue tracker is not a help forum. - type: markdown attributes: value: | diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml index f93f1fb..2acd841 100644 --- a/.github/ISSUE_TEMPLATE/question.yml +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -13,7 +13,7 @@ body: For anything else, such as questions or getting help, please see: - [The Athenna help page](https://athenna.io/help) - - [Our `#help` channel in Discord](https://discord.gg/j6FKKQQrW9) + - [Our `#help` channel in Discord](https://discord.gg/JdEbBAKw6X) - The [AthennaIO](https://stackoverflow.com/questions/tagged/AthennaIO) tag on [StackOverflow](https://stackoverflow.com/questions/ask) - type: checkboxes id: no-post diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index 4ffe318..45f9168 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -1,3 +1,3 @@ -Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/athennaio) or [Discord channel](https://discord.gg/mZyBkA936X) for questions. +Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/athennaio) or [Discord channel](https://discord.gg/JdEbBAKw6X) for questions. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0da1045..c7909fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: run: npm link @athenna/common - name: Run tests - run: npm run test:coverage + run: npm run test - name: Test code compilation run: npm run build diff --git a/package-lock.json b/package-lock.json index 620bbbf..dc1f5a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/common", - "version": "4.17.0", + "version": "4.17.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@athenna/common", - "version": "4.17.0", + "version": "4.17.1", "license": "MIT", "dependencies": { "@fastify/formbody": "^7.4.0", diff --git a/package.json b/package.json index 5cb0fbf..7528e5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/common", - "version": "4.17.0", + "version": "4.17.1", "description": "The Athenna common helpers to use in any Node.js ESM project.", "license": "MIT", "author": "João Lenon ", diff --git a/src/helpers/Module.ts b/src/helpers/Module.ts index df0806c..2796996 100644 --- a/src/helpers/Module.ts +++ b/src/helpers/Module.ts @@ -207,8 +207,17 @@ export class Module { queries ) - // `await` is not needed for `import.meta.resolve` method, but TypeScript complains on it. - return Module.get(import(await import.meta.resolve(path, meta))) + // `await` is not needed for `import.meta.resolve` method, + // but TypeScript complains on it. + let resolvedPath = await import.meta.resolve(path, meta) + + debug('resolved path: %s', resolvedPath) + + if (queries) { + resolvedPath = resolvedPath.concat('?', queries) + } + + return Module.get(import(resolvedPath)) } /**