picked 0.0.120-next.4 → 0.0.120
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.
|
@@ -115,10 +115,8 @@ directive @cache(policy: String!) on FIELD_DEFINITION
|
|
|
115
115
|
|
|
116
116
|
```graphql
|
|
117
117
|
"""
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
several; it resolves only when every check is within its limit. A check that fails or times out, or
|
|
121
|
-
names a rule the firewall does not define, counts as within the limit.
|
|
118
|
+
Refuses the field with `RATE_LIMITED` once the caller is past the limit of the rate-limit rule
|
|
119
|
+
named `rule`. A field may carry several; it resolves only when the caller is within every limit.
|
|
122
120
|
"""
|
|
123
121
|
directive @rateLimit(rule: String!, key: RateLimitKey!) repeatable on FIELD_DEFINITION
|
|
124
122
|
```
|
|
@@ -128,16 +126,11 @@ directive @rateLimit(rule: String!, key: RateLimitKey!) repeatable on FIELD_DEFI
|
|
|
128
126
|
```graphql
|
|
129
127
|
"""The bucket a `@rateLimit` check counts against."""
|
|
130
128
|
enum RateLimitKey {
|
|
131
|
-
"""The client IP address.
|
|
129
|
+
"""The client IP address."""
|
|
132
130
|
IP
|
|
133
|
-
"""
|
|
134
|
-
A SHA-256 of the trimmed, lower-cased `input.email` argument. A request whose input names no
|
|
135
|
-
email skips the check.
|
|
136
|
-
"""
|
|
131
|
+
"""The input email address."""
|
|
137
132
|
EMAIL
|
|
138
|
-
"""
|
|
139
|
-
The signed-in user's ID. A request without a signed-in user skips the check.
|
|
140
|
-
"""
|
|
133
|
+
"""The signed-in user."""
|
|
141
134
|
USER
|
|
142
135
|
}
|
|
143
136
|
```
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picked",
|
|
3
3
|
"description": "The Picked SDK front door: the client, the picked.config helpers, and the picked CLI in one install",
|
|
4
|
-
"version": "0.0.120
|
|
4
|
+
"version": "0.0.120",
|
|
5
5
|
"bin": {
|
|
6
6
|
"picked": "dist/esm/bin.js"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@picked/cli": "0.0.120
|
|
10
|
-
"@picked/config": "0.0.120
|
|
9
|
+
"@picked/cli": "0.0.120",
|
|
10
|
+
"@picked/config": "0.0.120"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@picked/client": "workspace:*",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"main": "./dist/cjs/index.js",
|
|
75
75
|
"module": "./dist/esm/index.js",
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@picked/client": "0.0.120
|
|
77
|
+
"@picked/client": "0.0.120"
|
|
78
78
|
},
|
|
79
79
|
"private": false,
|
|
80
80
|
"publishConfig": {
|