{"_id":"@crissancar/nestjs-redoc","_rev":"2-76f1386fbe707db66f2e531d2c7064b1","name":"@crissancar/nestjs-redoc","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0":{"name":"@crissancar/nestjs-redoc","version":"0.0.0","description":"NestJS module to use Redoc","author":{"name":"Cristian Sánchez","email":"devcristiansanchez@gmail.com"},"main":"dist/index.js","private":false,"license":"MIT","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"src/**/*.ts\" --fix","npm:check:updates":"ncu -i --format group","test":"jest --runInBand --detectOpenHandles --forceExit","test:clear":"npx jest --clearCache","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","release":"release-it --ci","release:minor":"release-it minor --ci","release:patch":"release-it patch --ci","release:major":"release-it major --ci"},"peerDependencies":{"@nestjs/common":"^10.0.0","@nestjs/swagger":"^7.0.0","reflect-metadata":"^0.1.13"},"dependencies":{"express-basic-auth":"1.2.1","express-handlebars":"7.0.7","joi":"17.9.2"},"devDependencies":{"@babel/core":"7.22.6","@babel/preset-env":"7.22.6","@babel/preset-typescript":"7.22.5","@jest/globals":"29.6.0","@nestjs/core":"10.0.5","@nestjs/platform-express":"10.0.5","@nestjs/testing":"10.0.5","@types/express":"4.17.17","@types/jest":"29.5.2","@types/node":"20.3.3","@types/supertest":"2.0.12","@typescript-eslint/eslint-plugin":"5.61.0","@typescript-eslint/parser":"5.61.0","babel-jest":"29.6.0","eslint":"8.44.0","eslint-config-prettier":"8.8.0","eslint-plugin-prettier":"4.2.1","jest":"29.6.0","npm-check-updates":"16.10.13","prettier":"3.0.0","reflect-metadata":"0.1.13","release-it":"15.11.0","rimraf":"5.0.1","rxjs":"7.8.1","supertest":"6.3.3","ts-jest":"29.1.1","ts-node":"10.9.1","typescript":"5.1.6"},"release-it":{"hooks":{"before:init":["npm run prepare","npm run format","npm run lint","npm run build","npm run test"],"after:release":"echo ✅ Successfully released ${name} v${version} to ${npm.name}."},"npm":{"publish":true,"timeout":100000},"github":{"release":true,"timeout":100000},"git":{"commit":true,"commitMessage":"chore: release v${version}","tag":true,"tagName":"v${version}","push":true,"requireCleanWorkingDir":false,"interactive":true}},"types":"./dist/index.d.ts","gitHead":"b763d6f7a278e712c8785dcc8fbd32cf98ab8418","_id":"@crissancar/nestjs-redoc@0.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-cUqZgPMwA5Xrg3Fyc2oxn3QWDNQLx8PD2PE7wO2B5Vw6apbNCyibOxGAPz1U5XMKn0gRlMmDGFlk9PtneO3beQ==","shasum":"17668a7ef2616c620040909e22dab3a06de6a5e9","tarball":"https://registry.npmjs.org/@crissancar/nestjs-redoc/-/nestjs-redoc-0.0.0.tgz","fileCount":32,"unpackedSize":255740,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVm9j0zLYUV/4m/uRq4xyeyhwGQT+boQ3JpL+9lyW34AiAsBFTSkrB5AOoMfY1bMUJInpibPM3YvBK5Znz0NpgOag=="}]},"_npmUser":{"name":"crissancar","email":"devcristiansanchez@gmail.com"},"directories":{},"maintainers":[{"name":"crissancar","email":"devcristiansanchez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redoc_0.0.0_1688588399031_0.41812566299500165"},"_hasShrinkwrap":false},"1.0.0":{"name":"@crissancar/nestjs-redoc","version":"1.0.0","description":"NestJS module to use Redoc","author":{"name":"Cristian Sánchez","email":"devcristiansanchez@gmail.com"},"main":"dist/index.js","private":false,"license":"MIT","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"src/**/*.ts\" --fix","npm:check:updates":"ncu -i --format group","test":"jest --runInBand --detectOpenHandles --forceExit","test:clear":"npx jest --clearCache","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","release":"release-it --ci","release:minor":"release-it minor --ci","release:patch":"release-it patch --ci","release:major":"release-it major --ci"},"peerDependencies":{"@nestjs/common":"^10.0.0","@nestjs/swagger":"^7.0.0","reflect-metadata":"^0.1.13"},"dependencies":{"express-basic-auth":"1.2.1","express-handlebars":"7.0.7","joi":"17.9.2"},"devDependencies":{"@babel/core":"7.22.6","@babel/preset-env":"7.22.6","@babel/preset-typescript":"7.22.5","@jest/globals":"29.6.0","@nestjs/core":"10.0.5","@nestjs/platform-express":"10.0.5","@nestjs/testing":"10.0.5","@types/express":"4.17.17","@types/jest":"29.5.2","@types/node":"20.3.3","@types/supertest":"2.0.12","@typescript-eslint/eslint-plugin":"5.61.0","@typescript-eslint/parser":"5.61.0","babel-jest":"29.6.0","eslint":"8.44.0","eslint-config-prettier":"8.8.0","eslint-plugin-prettier":"4.2.1","jest":"29.6.0","npm-check-updates":"16.10.13","prettier":"3.0.0","reflect-metadata":"0.1.13","release-it":"15.11.0","rimraf":"5.0.1","rxjs":"7.8.1","supertest":"6.3.3","ts-jest":"29.1.1","ts-node":"10.9.1","typescript":"5.1.6"},"release-it":{"hooks":{"before:init":["npm run prepare","npm run format","npm run lint","npm run build","npm run test"],"after:release":"echo ✅ Successfully released ${name} v${version} to ${npm.name}."},"npm":{"publish":true,"timeout":100000},"github":{"release":true,"timeout":100000},"git":{"commit":true,"commitMessage":"chore: release v${version}","tag":true,"tagName":"v${version}","push":true,"requireCleanWorkingDir":false,"interactive":true}},"types":"./dist/index.d.ts","gitHead":"6aa037268bf152c77f2ffe014bc48e21f9295540","_id":"@crissancar/nestjs-redoc@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-rAzEInlEB6Z/CqPuBwuMXIty9yFCZZuJ4jbUVO/SFO1nICXIFmc5wFwFEt5aa/t8ekxBesiKspccyFtNMvSfWg==","shasum":"d5c12a2c413a04e07ddac46951757e9c3427ca43","tarball":"https://registry.npmjs.org/@crissancar/nestjs-redoc/-/nestjs-redoc-1.0.0.tgz","fileCount":32,"unpackedSize":255735,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+NM/Mg/UghWeQlorLR7t6SO3xF4/QZ6utdEf3YsNsfwIhAJC8hSMEAMcPvbaRyXHAvnHe6VhkcwDXo6oXW/dD745B"}]},"_npmUser":{"name":"crissancar","email":"devcristiansanchez@gmail.com"},"directories":{},"maintainers":[{"name":"crissancar","email":"devcristiansanchez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redoc_1.0.0_1688589079151_0.6800990759457577"},"_hasShrinkwrap":false},"1.0.1":{"name":"@crissancar/nestjs-redoc","version":"1.0.1","description":"NestJS module to use Redoc","author":{"name":"Cristian Sánchez","email":"devcristiansanchez@gmail.com"},"main":"dist/index.js","private":false,"license":"MIT","scripts":{"start:dev":"tsc -w","build":"tsc","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"src/**/*.ts\" --fix","npm:check:updates":"ncu -i --format group","test":"jest --runInBand --detectOpenHandles --forceExit","test:clear":"npx jest --clearCache","test:watch":"jest --watch","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","release":"release-it --ci","release:minor":"release-it minor --ci","release:patch":"release-it patch --ci","release:major":"release-it major --ci"},"peerDependencies":{"@nestjs/common":"^10.0.0","@nestjs/swagger":"^7.0.0","reflect-metadata":"^0.1.13"},"dependencies":{"express-basic-auth":"^1.2.1","express-handlebars":"^7.0.7","joi":"^17.9.2"},"devDependencies":{"@babel/core":"^7.20.12","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@jest/globals":"^29.4.1","@nestjs/core":"^10.0.0","@nestjs/platform-express":"^10.0.0","@nestjs/testing":"^10.0.0","@types/express":"^4.17.16","@types/express-handlebars":"^6.0.0","@types/hapi__joi":"^17.1.9","@types/jest":"^29.4.0","@types/node":"^18.11.18","@types/supertest":"^2.0.12","@typescript-eslint/eslint-plugin":"^5.50.0","@typescript-eslint/parser":"^5.50.0","babel-jest":"^29.4.1","eslint":"^8.33.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.3","jest":"^29.4.1","prettier":"^2.8.3","reflect-metadata":"^0.1.13","release-it":"^15.6.0","rimraf":"^4.1.2","rxjs":"^7.8.0","supertest":"^6.3.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","typescript":"^4.9.5"},"release-it":{"hooks":{"before:init":["npm run prepare","npm run format","npm run lint","npm run build","npm run test"],"after:release":"echo ✅ Successfully released ${name} v${version} to ${npm.name}."},"npm":{"publish":true,"timeout":100000},"github":{"release":true,"timeout":100000},"git":{"commit":true,"commitMessage":"chore: release v${version}","tag":true,"tagName":"v${version}","push":true,"requireCleanWorkingDir":false,"interactive":true}},"types":"./dist/index.d.ts","gitHead":"867cf7d1a2efff2ea0c6608e66d368bba86bd6b4","_id":"@crissancar/nestjs-redoc@1.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-JyEqsecDwm3+b5ttKZU5iHkC9PWAdBNUcrTp/AdDBqYSNzPWajt0N3086R02yT8c4sKt/G1cqKg+VkIg8r6jvw==","shasum":"4b492aa655a2f60f5c241293f4e75e71826cb19b","tarball":"https://registry.npmjs.org/@crissancar/nestjs-redoc/-/nestjs-redoc-1.0.1.tgz","fileCount":32,"unpackedSize":254880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+GM1ySxyDnjOzv29P9XtfvWrbRr9T6+ZhwpF1BxTC0wIgaHiqquzHk5FBDCrlbPKyaB3G+UFgJkm1dQVJyvSk7sU="}]},"_npmUser":{"name":"crissancar","email":"devcristiansanchez@gmail.com"},"directories":{},"maintainers":[{"name":"crissancar","email":"devcristiansanchez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redoc_1.0.1_1688590129437_0.5797470055339835"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-05T20:19:58.949Z","0.0.0":"2023-07-05T20:19:59.260Z","modified":"2023-07-05T20:48:49.917Z","1.0.0":"2023-07-05T20:31:19.423Z","1.0.1":"2023-07-05T20:48:49.744Z"},"maintainers":[{"name":"crissancar","email":"devcristiansanchez@gmail.com"}],"description":"NestJS module to use Redoc","author":{"name":"Cristian Sánchez","email":"devcristiansanchez@gmail.com"},"license":"MIT","readme":"<div align=\"center\">\n  <a href=\"https://kubide.es/\" target=\"_blank\">\n    <img src=\"https://static.skeleton-v2.dev.kubide.es/files/2023/6/1687931011473875728361.png\" width=\"300\" alt=\"Kubide Logo\" />\n  </a>\n</div>\n\n<h1 align=\"center\">\n  Kubide Redoc\n  <h4 align=\"center\">Redoc module for your NestJS APIq</h4>\n</h1>\n\n![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)\n![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)\n![NestJS](https://img.shields.io/badge/nestjs-%23E0234E.svg?style=for-the-badge&logo=nestjs&logoColor=white)\n![NPM](https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white)\n![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)\n![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white)\n![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge&logo=swagger&logoColor=white)\n\n<p align=\"center\">\n\n> It was originally cloned from [@mxarc/nestjs-redoc](https://github.com/mxarc/nestjs-redoc) because it no longer supports the latest version of NestJS. This fork is to keep the package up to date with the latest NestJS version and use it in production.\n\n</p>\n\n## Navigation\n\n[📒 Description](#-Description)\n\n[🗿 Installation](#-Installation)\n\n[❓ How to use](#-How-to-use)\n\n## 📒 Description\n\n<p align=\"center\">\n\nThis is a [ReDoc](https://github.com/Redocly/redoc) powered frontend for your NestJS API spec.\n\n</p>\n\n## 🗿 Installation\n\n`npm i @crissancar/nestjs-redoc`\n\n## ❓ How to use\n\nYou need to install the [Swagger Module](https://github.com/nestjs/swagger) first if you want to get definitions updated with your project.\n\n```typescript\nconst options = new DocumentBuilder()\n  .setTitle('Look, i have a title')\n  .setDescription('A very nice description')\n  .setBasePath('/api/v1')\n  .build();\nconst document = SwaggerModule.createDocument(app, options);\n```\n\nThen add the following example code.\n\n**Note**: All properties are optional, if you don't specify a title we will fallback to the one you used in your DocumentBuilder instance.\n\n```typescript\nconst redocOptions: RedocOptions = {\n  title: 'Hello Nest',\n  logo: {\n    url: 'https://redocly.github.io/redoc/petstore-logo.png',\n    backgroundColor: '#F0F0F0',\n    altText: 'PetStore logo'\n  },\n  sortPropsAlphabetically: true,\n  hideDownloadButton: false,\n  hideHostname: false,\n  auth: {\n    enabled: true,\n    user: 'admin',\n    password: '123'\n  },\n  tagGroups: [\n    {\n      name: 'Core resources',\n      tags: ['cats'],\n    },\n  ],\n};\n// Instead of using SwaggerModule.setup() you call this module\nawait RedocModule.setup('/docs', app, document, redocOptions);\n```\n\n## Available options\n\n### Redoc Options\n\n| Option                  | Description                                                                                                                                           | Type              | Note                                       |\n| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------------------------------------ |\n| title                   | Web site title (e.g: ReDoc documentation)                                                                                                             | string            |\n| favicon                 | Web site favicon URL                                                                                                                                  | string            | Fallbacks to the document title if not set |\n| logo                    | Logo options                                                                                                                                          | LogoOptions       | See LogoOptions table                      |\n| theme                   | Theme options                                                                                                                                         | ThemeOptions      | See ThemeOptions info                      |\n| untrustedSpec           | If set, the spec is considered untrusted and all HTML/markdown is sanitized to prevent XSS, by default is false                                       | boolean           |\n| supressWarnings         | If set, warnings are not rendered at the top of documentation (they are still logged to the console)                                                  | boolean           |\n| hideHostname            | If set, the protocol and hostname won't be shown in the operation definition                                                                          | boolean           |\n| expandResponses         | Specify which responses to expand by default by response codes, values should be passed as comma-separated list without spaces (e.g: 200, 201, \"all\") | string            |\n| requiredPropsFirst      | If set, show required properties first ordered in the same order as in required array                                                                 | boolean           |\n| sortPropsAlphabetically | If set, propeties will be sorted alphabetically                                                                                                       | boolean           |\n| showExtensions          | If set the fields starting with \"x-\" will be shown, can be a boolean or a string with names of extensions to display                                  | boolean           |\n| noAutoAuth              | If set, redoc won't inject authentication section automatically                                                                                       | boolean           |\n| pathInMiddlePanel       | If set, path link and HTTP verb will be shown in the middle panel instead of the right one                                                            | boolean           |\n| hideLoading             | If set, loading spinner animation won't be shown                                                                                                      | boolean           |\n| nativeScrollbars        | If set, a native scrollbar will be used instead of perfect-scroll, this can improve performance of the frontend for big specs                         | boolean           |\n| hideDownloadButton      | This will hide the \"Download spec\" button, it only hides the button                                                                                   | boolean           |\n| disableSearch           | If set, the search bar will be disabled                                                                                                               | boolean           |\n| onlyRequiredInSamples   | Shows only required fileds in request samples                                                                                                         | boolean           |\n| auth                    | Auth options                                                                                                                                          | AuthOptions       | See AuthOptions info                       |\n| AuthOptions info        |\n| enabled                 | If enabled, a prompt will pop out asking for authentication details, default: `false`                                                                 | boolean           |\n| user                    | User name, default: `admin`                                                                                                                           | string            |\n| password                | User password, default: `123`                                                                                                                         | string            |\n| tagGroups               | Tag groups options                                                                                                                                    | TagGroupOptions[] | See Tag Group options                      |\n| Tag Group options info  |\n| name                    | Tag name                                                                                                                                              | string            |\n| tags                    | Tag collection                                                                                                                                        | string[]          |\n| redocVersion            | Set an specific redoc version                                                                                                                         | string,number     | By default it's \"latest\"                   |\n\n**Note**: If you want to change your ReDoc theme settings, take a look at the official ReDoc documentation: <https://github.com/Redocly/redoc/blob/master/src/theme.ts>\n\nApply the properties defined in ResolvedThemeInterface to the key called \"theme\" in the redoc options\n\n### Logo options\n\n| Option          | Description                                                                           | Type   | Example  |\n| --------------- | ------------------------------------------------------------------------------------- | ------ | -------- |\n| url             | The URL pointing to the spec Logo, must be in the format of a URL and an absolute URL | string |\n| backgroundColor | Background color to be used, must be RGB color in hexadecimal format (e.g: #008080)   | string | #F0F0F0  |\n| altText         | Alt tag for Logo                                                                      | string | PetStore |\n| href            | href tag for Logo, it defaults to the host used for your API spec                     | string |\n","readmeFilename":"README.md"}