@zuplo/lint-linux-arm64 7.12.3 → 7.12.4
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/bin/schemas/policy-options.schema.json +91 -0
- package/bin/version.txt +1 -1
- package/bin/zuplo-lint +0 -0
- package/package.json +1 -1
|
@@ -3025,6 +3025,97 @@
|
|
|
3025
3025
|
}
|
|
3026
3026
|
}
|
|
3027
3027
|
},
|
|
3028
|
+
{
|
|
3029
|
+
"if": {
|
|
3030
|
+
"properties": {
|
|
3031
|
+
"policyType": {
|
|
3032
|
+
"const": "concurrency-limit-inbound"
|
|
3033
|
+
}
|
|
3034
|
+
},
|
|
3035
|
+
"required": ["policyType"]
|
|
3036
|
+
},
|
|
3037
|
+
"then": {
|
|
3038
|
+
"properties": {
|
|
3039
|
+
"handler": {
|
|
3040
|
+
"properties": {
|
|
3041
|
+
"options": {
|
|
3042
|
+
"type": "object",
|
|
3043
|
+
"additionalProperties": false,
|
|
3044
|
+
"required": ["rateLimitBy", "requestsAllowed"],
|
|
3045
|
+
"properties": {
|
|
3046
|
+
"rateLimitBy": {
|
|
3047
|
+
"type": "string",
|
|
3048
|
+
"default": "user",
|
|
3049
|
+
"title": "ConcurrencyLimitBy",
|
|
3050
|
+
"enum": ["user", "ip", "function", "all"],
|
|
3051
|
+
"description": "The identifying element of the request that enforces distinct rate limits. For example, you can limit by `user`, `ip`, `function` or `all` - function allows you to specify a simple function to create a string identifier to create a rate-limit group."
|
|
3052
|
+
},
|
|
3053
|
+
"requestsAllowed": {
|
|
3054
|
+
"type": "integer",
|
|
3055
|
+
"default": 3,
|
|
3056
|
+
"description": "Maximum active request leases in this bucket.",
|
|
3057
|
+
"minimum": 1,
|
|
3058
|
+
"maximum": 10000
|
|
3059
|
+
},
|
|
3060
|
+
"identifier": {
|
|
3061
|
+
"type": "object",
|
|
3062
|
+
"additionalProperties": false,
|
|
3063
|
+
"x-advanced": true,
|
|
3064
|
+
"description": "The function that returns dynamic configuration data. Used only with `rateLimitBy=function`.",
|
|
3065
|
+
"required": ["export", "module"],
|
|
3066
|
+
"properties": {
|
|
3067
|
+
"export": {
|
|
3068
|
+
"type": "string",
|
|
3069
|
+
"default": "default",
|
|
3070
|
+
"description": "used only with rateLimitBy=function. Specifies the export to load your custom bucket function, e.g. `default`, `rateLimitIdentifier`.",
|
|
3071
|
+
"examples": ["default"]
|
|
3072
|
+
},
|
|
3073
|
+
"module": {
|
|
3074
|
+
"type": "string",
|
|
3075
|
+
"default": "$import(./modules/concurrency)",
|
|
3076
|
+
"description": "Specifies the module to load your custom bucket function, in the format `$import(./modules/my-module)`.",
|
|
3077
|
+
"examples": ["$import(./modules/concurrency)"]
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3081
|
+
"headerMode": {
|
|
3082
|
+
"type": "string",
|
|
3083
|
+
"default": "retry-after",
|
|
3084
|
+
"title": "ConcurrencyLimitHeaderMode",
|
|
3085
|
+
"enum": ["none", "retry-after"],
|
|
3086
|
+
"x-advanced": true,
|
|
3087
|
+
"description": "Adds the retry-after header."
|
|
3088
|
+
},
|
|
3089
|
+
"throwOnFailure": {
|
|
3090
|
+
"type": "boolean",
|
|
3091
|
+
"default": false,
|
|
3092
|
+
"x-advanced": true,
|
|
3093
|
+
"description": "If true, the policy will throw an error in the event there is a problem connecting to the rate limit service."
|
|
3094
|
+
},
|
|
3095
|
+
"leaseSeconds": {
|
|
3096
|
+
"type": "integer",
|
|
3097
|
+
"minimum": 10,
|
|
3098
|
+
"maximum": 300,
|
|
3099
|
+
"default": 60,
|
|
3100
|
+
"description": "Fixed lease duration. Expiry frees capacity without terminating the request. Five minutes caps shared storage retention."
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
"if": {
|
|
3104
|
+
"properties": {
|
|
3105
|
+
"rateLimitBy": {
|
|
3106
|
+
"const": "function"
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
},
|
|
3110
|
+
"then": {
|
|
3111
|
+
"required": ["identifier"]
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
},
|
|
3028
3119
|
{
|
|
3029
3120
|
"if": {
|
|
3030
3121
|
"properties": {
|
package/bin/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.12.
|
|
1
|
+
7.12.4
|
package/bin/zuplo-lint
CHANGED
|
Binary file
|
package/package.json
CHANGED