Comparing version 1.0.4 to 1.0.5
@@ -7,3 +7,3 @@ "use strict"; | ||
const json = require("koa-json"); | ||
const chalk_1 = require("chalk"); | ||
const chalk = require("chalk"); | ||
const code_1 = require("./lib/code"); | ||
@@ -31,3 +31,3 @@ exports.Code = code_1.Code; | ||
app.listen(port, `${host}`); | ||
console.log(chalk_1.default.bold.red(`travelers start host:${host} prot:${port}`)); | ||
console.log(chalk.bold.red(`travelers start host:${host} prot:${port}`)); | ||
} | ||
@@ -34,0 +34,0 @@ exports.travelers = travelers; |
@@ -8,3 +8,3 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const chalk_1 = require("chalk"); | ||
const chalk = require("chalk"); | ||
const verify = require("./verify"); | ||
@@ -132,3 +132,3 @@ const swaggerDefalutSwagger = { | ||
app.use(serve({ rootDir: path_1.join(__dirname, '../../swagger'), gzip: true, rootPath: '/document' })); | ||
console.log(chalk_1.default.bold.red(`document you can click: http://${host}:${port}/document`)); | ||
console.log(chalk.bold.red(`document you can click: http://${host}:${port}/document`)); | ||
router.get('/swagger', (ctx) => { | ||
@@ -135,0 +135,0 @@ ctx.body = swagger; |
{ | ||
"name": "travelers", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "I wanna write code like travelers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,3 +7,3 @@ | ||
import * as json from 'koa-json'; | ||
import chalk from 'chalk'; | ||
import * as chalk from 'chalk'; | ||
import { srvsCode, Code } from './lib/code' | ||
@@ -10,0 +10,0 @@ import * as Router from "koa-router"; |
@@ -9,3 +9,3 @@ | ||
import { travelersCtx } from "../index"; | ||
import chalk from 'chalk'; | ||
import * as chalk from 'chalk'; | ||
import * as verify from "./verify"; | ||
@@ -180,3 +180,3 @@ | ||
const result = await controllers[item.operationId] | ||
if(result) response.body = result | ||
if (result) response.body = result | ||
} catch (error) { | ||
@@ -183,0 +183,0 @@ response.status = error.code || 500 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1471744