chore: switch to module ESNext + moduleResolution bundler (#2095)
This commit is contained in:
parent
c59dc3aa1a
commit
ee732d64b6
5 changed files with 668 additions and 863 deletions
|
|
@ -7,7 +7,7 @@
|
|||
* @module
|
||||
*/
|
||||
|
||||
import { createMcpFastifyApp } from './fastify.js';
|
||||
import { createMcpFastifyApp } from './fastify';
|
||||
|
||||
/**
|
||||
* Example: Basic usage with default DNS rebinding protection.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { FastifyInstance } from 'fastify';
|
||||
import Fastify from 'fastify';
|
||||
|
||||
import { hostHeaderValidation, localhostHostValidation } from './middleware/hostHeaderValidation.js';
|
||||
import { hostHeaderValidation, localhostHostValidation } from './middleware/hostHeaderValidation';
|
||||
|
||||
/**
|
||||
* Options for creating an MCP Fastify application.
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
export * from './fastify.js';
|
||||
export * from './middleware/hostHeaderValidation.js';
|
||||
export * from './fastify';
|
||||
export * from './middleware/hostHeaderValidation';
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
import type { FastifyInstance } from 'fastify';
|
||||
|
||||
import { hostHeaderValidation, localhostHostValidation } from './hostHeaderValidation.js';
|
||||
import { hostHeaderValidation, localhostHostValidation } from './hostHeaderValidation';
|
||||
|
||||
/**
|
||||
* Example: Using hostHeaderValidation hook with custom allowed hosts.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import Fastify from 'fastify';
|
||||
|
||||
import { createMcpFastifyApp } from '../src/fastify.js';
|
||||
import { hostHeaderValidation, localhostHostValidation } from '../src/middleware/hostHeaderValidation.js';
|
||||
import { createMcpFastifyApp } from '../src/fastify';
|
||||
import { hostHeaderValidation, localhostHostValidation } from '../src/middleware/hostHeaderValidation';
|
||||
|
||||
describe('@modelcontextprotocol/fastify', () => {
|
||||
describe('hostHeaderValidation', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue