@vercel/introspection 0.0.5 → 0.0.7
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/express.mjs +54969 -11
- package/dist/hono.mjs +54968 -11
- package/dist/index.mjs +6 -7
- package/dist/loaders/cjs.cjs +55018 -45
- package/dist/loaders/esm.mjs +21 -1
- package/package.json +4 -4
package/dist/loaders/esm.mjs
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
import { register } from "node:module";
|
|
1
|
+
import { createRequire, register } from "node:module";
|
|
2
2
|
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/loaders/block-network.ts
|
|
8
|
+
for (const mod of [
|
|
9
|
+
"net",
|
|
10
|
+
"dns",
|
|
11
|
+
"http",
|
|
12
|
+
"https",
|
|
13
|
+
"tls",
|
|
14
|
+
"dgram"
|
|
15
|
+
]) try {
|
|
16
|
+
const m = __require(mod);
|
|
17
|
+
for (const key of Object.keys(m)) m[key] = new Proxy(m[key], { apply() {
|
|
18
|
+
throw new Error("Networking is disabled");
|
|
19
|
+
} });
|
|
20
|
+
} catch {}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
3
23
|
//#region src/loaders/esm.ts
|
|
4
24
|
register(new URL("./hooks.mjs", import.meta.url), import.meta.url);
|
|
5
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/introspection",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://vercel.com/docs",
|
|
6
6
|
"type": "module",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"@types/express": "5.0.3",
|
|
33
33
|
"@types/fs-extra": "11",
|
|
34
34
|
"@types/jest": "27.5.1",
|
|
35
|
-
"@vercel/static-config": "3.1.2",
|
|
36
35
|
"@vercel/nft": "1.1.1",
|
|
37
36
|
"@types/node": "22",
|
|
38
37
|
"fs-extra": "11.1.0",
|
|
39
|
-
"@vercel/build-utils": "13.2.2",
|
|
40
38
|
"execa": "3.2.0",
|
|
41
39
|
"hono": "4.10.1",
|
|
42
40
|
"jest-junit": "16.0.0",
|
|
43
41
|
"tsdown": "0.16.3",
|
|
44
42
|
"vite": "^5.1.6",
|
|
45
43
|
"vitest": "^2.0.1",
|
|
46
|
-
"@vercel/cervel": "0.0.6"
|
|
44
|
+
"@vercel/cervel": "0.0.6",
|
|
45
|
+
"@vercel/build-utils": "13.2.3",
|
|
46
|
+
"@vercel/static-config": "3.1.2"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsdown",
|