@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.
- package/.turbo/turbo-build$colon$types.log +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/middleware.ts +1 -1
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}`);
|