@daocloud-proto/skoala 0.26.2-20 → 0.26.2-22

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.
@@ -279,7 +279,7 @@ type BaseMatchRule = {
279
279
  }
280
280
 
281
281
  export type MatchRule = BaseMatchRule
282
- & OneOf<{ path: string; prefix: string }>
282
+ & OneOf<{ path: string; prefix: string; regex: string }>
283
283
 
284
284
  export type RouteAction = {
285
285
  routeService?: RouteService[]
@@ -295,7 +295,7 @@ export type GatewayConfig = {
295
295
 
296
296
  export type PluginConfig = {
297
297
  globalRatelimitConfig?: GlobalRatelimitConfig
298
- golbalAuthConfig?: GlobalAuthConfig
298
+ globalAuthConfig?: GlobalAuthConfig
299
299
  }
300
300
 
301
301
  export type GlobalRatelimitConfig = {
@@ -115,7 +115,7 @@ type BaseHeaderRule = {
115
115
  }
116
116
 
117
117
  export type HeaderRule = BaseHeaderRule
118
- & OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
118
+ & OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean; regex: string }>
119
119
 
120
120
  export type APIStatus = {
121
121
  currentStatus?: APIStatusEnum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.26.2-20",
3
+ "version": "0.26.2-22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {