Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa2-swagger-ui

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa2-swagger-ui - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

23

dist/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.koaSwagger = void 0;
const fs_1 = require("fs");
const Handlebars = require("handlebars");
const Handlebars = __importStar(require("handlebars"));
const lodash_1 = require("lodash");

@@ -37,3 +56,3 @@ const path_1 = require("path");

const options = lodash_1.defaultsDeep(config, defaultOptions);
Handlebars.registerHelper('json', context => JSON.stringify(context));
Handlebars.registerHelper('json', (context) => JSON.stringify(context));
Handlebars.registerHelper('strfnc', (fnc) => fnc);

@@ -40,0 +59,0 @@ Handlebars.registerHelper('isset', function (conditional, opt) {

22

package.json
{
"name": "koa2-swagger-ui",
"version": "5.0.1",
"version": "5.0.2",
"description": "Swagger UI middleware for koa",

@@ -28,7 +28,9 @@ "main": "dist/index.js",

"devDependencies": {
"@ctrl/eslint-config": "1.1.0",
"@babel/plugin-transform-modules-commonjs": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@ctrl/eslint-config": "1.2.1",
"@jest/globals": "26.4.2",
"@types/koa-router": "7.4.1",
"@types/lodash": "4.14.161",
"@types/node": "14.6.4",
"@types/node": "14.11.1",
"@types/supertest": "2.0.10",

@@ -40,6 +42,5 @@ "del-cli": "3.0.1",

"supertest": "4.0.2",
"swagger-ui-dist": "3.32.5",
"ts-jest": "26.3.0",
"swagger-ui-dist": "3.34.0",
"ts-node": "9.0.0",
"typescript": "4.0.2"
"typescript": "4.0.3"
},

@@ -50,5 +51,12 @@ "release": {

"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"babel": {
"presets": [
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-modules-commonjs"
]
},
"homepage": "https://github.com/scttcper/koa2-swagger-ui",

@@ -55,0 +63,0 @@ "repository": "scttcper/koa2-swagger-ui",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc