@eduzz/miau-client 1.0.3 → 1.0.4
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/functions.test.ts +2 -2
- package/src/functions.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -11888,7 +11888,7 @@ var isResourceAllowed = (resource, resources, permittedResources) => {
|
|
|
11888
11888
|
});
|
|
11889
11889
|
}
|
|
11890
11890
|
return permittedResources.some((permission) => {
|
|
11891
|
-
const permissionRegex = wildcardToRegex(permission.path);
|
|
11891
|
+
const permissionRegex = wildcardToRegex(permission.path.toLocaleLowerCase());
|
|
11892
11892
|
return permission.method.toLowerCase() === resource.method.toLowerCase() && permissionRegex.test(resource.path.toLowerCase());
|
|
11893
11893
|
});
|
|
11894
11894
|
};
|