@envelop/rate-limiter 4.0.4 → 4.0.5-alpha-20230210133654-2a9ff5de

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -15,7 +15,7 @@ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
15
15
  import { envelop, useEngine } from '@envelop/core'
16
16
  import { useRateLimiter, IdentifyFn } from '@envelop/rate-limiter'
17
17
 
18
- const identifyFn: IdentifyFn = async context => {
18
+ const identifyFn: IdentifyFn = context => {
19
19
  return context.request.ip
20
20
  }
21
21
 
@@ -61,4 +61,4 @@ type Query {
61
61
 
62
62
  ## Notes
63
63
 
64
- You can find more details here: hhttps://github.com/teamplanes/graphql-rate-limit#readme
64
+ You can find more details here: https://github.com/teamplanes/graphql-rate-limit#readme
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@envelop/rate-limiter",
3
- "version": "4.0.4",
3
+ "version": "4.0.5-alpha-20230210133654-2a9ff5de",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^3.0.4",
6
+ "@envelop/core": "3.0.5-alpha-20230210133654-2a9ff5de",
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@envelop/on-resolve": "^2.0.4",
10
+ "@envelop/on-resolve": "2.0.5-alpha-20230210133654-2a9ff5de",
11
11
  "graphql-rate-limit": "3.3.0",
12
12
  "tslib": "^2.4.0"
13
13
  },