Skip to content

Commit 7bc9d8e

Browse files
committed
updated package name, entry point
1 parent bd73644 commit 7bc9d8e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
Install the package
2727

2828
```
29-
npm i graphqlgate
29+
npm i graphql-limiter
3030
```
3131

3232
Import the package and add the rate-limiting middlleware to the Express middleware chain before the GraphQL server.
@@ -35,7 +35,7 @@ NOTE: a Redis server instance will need to be started in order for the limiter t
3535

3636
```javascript
3737
// import package
38-
import expressGraphQLRateLimiter from 'graphqlgate';
38+
import expressGraphQLRateLimiter from 'graphql-limiter';
3939

4040
/**
4141
* Import other dependencies

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "graphqlgate",
2+
"name": "graphql-limiter",
33
"version": "1.0.0",
44
"description": "A GraphQL rate limiting library using query complexity analysis.",
5-
"main": "index.js",
5+
"main": "src/middleware/index.ts",
66
"type": "module",
77
"files": ["src"],
88
"scripts": {

0 commit comments

Comments
 (0)