Skip to content

Commit 390ba77

Browse files
committed
chore:
- update README and configuration examples; - redact sensitive headers;
1 parent 0898de3 commit 390ba77

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dist/index.cjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ var ApiError = exports.ApiError = /*#__PURE__*/function (_Error) {
8080
* @property {boolean} [app.disableAddRequestState] - Whether to disable adding state object to request
8181
* @property {boolean} [app.disableReplyHelperFunctions] - Whether to disable reply helper functions
8282
* @property {number} [app.internalServerErrorCode] - Status code for internal server errors
83-
* @property {Array} [app.sensitiveHeaders] - List of sensitive headers to be excluded from logs
8483
* @property {Object} [server] - Server configuration for listening
8584
*/
8685
var fastifyInstance;
@@ -96,7 +95,7 @@ function init(_x) {
9695
}
9796
function _init() {
9897
_init = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(config) {
99-
var _configCopy, _configCopy2, _config$app, _config$app2, _config$app3, _config$app4, _config$app7, _config$app10, _config$app11;
98+
var _configCopy$fastify, _configCopy$fastify2, _config$app, _config$app2, _config$app3, _config$app4, _config$app7, _config$app10, _config$app11;
10099
var loggerConfig, _config$app6, _config$app8, _config$app$healthChe, _config$app9, _config$app$healthChe2, _config$app0, _config$app$healthChe3, _config$app1, rev, basePath, apiFiles, _iterator, _step, apiFile, filename, length, prefix, _t, _t2, _t3, _t4;
101100
return _regenerator().w(function (_context2) {
102101
while (1) switch (_context2.p = _context2.n) {
@@ -105,8 +104,8 @@ function _init() {
105104
/************************************
106105
* Initialize fastify and put it in global
107106
************************************/
108-
loggerConfig = _objectSpread({}, (_configCopy = configCopy) === null || _configCopy === void 0 || (_configCopy = _configCopy.fastify) === null || _configCopy === void 0 ? void 0 : _configCopy.logger);
109-
(_configCopy2 = configCopy) === null || _configCopy2 === void 0 || (_configCopy2 = _configCopy2.fastify) === null || _configCopy2 === void 0 || delete _configCopy2.logger;
107+
loggerConfig = _objectSpread({}, (_configCopy$fastify = configCopy.fastify) === null || _configCopy$fastify === void 0 ? void 0 : _configCopy$fastify.logger);
108+
(_configCopy$fastify2 = configCopy.fastify) === null || _configCopy$fastify2 === void 0 || delete _configCopy$fastify2.logger;
110109
fastifyInstance = (0, _fastify["default"])(Object.assign({
111110
logger: Object.assign({
112111
serializers: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastify-app",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "A simple fastify app template for JSON API server with helpful routes and initial settings.",
55
"main": "src/index.mjs",
66
"module": "src/index.mjs",

0 commit comments

Comments
 (0)