nitropack-nightly 2.12.5-20250819-193746.dc4f1a95 → 2.12.6-20250902-180605.b08a1296
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/meta/index.mjs +1 -1
- package/dist/presets/_unenv/node-compat/cloudflare.mjs +8 -11
- package/dist/presets/bun/runtime/bun.mjs +2 -1
- package/dist/presets/cloudflare/preset.mjs +3 -3
- package/dist/presets/cloudflare/utils.d.ts +1 -1
- package/dist/presets/cloudflare/utils.mjs +5 -2
- package/dist/presets/netlify/legacy/runtime/netlify-builder.d.ts +1 -1
- package/dist/presets/netlify/legacy/runtime/netlify-builder.mjs +39 -2
- package/dist/presets/vercel/utils.mjs +11 -14
- package/package.json +20 -20
- package/dist/presets/_unenv/workerd/crypto.d.mts +0 -146
- package/dist/presets/_unenv/workerd/crypto.mjs +0 -173
- package/dist/presets/_unenv/workerd/module.d.mts +0 -34
- package/dist/presets/_unenv/workerd/module.mjs +0 -109
- package/dist/presets/_unenv/workerd/tls.d.mts +0 -36
- package/dist/presets/_unenv/workerd/tls.mjs +0 -48
- package/dist/presets/_unenv/workerd/util.d.mts +0 -73
- package/dist/presets/_unenv/workerd/util.mjs +0 -126
package/dist/meta/index.mjs
CHANGED
|
@@ -13,11 +13,16 @@ export const builtnNodeModules = [
|
|
|
13
13
|
// Missing exports: CallTracker, partialDeepStrictEqual
|
|
14
14
|
"async_hooks",
|
|
15
15
|
"buffer",
|
|
16
|
+
"constants",
|
|
17
|
+
// Missing exports: EXTENSIONLESS_FORMAT_JAVASCRIPT, EXTENSIONLESS_FORMAT_WASM, O_DIRECT, O_NOATIME, RTLD_DEEPBIND, SIGPOLL, SIGPWR, SIGSTKFLT, defaultCipherList
|
|
18
|
+
"crypto",
|
|
16
19
|
"diagnostics_channel",
|
|
17
20
|
"dns",
|
|
18
21
|
"dns/promises",
|
|
19
22
|
"events",
|
|
20
23
|
// Missing exports: captureRejections, init
|
|
24
|
+
"fs/promises",
|
|
25
|
+
"module",
|
|
21
26
|
"net",
|
|
22
27
|
"path",
|
|
23
28
|
"path/posix",
|
|
@@ -30,22 +35,16 @@ export const builtnNodeModules = [
|
|
|
30
35
|
"string_decoder",
|
|
31
36
|
"timers",
|
|
32
37
|
"timers/promises",
|
|
38
|
+
"tls",
|
|
33
39
|
"url",
|
|
40
|
+
"util",
|
|
34
41
|
"util/types",
|
|
35
42
|
"zlib"
|
|
36
43
|
];
|
|
37
44
|
export const hybridNodeModules = [
|
|
38
45
|
"console",
|
|
39
|
-
"
|
|
40
|
-
// Missing exports: Cipher, Decipher
|
|
41
|
-
"module",
|
|
42
|
-
// Missing exports: Module, SourceMap, constants, enableCompileCache, findPackageJSON, findSourceMap, flushCompileCache, getCompileCacheDir, getSourceMapsSupport, globalPaths, register, runMain, setSourceMapsSupport, stripTypeScriptTypes, syncBuiltinESMExports
|
|
43
|
-
"process",
|
|
46
|
+
"process"
|
|
44
47
|
// Missing exports: abort, allowedNodeEnvironmentFlags, arch, argv, argv0, assert, availableMemory, binding, chdir, config, constrainedMemory, cpuUsage, cwd, debugPort, dlopen, domain, emitWarning, execArgv, execPath, exitCode, finalization, getActiveResourcesInfo, getegid, geteuid, getgid, getgroups, getuid, hasUncaughtExceptionCaptureCallback, hrtime, initgroups, kill, loadEnvFile, memoryUsage, moduleLoadList, openStdin, pid, ppid, reallyExit, ref, release, report, resourceUsage, setSourceMapsEnabled, setUncaughtExceptionCaptureCallback, setegid, seteuid, setgid, setgroups, setuid, sourceMapsEnabled, stderr, stdin, stdout, title, umask, unref, uptime, version, versions
|
|
45
|
-
"tls",
|
|
46
|
-
// Missing exports: createSecurePair
|
|
47
|
-
"util"
|
|
48
|
-
// Missing exports: isBoolean, isBuffer, isDate, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined
|
|
49
48
|
];
|
|
50
49
|
export const unsupportedNodeModules = [
|
|
51
50
|
"_http_agent",
|
|
@@ -57,11 +56,9 @@ export const unsupportedNodeModules = [
|
|
|
57
56
|
"_stream_wrap",
|
|
58
57
|
"child_process",
|
|
59
58
|
"cluster",
|
|
60
|
-
"constants",
|
|
61
59
|
"dgram",
|
|
62
60
|
"domain",
|
|
63
61
|
"fs",
|
|
64
|
-
"fs/promises",
|
|
65
62
|
"http",
|
|
66
63
|
"http2",
|
|
67
64
|
"https",
|
|
@@ -6,6 +6,7 @@ const nitroApp = useNitroApp();
|
|
|
6
6
|
const ws = import.meta._websocket ? wsAdapter(nitroApp.h3App.websocket) : void 0;
|
|
7
7
|
const server = Bun.serve({
|
|
8
8
|
port: process.env.NITRO_PORT || process.env.PORT || 3e3,
|
|
9
|
+
host: process.env.NITRO_HOST || process.env.HOST,
|
|
9
10
|
websocket: import.meta._websocket ? ws.websocket : void 0,
|
|
10
11
|
async fetch(req, server2) {
|
|
11
12
|
if (import.meta._websocket && req.headers.get("upgrade") === "websocket") {
|
|
@@ -26,7 +27,7 @@ const server = Bun.serve({
|
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
|
-
console.log(`Listening on
|
|
30
|
+
console.log(`Listening on ${server.url}...`);
|
|
30
31
|
if (import.meta._tasks) {
|
|
31
32
|
startScheduleRunner();
|
|
32
33
|
}
|
|
@@ -52,7 +52,7 @@ const cloudflarePages = defineNitroPreset(
|
|
|
52
52
|
async compiled(nitro) {
|
|
53
53
|
await writeWranglerConfig(nitro, "pages");
|
|
54
54
|
await writeCFRoutes(nitro);
|
|
55
|
-
await writeCFHeaders(nitro);
|
|
55
|
+
await writeCFHeaders(nitro, "output");
|
|
56
56
|
await writeCFPagesRedirects(nitro);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -82,7 +82,7 @@ const cloudflarePagesStatic = defineNitroPreset(
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
async compiled(nitro) {
|
|
85
|
-
await writeCFHeaders(nitro);
|
|
85
|
+
await writeCFHeaders(nitro, "output");
|
|
86
86
|
await writeCFPagesRedirects(nitro);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -143,7 +143,7 @@ const cloudflareModule = defineNitroPreset(
|
|
|
143
143
|
},
|
|
144
144
|
async compiled(nitro) {
|
|
145
145
|
await writeWranglerConfig(nitro, "module");
|
|
146
|
-
await writeCFHeaders(nitro);
|
|
146
|
+
await writeCFHeaders(nitro, "public");
|
|
147
147
|
await writeFile(
|
|
148
148
|
resolve(nitro.options.output.dir, "package.json"),
|
|
149
149
|
JSON.stringify({ private: true, main: "./server/index.mjs" }, null, 2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Nitro } from "nitropack/types";
|
|
2
2
|
export declare function writeCFRoutes(nitro: Nitro): Promise<void>;
|
|
3
|
-
export declare function writeCFHeaders(nitro: Nitro): Promise<void>;
|
|
3
|
+
export declare function writeCFHeaders(nitro: Nitro, outdir: "public" | "output"): Promise<void>;
|
|
4
4
|
export declare function writeCFPagesRedirects(nitro: Nitro): Promise<void>;
|
|
5
5
|
export declare function enableNodeCompat(nitro: Nitro): Promise<void>;
|
|
6
6
|
export declare function writeWranglerConfig(nitro: Nitro, cfTarget: "pages" | "module"): Promise<void>;
|
|
@@ -75,8 +75,11 @@ export async function writeCFRoutes(nitro) {
|
|
|
75
75
|
function comparePaths(a, b) {
|
|
76
76
|
return a.split("/").length - b.split("/").length || a.localeCompare(b);
|
|
77
77
|
}
|
|
78
|
-
export async function writeCFHeaders(nitro) {
|
|
79
|
-
const headersPath = join(
|
|
78
|
+
export async function writeCFHeaders(nitro, outdir) {
|
|
79
|
+
const headersPath = join(
|
|
80
|
+
outdir === "public" ? nitro.options.output.publicDir : nitro.options.output.dir,
|
|
81
|
+
"_headers"
|
|
82
|
+
);
|
|
80
83
|
const contents = [];
|
|
81
84
|
const rules = Object.entries(nitro.options.routeRules).sort(
|
|
82
85
|
(a, b) => b[0].split(/\/(?!\*)/).length - a[0].split(/\/(?!\*)/).length
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "#nitro-internal-pollyfills";
|
|
2
|
-
export declare const handler:
|
|
2
|
+
export declare const handler: (event: any, context: any, callback?: any) => any;
|
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
import "#nitro-internal-pollyfills";
|
|
2
|
-
import { builder } from "@netlify/functions";
|
|
3
2
|
import { lambda } from "./netlify-lambda.mjs";
|
|
4
|
-
export const handler =
|
|
3
|
+
export const handler = wrapHandler(lambda);
|
|
4
|
+
const BUILDER_FUNCTIONS_FLAG = true;
|
|
5
|
+
const HTTP_STATUS_METHOD_NOT_ALLOWED = 405;
|
|
6
|
+
const METADATA_VERSION = 1;
|
|
7
|
+
const augmentResponse = (response) => {
|
|
8
|
+
if (!response) {
|
|
9
|
+
return response;
|
|
10
|
+
}
|
|
11
|
+
const metadata = {
|
|
12
|
+
version: METADATA_VERSION,
|
|
13
|
+
builder_function: BUILDER_FUNCTIONS_FLAG,
|
|
14
|
+
ttl: response.ttl || 0
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
...response,
|
|
18
|
+
metadata
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
function wrapHandler(handler2) {
|
|
22
|
+
return (event, context, callback) => {
|
|
23
|
+
if (event.httpMethod !== "GET" && event.httpMethod !== "HEAD") {
|
|
24
|
+
return Promise.resolve({
|
|
25
|
+
body: "Method Not Allowed",
|
|
26
|
+
statusCode: HTTP_STATUS_METHOD_NOT_ALLOWED
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const modifiedEvent = {
|
|
30
|
+
...event,
|
|
31
|
+
multiValueQueryStringParameters: {},
|
|
32
|
+
queryStringParameters: {}
|
|
33
|
+
};
|
|
34
|
+
const wrappedCallback = (error, response) => callback ? callback(error, augmentResponse(response)) : null;
|
|
35
|
+
const execution = handler2(modifiedEvent, context, wrappedCallback);
|
|
36
|
+
if (typeof execution === "object" && typeof execution.then === "function") {
|
|
37
|
+
return execution.then(augmentResponse);
|
|
38
|
+
}
|
|
39
|
+
return execution;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -2,9 +2,11 @@ import fsp from "node:fs/promises";
|
|
|
2
2
|
import { defu } from "defu";
|
|
3
3
|
import { writeFile } from "nitropack/kit";
|
|
4
4
|
import { dirname, relative, resolve } from "pathe";
|
|
5
|
-
import { joinURL, withoutLeadingSlash } from "ufo";
|
|
5
|
+
import { joinURL, withLeadingSlash, withoutLeadingSlash } from "ufo";
|
|
6
6
|
import { isTest } from "std-env";
|
|
7
7
|
const SUPPORTED_NODE_VERSIONS = [18, 20, 22];
|
|
8
|
+
const FALLBACK_ROUTE = "/__fallback";
|
|
9
|
+
const SAFE_FS_CHAR_RE = /[^a-zA-Z0-9_.[\]/]/g;
|
|
8
10
|
function getSystemNodeVersion() {
|
|
9
11
|
const systemNodeVersion = Number.parseInt(
|
|
10
12
|
process.versions.node.split(".")[0]
|
|
@@ -57,7 +59,8 @@ export async function generateFunctionFiles(nitro) {
|
|
|
57
59
|
}
|
|
58
60
|
const funcPrefix = resolve(
|
|
59
61
|
nitro.options.output.serverDir,
|
|
60
|
-
".."
|
|
62
|
+
"..",
|
|
63
|
+
normalizeRouteDest(key) + ".isr"
|
|
61
64
|
);
|
|
62
65
|
await fsp.mkdir(dirname(funcPrefix), { recursive: true });
|
|
63
66
|
await fsp.symlink(
|
|
@@ -163,39 +166,33 @@ function generateBuildConfig(nitro, o11Routes) {
|
|
|
163
166
|
if (value.isr === false) {
|
|
164
167
|
return {
|
|
165
168
|
src,
|
|
166
|
-
dest:
|
|
169
|
+
dest: FALLBACK_ROUTE
|
|
167
170
|
};
|
|
168
171
|
}
|
|
169
172
|
return {
|
|
170
173
|
src,
|
|
171
|
-
dest: nitro.options.preset === "vercel-edge" ? "
|
|
174
|
+
dest: nitro.options.preset === "vercel-edge" ? FALLBACK_ROUTE + "?url=$url" : withLeadingSlash(normalizeRouteDest(key) + ".isr?url=$url")
|
|
172
175
|
};
|
|
173
176
|
}),
|
|
174
177
|
...nitro.options.routeRules["/"]?.isr ? [
|
|
175
178
|
{
|
|
176
179
|
src: "(?<url>/)",
|
|
177
|
-
dest: "/
|
|
180
|
+
dest: "/index.isr?url=$url"
|
|
178
181
|
}
|
|
179
182
|
] : [],
|
|
180
183
|
...(o11Routes || []).map((route) => ({
|
|
181
184
|
src: joinURL(nitro.options.baseURL, route.src),
|
|
182
|
-
dest:
|
|
185
|
+
dest: withLeadingSlash(route.dest)
|
|
183
186
|
})),
|
|
184
187
|
...nitro.options.routeRules["/**"]?.isr ? [] : [
|
|
185
188
|
{
|
|
186
189
|
src: "/(.*)",
|
|
187
|
-
dest:
|
|
190
|
+
dest: FALLBACK_ROUTE
|
|
188
191
|
}
|
|
189
192
|
]
|
|
190
193
|
);
|
|
191
194
|
return config;
|
|
192
195
|
}
|
|
193
|
-
function generateEndpoint(url) {
|
|
194
|
-
if (url === "/") {
|
|
195
|
-
return "/__fallback-index";
|
|
196
|
-
}
|
|
197
|
-
return url.includes("/**") ? "/__fallback-" + withoutLeadingSlash(url.replace(/\/\*\*.*/, "").replace(/[^a-z]/g, "-")) : url;
|
|
198
|
-
}
|
|
199
196
|
export function deprecateSWR(nitro) {
|
|
200
197
|
if (nitro.options.future.nativeSWR) {
|
|
201
198
|
return;
|
|
@@ -302,5 +299,5 @@ function normalizeRouteDest(route) {
|
|
|
302
299
|
return `[${segment.replace(/:/g, "_")}]`;
|
|
303
300
|
}
|
|
304
301
|
return segment;
|
|
305
|
-
}).map((segment) => segment.replace(
|
|
302
|
+
}).map((segment) => segment.replace(SAFE_FS_CHAR_RE, "-")).join("/") || "index";
|
|
306
303
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.6-20250902-180605.b08a1296",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -99,7 +99,6 @@
|
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@cloudflare/kv-asset-handler": "^0.4.0",
|
|
102
|
-
"@netlify/functions": "^3.1.10",
|
|
103
102
|
"@rollup/plugin-alias": "^5.1.1",
|
|
104
103
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
105
104
|
"@rollup/plugin-inject": "^5.0.5",
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
108
107
|
"@rollup/plugin-replace": "^6.0.2",
|
|
109
108
|
"@rollup/plugin-terser": "^0.4.4",
|
|
110
|
-
"@vercel/nft": "^0.30.
|
|
109
|
+
"@vercel/nft": "^0.30.1",
|
|
111
110
|
"archiver": "^7.0.1",
|
|
112
111
|
"c12": "^3.2.0",
|
|
113
112
|
"chokidar": "^4.0.3",
|
|
@@ -136,20 +135,20 @@
|
|
|
136
135
|
"klona": "^2.0.6",
|
|
137
136
|
"knitwork": "^1.2.0",
|
|
138
137
|
"listhen": "^1.9.0",
|
|
139
|
-
"magic-string": "^0.30.
|
|
138
|
+
"magic-string": "^0.30.18",
|
|
140
139
|
"magicast": "^0.3.5",
|
|
141
140
|
"mime": "^4.0.7",
|
|
142
|
-
"mlly": "^1.
|
|
141
|
+
"mlly": "^1.8.0",
|
|
143
142
|
"node-fetch-native": "^1.6.7",
|
|
144
143
|
"node-mock-http": "^1.0.2",
|
|
145
144
|
"ofetch": "^1.4.1",
|
|
146
145
|
"ohash": "^2.0.11",
|
|
147
146
|
"pathe": "^2.0.3",
|
|
148
|
-
"perfect-debounce": "^
|
|
149
|
-
"pkg-types": "^2.
|
|
150
|
-
"pretty-bytes": "^
|
|
147
|
+
"perfect-debounce": "^2.0.0",
|
|
148
|
+
"pkg-types": "^2.3.0",
|
|
149
|
+
"pretty-bytes": "^7.0.1",
|
|
151
150
|
"radix3": "^1.1.2",
|
|
152
|
-
"rollup": "^4.
|
|
151
|
+
"rollup": "^4.50.0",
|
|
153
152
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
154
153
|
"scule": "^1.3.0",
|
|
155
154
|
"semver": "^7.7.2",
|
|
@@ -161,10 +160,10 @@
|
|
|
161
160
|
"ultrahtml": "^1.6.0",
|
|
162
161
|
"uncrypto": "^0.1.3",
|
|
163
162
|
"unctx": "^2.4.1",
|
|
164
|
-
"unenv": "2.0.0-rc.
|
|
163
|
+
"unenv": "2.0.0-rc.20",
|
|
165
164
|
"unimport": "^5.2.0",
|
|
166
|
-
"unplugin-utils": "^0.
|
|
167
|
-
"unstorage": "^1.
|
|
165
|
+
"unplugin-utils": "^0.3.0",
|
|
166
|
+
"unstorage": "^1.17.0",
|
|
168
167
|
"untyped": "^2.0.0",
|
|
169
168
|
"unwasm": "^0.3.11",
|
|
170
169
|
"youch": "4.1.0-beta.8",
|
|
@@ -173,10 +172,11 @@
|
|
|
173
172
|
"devDependencies": {
|
|
174
173
|
"@azure/functions": "^3.5.1",
|
|
175
174
|
"@azure/static-web-apps-cli": "^2.0.6",
|
|
176
|
-
"@cloudflare/workers-types": "^4.
|
|
175
|
+
"@cloudflare/workers-types": "^4.20250902.0",
|
|
177
176
|
"@deno/types": "^0.0.1",
|
|
178
|
-
"@netlify/edge-functions": "^2.17.
|
|
179
|
-
"@
|
|
177
|
+
"@netlify/edge-functions": "^2.17.4",
|
|
178
|
+
"@netlify/functions": "^4.2.5",
|
|
179
|
+
"@scalar/api-reference": "^1.34.6",
|
|
180
180
|
"@types/archiver": "^6.0.3",
|
|
181
181
|
"@types/aws-lambda": "^8.10.152",
|
|
182
182
|
"@types/estree": "^1.0.8",
|
|
@@ -190,21 +190,21 @@
|
|
|
190
190
|
"automd": "^0.4.0",
|
|
191
191
|
"changelogen": "^0.6.2",
|
|
192
192
|
"edge-runtime": "^4.0.1",
|
|
193
|
-
"eslint": "^9.
|
|
193
|
+
"eslint": "^9.34.0",
|
|
194
194
|
"eslint-config-unjs": "^0.5.0",
|
|
195
195
|
"execa": "^9.6.0",
|
|
196
196
|
"expect-type": "^1.2.2",
|
|
197
197
|
"firebase-admin": "^12.7.0",
|
|
198
198
|
"firebase-functions": "^4.9.0",
|
|
199
199
|
"get-port-please": "^3.2.0",
|
|
200
|
-
"miniflare": "^4.
|
|
200
|
+
"miniflare": "^4.20250823.1",
|
|
201
201
|
"ohash-v1": "npm:ohash@^1.1.6",
|
|
202
202
|
"prettier": "^3.6.2",
|
|
203
203
|
"typescript": "^5.9.2",
|
|
204
204
|
"unbuild": "^3.6.1",
|
|
205
|
-
"undici": "^7.
|
|
205
|
+
"undici": "^7.15.0",
|
|
206
206
|
"vitest": "^3.2.4",
|
|
207
|
-
"wrangler": "^4.
|
|
207
|
+
"wrangler": "^4.33.1",
|
|
208
208
|
"xml2js": "^0.6.2"
|
|
209
209
|
},
|
|
210
210
|
"peerDependencies": {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
},
|
|
218
218
|
"packageManager": "pnpm@10.3.0",
|
|
219
219
|
"engines": {
|
|
220
|
-
"node": "^
|
|
220
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
221
221
|
},
|
|
222
222
|
"pnpm": {
|
|
223
223
|
"peerDependencyRules": {
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
export const webcrypto: any;
|
|
2
|
-
export const Certificate: any;
|
|
3
|
-
export const Cipheriv: any;
|
|
4
|
-
export const Decipheriv: any;
|
|
5
|
-
export const DiffieHellman: any;
|
|
6
|
-
export const DiffieHellmanGroup: any;
|
|
7
|
-
export const ECDH: any;
|
|
8
|
-
export const Hash: any;
|
|
9
|
-
export const Hmac: any;
|
|
10
|
-
export const KeyObject: any;
|
|
11
|
-
export const PrivateKeyObject: any;
|
|
12
|
-
export const PublicKeyObject: any;
|
|
13
|
-
export const SecretKeyObject: any;
|
|
14
|
-
export const Sign: any;
|
|
15
|
-
export const Verify: any;
|
|
16
|
-
export const X509Certificate: any;
|
|
17
|
-
export const checkPrime: any;
|
|
18
|
-
export const checkPrimeSync: any;
|
|
19
|
-
export const constants: any;
|
|
20
|
-
export const createCipheriv: any;
|
|
21
|
-
export const createDecipheriv: any;
|
|
22
|
-
export const createDiffieHellman: any;
|
|
23
|
-
export const createDiffieHellmanGroup: any;
|
|
24
|
-
export const createECDH: any;
|
|
25
|
-
export const createHash: any;
|
|
26
|
-
export const createHmac: any;
|
|
27
|
-
export const createPrivateKey: any;
|
|
28
|
-
export const createPublicKey: any;
|
|
29
|
-
export const createSecretKey: any;
|
|
30
|
-
export const createSign: any;
|
|
31
|
-
export const createVerify: any;
|
|
32
|
-
export const diffieHellman: any;
|
|
33
|
-
export const fips: any;
|
|
34
|
-
export const generateKey: any;
|
|
35
|
-
export const generateKeyPair: any;
|
|
36
|
-
export const generateKeyPairSync: any;
|
|
37
|
-
export const generateKeySync: any;
|
|
38
|
-
export const generatePrime: any;
|
|
39
|
-
export const generatePrimeSync: any;
|
|
40
|
-
export const getCipherInfo: any;
|
|
41
|
-
export const getCiphers: any;
|
|
42
|
-
export const getCurves: any;
|
|
43
|
-
export const getDiffieHellman: any;
|
|
44
|
-
export const getFips: any;
|
|
45
|
-
export const getHashes: any;
|
|
46
|
-
export const hash: any;
|
|
47
|
-
export const hkdf: any;
|
|
48
|
-
export const hkdfSync: any;
|
|
49
|
-
export const pbkdf2: any;
|
|
50
|
-
export const pbkdf2Sync: any;
|
|
51
|
-
export const privateDecrypt: any;
|
|
52
|
-
export const privateEncrypt: any;
|
|
53
|
-
export const publicDecrypt: any;
|
|
54
|
-
export const publicEncrypt: any;
|
|
55
|
-
export const randomBytes: any;
|
|
56
|
-
export const randomFill: any;
|
|
57
|
-
export const randomFillSync: any;
|
|
58
|
-
export const randomInt: any;
|
|
59
|
-
export const randomUUID: any;
|
|
60
|
-
export const scrypt: any;
|
|
61
|
-
export const scryptSync: any;
|
|
62
|
-
export const secureHeapUsed: any;
|
|
63
|
-
export const setEngine: any;
|
|
64
|
-
export const setFips: any;
|
|
65
|
-
export const sign: any;
|
|
66
|
-
export const subtle: any;
|
|
67
|
-
export const timingSafeEqual: any;
|
|
68
|
-
export const verify: any;
|
|
69
|
-
export const getRandomValues: any;
|
|
70
|
-
declare namespace _default {
|
|
71
|
-
export { Cipher };
|
|
72
|
-
export { Decipher };
|
|
73
|
-
export { rng };
|
|
74
|
-
export { prng };
|
|
75
|
-
export { pseudoRandomBytes };
|
|
76
|
-
export { webcrypto };
|
|
77
|
-
export { getRandomValues };
|
|
78
|
-
export { Certificate };
|
|
79
|
-
export { Cipheriv };
|
|
80
|
-
export { Decipheriv };
|
|
81
|
-
export { DiffieHellman };
|
|
82
|
-
export { DiffieHellmanGroup };
|
|
83
|
-
export { ECDH };
|
|
84
|
-
export { Hash };
|
|
85
|
-
export { Hmac };
|
|
86
|
-
export { KeyObject };
|
|
87
|
-
export { PrivateKeyObject };
|
|
88
|
-
export { PublicKeyObject };
|
|
89
|
-
export { SecretKeyObject };
|
|
90
|
-
export { Sign };
|
|
91
|
-
export { Verify };
|
|
92
|
-
export { X509Certificate };
|
|
93
|
-
export { checkPrime };
|
|
94
|
-
export { checkPrimeSync };
|
|
95
|
-
export { constants };
|
|
96
|
-
export { createCipheriv };
|
|
97
|
-
export { createDecipheriv };
|
|
98
|
-
export { createDiffieHellman };
|
|
99
|
-
export { createDiffieHellmanGroup };
|
|
100
|
-
export { createECDH };
|
|
101
|
-
export { createHash };
|
|
102
|
-
export { createHmac };
|
|
103
|
-
export { createPrivateKey };
|
|
104
|
-
export { createPublicKey };
|
|
105
|
-
export { createSecretKey };
|
|
106
|
-
export { createSign };
|
|
107
|
-
export { createVerify };
|
|
108
|
-
export { diffieHellman };
|
|
109
|
-
export { fips };
|
|
110
|
-
export { generateKey };
|
|
111
|
-
export { generateKeyPair };
|
|
112
|
-
export { generateKeyPairSync };
|
|
113
|
-
export { generateKeySync };
|
|
114
|
-
export { generatePrime };
|
|
115
|
-
export { generatePrimeSync };
|
|
116
|
-
export { getCipherInfo };
|
|
117
|
-
export { getCiphers };
|
|
118
|
-
export { getCurves };
|
|
119
|
-
export { getDiffieHellman };
|
|
120
|
-
export { getFips };
|
|
121
|
-
export { getHashes };
|
|
122
|
-
export { hash };
|
|
123
|
-
export { hkdf };
|
|
124
|
-
export { hkdfSync };
|
|
125
|
-
export { pbkdf2 };
|
|
126
|
-
export { pbkdf2Sync };
|
|
127
|
-
export { privateDecrypt };
|
|
128
|
-
export { privateEncrypt };
|
|
129
|
-
export { publicDecrypt };
|
|
130
|
-
export { publicEncrypt };
|
|
131
|
-
export { randomBytes };
|
|
132
|
-
export { randomFill };
|
|
133
|
-
export { randomFillSync };
|
|
134
|
-
export { randomInt };
|
|
135
|
-
export { randomUUID };
|
|
136
|
-
export { scrypt };
|
|
137
|
-
export { scryptSync };
|
|
138
|
-
export { secureHeapUsed };
|
|
139
|
-
export { setEngine };
|
|
140
|
-
export { setFips };
|
|
141
|
-
export { sign };
|
|
142
|
-
export { subtle };
|
|
143
|
-
export { timingSafeEqual };
|
|
144
|
-
export { verify };
|
|
145
|
-
}
|
|
146
|
-
export default _default;
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
// https://github.com/cloudflare/workerd/blob/main/src/node/crypto.ts
|
|
2
|
-
|
|
3
|
-
import workerdCrypto from "#workerd/node:crypto";
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
Cipher,
|
|
7
|
-
Decipher,
|
|
8
|
-
rng,
|
|
9
|
-
prng,
|
|
10
|
-
pseudoRandomBytes,
|
|
11
|
-
} from "unenv/node/crypto";
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
Cipher,
|
|
15
|
-
Decipher,
|
|
16
|
-
rng,
|
|
17
|
-
prng,
|
|
18
|
-
pseudoRandomBytes,
|
|
19
|
-
} from "unenv/node/crypto";
|
|
20
|
-
|
|
21
|
-
export const {
|
|
22
|
-
webcrypto,
|
|
23
|
-
Certificate,
|
|
24
|
-
Cipheriv,
|
|
25
|
-
Decipheriv,
|
|
26
|
-
DiffieHellman,
|
|
27
|
-
DiffieHellmanGroup,
|
|
28
|
-
ECDH,
|
|
29
|
-
Hash,
|
|
30
|
-
Hmac,
|
|
31
|
-
KeyObject,
|
|
32
|
-
PrivateKeyObject,
|
|
33
|
-
PublicKeyObject,
|
|
34
|
-
SecretKeyObject,
|
|
35
|
-
Sign,
|
|
36
|
-
Verify,
|
|
37
|
-
X509Certificate,
|
|
38
|
-
checkPrime,
|
|
39
|
-
checkPrimeSync,
|
|
40
|
-
constants,
|
|
41
|
-
createCipheriv,
|
|
42
|
-
createDecipheriv,
|
|
43
|
-
createDiffieHellman,
|
|
44
|
-
createDiffieHellmanGroup,
|
|
45
|
-
createECDH,
|
|
46
|
-
createHash,
|
|
47
|
-
createHmac,
|
|
48
|
-
createPrivateKey,
|
|
49
|
-
createPublicKey,
|
|
50
|
-
createSecretKey,
|
|
51
|
-
createSign,
|
|
52
|
-
createVerify,
|
|
53
|
-
diffieHellman,
|
|
54
|
-
fips,
|
|
55
|
-
generateKey,
|
|
56
|
-
generateKeyPair,
|
|
57
|
-
generateKeyPairSync,
|
|
58
|
-
generateKeySync,
|
|
59
|
-
generatePrime,
|
|
60
|
-
generatePrimeSync,
|
|
61
|
-
getCipherInfo,
|
|
62
|
-
getCiphers,
|
|
63
|
-
getCurves,
|
|
64
|
-
getDiffieHellman,
|
|
65
|
-
getFips,
|
|
66
|
-
getHashes,
|
|
67
|
-
hash,
|
|
68
|
-
hkdf,
|
|
69
|
-
hkdfSync,
|
|
70
|
-
pbkdf2,
|
|
71
|
-
pbkdf2Sync,
|
|
72
|
-
privateDecrypt,
|
|
73
|
-
privateEncrypt,
|
|
74
|
-
publicDecrypt,
|
|
75
|
-
publicEncrypt,
|
|
76
|
-
randomBytes,
|
|
77
|
-
randomFill,
|
|
78
|
-
randomFillSync,
|
|
79
|
-
randomInt,
|
|
80
|
-
randomUUID,
|
|
81
|
-
scrypt,
|
|
82
|
-
scryptSync,
|
|
83
|
-
secureHeapUsed,
|
|
84
|
-
setEngine,
|
|
85
|
-
setFips,
|
|
86
|
-
sign,
|
|
87
|
-
subtle,
|
|
88
|
-
timingSafeEqual,
|
|
89
|
-
verify,
|
|
90
|
-
} = workerdCrypto;
|
|
91
|
-
|
|
92
|
-
export const getRandomValues = workerdCrypto.getRandomValues.bind(
|
|
93
|
-
workerdCrypto.webcrypto
|
|
94
|
-
);
|
|
95
|
-
|
|
96
|
-
export default {
|
|
97
|
-
// Polyfill
|
|
98
|
-
Cipher,
|
|
99
|
-
Decipher,
|
|
100
|
-
rng,
|
|
101
|
-
prng,
|
|
102
|
-
pseudoRandomBytes,
|
|
103
|
-
// Native
|
|
104
|
-
webcrypto,
|
|
105
|
-
getRandomValues,
|
|
106
|
-
Certificate,
|
|
107
|
-
Cipheriv,
|
|
108
|
-
Decipheriv,
|
|
109
|
-
DiffieHellman,
|
|
110
|
-
DiffieHellmanGroup,
|
|
111
|
-
ECDH,
|
|
112
|
-
Hash,
|
|
113
|
-
Hmac,
|
|
114
|
-
KeyObject,
|
|
115
|
-
PrivateKeyObject,
|
|
116
|
-
PublicKeyObject,
|
|
117
|
-
SecretKeyObject,
|
|
118
|
-
Sign,
|
|
119
|
-
Verify,
|
|
120
|
-
X509Certificate,
|
|
121
|
-
checkPrime,
|
|
122
|
-
checkPrimeSync,
|
|
123
|
-
constants,
|
|
124
|
-
createCipheriv,
|
|
125
|
-
createDecipheriv,
|
|
126
|
-
createDiffieHellman,
|
|
127
|
-
createDiffieHellmanGroup,
|
|
128
|
-
createECDH,
|
|
129
|
-
createHash,
|
|
130
|
-
createHmac,
|
|
131
|
-
createPrivateKey,
|
|
132
|
-
createPublicKey,
|
|
133
|
-
createSecretKey,
|
|
134
|
-
createSign,
|
|
135
|
-
createVerify,
|
|
136
|
-
diffieHellman,
|
|
137
|
-
fips,
|
|
138
|
-
generateKey,
|
|
139
|
-
generateKeyPair,
|
|
140
|
-
generateKeyPairSync,
|
|
141
|
-
generateKeySync,
|
|
142
|
-
generatePrime,
|
|
143
|
-
generatePrimeSync,
|
|
144
|
-
getCipherInfo,
|
|
145
|
-
getCiphers,
|
|
146
|
-
getCurves,
|
|
147
|
-
getDiffieHellman,
|
|
148
|
-
getFips,
|
|
149
|
-
getHashes,
|
|
150
|
-
hash,
|
|
151
|
-
hkdf,
|
|
152
|
-
hkdfSync,
|
|
153
|
-
pbkdf2,
|
|
154
|
-
pbkdf2Sync,
|
|
155
|
-
privateDecrypt,
|
|
156
|
-
privateEncrypt,
|
|
157
|
-
publicDecrypt,
|
|
158
|
-
publicEncrypt,
|
|
159
|
-
randomBytes,
|
|
160
|
-
randomFill,
|
|
161
|
-
randomFillSync,
|
|
162
|
-
randomInt,
|
|
163
|
-
randomUUID,
|
|
164
|
-
scrypt,
|
|
165
|
-
scryptSync,
|
|
166
|
-
secureHeapUsed,
|
|
167
|
-
setEngine,
|
|
168
|
-
setFips,
|
|
169
|
-
sign,
|
|
170
|
-
subtle,
|
|
171
|
-
timingSafeEqual,
|
|
172
|
-
verify,
|
|
173
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const builtinModules: any;
|
|
2
|
-
export const isBuiltin: any;
|
|
3
|
-
export function createRequire(file: any): any;
|
|
4
|
-
declare namespace _default {
|
|
5
|
-
export { Module };
|
|
6
|
-
export { SourceMap };
|
|
7
|
-
export { builtinModules };
|
|
8
|
-
export { enableCompileCache };
|
|
9
|
-
export { constants };
|
|
10
|
-
export { createRequire };
|
|
11
|
-
export { findSourceMap };
|
|
12
|
-
export { getCompileCacheDir };
|
|
13
|
-
export { globalPaths };
|
|
14
|
-
export { isBuiltin };
|
|
15
|
-
export { register };
|
|
16
|
-
export { runMain };
|
|
17
|
-
export { syncBuiltinESMExports };
|
|
18
|
-
export { wrap };
|
|
19
|
-
export { flushCompileCache };
|
|
20
|
-
export { stripTypeScriptTypes };
|
|
21
|
-
export { wrapper };
|
|
22
|
-
export { _cache };
|
|
23
|
-
export { _extensions };
|
|
24
|
-
export { _debug };
|
|
25
|
-
export { _pathCache };
|
|
26
|
-
export { _findPath };
|
|
27
|
-
export { _initPaths };
|
|
28
|
-
export { _load };
|
|
29
|
-
export { _nodeModulePaths };
|
|
30
|
-
export { _preloadModules };
|
|
31
|
-
export { _resolveFilename };
|
|
32
|
-
export { _resolveLookupPaths };
|
|
33
|
-
}
|
|
34
|
-
export default _default;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// https://github.com/cloudflare/workerd/blob/main/src/node/module.ts
|
|
2
|
-
|
|
3
|
-
import workerdModule from "#workerd/node:module";
|
|
4
|
-
|
|
5
|
-
import { notImplemented } from "unenv/_internal/utils";
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
constants,
|
|
9
|
-
enableCompileCache,
|
|
10
|
-
findSourceMap,
|
|
11
|
-
getCompileCacheDir,
|
|
12
|
-
globalPaths,
|
|
13
|
-
Module,
|
|
14
|
-
register,
|
|
15
|
-
runMain,
|
|
16
|
-
SourceMap,
|
|
17
|
-
syncBuiltinESMExports,
|
|
18
|
-
wrap,
|
|
19
|
-
flushCompileCache,
|
|
20
|
-
stripTypeScriptTypes,
|
|
21
|
-
wrapper,
|
|
22
|
-
_readPackage,
|
|
23
|
-
_stat,
|
|
24
|
-
_cache,
|
|
25
|
-
_debug,
|
|
26
|
-
_extensions,
|
|
27
|
-
_findPath,
|
|
28
|
-
_initPaths,
|
|
29
|
-
_load,
|
|
30
|
-
_nodeModulePaths,
|
|
31
|
-
_pathCache,
|
|
32
|
-
_preloadModules,
|
|
33
|
-
_resolveFilename,
|
|
34
|
-
_resolveLookupPaths,
|
|
35
|
-
} from "unenv/node/module";
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
Module,
|
|
39
|
-
SourceMap,
|
|
40
|
-
constants,
|
|
41
|
-
enableCompileCache,
|
|
42
|
-
findSourceMap,
|
|
43
|
-
getCompileCacheDir,
|
|
44
|
-
globalPaths,
|
|
45
|
-
register,
|
|
46
|
-
runMain,
|
|
47
|
-
syncBuiltinESMExports,
|
|
48
|
-
wrap,
|
|
49
|
-
flushCompileCache,
|
|
50
|
-
stripTypeScriptTypes,
|
|
51
|
-
wrapper,
|
|
52
|
-
_cache,
|
|
53
|
-
_extensions,
|
|
54
|
-
_debug,
|
|
55
|
-
_pathCache,
|
|
56
|
-
_findPath,
|
|
57
|
-
_initPaths,
|
|
58
|
-
_load,
|
|
59
|
-
_nodeModulePaths,
|
|
60
|
-
_preloadModules,
|
|
61
|
-
_resolveFilename,
|
|
62
|
-
_resolveLookupPaths,
|
|
63
|
-
_readPackage,
|
|
64
|
-
_stat,
|
|
65
|
-
} from "unenv/node/module";
|
|
66
|
-
|
|
67
|
-
export const { builtinModules, isBuiltin } = workerdModule;
|
|
68
|
-
|
|
69
|
-
export const createRequire = (file) => {
|
|
70
|
-
return Object.assign(workerdModule.createRequire(file), {
|
|
71
|
-
resolve: Object.assign(notImplemented("module.require.resolve"), {
|
|
72
|
-
paths: notImplemented("module.require.resolve.paths"),
|
|
73
|
-
}),
|
|
74
|
-
cache: Object.create(null),
|
|
75
|
-
extensions: _extensions,
|
|
76
|
-
main: undefined,
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export default {
|
|
81
|
-
Module,
|
|
82
|
-
SourceMap,
|
|
83
|
-
builtinModules,
|
|
84
|
-
enableCompileCache,
|
|
85
|
-
constants,
|
|
86
|
-
createRequire,
|
|
87
|
-
findSourceMap,
|
|
88
|
-
getCompileCacheDir,
|
|
89
|
-
globalPaths,
|
|
90
|
-
isBuiltin,
|
|
91
|
-
register,
|
|
92
|
-
runMain,
|
|
93
|
-
syncBuiltinESMExports,
|
|
94
|
-
wrap,
|
|
95
|
-
flushCompileCache,
|
|
96
|
-
stripTypeScriptTypes,
|
|
97
|
-
wrapper,
|
|
98
|
-
_cache,
|
|
99
|
-
_extensions,
|
|
100
|
-
_debug,
|
|
101
|
-
_pathCache,
|
|
102
|
-
_findPath,
|
|
103
|
-
_initPaths,
|
|
104
|
-
_load,
|
|
105
|
-
_nodeModulePaths,
|
|
106
|
-
_preloadModules,
|
|
107
|
-
_resolveFilename,
|
|
108
|
-
_resolveLookupPaths,
|
|
109
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const TLSSocket: any;
|
|
2
|
-
export const connect: any;
|
|
3
|
-
export const SecureContext: any;
|
|
4
|
-
export const checkServerIdentity: any;
|
|
5
|
-
export const convertALPNProtocols: any;
|
|
6
|
-
export const createSecureContext: any;
|
|
7
|
-
export const CLIENT_RENEG_LIMIT: any;
|
|
8
|
-
export const CLIENT_RENEG_WINDOW: any;
|
|
9
|
-
export const DEFAULT_CIPHERS: any;
|
|
10
|
-
export const DEFAULT_ECDH_CURVE: any;
|
|
11
|
-
export const DEFAULT_MAX_VERSION: any;
|
|
12
|
-
export const DEFAULT_MIN_VERSION: any;
|
|
13
|
-
export const Server: any;
|
|
14
|
-
export const createServer: any;
|
|
15
|
-
export const getCiphers: any;
|
|
16
|
-
export const rootCertificates: any;
|
|
17
|
-
declare namespace _default {
|
|
18
|
-
export { TLSSocket };
|
|
19
|
-
export { connect };
|
|
20
|
-
export { CLIENT_RENEG_LIMIT };
|
|
21
|
-
export { CLIENT_RENEG_WINDOW };
|
|
22
|
-
export { DEFAULT_CIPHERS };
|
|
23
|
-
export { DEFAULT_ECDH_CURVE };
|
|
24
|
-
export { DEFAULT_MAX_VERSION };
|
|
25
|
-
export { DEFAULT_MIN_VERSION };
|
|
26
|
-
export { SecureContext };
|
|
27
|
-
export { Server };
|
|
28
|
-
export { checkServerIdentity };
|
|
29
|
-
export { convertALPNProtocols };
|
|
30
|
-
export { createSecureContext };
|
|
31
|
-
export { createServer };
|
|
32
|
-
export { getCiphers };
|
|
33
|
-
export { rootCertificates };
|
|
34
|
-
export { createSecurePair };
|
|
35
|
-
}
|
|
36
|
-
export default _default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// https://github.com/cloudflare/workerd/blob/main/src/node/tls.ts
|
|
2
|
-
|
|
3
|
-
import workerdTLS from "#workerd/node:tls";
|
|
4
|
-
|
|
5
|
-
import { createSecurePair } from "unenv/node/tls";
|
|
6
|
-
|
|
7
|
-
export { createSecurePair } from "unenv/node/tls";
|
|
8
|
-
|
|
9
|
-
export const {
|
|
10
|
-
TLSSocket,
|
|
11
|
-
connect,
|
|
12
|
-
SecureContext,
|
|
13
|
-
checkServerIdentity,
|
|
14
|
-
convertALPNProtocols,
|
|
15
|
-
createSecureContext,
|
|
16
|
-
CLIENT_RENEG_LIMIT,
|
|
17
|
-
CLIENT_RENEG_WINDOW,
|
|
18
|
-
DEFAULT_CIPHERS,
|
|
19
|
-
DEFAULT_ECDH_CURVE,
|
|
20
|
-
DEFAULT_MAX_VERSION,
|
|
21
|
-
DEFAULT_MIN_VERSION,
|
|
22
|
-
Server,
|
|
23
|
-
createServer,
|
|
24
|
-
getCiphers,
|
|
25
|
-
rootCertificates,
|
|
26
|
-
} = workerdTLS;
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
// native
|
|
30
|
-
TLSSocket,
|
|
31
|
-
connect,
|
|
32
|
-
CLIENT_RENEG_LIMIT,
|
|
33
|
-
CLIENT_RENEG_WINDOW,
|
|
34
|
-
DEFAULT_CIPHERS,
|
|
35
|
-
DEFAULT_ECDH_CURVE,
|
|
36
|
-
DEFAULT_MAX_VERSION,
|
|
37
|
-
DEFAULT_MIN_VERSION,
|
|
38
|
-
SecureContext,
|
|
39
|
-
Server,
|
|
40
|
-
checkServerIdentity,
|
|
41
|
-
convertALPNProtocols,
|
|
42
|
-
createSecureContext,
|
|
43
|
-
createServer,
|
|
44
|
-
getCiphers,
|
|
45
|
-
rootCertificates,
|
|
46
|
-
// polyfill
|
|
47
|
-
createSecurePair,
|
|
48
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export const MIMEParams: any;
|
|
2
|
-
export const MIMEType: any;
|
|
3
|
-
export const TextDecoder: any;
|
|
4
|
-
export const TextEncoder: any;
|
|
5
|
-
export const _extend: any;
|
|
6
|
-
export const aborted: any;
|
|
7
|
-
export const callbackify: any;
|
|
8
|
-
export const debug: any;
|
|
9
|
-
export const debuglog: any;
|
|
10
|
-
export const deprecate: any;
|
|
11
|
-
export const format: any;
|
|
12
|
-
export const formatWithOptions: any;
|
|
13
|
-
export const getCallSite: any;
|
|
14
|
-
export const inherits: any;
|
|
15
|
-
export const inspect: any;
|
|
16
|
-
export const log: any;
|
|
17
|
-
export const parseArgs: any;
|
|
18
|
-
export const promisify: any;
|
|
19
|
-
export const stripVTControlCharacters: any;
|
|
20
|
-
export const toUSVString: any;
|
|
21
|
-
export const transferableAbortController: any;
|
|
22
|
-
export const transferableAbortSignal: any;
|
|
23
|
-
export const isArray: any;
|
|
24
|
-
export const isDeepStrictEqual: any;
|
|
25
|
-
export const types: any;
|
|
26
|
-
declare namespace _default {
|
|
27
|
-
export { _errnoException };
|
|
28
|
-
export { _exceptionWithHostPort };
|
|
29
|
-
export { getSystemErrorMap };
|
|
30
|
-
export { getSystemErrorName };
|
|
31
|
-
export { isArray };
|
|
32
|
-
export { isBoolean };
|
|
33
|
-
export { isBuffer };
|
|
34
|
-
export { isDate };
|
|
35
|
-
export { isDeepStrictEqual };
|
|
36
|
-
export { isError };
|
|
37
|
-
export { isFunction };
|
|
38
|
-
export { isNull };
|
|
39
|
-
export { isNullOrUndefined };
|
|
40
|
-
export { isNumber };
|
|
41
|
-
export { isObject };
|
|
42
|
-
export { isPrimitive };
|
|
43
|
-
export { isRegExp };
|
|
44
|
-
export { isString };
|
|
45
|
-
export { isSymbol };
|
|
46
|
-
export { isUndefined };
|
|
47
|
-
export { parseEnv };
|
|
48
|
-
export { styleText };
|
|
49
|
-
export { MIMEParams };
|
|
50
|
-
export { MIMEType };
|
|
51
|
-
export { TextDecoder };
|
|
52
|
-
export { TextEncoder };
|
|
53
|
-
export { _extend };
|
|
54
|
-
export { aborted };
|
|
55
|
-
export { callbackify };
|
|
56
|
-
export { debug };
|
|
57
|
-
export { debuglog };
|
|
58
|
-
export { deprecate };
|
|
59
|
-
export { format };
|
|
60
|
-
export { formatWithOptions };
|
|
61
|
-
export { getCallSite };
|
|
62
|
-
export { inherits };
|
|
63
|
-
export { inspect };
|
|
64
|
-
export { log };
|
|
65
|
-
export { parseArgs };
|
|
66
|
-
export { promisify };
|
|
67
|
-
export { stripVTControlCharacters };
|
|
68
|
-
export { toUSVString };
|
|
69
|
-
export { transferableAbortController };
|
|
70
|
-
export { transferableAbortSignal };
|
|
71
|
-
export { types };
|
|
72
|
-
}
|
|
73
|
-
export default _default;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
// https://github.com/cloudflare/workerd/blob/main/src/node/util.ts
|
|
2
|
-
|
|
3
|
-
import workerdUtil from "#workerd/node:util";
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
_errnoException,
|
|
7
|
-
_exceptionWithHostPort,
|
|
8
|
-
getSystemErrorMap,
|
|
9
|
-
getSystemErrorName,
|
|
10
|
-
isBoolean,
|
|
11
|
-
isBuffer,
|
|
12
|
-
isDate,
|
|
13
|
-
isError,
|
|
14
|
-
isFunction,
|
|
15
|
-
isNull,
|
|
16
|
-
isNullOrUndefined,
|
|
17
|
-
isNumber,
|
|
18
|
-
isObject,
|
|
19
|
-
isPrimitive,
|
|
20
|
-
isRegExp,
|
|
21
|
-
isString,
|
|
22
|
-
isSymbol,
|
|
23
|
-
isUndefined,
|
|
24
|
-
parseEnv,
|
|
25
|
-
styleText,
|
|
26
|
-
} from "unenv/node/util";
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
_errnoException,
|
|
30
|
-
_exceptionWithHostPort,
|
|
31
|
-
getSystemErrorMap,
|
|
32
|
-
getSystemErrorName,
|
|
33
|
-
isBoolean,
|
|
34
|
-
isBuffer,
|
|
35
|
-
isDate,
|
|
36
|
-
isError,
|
|
37
|
-
isFunction,
|
|
38
|
-
isNull,
|
|
39
|
-
isNullOrUndefined,
|
|
40
|
-
isNumber,
|
|
41
|
-
isObject,
|
|
42
|
-
isPrimitive,
|
|
43
|
-
isRegExp,
|
|
44
|
-
isString,
|
|
45
|
-
isSymbol,
|
|
46
|
-
isUndefined,
|
|
47
|
-
parseEnv,
|
|
48
|
-
styleText,
|
|
49
|
-
} from "unenv/node/util";
|
|
50
|
-
|
|
51
|
-
export const {
|
|
52
|
-
MIMEParams,
|
|
53
|
-
MIMEType,
|
|
54
|
-
TextDecoder,
|
|
55
|
-
TextEncoder,
|
|
56
|
-
_extend,
|
|
57
|
-
aborted,
|
|
58
|
-
callbackify,
|
|
59
|
-
debug,
|
|
60
|
-
debuglog,
|
|
61
|
-
deprecate,
|
|
62
|
-
format,
|
|
63
|
-
formatWithOptions,
|
|
64
|
-
getCallSite,
|
|
65
|
-
inherits,
|
|
66
|
-
inspect,
|
|
67
|
-
log,
|
|
68
|
-
parseArgs,
|
|
69
|
-
promisify,
|
|
70
|
-
stripVTControlCharacters,
|
|
71
|
-
toUSVString,
|
|
72
|
-
transferableAbortController,
|
|
73
|
-
transferableAbortSignal,
|
|
74
|
-
isArray,
|
|
75
|
-
isDeepStrictEqual,
|
|
76
|
-
} = workerdUtil;
|
|
77
|
-
|
|
78
|
-
export const types = workerdUtil.types;
|
|
79
|
-
|
|
80
|
-
export default {
|
|
81
|
-
_errnoException,
|
|
82
|
-
_exceptionWithHostPort,
|
|
83
|
-
getSystemErrorMap,
|
|
84
|
-
getSystemErrorName,
|
|
85
|
-
isArray,
|
|
86
|
-
isBoolean,
|
|
87
|
-
isBuffer,
|
|
88
|
-
isDate,
|
|
89
|
-
isDeepStrictEqual,
|
|
90
|
-
isError,
|
|
91
|
-
isFunction,
|
|
92
|
-
isNull,
|
|
93
|
-
isNullOrUndefined,
|
|
94
|
-
isNumber,
|
|
95
|
-
isObject,
|
|
96
|
-
isPrimitive,
|
|
97
|
-
isRegExp,
|
|
98
|
-
isString,
|
|
99
|
-
isSymbol,
|
|
100
|
-
isUndefined,
|
|
101
|
-
parseEnv,
|
|
102
|
-
styleText,
|
|
103
|
-
MIMEParams,
|
|
104
|
-
MIMEType,
|
|
105
|
-
TextDecoder,
|
|
106
|
-
TextEncoder,
|
|
107
|
-
_extend,
|
|
108
|
-
aborted,
|
|
109
|
-
callbackify,
|
|
110
|
-
debug,
|
|
111
|
-
debuglog,
|
|
112
|
-
deprecate,
|
|
113
|
-
format,
|
|
114
|
-
formatWithOptions,
|
|
115
|
-
getCallSite,
|
|
116
|
-
inherits,
|
|
117
|
-
inspect,
|
|
118
|
-
log,
|
|
119
|
-
parseArgs,
|
|
120
|
-
promisify,
|
|
121
|
-
stripVTControlCharacters,
|
|
122
|
-
toUSVString,
|
|
123
|
-
transferableAbortController,
|
|
124
|
-
transferableAbortSignal,
|
|
125
|
-
types,
|
|
126
|
-
};
|