@eggjs/module-common 4.0.0-beta.34 → 4.0.0-beta.36
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 +6 -3
- package/dist/index.js +7 -7
- package/package.json +23 -27
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/index.d.ts
|
|
2
|
+
declare const TEGG_CONTEXT: symbol;
|
|
3
|
+
declare const EGG_CONTEXT: symbol;
|
|
4
|
+
declare const ROOT_PROTO: symbol;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { EGG_CONTEXT, ROOT_PROTO, TEGG_CONTEXT };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
const TEGG_CONTEXT = Symbol.for("context#teggContext");
|
|
3
|
+
const EGG_CONTEXT = Symbol.for("context#eggContext");
|
|
4
|
+
const ROOT_PROTO = Symbol.for("context#rootProto");
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { EGG_CONTEXT, ROOT_PROTO, TEGG_CONTEXT };
|
package/package.json
CHANGED
|
@@ -1,51 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/module-common",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.36",
|
|
4
4
|
"description": "common module",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"common",
|
|
6
7
|
"egg",
|
|
7
|
-
"typescript",
|
|
8
8
|
"module",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
],
|
|
12
|
-
"type": "module",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./dist/index.js",
|
|
15
|
-
"./package.json": "./package.json"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
9
|
+
"tegg",
|
|
10
|
+
"typescript"
|
|
19
11
|
],
|
|
20
|
-
"author": "killagu <killa123@126.com>",
|
|
21
|
-
"license": "MIT",
|
|
22
12
|
"homepage": "https://github.com/eggjs/egg/tree/next/tegg/plugin/common",
|
|
23
13
|
"bugs": {
|
|
24
14
|
"url": "https://github.com/eggjs/egg/issues"
|
|
25
15
|
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "killagu <killa123@126.com>",
|
|
26
18
|
"repository": {
|
|
27
19
|
"type": "git",
|
|
28
|
-
"url": "git
|
|
20
|
+
"url": "git+https://github.com/eggjs/egg.git",
|
|
29
21
|
"directory": "tegg/plugin/common"
|
|
30
22
|
},
|
|
31
|
-
"
|
|
32
|
-
"
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": "./dist/index.js",
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^24.
|
|
39
|
-
"typescript": "^5.9.3"
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
"@types/node": "^24.10.2",
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=22.18.0"
|
|
42
43
|
},
|
|
43
|
-
"main": "./dist/index.js",
|
|
44
|
-
"module": "./dist/index.js",
|
|
45
|
-
"types": "./dist/index.d.ts",
|
|
46
44
|
"scripts": {
|
|
47
|
-
"
|
|
48
|
-
"build": "tsdown && npm run clean && tsc -p tsconfig.build.json",
|
|
49
|
-
"typecheck": "tsc --noEmit"
|
|
45
|
+
"typecheck": "tsgo --noEmit"
|
|
50
46
|
}
|
|
51
47
|
}
|