Skip to content

Commit 9906f3e

Browse files
committed
feat(utils): add rule func & field json files & useRuleFunc hook
1 parent 77c1465 commit 9906f3e

File tree

7 files changed

+1496
-1
lines changed

7 files changed

+1496
-1
lines changed

packages/utils/lib/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ export * from './download'
55
export * from './useBatchSettings'
66
export * from './useLocale'
77
export * from './useStreamingAuth'
8+
export * from './rule/useRuleFunc'
9+
export { default as RuleFunc } from './rule/ruleFunc.json'
10+
export { default as RuleField } from './rule/ruleField.json'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[
2+
"connection_accepted",
3+
"unacceptable_protocol_version",
4+
"client_identifier_not_valid",
5+
"server_unavaliable",
6+
"malformed_username_or_password",
7+
"unauthorized_client",
8+
"success",
9+
"unspecified_error",
10+
"malformed_packet",
11+
"protocol_error",
12+
"implementation_specific_error",
13+
"unsupported_protocol_version",
14+
"bad_username_or_password",
15+
"not_authorized",
16+
"server_unavailable",
17+
"server_busy",
18+
"banned",
19+
"bad_authentication_method",
20+
"topic_name_invalid",
21+
"packet_too_large",
22+
"quota_exceeded",
23+
"retain_not_supported",
24+
"qos_not_supported",
25+
"use_another_server",
26+
"server_moved",
27+
"connection_rate_exceeded",
28+
"is_cache"
29+
]

0 commit comments

Comments
 (0)