koatty 3.7.0 → 3.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -9
- package/dist/index.mjs +4 -9
- package/dist/package.json +5 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4
4
|
|
5
|
+
### [3.7.2](https://github.com/thinkkoa/koatty/compare/v3.7.1...v3.7.2) (2022-11-16)
|
6
|
+
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* add log ([08dcf4d](https://github.com/thinkkoa/koatty/commit/08dcf4df2ce86f08db8cd34877ed7d06a50b4deb))
|
11
|
+
* sigint监听修复 ([f632191](https://github.com/thinkkoa/koatty/commit/f632191897a6c3220d9be8babc2d538d7ad085f7))
|
12
|
+
|
13
|
+
### [3.7.1](https://github.com/thinkkoa/koatty/compare/v3.7.0...v3.7.1) (2022-11-12)
|
14
|
+
|
5
15
|
## [3.7.0](https://github.com/thinkkoa/koatty/compare/v3.6.10...v3.7.0) (2022-11-01)
|
6
16
|
|
7
17
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2022-11-
|
3
|
+
* @Date: 2022-11-16 16:33:28
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -513,7 +513,7 @@ class Loader {
|
|
513
513
|
Logger.Warn(`Middleware ${key} cannot be disabled.`);
|
514
514
|
}
|
515
515
|
else {
|
516
|
-
Logger.Warn(`Middleware ${key}
|
516
|
+
Logger.Warn(`Middleware ${key} already loaded but not effective.`);
|
517
517
|
continue;
|
518
518
|
}
|
519
519
|
}
|
@@ -613,9 +613,6 @@ class Loader {
|
|
613
613
|
}
|
614
614
|
});
|
615
615
|
const pluginConfList = pluginsConf.list;
|
616
|
-
if (pluginList.length > pluginConfList.length) {
|
617
|
-
Logger.Warn("Some plugins is loaded but not allowed to execute.");
|
618
|
-
}
|
619
616
|
for (const key of pluginConfList) {
|
620
617
|
const handle = koatty_container.IOCContainer.get(key, "COMPONENT");
|
621
618
|
if (!koatty_lib.Helper.isFunction(handle.run)) {
|
@@ -623,6 +620,7 @@ class Loader {
|
|
623
620
|
continue;
|
624
621
|
}
|
625
622
|
if (pluginsConf.config[key] === false) {
|
623
|
+
Logger.Warn(`Plugin ${key} already loaded but not effective.`);
|
626
624
|
continue;
|
627
625
|
}
|
628
626
|
// sync exec
|
@@ -631,7 +629,7 @@ class Loader {
|
|
631
629
|
}
|
632
630
|
}
|
633
631
|
|
634
|
-
var version = "3.7.
|
632
|
+
var version = "3.7.2";
|
635
633
|
var engines = {
|
636
634
|
node: ">12.0.0"
|
637
635
|
};
|
@@ -846,9 +844,6 @@ const newServe = function (app) {
|
|
846
844
|
options.ext.protoFile = proto;
|
847
845
|
}
|
848
846
|
const server = koatty_serve.Serve(app, options);
|
849
|
-
process.on('SIGINT', () => {
|
850
|
-
server.Stop();
|
851
|
-
});
|
852
847
|
return server;
|
853
848
|
};
|
854
849
|
/**
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2022-11-
|
3
|
+
* @Date: 2022-11-16 16:33:28
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -493,7 +493,7 @@ class Loader {
|
|
493
493
|
Logger.Warn(`Middleware ${key} cannot be disabled.`);
|
494
494
|
}
|
495
495
|
else {
|
496
|
-
Logger.Warn(`Middleware ${key}
|
496
|
+
Logger.Warn(`Middleware ${key} already loaded but not effective.`);
|
497
497
|
continue;
|
498
498
|
}
|
499
499
|
}
|
@@ -593,9 +593,6 @@ class Loader {
|
|
593
593
|
}
|
594
594
|
});
|
595
595
|
const pluginConfList = pluginsConf.list;
|
596
|
-
if (pluginList.length > pluginConfList.length) {
|
597
|
-
Logger.Warn("Some plugins is loaded but not allowed to execute.");
|
598
|
-
}
|
599
596
|
for (const key of pluginConfList) {
|
600
597
|
const handle = IOCContainer.get(key, "COMPONENT");
|
601
598
|
if (!Helper.isFunction(handle.run)) {
|
@@ -603,6 +600,7 @@ class Loader {
|
|
603
600
|
continue;
|
604
601
|
}
|
605
602
|
if (pluginsConf.config[key] === false) {
|
603
|
+
Logger.Warn(`Plugin ${key} already loaded but not effective.`);
|
606
604
|
continue;
|
607
605
|
}
|
608
606
|
// sync exec
|
@@ -611,7 +609,7 @@ class Loader {
|
|
611
609
|
}
|
612
610
|
}
|
613
611
|
|
614
|
-
var version = "3.7.
|
612
|
+
var version = "3.7.2";
|
615
613
|
var engines = {
|
616
614
|
node: ">12.0.0"
|
617
615
|
};
|
@@ -826,9 +824,6 @@ const newServe = function (app) {
|
|
826
824
|
options.ext.protoFile = proto;
|
827
825
|
}
|
828
826
|
const server = Serve(app, options);
|
829
|
-
process.on('SIGINT', () => {
|
830
|
-
server.Stop();
|
831
|
-
});
|
832
827
|
return server;
|
833
828
|
};
|
834
829
|
/**
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.7.
|
3
|
+
"version": "3.7.2",
|
4
4
|
"description": "Koa2 + Typescript = koatty. Use Typescript's decorator implement auto injection.",
|
5
5
|
"scripts": {
|
6
6
|
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
@@ -90,11 +90,11 @@
|
|
90
90
|
"koatty_logger": "1.3.14",
|
91
91
|
"koatty_payload": "1.3.18",
|
92
92
|
"koatty_proto": "^1.1.9",
|
93
|
-
"koatty_router": "1.
|
94
|
-
"koatty_serve": "1.
|
95
|
-
"koatty_trace": "1.
|
93
|
+
"koatty_router": "1.8.0",
|
94
|
+
"koatty_serve": "1.5.0",
|
95
|
+
"koatty_trace": "1.7.0",
|
96
96
|
"koatty_validation": "1.2.5",
|
97
97
|
"reflect-metadata": "0.1.13",
|
98
|
-
"tslib": "2.4.
|
98
|
+
"tslib": "2.4.1"
|
99
99
|
}
|
100
100
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.7.
|
3
|
+
"version": "3.7.2",
|
4
4
|
"description": "Koa2 + Typescript = koatty. Use Typescript's decorator implement auto injection.",
|
5
5
|
"scripts": {
|
6
6
|
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
@@ -90,11 +90,11 @@
|
|
90
90
|
"koatty_logger": "1.3.14",
|
91
91
|
"koatty_payload": "1.3.18",
|
92
92
|
"koatty_proto": "^1.1.9",
|
93
|
-
"koatty_router": "1.
|
94
|
-
"koatty_serve": "1.
|
95
|
-
"koatty_trace": "1.
|
93
|
+
"koatty_router": "1.8.0",
|
94
|
+
"koatty_serve": "1.5.0",
|
95
|
+
"koatty_trace": "1.7.0",
|
96
96
|
"koatty_validation": "1.2.5",
|
97
97
|
"reflect-metadata": "0.1.13",
|
98
|
-
"tslib": "2.4.
|
98
|
+
"tslib": "2.4.1"
|
99
99
|
}
|
100
100
|
}
|