Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #139

Merged
merged 13 commits into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clean-hotels-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'github-actions-cloudflare-pages': patch
---

refactor usage of undici to use @types/node
122 changes: 99 additions & 23 deletions __generated__/gql/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bin/codegen/types/github-workflow-events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env ts-node-transpile-only
import type {JSONSchema7} from 'json-schema'

import {strict as assert} from 'node:assert'
Expand Down
6 changes: 1 addition & 5 deletions bin/deployments/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/usr/bin/env ts-node-transpile-only

import 'dotenv/config'

import type {HeadersInit} from 'undici'

import type {FetchResult, PagesDeployment} from '../../src/cloudflare/types.js'

const API_ENDPOINT = 'https://api.cloudflare.com'
Expand All @@ -27,7 +23,7 @@ const getUrl = () => {
return new URL(input, API_ENDPOINT).toString()
}

const getHeaders = (): HeadersInit => ({
const getHeaders = (): RequestInit['headers'] => ({
authorization: `bearer ${CLOUDFLARE_API_TOKEN}`,
'Content-Type': 'application/json'
})
Expand Down
1 change: 0 additions & 1 deletion bin/download/payloads/github-webhooks-payload-examples.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env ts-node-transpile-only
import type {
FilesQuery,
FilesQueryVariables
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading