@lark-apaas/fullstack-cli 1.1.40-alpha.6 → 1.1.40-alpha.7
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 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3261,13 +3261,8 @@ function matchRule(rule, identity) {
|
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
3263
|
function isBlocked(channel, identity) {
|
|
3264
|
-
if (
|
|
3265
|
-
|
|
3266
|
-
}
|
|
3267
|
-
if (identity.appId && channel.blocklist?.app_ids?.includes(identity.appId)) {
|
|
3268
|
-
return true;
|
|
3269
|
-
}
|
|
3270
|
-
return false;
|
|
3264
|
+
if (!channel.block_rules || channel.block_rules.length === 0) return false;
|
|
3265
|
+
return channel.block_rules.some((rule) => matchRule(rule, identity));
|
|
3271
3266
|
}
|
|
3272
3267
|
function matchChannel(channel, identity) {
|
|
3273
3268
|
if (isBlocked(channel, identity)) return false;
|