zenweb 2.4.2 → 2.4.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/dist/index.d.ts +8 -2
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '@zenweb/meta';
|
|
2
|
+
import '@zenweb/log';
|
|
3
|
+
import '@zenweb/messagecode';
|
|
4
|
+
import '@zenweb/body';
|
|
5
|
+
import '@zenweb/helper';
|
|
6
|
+
import { Core, SetupFunction } from '@zenweb/core';
|
|
2
7
|
import { CreateOptions } from './types';
|
|
3
8
|
export { Router } from '@zenweb/router';
|
|
4
9
|
export { ApiFail } from '@zenweb/api';
|
|
5
10
|
export { Service } from '@zenweb/service';
|
|
6
11
|
export * from './types';
|
|
12
|
+
export { Core, SetupFunction, };
|
|
7
13
|
/**
|
|
8
14
|
* @param options 模块配置项
|
|
9
15
|
*/
|
|
10
|
-
export declare function create(options
|
|
16
|
+
export declare function create(options?: CreateOptions): Core;
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.create = exports.Service = exports.ApiFail = exports.Router = void 0;
|
|
13
|
+
exports.create = exports.Core = exports.Service = exports.ApiFail = exports.Router = void 0;
|
|
14
|
+
require("@zenweb/meta");
|
|
15
|
+
require("@zenweb/log");
|
|
16
|
+
require("@zenweb/messagecode");
|
|
17
|
+
require("@zenweb/body");
|
|
18
|
+
require("@zenweb/helper");
|
|
14
19
|
const meta_1 = require("@zenweb/meta");
|
|
15
20
|
const log_1 = require("@zenweb/log");
|
|
16
21
|
const router_1 = require("@zenweb/router");
|
|
@@ -20,6 +25,7 @@ const service_1 = require("@zenweb/service");
|
|
|
20
25
|
const api_1 = require("@zenweb/api");
|
|
21
26
|
const helper_1 = require("@zenweb/helper");
|
|
22
27
|
const core_1 = require("@zenweb/core");
|
|
28
|
+
Object.defineProperty(exports, "Core", { enumerable: true, get: function () { return core_1.Core; } });
|
|
23
29
|
var router_2 = require("@zenweb/router");
|
|
24
30
|
Object.defineProperty(exports, "Router", { enumerable: true, get: function () { return router_2.Router; } });
|
|
25
31
|
var api_2 = require("@zenweb/api");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uCAAgC;AAChC,qCAA8B;AAC9B,2CAAoC;AACpC,qDAA8C;AAC9C,uCAAgC;AAChC,6CAAsC;AACtC,qCAA8B;AAC9B,2CAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wBAAsB;AACtB,uBAAqB;AACrB,+BAA6B;AAC7B,wBAAsB;AACtB,0BAAwB;AACxB,uCAAgC;AAChC,qCAA8B;AAC9B,2CAAoC;AACpC,qDAA8C;AAC9C,uCAAgC;AAChC,6CAAsC;AACtC,qCAA8B;AAC9B,2CAAoC;AACpC,uCAAmD;AAQjD,qFARO,WAAI,OAQP;AANN,yCAAwC;AAA/B,gGAAA,MAAM,OAAA;AACf,mCAAsC;AAA7B,8FAAA,OAAO,OAAA;AAChB,2CAA0C;AAAjC,kGAAA,OAAO,OAAA;AAChB,0CAAwB;AAOxB;;GAEG;AACH,SAAgB,MAAM,CAAC,OAAuB;IAC5C,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;IACxB,MAAM,IAAI,GAAG,IAAI,WAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,IAAI,OAAO,CAAC,IAAI,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,cAAI,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,GAAG,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,aAAG,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,gBAAM,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE,IAAI,OAAO,CAAC,WAAW,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,qBAAW,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;IAChF,IAAI,OAAO,CAAC,IAAI,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,cAAI,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAO,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IACpE,IAAI,OAAO,CAAC,GAAG,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,aAAG,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK;QAAE,IAAI,CAAC,KAAK,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IACnD,OAAO,IAAI,CAAC;AACd,CAAC;AAZD,wBAYC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenweb",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.7",
|
|
4
4
|
"description": "Modular lightweight web framework based on Koa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"prepublishOnly": "
|
|
11
|
+
"prepublishOnly": "rimraf dist && tsc",
|
|
12
12
|
"dev": "cd example && zenweb-service-types && cross-env DEBUG=* NODE_ENV=development ts-node app"
|
|
13
13
|
},
|
|
14
14
|
"author": {
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@zenweb/api": "^2.3.3",
|
|
35
35
|
"@zenweb/body": "^2.3.1",
|
|
36
|
-
"@zenweb/core": "^2.
|
|
36
|
+
"@zenweb/core": "^2.4.1",
|
|
37
37
|
"@zenweb/helper": "^2.4.0",
|
|
38
38
|
"@zenweb/log": "^2.3.0",
|
|
39
39
|
"@zenweb/messagecode": "^2.3.0",
|
|
40
40
|
"@zenweb/meta": "^2.3.0",
|
|
41
41
|
"@zenweb/router": "^2.3.0",
|
|
42
|
-
"@zenweb/service": "^2.4.
|
|
42
|
+
"@zenweb/service": "^2.4.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"cross-env": "^7.0.3"
|
|
45
|
+
"cross-env": "^7.0.3",
|
|
46
|
+
"rimraf": "^3.0.2"
|
|
46
47
|
}
|
|
47
48
|
}
|