New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koatty_cli

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koatty_cli - npm Package Compare versions

Comparing version 1.20.2 to 1.21.0

lib/template/middleware/Static.ts

3

lib/index.js

@@ -190,2 +190,5 @@ #!/usr/bin/env node

//add static middleware
copyFile('middleware' + path.sep + 'Static.ts', APP_PATH + path.sep + 'middleware' + path.sep + 'Static.ts');
console.log();

@@ -192,0 +195,0 @@ console.log(' enter path:');

9

lib/template/config/middleware.ts

@@ -5,11 +5,14 @@ /**

* @ license: Apache License 2.0
* @ version: 2019-10-21 10:45:53
* @ version: 2020-04-30 15:19:46
*/
export default {
list: [], //加载的中间件列表
list: ['Static'], //加载的中间件列表
config: { //中间件配置
// 静态资源中间件默认未开启
Static: false
// 需要开启请修改为:
// Static: {
// cache: false
// cache: true
// },
}
};

@@ -16,3 +16,4 @@ {

"dependencies": {
"koatty": "^1.x.x"
"koatty": "^1.x.x",
"think_static": "^2.x.x"
},

@@ -19,0 +20,0 @@ "devDependencies": {

{
"name": "koatty_cli",
"version": "1.20.2",
"version": "1.21.0",
"description": "Koatty command line tool.",

@@ -5,0 +5,0 @@ "scripts": {

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