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

travelers

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

travelers - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

dist/index.js

@@ -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

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