Skip to content

Commit

Permalink
chore(docs): fix website build
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Sep 16, 2024
1 parent cb7cf1f commit 3fdbea6
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 74 deletions.
1 change: 1 addition & 0 deletions examples/20_output/output_preset__standard-graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Graffle, Preset } from '../../src/entrypoints/main.js'
import { show } from '../$/show.js'

const graffle = Graffle.create({
schema: `...`,
output: Preset.traditionalGraphqlOutput,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
headers: Headers {
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8',
'content-type': 'application/json',
'x-sent-at-time': '1726460908915'
'x-sent-at-time': '1726461294313'
},
signal: undefined,
method: 'post',
Expand Down
10 changes: 5 additions & 5 deletions examples/__outputs__/20_output/output_envelope.output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
headers: Headers {
connection: 'keep-alive',
'content-length': '119',
'x-served-by': 'cache-yul1970049-YUL',
'x-served-by': 'cache-yul1970022-YUL',
'accept-ranges': 'bytes',
date: 'Sun, 08 Sep 2024 18:13:26 GMT',
'content-type': 'application/graphql-response+json; charset=utf-8',
Expand All @@ -32,13 +32,13 @@
'alt-svc': 'h3=":443"; ma=86400',
'access-control-allow-origin': '*',
'x-powered-by': 'Stellate',
age: '641704',
age: '642089',
'cache-control': 'public, s-maxage=2628000, stale-while-revalidate=2628000',
'x-cache': 'HIT',
'x-cache-hits': '72',
'x-cache-hits': '80',
'gcdn-cache': 'HIT',
'stellate-rate-limit-budget-remaining': '49',
'stellate-rate-limit-rules': '"IP limit";type="RequestCount";budget=50;limited=?0;remaining=49;refill=60',
'stellate-rate-limit-budget-remaining': '47',
'stellate-rate-limit-rules': '"IP limit";type="RequestCount";budget=50;limited=?0;remaining=47;refill=60',
'stellate-rate-limit-decision': 'pass',
'stellate-rate-limit-budget-required': '5',
'content-encoding': 'br'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ContextualError: There was an error in the core implementation of hook "exchange
at async Proxy.rawString (/some/path/to/client.ts:XX:XX)
at async <anonymous> (/some/path/to/output_preset__standard-graphql.ts:XX:XX) {
context: { hookName: 'exchange', source: 'implementation' },
[cause]: TypeError: Failed to parse URL from undefined
[cause]: TypeError: Failed to parse URL from ...
at new Request (node:internal/deps/undici/undici:XX:XX)
at Object.run (/some/path/to/core.ts:XX:XX)
... 6 lines matching cause stack trace ...
Expand All @@ -30,7 +30,7 @@ ContextualError: There was an error in the core implementation of hook "exchange
at async run (/some/path/to/client.ts:XX:XX)
at async runRaw (/some/path/to/client.ts:XX:XX) {
code: 'ERR_INVALID_URL',
input: 'undefined'
input: '...'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'encode',
id: '49c086e96494dda5',
id: 'ae33c18f5cc9cae0',
kind: 0,
timestamp: 1726460909321000,
duration: 540.791,
timestamp: 1726461294589000,
duration: 539.583,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -33,14 +33,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'pack',
id: 'd0a097fb28078b38',
id: '95b40ccefe000e6e',
kind: 0,
timestamp: 1726460909324000,
duration: 1157.917,
timestamp: 1726461294591000,
duration: 1186.792,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -57,14 +57,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'exchange',
id: 'e786363ec0b36e1e',
id: '986a75e706d54ec1',
kind: 0,
timestamp: 1726460909325000,
duration: 162975.333,
timestamp: 1726461294593000,
duration: 147109.584,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -81,14 +81,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'unpack',
id: '74c7e6a7ac759030',
id: '2bd1476a05bb0a51',
kind: 0,
timestamp: 1726460909489000,
duration: 2389.542,
timestamp: 1726461294741000,
duration: 2265.625,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -105,14 +105,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'decode',
id: 'd6783e1de7c1353b',
id: '40a75edd2f4f08d4',
kind: 0,
timestamp: 1726460909491000,
duration: 128.584,
timestamp: 1726461294743000,
duration: 124.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -129,14 +129,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: undefined,
traceState: undefined,
name: 'request',
id: '58e0399ed88c4508',
id: 'a9cd435480d53274',
kind: 0,
timestamp: 1726460909321000,
duration: 170847,
timestamp: 1726461294589000,
duration: 154733.292,
attributes: {},
status: { code: 0 },
events: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ await graffle.rawString({ document: `{ languages { code } }` })
headers: Headers {
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8',
'content-type': 'application/json',
'x-sent-at-time': '1726460908915'
'x-sent-at-time': '1726461294313'
},
signal: undefined,
method: 'post',
Expand Down
10 changes: 5 additions & 5 deletions website/content/examples/20_output/envelope.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ console.log(result)
headers: Headers {
connection: 'keep-alive',
'content-length': '119',
'x-served-by': 'cache-yul1970049-YUL',
'x-served-by': 'cache-yul1970022-YUL',
'accept-ranges': 'bytes',
date: 'Sun, 08 Sep 2024 18:13:26 GMT',
'content-type': 'application/graphql-response+json; charset=utf-8',
Expand All @@ -59,13 +59,13 @@ console.log(result)
'alt-svc': 'h3=":443"; ma=86400',
'access-control-allow-origin': '*',
'x-powered-by': 'Stellate',
age: '641704',
age: '642089',
'cache-control': 'public, s-maxage=2628000, stale-while-revalidate=2628000',
'x-cache': 'HIT',
'x-cache-hits': '72',
'x-cache-hits': '80',
'gcdn-cache': 'HIT',
'stellate-rate-limit-budget-remaining': '49',
'stellate-rate-limit-rules': '"IP limit";type="RequestCount";budget=50;limited=?0;remaining=49;refill=60',
'stellate-rate-limit-budget-remaining': '47',
'stellate-rate-limit-rules': '"IP limit";type="RequestCount";budget=50;limited=?0;remaining=47;refill=60',
'stellate-rate-limit-decision': 'pass',
'stellate-rate-limit-budget-required': '5',
'content-encoding': 'br'
Expand Down
5 changes: 3 additions & 2 deletions website/content/examples/20_output/standard-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This example shows how to configure output to approximate the traditional GraphQ
import { Graffle, Preset } from 'graffle'

const graffle = Graffle.create({
schema: `...`,
output: Preset.traditionalGraphqlOutput,
})

Expand Down Expand Up @@ -38,7 +39,7 @@ ContextualError: There was an error in the core implementation of hook "exchange
at async Proxy.rawString (/some/path/to/client.ts:XX:XX)
at async <anonymous> (/some/path/to/output_preset__standard-graphql.ts:XX:XX) {
context: { hookName: 'exchange', source: 'implementation' },
[cause]: TypeError: Failed to parse URL from undefined
[cause]: TypeError: Failed to parse URL from ...
at new Request (node:internal/deps/undici/undici:XX:XX)
at Object.run (/some/path/to/core.ts:XX:XX)
... 6 lines matching cause stack trace ...
Expand All @@ -56,7 +57,7 @@ ContextualError: There was an error in the core implementation of hook "exchange
at async run (/some/path/to/client.ts:XX:XX)
at async runRaw (/some/path/to/client.ts:XX:XX) {
code: 'ERR_INVALID_URL',
input: 'undefined'
input: '...'
}
}
}
Expand Down
58 changes: 29 additions & 29 deletions website/content/examples/60_extension/opentelemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'encode',
id: '49c086e96494dda5',
id: 'ae33c18f5cc9cae0',
kind: 0,
timestamp: 1726460909321000,
duration: 540.791,
timestamp: 1726461294589000,
duration: 539.583,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -67,14 +67,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'pack',
id: 'd0a097fb28078b38',
id: '95b40ccefe000e6e',
kind: 0,
timestamp: 1726460909324000,
duration: 1157.917,
timestamp: 1726461294591000,
duration: 1186.792,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -94,14 +94,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'exchange',
id: 'e786363ec0b36e1e',
id: '986a75e706d54ec1',
kind: 0,
timestamp: 1726460909325000,
duration: 162975.333,
timestamp: 1726461294593000,
duration: 147109.584,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -121,14 +121,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'unpack',
id: '74c7e6a7ac759030',
id: '2bd1476a05bb0a51',
kind: 0,
timestamp: 1726460909489000,
duration: 2389.542,
timestamp: 1726461294741000,
duration: 2265.625,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -148,14 +148,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
parentId: '58e0399ed88c4508',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: 'a9cd435480d53274',
traceState: undefined,
name: 'decode',
id: 'd6783e1de7c1353b',
id: '40a75edd2f4f08d4',
kind: 0,
timestamp: 1726460909491000,
duration: 128.584,
timestamp: 1726461294743000,
duration: 124.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -175,14 +175,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '3c05d978d79fc466c2ed6652ffd28fd5',
traceId: '33c2903599214054eb34ee8382ee63e1',
parentId: undefined,
traceState: undefined,
name: 'request',
id: '58e0399ed88c4508',
id: 'a9cd435480d53274',
kind: 0,
timestamp: 1726460909321000,
duration: 170847,
timestamp: 1726461294589000,
duration: 154733.292,
attributes: {},
status: { code: 0 },
events: [],
Expand Down

0 comments on commit 3fdbea6

Please sign in to comment.