Skip to content

Commit b01152b

Browse files
authored
feat: extension hooks typed with transport (#1048)
1 parent 17c5ab7 commit b01152b

File tree

76 files changed

+816
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+816
-374
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default tsEslint.config({
99
'**/generated/**/*',
1010
'**/$generated-clients/**/*',
1111
'**/website/**/*',
12+
'**/website/.vitepress/**/*',
1213
],
1314
extends: configPrisma,
1415
languageOptions: {

examples/$helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export const show = (value: unknown) => {
99
}
1010

1111
export const showJson = (value: unknown) => {
12-
console.log(JSON.stringify(value))
12+
console.log(JSON.stringify(value, null, 2))
1313
}

examples/config-fetch.output.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/config-fetch.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/config-http-headers.output.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/config-http-headers.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"name": "Canada",
4+
"continent": {
5+
"name": "North America"
6+
}
7+
},
8+
{
9+
"name": "Germany",
10+
"continent": {
11+
"name": "Europe"
12+
}
13+
},
14+
{
15+
"name": "Japan",
16+
"continent": {
17+
"name": "Asia"
18+
}
19+
}
20+
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
import { SocialStudies } from './$generated-clients/SocialStudies/__.js'
3-
import { show } from './$helpers.js'
3+
import { showJson } from './$helpers.js'
44

55
const socialStudies = SocialStudies.create()
66

@@ -10,4 +10,4 @@ const countries = await socialStudies.query.countries({
1010
continent: { name: true },
1111
})
1212

13-
show(countries)
13+
showJson(countries)

examples/raw.output.node-20.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
countries: [
3+
{ name: 'Canada', continent: { name: 'North America' } },
4+
{ name: 'Germany', continent: { name: 'Europe' } },
5+
{ name: 'Japan', continent: { name: 'Asia' } }
6+
]
7+
}

examples/raw.output.node-22.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
countries: [
3+
{ name: 'Canada', continent: { name: 'North America' } },
4+
{ name: 'Germany', continent: { name: 'Europe' } },
5+
{ name: 'Japan', continent: { name: 'Asia' } }
6+
]
7+
}

0 commit comments

Comments
 (0)