zenweb 4.2.0 → 4.2.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 +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.2.2] - 2023-11-21
|
|
4
|
+
- 更新 @zenweb/core@4.1.2 删除 console.log({ target }) 调试输出
|
|
5
|
+
|
|
6
|
+
## [4.2.1] - 2023-9-20
|
|
7
|
+
- 导出 $core, $ctx
|
|
8
|
+
|
|
3
9
|
## [4.2.0] - 2023-8-25
|
|
4
10
|
- result 模块不再内置 messagecode 支持
|
|
5
11
|
- 更新 @zenweb/helper @zenweb/messagecode @zenweb/result
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { init, inject, factory, scope, getInstance } from '@zenweb/inject';
|
|
|
4
4
|
export { Router } from '@zenweb/router';
|
|
5
5
|
export { ResultFail, fail } from '@zenweb/result';
|
|
6
6
|
export { controller, mapping } from '@zenweb/controller';
|
|
7
|
-
export { Next, SetupFunction, Context, Middleware, SetupHelper, getCore, getContext } from '@zenweb/core';
|
|
7
|
+
export { Next, SetupFunction, Context, Middleware, SetupHelper, getCore, getContext, $core, $ctx, } from '@zenweb/core';
|
|
8
8
|
export { Body, ObjectBody, BodyHelper, RawBody, TextBody, useBodyParser, $body, getTextBody, getRawBody, getObjectBody, } from '@zenweb/body';
|
|
9
9
|
export { QueryHelper, TypeCastHelper, ParamHelper, $param, $query, helperBase, } from '@zenweb/helper';
|
|
10
10
|
export { $log, getLogger, Logger, } from '@zenweb/log';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.create = exports.Core = exports.getLogger = exports.$log = exports.helperBase = exports.$query = exports.$param = exports.ParamHelper = exports.TypeCastHelper = exports.QueryHelper = exports.getObjectBody = exports.getRawBody = exports.getTextBody = exports.$body = exports.useBodyParser = exports.TextBody = exports.RawBody = exports.BodyHelper = exports.ObjectBody = exports.Body = exports.getContext = exports.getCore = exports.SetupHelper = exports.Context = exports.mapping = exports.controller = exports.fail = exports.ResultFail = exports.Router = exports.getInstance = exports.scope = exports.factory = exports.inject = exports.init = void 0;
|
|
3
|
+
exports.create = exports.Core = exports.getLogger = exports.$log = exports.helperBase = exports.$query = exports.$param = exports.ParamHelper = exports.TypeCastHelper = exports.QueryHelper = exports.getObjectBody = exports.getRawBody = exports.getTextBody = exports.$body = exports.useBodyParser = exports.TextBody = exports.RawBody = exports.BodyHelper = exports.ObjectBody = exports.Body = exports.$ctx = exports.$core = exports.getContext = exports.getCore = exports.SetupHelper = exports.Context = exports.mapping = exports.controller = exports.fail = exports.ResultFail = exports.Router = exports.getInstance = exports.scope = exports.factory = exports.inject = exports.init = void 0;
|
|
4
4
|
const inject_1 = require("@zenweb/inject");
|
|
5
5
|
const meta_1 = require("@zenweb/meta");
|
|
6
6
|
const log_1 = require("@zenweb/log");
|
|
@@ -31,6 +31,8 @@ Object.defineProperty(exports, "Context", { enumerable: true, get: function () {
|
|
|
31
31
|
Object.defineProperty(exports, "SetupHelper", { enumerable: true, get: function () { return core_2.SetupHelper; } });
|
|
32
32
|
Object.defineProperty(exports, "getCore", { enumerable: true, get: function () { return core_2.getCore; } });
|
|
33
33
|
Object.defineProperty(exports, "getContext", { enumerable: true, get: function () { return core_2.getContext; } });
|
|
34
|
+
Object.defineProperty(exports, "$core", { enumerable: true, get: function () { return core_2.$core; } });
|
|
35
|
+
Object.defineProperty(exports, "$ctx", { enumerable: true, get: function () { return core_2.$ctx; } });
|
|
34
36
|
var body_2 = require("@zenweb/body");
|
|
35
37
|
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_2.Body; } });
|
|
36
38
|
Object.defineProperty(exports, "ObjectBody", { enumerable: true, get: function () { return body_2.ObjectBody; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenweb",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Modular lightweight web framework based on Koa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@zenweb/body": "^4.0.0",
|
|
32
32
|
"@zenweb/controller": "^3.14.0",
|
|
33
|
-
"@zenweb/core": "^4.1.
|
|
33
|
+
"@zenweb/core": "^4.1.2",
|
|
34
34
|
"@zenweb/helper": "^4.1.0",
|
|
35
35
|
"@zenweb/inject": "^4.0.1",
|
|
36
36
|
"@zenweb/log": "^4.1.0",
|