koatty 3.8.0-0 → 3.8.0-1
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 +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
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.8.0-1](https://github.com/thinkkoa/koatty/compare/v3.8.0-0...v3.8.0-1) (2023-02-21)
|
6
|
+
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* version is getter ([1f43b68](https://github.com/thinkkoa/koatty/commit/1f43b68b3434eecc8d0ce154380c16e39a347634))
|
11
|
+
|
5
12
|
## [3.8.0-0](https://github.com/thinkkoa/koatty/compare/v3.7.9...v3.8.0-0) (2023-02-21)
|
6
13
|
|
7
14
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2023-02-21
|
3
|
+
* @Date: 2023-02-21 19:05:35
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -299,11 +299,11 @@ class Loader {
|
|
299
299
|
koatty_lib.Helper.define(app, 'appPath', appPath);
|
300
300
|
koatty_lib.Helper.define(app, 'thinkPath', thinkPath);
|
301
301
|
//
|
302
|
-
if (app.name
|
302
|
+
if (koatty_lib.Helper.isEmpty(app.name)) {
|
303
303
|
const pkg = koatty_lib.Helper.safeRequire(`${appPath}/package.json`);
|
304
304
|
if (pkg.name) {
|
305
305
|
app.name = pkg.name;
|
306
|
-
app.version = app.version || pkg.version;
|
306
|
+
// app.version = app.version || pkg.version; // TODO version is getter
|
307
307
|
}
|
308
308
|
}
|
309
309
|
process.env.ROOT_PATH = rootPath;
|
@@ -616,7 +616,7 @@ class Loader {
|
|
616
616
|
}
|
617
617
|
}
|
618
618
|
|
619
|
-
var version = "3.8.0-
|
619
|
+
var version = "3.8.0-1";
|
620
620
|
var engines = {
|
621
621
|
node: ">12.0.0"
|
622
622
|
};
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2023-02-21
|
3
|
+
* @Date: 2023-02-21 19:05:35
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -285,11 +285,11 @@ class Loader {
|
|
285
285
|
Helper.define(app, 'appPath', appPath);
|
286
286
|
Helper.define(app, 'thinkPath', thinkPath);
|
287
287
|
//
|
288
|
-
if (app.name
|
288
|
+
if (Helper.isEmpty(app.name)) {
|
289
289
|
const pkg = Helper.safeRequire(`${appPath}/package.json`);
|
290
290
|
if (pkg.name) {
|
291
291
|
app.name = pkg.name;
|
292
|
-
app.version = app.version || pkg.version;
|
292
|
+
// app.version = app.version || pkg.version; // TODO version is getter
|
293
293
|
}
|
294
294
|
}
|
295
295
|
process.env.ROOT_PATH = rootPath;
|
@@ -602,7 +602,7 @@ class Loader {
|
|
602
602
|
}
|
603
603
|
}
|
604
604
|
|
605
|
-
var version = "3.8.0-
|
605
|
+
var version = "3.8.0-1";
|
606
606
|
var engines = {
|
607
607
|
node: ">12.0.0"
|
608
608
|
};
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.8.0-
|
3
|
+
"version": "3.8.0-1",
|
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",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.8.0-
|
3
|
+
"version": "3.8.0-1",
|
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",
|