@eggjs/typings 4.1.2-beta.17 → 4.1.2-beta.19
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/global.d.ts +17 -2
- package/package.json +13 -8
- package/LICENSE +0 -21
package/dist/global.d.ts
CHANGED
|
@@ -8,7 +8,22 @@ declare global {
|
|
|
8
8
|
* Synchronous require bound to the bundle output directory, installed by the
|
|
9
9
|
* snapshot restore main function. The snapshot prelude / lazy mechanism uses it
|
|
10
10
|
* to pull in modules through `require()` (Node 22+ can `require()` ESM) because a
|
|
11
|
-
* deserialized snapshot process has no dynamic `import()` callback.
|
|
11
|
+
* deserialized snapshot process has no dynamic `import()` callback. It also carries
|
|
12
|
+
* a `resolve` (the underlying `createRequire(...).resolve`) so the web globals
|
|
13
|
+
* re-installer can locate `undici` through the app dependency tree.
|
|
12
14
|
*/
|
|
13
|
-
var __RUNTIME_REQUIRE: ((id: string) => unknown)
|
|
15
|
+
var __RUNTIME_REQUIRE: (((id: string) => unknown) & {
|
|
16
|
+
resolve?: (id: string, options?: {
|
|
17
|
+
paths?: string[];
|
|
18
|
+
}) => string;
|
|
19
|
+
}) | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Re-install the web globals (`fetch`/`Headers`/.../`Blob`/`File`) that the snapshot
|
|
22
|
+
* prelude replaces with stubs at build time, as lazy accessors backed by `undici`
|
|
23
|
+
* (the fetch family) and `node:buffer` (`Blob`/`File`). Defined by the snapshot
|
|
24
|
+
* prelude and serialized into the blob; the snapshot restore main calls it once
|
|
25
|
+
* `__RUNTIME_REQUIRE` is installed, so an app that uses `globalThis.fetch` keeps
|
|
26
|
+
* working after a restore.
|
|
27
|
+
*/
|
|
28
|
+
var __installWebGlobalsLazy: (() => void) | undefined;
|
|
14
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/typings",
|
|
3
|
-
"version": "4.1.2-beta.
|
|
3
|
+
"version": "4.1.2-beta.19",
|
|
4
4
|
"description": "Shared typings for egg projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -31,17 +31,22 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
|
-
"access": "public"
|
|
34
|
+
"access": "public",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": "./dist/index.js",
|
|
37
|
+
"./global": "./dist/global.js",
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"typecheck": "tsgo --noEmit"
|
|
35
43
|
},
|
|
36
44
|
"dependencies": {},
|
|
37
45
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
46
|
+
"@eggjs/tsconfig": "3.1.2-beta.19",
|
|
47
|
+
"typescript": "^5.9.3"
|
|
40
48
|
},
|
|
41
49
|
"engines": {
|
|
42
50
|
"node": ">=22.18.0"
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"typecheck": "tsgo --noEmit"
|
|
46
51
|
}
|
|
47
|
-
}
|
|
52
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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.
|