@eggjs/module-common 4.0.0-beta.35 → 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 CHANGED
@@ -1,3 +1,6 @@
1
- export declare const TEGG_CONTEXT: symbol;
2
- export declare const EGG_CONTEXT: symbol;
3
- export declare const ROOT_PROTO: symbol;
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
- // ctx[TEGG_CONTEXT] is the tegg context, aka `teggCtx`
2
- export const TEGG_CONTEXT = Symbol.for('context#teggContext');
3
- // teggCtx.get(EGG_CONTEXT) is the egg context, aka `ctx`
4
- export const EGG_CONTEXT = Symbol.for('context#eggContext');
5
- // teggCtx.get(ROOT_PROTO) is the root proto, equivalent to ctx[ROOT_PROTO]
6
- export const ROOT_PROTO = Symbol.for('context#rootProto');
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdURBQXVEO0FBQ3ZELE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBVyxNQUFNLENBQUMsR0FBRyxDQUFDLHFCQUFxQixDQUFDLENBQUM7QUFDdEUseURBQXlEO0FBQ3pELE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBVyxNQUFNLENBQUMsR0FBRyxDQUFDLG9CQUFvQixDQUFDLENBQUM7QUFDcEUsMkVBQTJFO0FBQzNFLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBVyxNQUFNLENBQUMsR0FBRyxDQUFDLG1CQUFtQixDQUFDLENBQUMifQ==
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.35",
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
- "common",
10
- "tegg"
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
20
  "url": "git+https://github.com/eggjs/egg.git",
29
21
  "directory": "tegg/plugin/common"
30
22
  },
31
- "engines": {
32
- "node": ">=22.18.0"
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.10.1",
39
- "typescript": "^5.9.3",
40
- "tsdown": "^0.17.0",
41
- "unplugin-unused": "^0.5.4"
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
- "clean": "rimraf dist *.tsbuildinfo",
48
- "build": "tsdown && npm run clean && tsc -p tsconfig.build.json",
49
- "typecheck": "tsc --noEmit"
45
+ "typecheck": "tsgo --noEmit"
50
46
  }
51
47
  }