@eduzz/miau-client 1.0.1 → 1.0.2

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.0.1 build:types /home/runner/work/eduzz-miau/eduzz-miau/packages/client
2
+ > @eduzz/miau-client@1.0.2 build:types /home/runner/work/eduzz-miau/eduzz-miau/packages/client
3
3
  > tsc --emitDeclarationOnly --outDir dist
4
4
 
package/dist/index.js CHANGED
@@ -11914,7 +11914,7 @@ var miauMiddleware = (miauClient, requestAugmentation, fallbackMiddleware) => {
11914
11914
  }
11915
11915
  const resources = permission?.resources || [];
11916
11916
  const isAllowed = resources.some((resource) => {
11917
- return resource.method.toLowerCase() === req.method.toLowerCase() && wildcardToRegex(resource.path).test(req.path.toLowerCase());
11917
+ return resource.method.toLowerCase() === req.method.toLowerCase() && wildcardToRegex(resource.path.toLowerCase()).test(req.path.toLowerCase());
11918
11918
  });
11919
11919
  if (!isAllowed) {
11920
11920
  throw new HttpError(403, "Forbidden", `You do not have permission to access ${req.method} ${req.path}`);