koatty 3.11.6 → 3.11.7

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 CHANGED
@@ -2,15 +2,22 @@
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.11.6](https://github.com/thinkkoa/koatty/compare/v3.11.4-2...v3.11.6) (2024-12-05)
5
+ ### [3.11.7](https://github.com/thinkkoa/koatty/compare/v3.11.6...v3.11.7) (2024-12-06)
6
6
 
7
7
 
8
8
  ### Bug Fixes
9
9
 
10
- * 暂存 ([4ba0d2b](https://github.com/thinkkoa/koatty/commit/4ba0d2b625a4a329d620a487456452907db9bc91))
11
- * apppath changed in debug mod ([95e0d7b](https://github.com/thinkkoa/koatty/commit/95e0d7b22387da1ecbce5cc0d6faccdb70aee179))
12
- * module ([25a7d7a](https://github.com/thinkkoa/koatty/commit/25a7d7a6a7cb58096907da7aeb6babc0ce2097fc))
10
+ * export koatty_exception ([93e96bc](https://github.com/thinkkoa/koatty/commit/93e96bc703da57c0e555d5b384f0eb93501e3cfb))
13
11
 
12
+ ### [3.11.6](https://github.com/thinkkoa/koatty/compare/v3.11.4-2...v3.11.6) (2024-12-05)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 暂存 ([4ba0d2b](https://github.com/thinkkoa/koatty/commit/4ba0d2b625a4a329d620a487456452907db9bc91))
18
+ * apppath changed in debug mod ([95e0d7b](https://github.com/thinkkoa/koatty/commit/95e0d7b22387da1ecbce5cc0d6faccdb70aee179))
19
+ * module ([25a7d7a](https://github.com/thinkkoa/koatty/commit/25a7d7a6a7cb58096907da7aeb6babc0ce2097fc))
20
+
14
21
  ### [3.11.4-2](https://github.com/thinkkoa/koatty/compare/v3.11.4-1...v3.11.4-2) (2024-04-14)
15
22
 
16
23
  ### [3.11.4-1](https://github.com/thinkkoa/koatty/compare/v3.11.4-0...v3.11.4-1) (2024-04-01)
package/README.md CHANGED
@@ -8,11 +8,13 @@ Use Typescript's decorator implement IOC and AOP.
8
8
 
9
9
  ## New features
10
10
 
11
- * HTTP、HTTPS、HTTP2、gRPC、WebSocket server.
12
- * Support loading environment configuration, parsing command line parameters (process.argv) and environment variables (process.env)
13
- * `@ExceptionHandler()` Register global exception handling
14
- * graceful shutdown and pre-exit event
15
- * custom decorator based on app events
11
+ * HTTP、HTTPS、HTTP2、gRPC、WebSocket server.✔️
12
+ * Support loading environment configuration, parsing command line parameters (process.argv) and environment variables (process.env).✔️
13
+ * `@ExceptionHandler()` Register global exception handling.✔️
14
+ * graceful shutdown and pre-exit event.✔️
15
+ * custom decorator based on app events.✔️
16
+ * GraphQL supporting. 💪
17
+ * OpenTelemetry . 💪
16
18
 
17
19
 
18
20
  ## Documentation
package/dist/README.md CHANGED
@@ -8,11 +8,13 @@ Use Typescript's decorator implement IOC and AOP.
8
8
 
9
9
  ## New features
10
10
 
11
- * HTTP、HTTPS、HTTP2、gRPC、WebSocket server.
12
- * Support loading environment configuration, parsing command line parameters (process.argv) and environment variables (process.env)
13
- * `@ExceptionHandler()` Register global exception handling
14
- * graceful shutdown and pre-exit event
15
- * custom decorator based on app events
11
+ * HTTP、HTTPS、HTTP2、gRPC、WebSocket server.✔️
12
+ * Support loading environment configuration, parsing command line parameters (process.argv) and environment variables (process.env).✔️
13
+ * `@ExceptionHandler()` Register global exception handling.✔️
14
+ * graceful shutdown and pre-exit event.✔️
15
+ * custom decorator based on app events.✔️
16
+ * GraphQL supporting. 💪
17
+ * OpenTelemetry . 💪
16
18
 
17
19
 
18
20
  ## Documentation
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2024-12-05 11:22:38
3
+ * @Date: 2024-12-06 09:38:35
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -75,6 +75,7 @@ export declare const Logger: Logger_2;
75
75
 
76
76
  export * from "koatty_container";
77
77
  export * from "koatty_core";
78
+ export * from "koatty_exception";
78
79
  export * from "koatty_router";
79
80
 
80
81
  export { }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2024-12-05 11:22:18
3
+ * @Date: 2024-12-06 09:38:17
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -10,6 +10,7 @@
10
10
  var koatty_config = require('koatty_config');
11
11
  var koatty_container = require('koatty_container');
12
12
  var koatty_core = require('koatty_core');
13
+ var koatty_exception = require('koatty_exception');
13
14
  var koatty_router = require('koatty_router');
14
15
  var koatty_lib = require('koatty_lib');
15
16
  var koatty_logger = require('koatty_logger');
@@ -71,7 +72,7 @@ function SetLogger(app, config) {
71
72
  }
72
73
  }
73
74
 
74
- var version = "3.11.6";
75
+ var version = "3.11.7";
75
76
  var engines = {
76
77
  node: ">12.0.0"
77
78
  };
@@ -845,6 +846,12 @@ Object.keys(koatty_core).forEach(function (k) {
845
846
  get: function () { return koatty_core[k]; }
846
847
  });
847
848
  });
849
+ Object.keys(koatty_exception).forEach(function (k) {
850
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
851
+ enumerable: true,
852
+ get: function () { return koatty_exception[k]; }
853
+ });
854
+ });
848
855
  Object.keys(koatty_router).forEach(function (k) {
849
856
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
850
857
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2024-12-05 11:22:18
3
+ * @Date: 2024-12-06 09:38:17
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -11,6 +11,7 @@ import { IOC, TAGGED_CLS } from 'koatty_container';
11
11
  export * from 'koatty_container';
12
12
  import { AppEventArr, implementsMiddlewareInterface, implementsControllerInterface, implementsServiceInterface, implementsPluginInterface, implementsAspectInterface, Koatty } from 'koatty_core';
13
13
  export * from 'koatty_core';
14
+ export * from 'koatty_exception';
14
15
  import { NewRouter } from 'koatty_router';
15
16
  export * from 'koatty_router';
16
17
  import { Helper } from 'koatty_lib';
@@ -55,7 +56,7 @@ function SetLogger(app, config) {
55
56
  }
56
57
  }
57
58
 
58
- var version = "3.11.6";
59
+ var version = "3.11.7";
59
60
  var engines = {
60
61
  node: ">12.0.0"
61
62
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.11.6",
3
+ "version": "3.11.7",
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",
@@ -9,7 +9,7 @@
9
9
  "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
10
  "build:dts": "npx tsc && npx api-extractor run --local --verbose",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
- "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
12
+ "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npm audit fix && npx pnpm i",
13
13
  "prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
14
14
  "prerelease": "npm run lock && npm test && npm run build",
15
15
  "release": "standard-version",
@@ -94,6 +94,7 @@
94
94
  "koatty_config": "~1.2.0",
95
95
  "koatty_container": "~1.9.4",
96
96
  "koatty_core": "~1.11.0",
97
+ "koatty_exception": "~1.5.3",
97
98
  "koatty_lib": "~1.4.0",
98
99
  "koatty_loader": "~1.1.0",
99
100
  "koatty_logger": "~2.1.8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.11.6",
3
+ "version": "3.11.7",
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",
@@ -9,7 +9,7 @@
9
9
  "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
10
  "build:dts": "npx tsc && npx api-extractor run --local --verbose",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
- "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
12
+ "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npm audit fix && npx pnpm i",
13
13
  "prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
14
14
  "prerelease": "npm run lock && npm test && npm run build",
15
15
  "release": "standard-version",
@@ -94,6 +94,7 @@
94
94
  "koatty_config": "~1.2.0",
95
95
  "koatty_container": "~1.9.4",
96
96
  "koatty_core": "~1.11.0",
97
+ "koatty_exception": "~1.5.3",
97
98
  "koatty_lib": "~1.4.0",
98
99
  "koatty_loader": "~1.1.0",
99
100
  "koatty_logger": "~2.1.8",