@eduzz/miau-client 1.4.5 → 1.4.6-rc.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
 
2
- > @eduzz/miau-client@1.4.5 build:types /home/runner/work/eduzz-miau/eduzz-miau/clients/node-client
2
+ > @eduzz/miau-client@1.4.6 build:types /home/runner/work/eduzz-miau/eduzz-miau/clients/node-client
3
3
  > tsc --emitDeclarationOnly --outDir dist
4
4
 
package/dist/index.js CHANGED
@@ -43366,7 +43366,8 @@ var miauMiddleware = (miauClient, requestAugmentation, fallbackMiddleware) => {
43366
43366
  return async (req, res, next) => {
43367
43367
  try {
43368
43368
  const token = req.headers.authorization?.split(" ").pop() ?? "";
43369
- const [miauApplication, miauMetadata] = await auth(token, req.method, req.path, miauClient);
43369
+ const fullPath = (req.baseUrl + req.path).replace(/\/+$/, "") || "/";
43370
+ const [miauApplication, miauMetadata] = await auth(token, req.method, fullPath, miauClient);
43370
43371
  req.miauApplication = miauApplication;
43371
43372
  req.miauMetadata = miauMetadata;
43372
43373
  if (requestAugmentation) {