Auto-commit 2026-04-29 16:31

This commit is contained in:
2026-04-29 16:31:27 -04:00
parent e8687bb6b2
commit 0495ee5bd2
19691 changed files with 3272886 additions and 138 deletions

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

@@ -0,0 +1,13 @@
import t from 'tap'
import fp from '../../plugin.js'
t.test('esm base support', async t => {
fp((fastify, opts, next) => {
next()
}, {
fastify: '^3.0.0'
})
t.end()
})

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
})
})