@lark-apaas/fullstack-cli 1.1.40-alpha.7 → 1.1.40-alpha.8
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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3242,10 +3242,10 @@ function isInPercentage(tenantId, percentage) {
|
|
|
3242
3242
|
function matchRule(rule, identity) {
|
|
3243
3243
|
switch (rule.type) {
|
|
3244
3244
|
case "tenant_id": {
|
|
3245
|
-
return !!identity.tenantId && rule.values.includes(identity.tenantId);
|
|
3245
|
+
return !!identity.tenantId && !!rule.values && rule.values.includes(identity.tenantId);
|
|
3246
3246
|
}
|
|
3247
3247
|
case "app_id": {
|
|
3248
|
-
return !!identity.appId && rule.values.includes(identity.appId);
|
|
3248
|
+
return !!identity.appId && !!rule.values && rule.values.includes(identity.appId);
|
|
3249
3249
|
}
|
|
3250
3250
|
case "canary": {
|
|
3251
3251
|
return identity.xTtEnv === rule.value;
|