@eggjs/module-common 4.0.0-beta.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017-present Alibaba Group Holding Limited and other contributors.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # `@eggjs/egg-module-common`
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/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
+
15
+ ## Usage
16
+
17
+ This is an internal tegg library, you probably shouldn't use it directly.
@@ -0,0 +1,3 @@
1
+ export declare const TEGG_CONTEXT: symbol;
2
+ export declare const EGG_CONTEXT: symbol;
3
+ export declare const ROOT_PROTO: symbol;
package/dist/index.js ADDED
@@ -0,0 +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==
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@eggjs/module-common",
3
+ "version": "4.0.0-beta.0",
4
+ "description": "common module",
5
+ "keywords": [
6
+ "egg",
7
+ "typescript",
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"
19
+ ],
20
+ "author": "killagu <killa123@126.com>",
21
+ "license": "MIT",
22
+ "homepage": "https://github.com/eggjs/egg/tree/next/tegg/plugin/common",
23
+ "bugs": {
24
+ "url": "https://github.com/eggjs/egg/issues"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git@github.com:eggjs/egg.git",
29
+ "directory": "tegg/plugin/common"
30
+ },
31
+ "engines": {
32
+ "node": ">=22.18.0"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "devDependencies": {
38
+ "@types/node": "^24.9.1",
39
+ "typescript": "^5.9.3",
40
+ "tsdown": "0.15.9",
41
+ "unplugin-unused": "^0.5.4"
42
+ },
43
+ "main": "./dist/index.js",
44
+ "module": "./dist/index.js",
45
+ "types": "./dist/index.d.ts",
46
+ "scripts": {
47
+ "clean": "rimraf dist *.tsbuildinfo",
48
+ "build": "tsdown && npm run clean && tsc -p tsconfig.build.json",
49
+ "typecheck": "tsc --noEmit"
50
+ }
51
+ }