完整代码加修复数据库连接字符串!!!

This commit is contained in:
heiye111
2025-09-20 23:02:18 +08:00
parent 48600edffc
commit 9f0b5a2e61
29 changed files with 1556 additions and 1 deletions

11
node_modules/fastify-plugin/test/esm/esm.mjs generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import { test } from 'node:test'
import fp from '../../plugin.js'
test('esm base support', (t) => {
fp((fastify, opts, next) => {
next()
}, {
fastify: '^5.0.0'
})
t.assert.ok(true, 'fp function called without throwing an error')
})

11
node_modules/fastify-plugin/test/esm/index.test.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
'use strict'
// Node v8 throw a `SyntaxError: Unexpected token import`
// even if this branch is never touch in the code,
// by using `eval` we can avoid this issue.
// eslint-disable-next-line
new Function('module', 'return import(module)')('./esm.mjs').catch((err) => {
process.nextTick(() => {
throw err
})
})