@instantdb/core
Advanced tools
Comparing version 0.12.4 to 0.12.5
@@ -353,3 +353,8 @@ "use strict"; | ||
for (const [k, v] of Object.entries(pageInfo)) { | ||
res[k] = { startCursor: v["start-cursor"], endCursor: v["end-cursor"] }; | ||
res[k] = { | ||
startCursor: v["start-cursor"], | ||
endCursor: v["end-cursor"], | ||
hasNextPage: v["has-next-page?"], | ||
hasPreviousPage: v["has-previous-page?"], | ||
}; | ||
} | ||
@@ -356,0 +361,0 @@ return res; |
@@ -350,3 +350,8 @@ import { query as datalogQuery } from "./datalog"; | ||
for (const [k, v] of Object.entries(pageInfo)) { | ||
res[k] = { startCursor: v["start-cursor"], endCursor: v["end-cursor"] }; | ||
res[k] = { | ||
startCursor: v["start-cursor"], | ||
endCursor: v["end-cursor"], | ||
hasNextPage: v["has-next-page?"], | ||
hasPreviousPage: v["has-previous-page?"], | ||
}; | ||
} | ||
@@ -353,0 +358,0 @@ return res; |
@@ -68,2 +68,4 @@ type NonEmpty<T> = { | ||
endCursor: Cursor; | ||
hasNextPage: boolean; | ||
hasPreviousPage: boolean; | ||
}; | ||
@@ -70,0 +72,0 @@ }; |
@@ -68,2 +68,4 @@ type NonEmpty<T> = { | ||
endCursor: Cursor; | ||
hasNextPage: boolean; | ||
hasPreviousPage: boolean; | ||
}; | ||
@@ -70,0 +72,0 @@ }; |
{ | ||
"name": "@instantdb/core", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"description": "Instant's core local abstraction", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -458,3 +458,8 @@ import { query as datalogQuery } from "./datalog"; | ||
for (const [k, v] of Object.entries(pageInfo)) { | ||
res[k] = { startCursor: v["start-cursor"], endCursor: v["end-cursor"] }; | ||
res[k] = { | ||
startCursor: v["start-cursor"], | ||
endCursor: v["end-cursor"], | ||
hasNextPage: v["has-next-page?"], | ||
hasPreviousPage: v["has-previous-page?"], | ||
}; | ||
} | ||
@@ -461,0 +466,0 @@ return res; |
@@ -29,3 +29,3 @@ // Query | ||
/** | ||
* A tuple representing a cursor. | ||
* A tuple representing a cursor. | ||
* These should not be constructed manually. The current format | ||
@@ -90,3 +90,8 @@ * is an implementation detail that may change in the future. | ||
type PageInfoResponse<T> = { | ||
[K in keyof T]: { startCursor: Cursor; endCursor: Cursor }; | ||
[K in keyof T]: { | ||
startCursor: Cursor; | ||
endCursor: Cursor; | ||
hasNextPage: boolean; | ||
hasPreviousPage: boolean; | ||
}; | ||
}; | ||
@@ -93,0 +98,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1616356
33953