Aktueller Stand
This commit is contained in:
5
backend/node_modules/fastify/build/build-error-serializer.js
generated
vendored
5
backend/node_modules/fastify/build/build-error-serializer.js
generated
vendored
@@ -18,10 +18,12 @@ const code = FJS({
|
||||
const file = path.join(__dirname, '..', 'lib', 'error-serializer.js')
|
||||
|
||||
const moduleCode = `// This file is autogenerated by build/build-error-serializer.js, do not edit
|
||||
/* istanbul ignore file */
|
||||
/* c8 ignore start */
|
||||
${code}
|
||||
/* c8 ignore stop */
|
||||
`
|
||||
|
||||
/* c8 ignore start */
|
||||
if (require.main === module) {
|
||||
fs.writeFileSync(file, moduleCode)
|
||||
console.log(`Saved ${file} file successfully`)
|
||||
@@ -30,3 +32,4 @@ if (require.main === module) {
|
||||
code: moduleCode
|
||||
}
|
||||
}
|
||||
/* c8 ignore stop */
|
||||
|
||||
41
backend/node_modules/fastify/build/build-validation.js
generated
vendored
41
backend/node_modules/fastify/build/build-validation.js
generated
vendored
@@ -8,14 +8,15 @@ const path = require('node:path')
|
||||
const factory = AjvStandaloneCompiler({
|
||||
readMode: false,
|
||||
storeFunction (routeOpts, schemaValidationCode) {
|
||||
const moduleCode = `// This file is autogenerated by ${__filename.replace(__dirname, 'build')}, do not edit
|
||||
/* istanbul ignore file */
|
||||
const moduleCode = `// This file is autogenerated by build/build-validation.js, do not edit
|
||||
/* c8 ignore start */
|
||||
${schemaValidationCode}
|
||||
|
||||
module.exports.defaultInitOptions = ${JSON.stringify(defaultInitOptions)}
|
||||
/* c8 ignore stop */
|
||||
`
|
||||
|
||||
const file = path.join(__dirname, '..', 'lib', 'configValidator.js')
|
||||
const file = path.join(__dirname, '..', 'lib', 'config-validator.js')
|
||||
fs.writeFileSync(file, moduleCode)
|
||||
console.log(`Saved ${file} file successfully`)
|
||||
}
|
||||
@@ -31,18 +32,25 @@ const defaultInitOptions = {
|
||||
caseSensitive: true,
|
||||
allowUnsafeRegex: false,
|
||||
disableRequestLogging: false,
|
||||
jsonShorthand: true,
|
||||
ignoreTrailingSlash: false,
|
||||
ignoreDuplicateSlashes: false,
|
||||
maxParamLength: 100,
|
||||
onProtoPoisoning: 'error',
|
||||
onConstructorPoisoning: 'error',
|
||||
pluginTimeout: 10000,
|
||||
requestIdHeader: 'request-id',
|
||||
requestIdHeader: false,
|
||||
requestIdLogLabel: 'reqId',
|
||||
http2SessionTimeout: 72000, // 72 seconds
|
||||
exposeHeadRoutes: true,
|
||||
useSemicolonDelimiter: true
|
||||
useSemicolonDelimiter: false,
|
||||
allowErrorHandlerOverride: true, // TODO: set to false in v6
|
||||
routerOptions: {
|
||||
ignoreTrailingSlash: false,
|
||||
ignoreDuplicateSlashes: false,
|
||||
maxParamLength: 100,
|
||||
allowUnsafeRegex: false,
|
||||
useSemicolonDelimiter: false
|
||||
}
|
||||
}
|
||||
|
||||
const schema = {
|
||||
@@ -90,27 +98,26 @@ const schema = {
|
||||
ignoreTrailingSlash: { type: 'boolean', default: defaultInitOptions.ignoreTrailingSlash },
|
||||
ignoreDuplicateSlashes: { type: 'boolean', default: defaultInitOptions.ignoreDuplicateSlashes },
|
||||
disableRequestLogging: {
|
||||
type: 'boolean',
|
||||
default: false
|
||||
},
|
||||
jsonShorthand: { type: 'boolean', default: defaultInitOptions.jsonShorthand },
|
||||
maxParamLength: { type: 'integer', default: defaultInitOptions.maxParamLength },
|
||||
onProtoPoisoning: { type: 'string', default: defaultInitOptions.onProtoPoisoning },
|
||||
onConstructorPoisoning: { type: 'string', default: defaultInitOptions.onConstructorPoisoning },
|
||||
pluginTimeout: { type: 'integer', default: defaultInitOptions.pluginTimeout },
|
||||
requestIdHeader: { anyOf: [{ enum: [false] }, { type: 'string' }], default: defaultInitOptions.requestIdHeader },
|
||||
requestIdHeader: { anyOf: [{ type: 'boolean' }, { type: 'string' }], default: defaultInitOptions.requestIdHeader },
|
||||
requestIdLogLabel: { type: 'string', default: defaultInitOptions.requestIdLogLabel },
|
||||
http2SessionTimeout: { type: 'integer', default: defaultInitOptions.http2SessionTimeout },
|
||||
exposeHeadRoutes: { type: 'boolean', default: defaultInitOptions.exposeHeadRoutes },
|
||||
useSemicolonDelimiter: { type: 'boolean', default: defaultInitOptions.useSemicolonDelimiter },
|
||||
// deprecated style of passing the versioning constraint
|
||||
versioning: {
|
||||
routerOptions: {
|
||||
type: 'object',
|
||||
additionalProperties: true,
|
||||
required: ['storage', 'deriveVersion'],
|
||||
properties: {
|
||||
storage: { },
|
||||
deriveVersion: { }
|
||||
ignoreTrailingSlash: { type: 'boolean', default: defaultInitOptions.routerOptions.ignoreTrailingSlash },
|
||||
ignoreDuplicateSlashes: { type: 'boolean', default: defaultInitOptions.routerOptions.ignoreDuplicateSlashes },
|
||||
maxParamLength: { type: 'integer', default: defaultInitOptions.routerOptions.maxParamLength },
|
||||
allowUnsafeRegex: { type: 'boolean', default: defaultInitOptions.routerOptions.allowUnsafeRegex },
|
||||
useSemicolonDelimiter: { type: 'boolean', default: defaultInitOptions.routerOptions.useSemicolonDelimiter }
|
||||
}
|
||||
},
|
||||
constraints: {
|
||||
@@ -121,9 +128,9 @@ const schema = {
|
||||
additionalProperties: true,
|
||||
properties: {
|
||||
name: { type: 'string' },
|
||||
storage: { },
|
||||
validate: { },
|
||||
deriveConstraint: { }
|
||||
storage: {},
|
||||
validate: {},
|
||||
deriveConstraint: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user