@mesh-tech/mesh-cli 0.24.0 → 0.24.1
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/dist/bin/mesh.js
CHANGED
|
@@ -11048,7 +11048,7 @@ function docsAudienceUngrantable(text, decl, args, docs, httpText) {
|
|
|
11048
11048
|
if (identities.length === 0) return findings;
|
|
11049
11049
|
const docsAuth = objectLiteralOf(docs.get("auth"), text);
|
|
11050
11050
|
const clientExpr = (docsAuth ? topLevelProperties(docsAuth).get("clientId") : void 0) ?? (httpText ? topLevelProperties(objectLiteralOf(topLevelProperties(httpText).get("auth"), text) ?? "{}").get("clientId") : void 0);
|
|
11051
|
-
const clientRoot = clientExpr ? /^([A-Za-z_$][\w$]*)\.applications\./.exec(clientExpr.trim())?.[1] : void 0;
|
|
11051
|
+
const clientRoot = clientExpr ? /^([A-Za-z_$][\w$]*)\.(?:clientIds|applications)\./.exec(clientExpr.trim())?.[1] : void 0;
|
|
11052
11052
|
const identity = (clientRoot ? identities.find((id) => id.binding === clientRoot) : void 0) ?? (identities.length === 1 ? identities[0] : void 0);
|
|
11053
11053
|
if (!identity) return findings;
|
|
11054
11054
|
const rolesText = identity.options.get("roles");
|