Skip to content

Commit a00bd82

Browse files
fix: inverted
1 parent 0cb27f0 commit a00bd82

File tree

6 files changed

+1538
-1151
lines changed

6 files changed

+1538
-1151
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Simple relay cursor paging for graphql
1717
pnpm add ts-relay-cursor-paging
1818
```
1919

20-
2120
## Demo
2221

2322
Open graphql playground in your browser port 4000/graphql
@@ -154,7 +153,7 @@ export const schema = createSchema({
154153
libraries: async (_parent, _args, _context, _info) => {
155154
const generator = datasLine()
156155

157-
async function resolveData({ offset, limit }: { offset: number; limit: number }) {
156+
async function resolveData({ offset, limit }: { offset: number, limit: number }) {
158157
const slicedData = generator.slice(offset, offset + limit)
159158
return slicedData
160159
}
@@ -206,7 +205,6 @@ Codes in this build are inspired by [pothos](https://github.com/hayes/pothos) an
206205
</a>
207206
</p>
208207

209-
210208
## License
211209

212-
MIT License © 2022-PRESENT [productdevbook](https://github.com/productdevbook)
210+
MIT License © 2022-PRESENT [productdevbook](https://github.com/productdevbook)

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@
5454
"graphql": "^16.8.0"
5555
},
5656
"devDependencies": {
57-
"@antfu/eslint-config": "^1.1.0",
58-
"@vitest/coverage-v8": "^0.34.6",
59-
"bumpp": "^9.2.0",
60-
"eslint": "^8.53.0",
57+
"@antfu/eslint-config": "^2.6.4",
58+
"@types/node": "^20.11.24",
59+
"@vitest/coverage-v8": "^1.3.1",
60+
"bumpp": "^9.3.0",
61+
"eslint": "^8.57.0",
6162
"graphql": "^16.8.1",
62-
"tsup": "^7.2.0",
63-
"typescript": "^5.2.2",
64-
"vite": "^4.5.0",
65-
"vitest": "^0.34.6"
63+
"tsup": "^8.0.2",
64+
"typescript": "^5.3.3",
65+
"vite": "^5.1.4",
66+
"vitest": "^1.3.1"
6667
},
6768
"publishConfig": {
6869
"access": "public"

playground/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const schema = createSchema({
5656
libraries: async (_parent, _args, _context, _info) => {
5757
const generator = datasLine()
5858

59+
// eslint-disable-next-line style/member-delimiter-style
5960
async function resolveData({ offset, limit }: { offset: number; limit: number }) {
6061
const slicedData = generator.slice(offset, offset + limit)
6162
return slicedData

0 commit comments

Comments
 (0)