Skip to content

Commit

Permalink
build(deps-dev): Bump swagger-ui-dist from 5.13.0 to 5.14.0 (#138)
Browse files Browse the repository at this point in the history
* build(deps-dev): Bump swagger-ui-dist from 5.13.0 to 5.14.0

Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 5.13.0 to 5.14.0.
- [Release notes](https://github.com/swagger-api/swagger-ui/releases)
- [Changelog](https://github.com/swagger-api/swagger-ui/blob/master/.releaserc)
- [Commits](swagger-api/swagger-ui@v5.13.0...v5.14.0)

---
updated-dependencies:
- dependency-name: swagger-ui-dist
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix linting

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aras Abbasi <aras.abbasi@googlemail.com>
  • Loading branch information
dependabot[bot] and Uzlopak committed Apr 9, 2024
1 parent 4f531d6 commit dc57786
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const path = require('node:path')
const fp = require('fastify-plugin')
const csp = require('./static/csp.json')

async function fastifySwaggerUi(fastify, opts) {
async function fastifySwaggerUi (fastify, opts) {
fastify.decorate('swaggerCSP', csp)

//if no logo is provided, read default static logo
let logoContent = opts.logo;
// if no logo is provided, read default static logo
let logoContent = opts.logo
if (logoContent == null) {
const bufferLogoContent = await fsPromises.readFile(path.join(__dirname, './static/logo.svg'));
logoContent = { type: 'image/svg+xml', content: bufferLogoContent };
const bufferLogoContent = await fsPromises.readFile(path.join(__dirname, './static/logo.svg'))
logoContent = { type: 'image/svg+xml', content: bufferLogoContent }
}

await fastify.register(require('./lib/routes'), {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"fs-extra": "^11.0.0",
"qs": "^6.11.0",
"standard": "^17.0.0",
"swagger-ui-dist": "5.13.0",
"swagger-ui-dist": "5.14.0",
"tap": "^18.6.1",
"tsd": "^0.31.0"
},
Expand Down

0 comments on commit dc57786

Please sign in to comment.