@eggjs/egg-module-common 4.0.0-beta.4 → 4.0.0-beta.6

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/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # `@eggjs/egg-module-common`
2
2
 
3
+ [![NPM version][npm-image]][npm-url]
4
+ [![Known Vulnerabilities][snyk-image]][snyk-url]
5
+ [![npm download][download-image]][download-url]
6
+ [![Node.js Version](https://img.shields.io/node/v/@eggjs/egg-module-common.svg?style=flat)](https://nodejs.org/en/download/)
7
+
8
+ [npm-image]: https://img.shields.io/npm/v/@eggjs/egg-module-common.svg?style=flat-square
9
+ [npm-url]: https://npmjs.org/package/@eggjs/egg-module-common
10
+ [snyk-image]: https://snyk.io/test/npm/@eggjs/egg-module-common/badge.svg?style=flat-square
11
+ [snyk-url]: https://snyk.io/test/npm/@eggjs/egg-module-common
12
+ [download-image]: https://img.shields.io/npm/dm/@eggjs/egg-module-common.svg?style=flat-square
13
+ [download-url]: https://npmjs.org/package/@eggjs/egg-module-common
14
+
3
15
  ## Usage
4
16
 
5
17
  This is an internal tegg library, you probably shouldn't use it directly.
@@ -0,0 +1,6 @@
1
+ //#region src/index.d.ts
2
+ declare const TEGG_CONTEXT: unique symbol;
3
+ declare const EGG_CONTEXT: unique symbol;
4
+ declare const ROOT_PROTO: unique symbol;
5
+ //#endregion
6
+ export { EGG_CONTEXT, ROOT_PROTO, TEGG_CONTEXT };
package/dist/index.js ADDED
@@ -0,0 +1,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/egg-module-common",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.6",
4
4
  "description": "common module",
5
5
  "keywords": [
6
6
  "egg",
@@ -11,24 +11,15 @@
11
11
  ],
12
12
  "type": "module",
13
13
  "exports": {
14
- ".": {
15
- "types": "./index.d.ts",
16
- "default": "./index.js"
17
- }
14
+ ".": "./dist/index.js",
15
+ "./package.json": "./package.json"
18
16
  },
19
17
  "files": [
20
- "index.js",
21
- "index.d.ts"
18
+ "dist"
22
19
  ],
23
- "scripts": {
24
- "clean": "tsc -b --clean",
25
- "tsc": "npm run clean && tsc -p ./tsconfig.json",
26
- "tsc:pub": "npm run tsc",
27
- "prepublishOnly": "npm run tsc"
28
- },
29
20
  "author": "killagu <killa123@126.com>",
30
21
  "license": "MIT",
31
- "homepage": "https://github.com/eggjs/tegg",
22
+ "homepage": "https://github.com/eggjs/tegg/tree/next/plugin/common",
32
23
  "bugs": {
33
24
  "url": "https://github.com/eggjs/tegg/issues"
34
25
  },
@@ -38,15 +29,23 @@
38
29
  "directory": "plugin/common"
39
30
  },
40
31
  "engines": {
41
- "node": ">=20.0.0"
32
+ "node": ">=22.18.0"
42
33
  },
43
34
  "publishConfig": {
44
35
  "access": "public"
45
36
  },
46
37
  "devDependencies": {
47
- "@types/node": "22",
48
- "ts-node": "10",
49
- "typescript": "5"
38
+ "@types/node": "^22.10.5",
39
+ "typescript": "^5.9.3",
40
+ "tsdown": "^0.15.6",
41
+ "unplugin-unused": "^0.5.3"
50
42
  },
51
- "gitHead": "9ba90bed3ab9f641ceaa6a7db560095817b7e52c"
52
- }
43
+ "main": "./dist/index.js",
44
+ "module": "./dist/index.js",
45
+ "types": "./dist/index.d.ts",
46
+ "scripts": {
47
+ "clean": "rimraf dist",
48
+ "build": "tsdown",
49
+ "typecheck": "tsc --noEmit"
50
+ }
51
+ }
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export declare const TEGG_CONTEXT: unique symbol;
2
- export declare const EGG_CONTEXT: unique symbol;
3
- export declare const ROOT_PROTO: unique symbol;
package/index.js DELETED
@@ -1,4 +0,0 @@
1
- export const TEGG_CONTEXT = Symbol.for('context#teggContext');
2
- export const EGG_CONTEXT = Symbol.for('context#eggContext');
3
- export const ROOT_PROTO = Symbol.for('context#rootProto');
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxZQUFZLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDO0FBQzlELE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLG9CQUFvQixDQUFDLENBQUM7QUFDNUQsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsbUJBQW1CLENBQUMsQ0FBQyJ9