Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 15, 2024
1 parent 7ef42d8 commit ae8ee9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"got": "^11.8.6",
"h2url": "^0.2.0",
"msgpack5": "^6.0.2",
"neostandard": "^0.11.9",
"neostandard": "^0.12.0",
"nock": "^13.5.4",
"proxy": "^2.1.1",
"proxyquire": "^2.1.3",
Expand Down
3 changes: 1 addition & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import {
AgentOptions as SecureAgentOptions,
RequestOptions as SecureRequestOptions
} from 'https'
import { Pool } from 'undici'
import { ProxyAgent } from 'undici'
import { Pool, ProxyAgent } from 'undici'

declare module 'fastify' {
interface FastifyReply {
Expand Down
15 changes: 8 additions & 7 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fastify, { FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawServerBase, RequestGenericInterface, RouteGenericInterface } from "fastify";
import * as http from 'node:http';
import { IncomingHttpHeaders } from "http2";
import * as https from 'node:https';
import { AddressInfo } from "net";
import { expectType } from 'tsd';
import replyFrom, { FastifyReplyFromOptions } from "..";
import fastify, { FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawServerBase, RequestGenericInterface, RouteGenericInterface } from 'fastify'
import * as http from 'node:http'
import { IncomingHttpHeaders } from 'http2'
import * as https from 'node:https'
import { AddressInfo } from 'net'
import { expectType } from 'tsd'
import replyFrom, { FastifyReplyFromOptions } from '..'
// @ts-ignore
import tap from 'tap'

Expand Down Expand Up @@ -101,6 +101,7 @@ async function main () {
instance.get('/http2', (request, reply) => {
reply.from('/', {
method: 'POST',
// eslint-disable-next-line n/handle-callback-err -- Not a real request, not handling errors
retryDelay: ({ err, req, res, attempt, retriesCount, getDefaultDelay }) => {
const defaultDelay = getDefaultDelay()
if (defaultDelay) return defaultDelay
Expand Down

0 comments on commit ae8ee9b

Please sign in to comment.