cf-workers-native 0.1.4 → 0.1.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 +2 -2
- package/dist/browser/documents/page-source.js +1 -1
- package/dist/browser/fetch/host-call.js +6 -1
- package/dist/browser/fetch/native-network.d.ts +1 -1
- package/dist/browser/fetch/relay.js +2 -0
- package/dist/browser/headers/index.d.ts +2 -0
- package/dist/browser/headers/index.js +5 -0
- package/dist/browser/isolated/transport.js +3 -2
- package/dist/browser/request/index.js +3 -2
- package/dist/browser/response/index.d.ts +2 -0
- package/dist/browser/response/index.js +11 -3
- package/dist/browser/structured-clone/index.d.ts +3 -0
- package/dist/browser/structured-clone/index.js +75 -7
- package/dist/browser/websocket/attachment-size.d.ts +3 -0
- package/dist/browser/websocket/attachment-size.js +336 -0
- package/dist/browser/websocket/brand.d.ts +4 -0
- package/dist/browser/websocket/brand.js +16 -0
- package/dist/browser/websocket/close-event.d.ts +7 -0
- package/dist/browser/websocket/close-event.js +30 -0
- package/dist/browser/websocket/compression.d.ts +5 -0
- package/dist/browser/websocket/compression.js +124 -0
- package/dist/browser/websocket/conversion.d.ts +2 -0
- package/dist/browser/websocket/conversion.js +13 -0
- package/dist/browser/websocket/endpoint.d.ts +39 -0
- package/dist/browser/websocket/endpoint.js +379 -0
- package/dist/browser/websocket/frames.d.ts +21 -0
- package/dist/browser/websocket/frames.js +121 -0
- package/dist/browser/websocket/native.d.ts +14 -0
- package/dist/browser/websocket/native.js +226 -0
- package/dist/cloudflare/apis/cloudflare-node/index.js +11 -23
- package/dist/cloudflare/workers/worker-runtime.js +2 -1
- package/dist/compat/console/index.d.ts +35 -0
- package/dist/compat/console/index.js +92 -0
- package/dist/compat/crypto/LICENSE-3RD-PARTY.md +39 -0
- package/dist/compat/crypto/LICENSE-APACHE +177 -0
- package/dist/compat/crypto/LICENSE.boringssl +238 -0
- package/dist/compat/crypto/LICENSE.emscripten +102 -0
- package/dist/compat/crypto/LICENSE.musl +193 -0
- package/dist/compat/crypto/LICENSE.ncrypto +21 -0
- package/dist/compat/crypto/LICENSE.openssl +177 -0
- package/dist/compat/crypto/asymmetric.d.ts +13 -0
- package/dist/compat/crypto/asymmetric.js +312 -0
- package/dist/compat/crypto/brorand.cjs +74 -0
- package/dist/compat/crypto/brorand.d.cts +6 -0
- package/dist/compat/crypto/certificate.d.ts +14 -0
- package/dist/compat/crypto/certificate.js +66 -0
- package/dist/compat/crypto/cipher-handle.d.ts +27 -0
- package/dist/compat/crypto/cipher-handle.js +239 -0
- package/dist/compat/crypto/cipher-info.d.ts +12 -0
- package/dist/compat/crypto/cipher-info.js +324 -0
- package/dist/compat/crypto/constants.d.ts +62 -0
- package/dist/compat/crypto/constants.js +68 -0
- package/dist/compat/crypto/dh-handle.d.ts +17 -0
- package/dist/compat/crypto/dh-handle.js +180 -0
- package/dist/compat/crypto/dh.d.ts +53 -0
- package/dist/compat/crypto/dh.js +138 -0
- package/dist/compat/crypto/digest-stream.d.ts +15 -0
- package/dist/compat/crypto/digest-stream.js +213 -0
- package/dist/compat/crypto/digests.d.ts +3 -0
- package/dist/compat/crypto/digests.js +32 -0
- package/dist/compat/crypto/ecdh.d.ts +25 -0
- package/dist/compat/crypto/ecdh.js +109 -0
- package/dist/compat/crypto/hash-handle.d.ts +23 -0
- package/dist/compat/crypto/hash-handle.js +70 -0
- package/dist/compat/crypto/hash.d.ts +37 -0
- package/dist/compat/crypto/hash.js +218 -0
- package/dist/compat/crypto/hkdf.d.ts +2 -0
- package/dist/compat/crypto/hkdf.js +78 -0
- package/dist/compat/crypto/index.cjs +2 -0
- package/dist/compat/crypto/index.d.cts +169 -0
- package/dist/compat/crypto/index.d.ts +213 -0
- package/dist/compat/crypto/index.js +96 -0
- package/dist/compat/crypto/key-errors.d.ts +10 -0
- package/dist/compat/crypto/key-errors.js +17 -0
- package/dist/compat/crypto/key-export.d.ts +8 -0
- package/dist/compat/crypto/key-export.js +49 -0
- package/dist/compat/crypto/key-formats.d.ts +7 -0
- package/dist/compat/crypto/key-formats.js +251 -0
- package/dist/compat/crypto/key-options.d.ts +1 -0
- package/dist/compat/crypto/key-options.js +74 -0
- package/dist/compat/crypto/key-state.d.ts +10 -0
- package/dist/compat/crypto/key-state.js +4 -0
- package/dist/compat/crypto/keys.d.ts +58 -0
- package/dist/compat/crypto/keys.js +278 -0
- package/dist/compat/crypto/metadata.d.ts +13 -0
- package/dist/compat/crypto/metadata.js +109 -0
- package/dist/compat/crypto/native-cipher.d.ts +17 -0
- package/dist/compat/crypto/native-cipher.js +192 -0
- package/dist/compat/crypto/native-crypto.d.ts +81 -0
- package/dist/compat/crypto/native-crypto.js +681 -0
- package/dist/compat/crypto/pbkdf2-handle.d.ts +4 -0
- package/dist/compat/crypto/pbkdf2-handle.js +26 -0
- package/dist/compat/crypto/pbkdf2.d.ts +5 -0
- package/dist/compat/crypto/pbkdf2.js +60 -0
- package/dist/compat/crypto/prime.d.ts +19 -0
- package/dist/compat/crypto/prime.js +146 -0
- package/dist/compat/crypto/random.d.ts +18 -0
- package/dist/compat/crypto/random.js +203 -0
- package/dist/compat/crypto/rsa.d.ts +21 -0
- package/dist/compat/crypto/rsa.js +177 -0
- package/dist/compat/crypto/scrypt.d.ts +25 -0
- package/dist/compat/crypto/scrypt.js +152 -0
- package/dist/compat/crypto/sign-errors.d.ts +8 -0
- package/dist/compat/crypto/sign-errors.js +13 -0
- package/dist/compat/crypto/sign-handle.d.ts +22 -0
- package/dist/compat/crypto/sign-handle.js +149 -0
- package/dist/compat/crypto/signatures.d.ts +34 -0
- package/dist/compat/crypto/signatures.js +252 -0
- package/dist/compat/crypto/subtle-digest.d.ts +1 -0
- package/dist/compat/crypto/subtle-digest.js +56 -0
- package/dist/compat/crypto/symmetric.d.ts +45 -0
- package/dist/compat/crypto/symmetric.js +239 -0
- package/dist/compat/crypto/validation.d.ts +7 -0
- package/dist/compat/crypto/validation.js +46 -0
- package/dist/compat/crypto/webcrypto.d.ts +13 -0
- package/dist/compat/crypto/webcrypto.js +51 -0
- package/dist/compat/crypto/x509.d.ts +30 -0
- package/dist/compat/crypto/x509.js +407 -0
- package/dist/compat/events/errors.d.ts +8 -0
- package/dist/compat/events/errors.js +39 -0
- package/dist/compat/events/index.cjs +2 -0
- package/dist/compat/events/index.d.cts +2 -0
- package/dist/compat/events/index.d.ts +64 -0
- package/dist/compat/events/index.js +792 -0
- package/dist/compat/events/intrinsics.d.ts +1 -0
- package/dist/compat/events/intrinsics.js +2 -0
- package/dist/compat/fs/LICENSE-3RD-PARTY.md +11 -0
- package/dist/compat/fs/LICENSE-APACHE +177 -0
- package/dist/compat/fs/directory-backend.d.ts +6 -0
- package/dist/compat/fs/directory-backend.js +51 -0
- package/dist/compat/fs/directory.d.ts +37 -0
- package/dist/compat/fs/directory.js +137 -0
- package/dist/compat/fs/embedded.d.ts +85 -0
- package/dist/compat/fs/embedded.js +260 -0
- package/dist/compat/fs/file-handle.d.ts +75 -0
- package/dist/compat/fs/file-handle.js +226 -0
- package/dist/compat/fs/glob-internal.d.ts +15 -0
- package/dist/compat/fs/glob-internal.js +417 -0
- package/dist/compat/fs/glob.d.ts +10 -0
- package/dist/compat/fs/glob.js +71 -0
- package/dist/compat/fs/index.d.ts +8 -82
- package/dist/compat/fs/index.js +736 -238
- package/dist/compat/fs/io-validation.d.ts +14 -0
- package/dist/compat/fs/io-validation.js +130 -0
- package/dist/compat/fs/io.d.ts +1 -0
- package/dist/compat/fs/io.js +282 -0
- package/dist/compat/fs/mode.d.ts +1 -0
- package/dist/compat/fs/mode.js +13 -0
- package/dist/compat/fs/promises/index.d.ts +3 -1
- package/dist/compat/fs/promises/index.js +1 -1
- package/dist/compat/fs/public-types.d.ts +120 -0
- package/dist/compat/fs/public-types.js +1 -0
- package/dist/compat/fs/stream-errors.d.ts +6 -0
- package/dist/compat/fs/stream-errors.js +8 -0
- package/dist/compat/fs/stream-utils.d.ts +16 -0
- package/dist/compat/fs/stream-utils.js +29 -0
- package/dist/compat/fs/streams.d.ts +104 -0
- package/dist/compat/fs/streams.js +794 -0
- package/dist/compat/fs/writable.d.ts +14 -0
- package/dist/compat/fs/writable.js +532 -0
- package/dist/compat/http/index.d.ts +11 -28
- package/dist/compat/http/index.js +81 -125
- package/dist/compat/http/server-options.d.ts +1 -0
- package/dist/compat/http/server-options.js +87 -0
- package/dist/compat/http/symbols.d.ts +5 -0
- package/dist/compat/http/symbols.js +9 -0
- package/dist/compat/http/unique-headers.d.ts +1 -0
- package/dist/compat/http/unique-headers.js +21 -0
- package/dist/compat/http-common/index.d.ts +37 -0
- package/dist/compat/http-common/index.js +43 -0
- package/dist/compat/http-outgoing/index.d.ts +14 -0
- package/dist/compat/http-outgoing/index.js +17 -0
- package/dist/compat/http-server/index.d.ts +18 -0
- package/dist/compat/http-server/index.js +26 -0
- package/dist/compat/https/index.d.ts +4 -2
- package/dist/compat/module/builtins.d.ts +1 -0
- package/dist/compat/module/builtins.js +101 -0
- package/dist/compat/module/index.d.ts +4 -2
- package/dist/compat/module/index.js +22 -17
- package/dist/compat/module/metadata.d.ts +44 -0
- package/dist/compat/module/metadata.js +127 -0
- package/dist/compat/net/internal-net.js +4 -0
- package/dist/compat/net/sockets.d.ts +5 -0
- package/dist/compat/net/sockets.js +153 -14
- package/dist/compat/net/validators.d.ts +1 -0
- package/dist/compat/net/validators.js +8 -0
- package/dist/compat/process/configuration.d.ts +113 -0
- package/dist/compat/process/configuration.js +115 -0
- package/dist/compat/process/directory.d.ts +4 -0
- package/dist/compat/process/directory.js +28 -0
- package/dist/compat/process/files.d.ts +3 -0
- package/dist/compat/process/files.js +10 -0
- package/dist/compat/process/index.cjs +2 -0
- package/dist/compat/process/index.d.cts +4 -0
- package/dist/compat/process/index.d.ts +20 -0
- package/dist/compat/process/index.js +113 -0
- package/dist/compat/process/metadata.d.ts +135 -0
- package/dist/compat/process/metadata.js +251 -0
- package/dist/compat/process/scheduling.d.ts +2 -0
- package/dist/compat/process/scheduling.js +60 -0
- package/dist/compat/process/state.d.ts +4 -0
- package/dist/compat/process/state.js +5 -0
- package/dist/compat/process/stdio.d.ts +18 -0
- package/dist/compat/process/stdio.js +66 -0
- package/dist/compat/stream/destroy.d.ts +1 -0
- package/dist/compat/stream/destroy.js +21 -1
- package/dist/compat/stream/readable.js +10 -2
- package/dist/compat/stream-web/LICENSE +22 -0
- package/dist/compat/stream-web/ponyfill.d.ts +1 -1
- package/dist/compat/stream-web/ponyfill.js +2369 -1775
- package/dist/compat/stream-web/runtime.d.ts +1 -1
- package/dist/compat/stream-web/runtime.js +3 -2
- package/dist/compat/stream-wrap/LICENSE-3RD-PARTY.md +11 -0
- package/dist/compat/stream-wrap/LICENSE-APACHE +177 -0
- package/dist/compat/stream-wrap/index.d.ts +1 -0
- package/dist/compat/stream-wrap/index.js +1 -0
- package/dist/compat/tls/LICENSE-3RD-PARTY.md +11 -0
- package/dist/compat/tls/LICENSE-APACHE +177 -0
- package/dist/compat/tls/constants.d.ts +7 -0
- package/dist/compat/tls/constants.js +14 -0
- package/dist/compat/tls/errors.d.ts +35 -0
- package/dist/compat/tls/errors.js +68 -0
- package/dist/compat/tls/helpers.d.ts +9 -0
- package/dist/compat/tls/helpers.js +207 -0
- package/dist/compat/tls/index.d.ts +26 -0
- package/dist/compat/tls/index.js +50 -0
- package/dist/compat/tls/jsstream.d.ts +19 -0
- package/dist/compat/tls/jsstream.js +196 -0
- package/dist/compat/tls/native-session.d.ts +3 -0
- package/dist/compat/tls/native-session.js +187 -0
- package/dist/compat/tls/wrap.d.ts +65 -0
- package/dist/compat/tls/wrap.js +541 -0
- package/dist/compat/tls-wrap/LICENSE-3RD-PARTY.md +11 -0
- package/dist/compat/tls-wrap/LICENSE-APACHE +177 -0
- package/dist/compat/tls-wrap/index.d.ts +7 -0
- package/dist/compat/tls-wrap/index.js +3 -0
- package/dist/compat/util/index.js +43 -1
- package/dist/compat/util/inspect.js +5 -1
- package/dist/compat/util/types/index.d.ts +3 -0
- package/dist/compat/util/types/index.js +5 -0
- package/dist/compat/zlib/LICENSE-3RD-PARTY.md +11 -0
- package/dist/compat/zlib/LICENSE-APACHE +177 -0
- package/dist/compat/zlib/LICENSE.brotli +19 -0
- package/dist/compat/zlib/LICENSE.emscripten +102 -0
- package/dist/compat/zlib/LICENSE.musl +193 -0
- package/dist/compat/zlib/LICENSE.zlib +22 -0
- package/dist/compat/zlib/LICENSE.zstd +30 -0
- package/dist/compat/zlib/classic-base.cjs +600 -0
- package/dist/compat/zlib/classic-base.d.cts +39 -0
- package/dist/compat/zlib/classic-binding.d.ts +28 -0
- package/dist/compat/zlib/classic-binding.js +105 -0
- package/dist/compat/zlib/classic.d.ts +44 -0
- package/dist/compat/zlib/classic.js +199 -0
- package/dist/compat/zlib/codec-binding.d.ts +33 -0
- package/dist/compat/zlib/codec-binding.js +141 -0
- package/dist/compat/zlib/compression.d.ts +26 -0
- package/dist/compat/zlib/compression.js +170 -0
- package/dist/compat/zlib/constants.d.ts +172 -0
- package/dist/compat/zlib/constants.js +173 -0
- package/dist/compat/zlib/errors.d.ts +21 -0
- package/dist/compat/zlib/errors.js +32 -0
- package/dist/compat/zlib/index.d.ts +544 -0
- package/dist/compat/zlib/index.js +194 -0
- package/dist/compat/zlib/input.d.ts +16 -0
- package/dist/compat/zlib/input.js +132 -0
- package/dist/compat/zlib/native-codecs.d.ts +24 -0
- package/dist/compat/zlib/native-codecs.js +180 -0
- package/dist/compat/zlib/native-zlib.d.ts +5 -0
- package/dist/compat/zlib/native-zlib.js +52 -0
- package/dist/compat/zlib/public-types.d.ts +48 -0
- package/dist/compat/zlib/public-types.js +1 -0
- package/dist/compat/zlib/validators.d.ts +3 -0
- package/dist/compat/zlib/validators.js +18 -0
- package/dist/shared/buffer-source.d.ts +5 -0
- package/dist/shared/buffer-source.js +70 -0
- package/dist/shared/globals/inject.d.ts +2 -1
- package/dist/shared/globals/inject.js +2 -1
- package/dist/shared/globals/platform.d.ts +8 -0
- package/dist/shared/globals/platform.js +1 -0
- package/dist/shared/globals/runtime.d.ts +1 -2
- package/dist/shared/globals/runtime.js +1 -2
- package/dist/shared/globals/web.js +5 -0
- package/dist/shared/request-context.d.ts +2 -0
- package/dist/shared/request-context.js +11 -0
- package/dist/shared/request-scope.d.ts +4 -0
- package/dist/shared/request-scope.js +14 -0
- package/dist/tooling/async.js +36 -14
- package/dist/tooling/shared.d.ts +1 -0
- package/dist/tooling/shared.js +26 -1
- package/dist/tooling/vite.js +8 -3
- package/native/android/src/main/java/jp/rdlabo/workerscapacitor/WorkerSockets.java +92 -13
- package/native/android/src/main/java/jp/rdlabo/workerscapacitor/WorkersCapacitorPlugin.java +4 -2
- package/native/ios/NetworkBridge.swift +11 -1
- package/native/ios/SocketBridge.swift +37 -2
- package/native/ios/WorkersCapacitorPlugin.swift +4 -0
- package/package.json +4 -2
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare const config: Readonly<{
|
|
2
|
+
target_defaults: Readonly<{
|
|
3
|
+
default_configuration: "Release";
|
|
4
|
+
}>;
|
|
5
|
+
variables: Readonly<{
|
|
6
|
+
asan: 0;
|
|
7
|
+
clang: 1;
|
|
8
|
+
control_flow_guard: false;
|
|
9
|
+
coverage: false;
|
|
10
|
+
dcheck_always_on: 0;
|
|
11
|
+
debug_nghttp2: false;
|
|
12
|
+
debug_node: false;
|
|
13
|
+
enable_lto: false;
|
|
14
|
+
enable_pgo_generate: false;
|
|
15
|
+
enable_pgo_use: false;
|
|
16
|
+
error_on_warn: false;
|
|
17
|
+
force_dynamic_crt: 0;
|
|
18
|
+
gas_version: "";
|
|
19
|
+
host_arch: "x64";
|
|
20
|
+
icu_data_in: "";
|
|
21
|
+
icu_endianness: "l";
|
|
22
|
+
icu_gyp_path: "";
|
|
23
|
+
icu_path: "";
|
|
24
|
+
icu_small: false;
|
|
25
|
+
icu_ver_major: "";
|
|
26
|
+
is_debug: 0;
|
|
27
|
+
libdir: "lib";
|
|
28
|
+
llvm_version: "";
|
|
29
|
+
napi_build_version: "9";
|
|
30
|
+
node_byteorder: "little";
|
|
31
|
+
node_debug_lib: false;
|
|
32
|
+
node_enable_d8: false;
|
|
33
|
+
node_enable_v8_vtunejit: false;
|
|
34
|
+
node_enable_v8windbg: false;
|
|
35
|
+
node_fipsinstall: false;
|
|
36
|
+
node_install_corepack: false;
|
|
37
|
+
node_install_npm: false;
|
|
38
|
+
node_module_version: 127;
|
|
39
|
+
node_no_browser_globals: false;
|
|
40
|
+
node_prefix: "/usr/local";
|
|
41
|
+
node_quic: false;
|
|
42
|
+
node_release_urlbase: "";
|
|
43
|
+
node_section_ordering_info: "";
|
|
44
|
+
node_shared: false;
|
|
45
|
+
node_shared_ada: false;
|
|
46
|
+
node_shared_brotli: false;
|
|
47
|
+
node_shared_cares: false;
|
|
48
|
+
node_shared_gtest: false;
|
|
49
|
+
node_shared_hdr_histogram: false;
|
|
50
|
+
node_shared_http_parser: false;
|
|
51
|
+
node_shared_libuv: false;
|
|
52
|
+
node_shared_merve: false;
|
|
53
|
+
node_shared_nbytes: false;
|
|
54
|
+
node_shared_nghttp2: false;
|
|
55
|
+
node_shared_nghttp3: false;
|
|
56
|
+
node_shared_ngtcp2: false;
|
|
57
|
+
node_shared_openssl: false;
|
|
58
|
+
node_shared_simdjson: false;
|
|
59
|
+
node_shared_simdutf: false;
|
|
60
|
+
node_shared_sqlite: false;
|
|
61
|
+
node_shared_uvwasi: false;
|
|
62
|
+
node_shared_zlib: false;
|
|
63
|
+
node_shared_zstd: false;
|
|
64
|
+
node_tag: "";
|
|
65
|
+
node_target_type: "executable";
|
|
66
|
+
node_use_amaro: false;
|
|
67
|
+
node_use_bundled_v8: true;
|
|
68
|
+
node_use_node_code_cache: false;
|
|
69
|
+
node_use_node_snapshot: false;
|
|
70
|
+
node_use_openssl: true;
|
|
71
|
+
node_use_sqlite: false;
|
|
72
|
+
node_use_v8_platform: false;
|
|
73
|
+
node_with_ltcg: false;
|
|
74
|
+
node_without_node_options: true;
|
|
75
|
+
node_write_snapshot_as_array_literals: false;
|
|
76
|
+
openssl_is_fips: false;
|
|
77
|
+
openssl_quic: false;
|
|
78
|
+
ossfuzz: false;
|
|
79
|
+
shlib_suffix: "so";
|
|
80
|
+
single_executable_application: false;
|
|
81
|
+
suppress_all_error_on_warn: false;
|
|
82
|
+
target_arch: "x64";
|
|
83
|
+
ubsan: 0;
|
|
84
|
+
use_ccache_win: 0;
|
|
85
|
+
use_prefix_to_find_headers: false;
|
|
86
|
+
v8_enable_31bit_smis_on_64bit_arch: 0;
|
|
87
|
+
v8_enable_extensible_ro_snapshot: 0;
|
|
88
|
+
v8_enable_external_code_space: 0;
|
|
89
|
+
v8_enable_gdbjit: 0;
|
|
90
|
+
v8_enable_hugepage: 0;
|
|
91
|
+
v8_enable_i18n_support: 1;
|
|
92
|
+
v8_enable_inspector: 0;
|
|
93
|
+
v8_enable_javascript_promise_hooks: 0;
|
|
94
|
+
v8_enable_lite_mode: 0;
|
|
95
|
+
v8_enable_maglev: 1;
|
|
96
|
+
v8_enable_object_print: 0;
|
|
97
|
+
v8_enable_pointer_compression: 1;
|
|
98
|
+
v8_enable_pointer_compression_shared_cage: 1;
|
|
99
|
+
v8_enable_sandbox: 0;
|
|
100
|
+
v8_enable_shared_ro_heap: 1;
|
|
101
|
+
v8_enable_short_builtin_calls: 1;
|
|
102
|
+
v8_enable_v8_checks: 0;
|
|
103
|
+
v8_enable_wasm_simd256_revec: 0;
|
|
104
|
+
v8_enable_webassembly: 1;
|
|
105
|
+
v8_no_strict_aliasing: 1;
|
|
106
|
+
v8_optimized_debug: 1;
|
|
107
|
+
v8_promise_internal_field_count: 1;
|
|
108
|
+
v8_random_seed: 0;
|
|
109
|
+
v8_trace_maps: 0;
|
|
110
|
+
v8_use_siphash: 1;
|
|
111
|
+
want_separate_host_toolset: 0;
|
|
112
|
+
}>;
|
|
113
|
+
}>;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// Copyright (c) 2017-2026 Cloudflare, Inc. Apache-2.0.
|
|
2
|
+
// From workerd 5358e3d337336eaf696a48bc1563d808b10feba5 internal_process.ts.
|
|
3
|
+
export const config = Object.freeze({
|
|
4
|
+
target_defaults: Object.freeze({
|
|
5
|
+
default_configuration: "Release",
|
|
6
|
+
}),
|
|
7
|
+
variables: Object.freeze({
|
|
8
|
+
asan: 0,
|
|
9
|
+
clang: 1,
|
|
10
|
+
control_flow_guard: false,
|
|
11
|
+
coverage: false,
|
|
12
|
+
dcheck_always_on: 0,
|
|
13
|
+
debug_nghttp2: false,
|
|
14
|
+
debug_node: false,
|
|
15
|
+
enable_lto: false,
|
|
16
|
+
enable_pgo_generate: false,
|
|
17
|
+
enable_pgo_use: false,
|
|
18
|
+
error_on_warn: false,
|
|
19
|
+
force_dynamic_crt: 0,
|
|
20
|
+
gas_version: "",
|
|
21
|
+
host_arch: "x64",
|
|
22
|
+
icu_data_in: "",
|
|
23
|
+
icu_endianness: "l",
|
|
24
|
+
icu_gyp_path: "",
|
|
25
|
+
icu_path: "",
|
|
26
|
+
icu_small: false,
|
|
27
|
+
icu_ver_major: "",
|
|
28
|
+
is_debug: 0,
|
|
29
|
+
libdir: "lib",
|
|
30
|
+
llvm_version: "",
|
|
31
|
+
napi_build_version: "9",
|
|
32
|
+
node_byteorder: "little",
|
|
33
|
+
node_debug_lib: false,
|
|
34
|
+
node_enable_d8: false,
|
|
35
|
+
node_enable_v8_vtunejit: false,
|
|
36
|
+
node_enable_v8windbg: false,
|
|
37
|
+
node_fipsinstall: false,
|
|
38
|
+
node_install_corepack: false,
|
|
39
|
+
node_install_npm: false,
|
|
40
|
+
node_module_version: 127,
|
|
41
|
+
node_no_browser_globals: false,
|
|
42
|
+
node_prefix: "/usr/local",
|
|
43
|
+
node_quic: false,
|
|
44
|
+
node_release_urlbase: "",
|
|
45
|
+
node_section_ordering_info: "",
|
|
46
|
+
node_shared: false,
|
|
47
|
+
node_shared_ada: false,
|
|
48
|
+
node_shared_brotli: false,
|
|
49
|
+
node_shared_cares: false,
|
|
50
|
+
node_shared_gtest: false,
|
|
51
|
+
node_shared_hdr_histogram: false,
|
|
52
|
+
node_shared_http_parser: false,
|
|
53
|
+
node_shared_libuv: false,
|
|
54
|
+
node_shared_merve: false,
|
|
55
|
+
node_shared_nbytes: false,
|
|
56
|
+
node_shared_nghttp2: false,
|
|
57
|
+
node_shared_nghttp3: false,
|
|
58
|
+
node_shared_ngtcp2: false,
|
|
59
|
+
node_shared_openssl: false,
|
|
60
|
+
node_shared_simdjson: false,
|
|
61
|
+
node_shared_simdutf: false,
|
|
62
|
+
node_shared_sqlite: false,
|
|
63
|
+
node_shared_uvwasi: false,
|
|
64
|
+
node_shared_zlib: false,
|
|
65
|
+
node_shared_zstd: false,
|
|
66
|
+
node_tag: "",
|
|
67
|
+
node_target_type: "executable",
|
|
68
|
+
node_use_amaro: false,
|
|
69
|
+
node_use_bundled_v8: true,
|
|
70
|
+
node_use_node_code_cache: false,
|
|
71
|
+
node_use_node_snapshot: false,
|
|
72
|
+
node_use_openssl: true,
|
|
73
|
+
node_use_sqlite: false,
|
|
74
|
+
node_use_v8_platform: false,
|
|
75
|
+
node_with_ltcg: false,
|
|
76
|
+
node_without_node_options: true,
|
|
77
|
+
node_write_snapshot_as_array_literals: false,
|
|
78
|
+
openssl_is_fips: false,
|
|
79
|
+
openssl_quic: false,
|
|
80
|
+
ossfuzz: false,
|
|
81
|
+
shlib_suffix: "so",
|
|
82
|
+
single_executable_application: false,
|
|
83
|
+
suppress_all_error_on_warn: false,
|
|
84
|
+
target_arch: "x64",
|
|
85
|
+
ubsan: 0,
|
|
86
|
+
use_ccache_win: 0,
|
|
87
|
+
use_prefix_to_find_headers: false,
|
|
88
|
+
v8_enable_31bit_smis_on_64bit_arch: 0,
|
|
89
|
+
v8_enable_extensible_ro_snapshot: 0,
|
|
90
|
+
v8_enable_external_code_space: 0,
|
|
91
|
+
v8_enable_gdbjit: 0,
|
|
92
|
+
v8_enable_hugepage: 0,
|
|
93
|
+
v8_enable_i18n_support: 1,
|
|
94
|
+
v8_enable_inspector: 0,
|
|
95
|
+
v8_enable_javascript_promise_hooks: 0,
|
|
96
|
+
v8_enable_lite_mode: 0,
|
|
97
|
+
v8_enable_maglev: 1,
|
|
98
|
+
v8_enable_object_print: 0,
|
|
99
|
+
v8_enable_pointer_compression: 1,
|
|
100
|
+
v8_enable_pointer_compression_shared_cage: 1,
|
|
101
|
+
v8_enable_sandbox: 0,
|
|
102
|
+
v8_enable_shared_ro_heap: 1,
|
|
103
|
+
v8_enable_short_builtin_calls: 1,
|
|
104
|
+
v8_enable_v8_checks: 0,
|
|
105
|
+
v8_enable_wasm_simd256_revec: 0,
|
|
106
|
+
v8_enable_webassembly: 1,
|
|
107
|
+
v8_no_strict_aliasing: 1,
|
|
108
|
+
v8_optimized_debug: 1,
|
|
109
|
+
v8_promise_internal_field_count: 1,
|
|
110
|
+
v8_random_seed: 0,
|
|
111
|
+
v8_trace_maps: 0,
|
|
112
|
+
v8_use_siphash: 1,
|
|
113
|
+
want_separate_host_toolset: 0,
|
|
114
|
+
}),
|
|
115
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const currentDirectory: () => string;
|
|
2
|
+
export declare function registerDirectoryValidator(validate: (path: string) => string): void;
|
|
3
|
+
export declare function changeDirectory(path: unknown): void;
|
|
4
|
+
export declare function runWithDirectory<T>(callback: () => T): T;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "../async-hooks/index.js";
|
|
2
|
+
import { registerRequestScope } from "../../shared/request-scope.js";
|
|
3
|
+
const contexts = new AsyncLocalStorage();
|
|
4
|
+
const fallback = { path: "/bundle" };
|
|
5
|
+
const active = () => contexts.getStore() ?? fallback;
|
|
6
|
+
export const currentDirectory = () => active().path;
|
|
7
|
+
let validateDirectory = (path) => {
|
|
8
|
+
const normalized = new URL(path, "file://" + currentDirectory() + "/").pathname.replace(/\/$/, "") || "/";
|
|
9
|
+
if (!["/", "/tmp", "/bundle", "/dev"].includes(normalized))
|
|
10
|
+
throw Object.assign(new Error("no such file or directory"), {
|
|
11
|
+
code: "ENOENT",
|
|
12
|
+
syscall: "chdir",
|
|
13
|
+
path: normalized,
|
|
14
|
+
});
|
|
15
|
+
return normalized;
|
|
16
|
+
};
|
|
17
|
+
export function registerDirectoryValidator(validate) {
|
|
18
|
+
validateDirectory = validate;
|
|
19
|
+
}
|
|
20
|
+
export function changeDirectory(path) {
|
|
21
|
+
if (typeof path !== "string")
|
|
22
|
+
throw Object.assign(new TypeError('The "directory" argument must be of type string.'), { code: "ERR_INVALID_ARG_TYPE" });
|
|
23
|
+
active().path = validateDirectory(path);
|
|
24
|
+
}
|
|
25
|
+
export function runWithDirectory(callback) {
|
|
26
|
+
return contexts.run({ path: "/bundle" }, callback);
|
|
27
|
+
}
|
|
28
|
+
registerRequestScope(runWithDirectory);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { readFileSync } from "../fs/index.js";
|
|
2
|
+
import { parseEnv } from "../util/core.js";
|
|
3
|
+
import process from "./state.js";
|
|
4
|
+
/** Workers loads into its own environment object; host OS files are inaccessible. */
|
|
5
|
+
export function loadEnvFile(path = ".env") {
|
|
6
|
+
if (path === null)
|
|
7
|
+
throw new TypeError("Cannot read properties of null (reading 'toString')");
|
|
8
|
+
const parsed = parseEnv(readFileSync(path instanceof URL ? path : path.toString(), "utf8"));
|
|
9
|
+
Object.assign(process.env, parsed);
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { currentDirectory as cwd, changeDirectory as chdir } from "./directory.js";
|
|
2
|
+
export { cwd, chdir };
|
|
3
|
+
export { arch, pid, ppid, allowedNodeEnvironmentFlags, setSourceMapsEnabled, getSourceMapsSupport, ref, unref, setUncaughtExceptionCaptureCallback, hasUncaughtExceptionCaptureCallback, kill, binding, dlopen, exitCode, getActiveResourcesInfo, memoryUsage, resourceUsage, threadCpuUsage, cpuUsage, channel, connected, debugPort, noDeprecation, traceDeprecation, throwDeprecation, sourceMapsEnabled, execPath, permission, release, report, finalization, _rawDebug, moduleLoadList, _preload_modules, _linkedBinding, domain, _exiting, _getActiveRequests, _getActiveHandles, _kill, constrainedMemory, availableMemory, execve, _fatalException, _tickCallback, _debugProcess, _debugEnd, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, send, uptime, getegid, getgid, getgroups, geteuid, getuid, setegid, setgid, seteuid, setuid, setgroups, initgroups, } from "./metadata.js";
|
|
4
|
+
export { argv, env, execArgv, exit, features, platform, title, umask, version, versions, } from "cf-workers-native:process-base";
|
|
5
|
+
export { default } from "./state.js";
|
|
6
|
+
export declare const _events: any;
|
|
7
|
+
export declare const _eventsCount: any;
|
|
8
|
+
export declare const _maxListeners: any;
|
|
9
|
+
export declare const _channel: undefined, _disconnect: undefined, _handleQueue: undefined, _pendingMessage: undefined, _send: undefined;
|
|
10
|
+
export declare const argv0 = "workerd";
|
|
11
|
+
export declare const assert: (actual: unknown, message?: string | Error) => asserts actual;
|
|
12
|
+
import { config } from "./configuration.js";
|
|
13
|
+
import { loadEnvFile } from "./files.js";
|
|
14
|
+
export { config, loadEnvFile };
|
|
15
|
+
export { stdin, stdout, stderr, openStdin } from "./stdio.js";
|
|
16
|
+
import { nextTick, emitWarning } from "./scheduling.js";
|
|
17
|
+
export { nextTick, emitWarning };
|
|
18
|
+
export declare const hrtime: ((time?: [number, number]) => [number, number]) & {
|
|
19
|
+
bigint: () => bigint;
|
|
20
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { currentDirectory as cwd, changeDirectory as chdir, } from "./directory.js";
|
|
2
|
+
export { cwd, chdir };
|
|
3
|
+
import * as metadata from "./metadata.js";
|
|
4
|
+
export { arch, pid, ppid, allowedNodeEnvironmentFlags, setSourceMapsEnabled, getSourceMapsSupport, ref, unref, setUncaughtExceptionCaptureCallback, hasUncaughtExceptionCaptureCallback, kill, binding, dlopen, exitCode, getActiveResourcesInfo, memoryUsage, resourceUsage, threadCpuUsage, cpuUsage, channel, connected, debugPort, noDeprecation, traceDeprecation, throwDeprecation, sourceMapsEnabled, execPath, permission, release, report, finalization, _rawDebug, moduleLoadList, _preload_modules, _linkedBinding, domain, _exiting, _getActiveRequests, _getActiveHandles, _kill, constrainedMemory, availableMemory, execve, _fatalException, _tickCallback, _debugProcess, _debugEnd, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, send, uptime, getegid, getgid, getgroups, geteuid, getuid, setegid, setgid, seteuid, setuid, setgroups, initgroups, } from "./metadata.js";
|
|
5
|
+
// Event delivery, warning and nextTick integration for the WebView profile.
|
|
6
|
+
// Other process exports retain the existing polyfill; see ../events/README.md.
|
|
7
|
+
export { argv, env, execArgv, exit, features, platform, title, umask, version, versions, } from "cf-workers-native:process-base";
|
|
8
|
+
import process from "./state.js";
|
|
9
|
+
export { default } from "./state.js";
|
|
10
|
+
import { EventEmitter } from "../events/index.js";
|
|
11
|
+
import { ERR_INVALID_ARG_TYPE, ERR_OUT_OF_RANGE } from "../net/errors.js";
|
|
12
|
+
EventEmitter.init.call(process);
|
|
13
|
+
export const _events = process._events;
|
|
14
|
+
export const _eventsCount = process._eventsCount;
|
|
15
|
+
export const _maxListeners = process._maxListeners;
|
|
16
|
+
export const _channel = undefined, _disconnect = undefined, _handleQueue = undefined, _pendingMessage = undefined, _send = undefined;
|
|
17
|
+
export const argv0 = "workerd";
|
|
18
|
+
// The pinned profile retains the legacy assertion function.
|
|
19
|
+
import internalAssert from "../assert/index.js";
|
|
20
|
+
export const assert = internalAssert.ok.bind(internalAssert);
|
|
21
|
+
import { config } from "./configuration.js";
|
|
22
|
+
import { loadEnvFile } from "./files.js";
|
|
23
|
+
import * as stdio from "./stdio.js";
|
|
24
|
+
export { config, loadEnvFile };
|
|
25
|
+
export { stdin, stdout, stderr, openStdin } from "./stdio.js";
|
|
26
|
+
function invoke(method, args) {
|
|
27
|
+
return Reflect.apply(EventEmitter.prototype[method], process, args);
|
|
28
|
+
}
|
|
29
|
+
const on = (...args) => invoke("on", args);
|
|
30
|
+
const addListener = on;
|
|
31
|
+
const once = (...args) => invoke("once", args);
|
|
32
|
+
const prependListener = (...args) => invoke("prependListener", args);
|
|
33
|
+
const prependOnceListener = (...args) => invoke("prependOnceListener", args);
|
|
34
|
+
const off = (...args) => invoke("off", args);
|
|
35
|
+
const removeListener = off;
|
|
36
|
+
const removeAllListeners = (...args) => invoke("removeAllListeners", args);
|
|
37
|
+
const emit = (...args) => invoke("emit", args);
|
|
38
|
+
const listeners = (...args) => invoke("listeners", args);
|
|
39
|
+
const rawListeners = (...args) => invoke("rawListeners", args);
|
|
40
|
+
const eventNames = (...args) => invoke("eventNames", args);
|
|
41
|
+
const listenerCount = (...args) => invoke("listenerCount", args);
|
|
42
|
+
const getMaxListeners = (...args) => invoke("getMaxListeners", args);
|
|
43
|
+
const setMaxListeners = (...args) => invoke("setMaxListeners", args);
|
|
44
|
+
import { nextTick, emitWarning } from "./scheduling.js";
|
|
45
|
+
export { nextTick, emitWarning };
|
|
46
|
+
export const hrtime = Object.assign(function hrtime(time) {
|
|
47
|
+
if (time !== undefined) {
|
|
48
|
+
if (!Array.isArray(time))
|
|
49
|
+
throw new ERR_INVALID_ARG_TYPE("time", "tuple of integers", time);
|
|
50
|
+
else if (time.length !== 2)
|
|
51
|
+
throw new ERR_OUT_OF_RANGE("time", "2", time);
|
|
52
|
+
}
|
|
53
|
+
const nanoTime = BigInt(Date.now()) * 1000000n;
|
|
54
|
+
const nanosBigint = nanoTime % 1000000000n;
|
|
55
|
+
let seconds = Number((nanoTime - nanosBigint) / 1000000000n);
|
|
56
|
+
let nanos = Number(nanosBigint);
|
|
57
|
+
if (time) {
|
|
58
|
+
const [prevSeconds, prevNanos] = time;
|
|
59
|
+
seconds -= prevSeconds;
|
|
60
|
+
nanos -= prevNanos;
|
|
61
|
+
// We don't have nanosecond-level precision, but if we
|
|
62
|
+
// did (say with the introduction of randomness), this
|
|
63
|
+
// is how we would handle nanosecond underflow
|
|
64
|
+
if (nanos < 0) {
|
|
65
|
+
seconds -= 1;
|
|
66
|
+
nanos += 1e9;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return [seconds, nanos];
|
|
70
|
+
}, {
|
|
71
|
+
bigint: function () {
|
|
72
|
+
return BigInt(Date.now()) * 1000000n;
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
Object.assign(process, {
|
|
76
|
+
cwd,
|
|
77
|
+
chdir,
|
|
78
|
+
hrtime,
|
|
79
|
+
...metadata,
|
|
80
|
+
on,
|
|
81
|
+
addListener,
|
|
82
|
+
once,
|
|
83
|
+
prependListener,
|
|
84
|
+
prependOnceListener,
|
|
85
|
+
off,
|
|
86
|
+
removeListener,
|
|
87
|
+
removeAllListeners,
|
|
88
|
+
emit,
|
|
89
|
+
listeners,
|
|
90
|
+
rawListeners,
|
|
91
|
+
eventNames,
|
|
92
|
+
listenerCount,
|
|
93
|
+
getMaxListeners,
|
|
94
|
+
setMaxListeners,
|
|
95
|
+
nextTick,
|
|
96
|
+
emitWarning,
|
|
97
|
+
});
|
|
98
|
+
stdio.installStdio();
|
|
99
|
+
Object.assign(process, {
|
|
100
|
+
config,
|
|
101
|
+
loadEnvFile,
|
|
102
|
+
argv0,
|
|
103
|
+
assert,
|
|
104
|
+
_channel,
|
|
105
|
+
_disconnect,
|
|
106
|
+
_handleQueue,
|
|
107
|
+
_pendingMessage,
|
|
108
|
+
_send,
|
|
109
|
+
stdin: stdio.stdin,
|
|
110
|
+
stdout: stdio.stdout,
|
|
111
|
+
stderr: stdio.stderr,
|
|
112
|
+
openStdin: stdio.openStdin,
|
|
113
|
+
});
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { NodeError } from "../net/error-base.js";
|
|
2
|
+
export declare class ERR_EPERM extends NodeError {
|
|
3
|
+
path?: string;
|
|
4
|
+
syscall: string;
|
|
5
|
+
errno: number;
|
|
6
|
+
constructor(options: {
|
|
7
|
+
syscall: string;
|
|
8
|
+
errno?: number;
|
|
9
|
+
path?: string;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export declare const arch = "x64";
|
|
13
|
+
export declare const pid = 1;
|
|
14
|
+
export declare const ppid = 0;
|
|
15
|
+
export declare const allowedNodeEnvironmentFlags: Set<unknown>;
|
|
16
|
+
export declare function setSourceMapsEnabled(_enabled: boolean, _options?: {
|
|
17
|
+
nodeModules: boolean;
|
|
18
|
+
generatedCode: boolean;
|
|
19
|
+
}): void;
|
|
20
|
+
export declare function getSourceMapsSupport(): {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
nodeModules: boolean;
|
|
23
|
+
generatedCode: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare function ref(): void;
|
|
26
|
+
export declare function unref(): void;
|
|
27
|
+
export declare function setUncaughtExceptionCaptureCallback(_fn?: (...args: unknown[]) => void): void;
|
|
28
|
+
export declare function hasUncaughtExceptionCaptureCallback(): boolean;
|
|
29
|
+
export declare function kill(_pid: number, _signal?: string | number): boolean;
|
|
30
|
+
export declare function binding(_name: string): unknown;
|
|
31
|
+
export declare function dlopen(_module: unknown, _filename: string, _flags?: number): void;
|
|
32
|
+
export declare const exitCode: number | undefined;
|
|
33
|
+
export declare function getActiveResourcesInfo(): string[];
|
|
34
|
+
export declare function memoryUsage(): {
|
|
35
|
+
rss: number;
|
|
36
|
+
heapTotal: number;
|
|
37
|
+
heapUsed: number;
|
|
38
|
+
external: number;
|
|
39
|
+
arrayBuffers: number;
|
|
40
|
+
};
|
|
41
|
+
export declare function resourceUsage(): {
|
|
42
|
+
userCPUTime: number;
|
|
43
|
+
systemCPUTime: number;
|
|
44
|
+
maxRSS: number;
|
|
45
|
+
sharedMemorySize: number;
|
|
46
|
+
unsharedDataSize: number;
|
|
47
|
+
unsharedStackSize: number;
|
|
48
|
+
minorPageFault: number;
|
|
49
|
+
majorPageFault: number;
|
|
50
|
+
swappedOut: number;
|
|
51
|
+
fsRead: number;
|
|
52
|
+
fsWrite: number;
|
|
53
|
+
ipcSent: number;
|
|
54
|
+
ipcReceived: number;
|
|
55
|
+
signalsCount: number;
|
|
56
|
+
voluntaryContextSwitches: number;
|
|
57
|
+
involuntaryContextSwitches: number;
|
|
58
|
+
};
|
|
59
|
+
export declare function threadCpuUsage(): {
|
|
60
|
+
user: number;
|
|
61
|
+
system: number;
|
|
62
|
+
};
|
|
63
|
+
export declare function cpuUsage(_previousValue?: {
|
|
64
|
+
user: number;
|
|
65
|
+
system: number;
|
|
66
|
+
}): {
|
|
67
|
+
user: number;
|
|
68
|
+
system: number;
|
|
69
|
+
};
|
|
70
|
+
export declare const channel: null;
|
|
71
|
+
export declare const connected = false;
|
|
72
|
+
export declare const debugPort = 0;
|
|
73
|
+
export declare const noDeprecation = false;
|
|
74
|
+
export declare const traceDeprecation = false;
|
|
75
|
+
export declare const throwDeprecation = false;
|
|
76
|
+
export declare const sourceMapsEnabled = false;
|
|
77
|
+
export declare const execPath = "";
|
|
78
|
+
export declare const permission: {
|
|
79
|
+
has: () => boolean;
|
|
80
|
+
};
|
|
81
|
+
export declare const release: {
|
|
82
|
+
name: string;
|
|
83
|
+
lts: boolean;
|
|
84
|
+
sourceUrl: string;
|
|
85
|
+
headersUrl: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const report: {
|
|
88
|
+
compact: boolean;
|
|
89
|
+
directory: string;
|
|
90
|
+
filename: string;
|
|
91
|
+
getReport: () => Record<string, unknown>;
|
|
92
|
+
reportOnFatalError: boolean;
|
|
93
|
+
reportOnSignal: boolean;
|
|
94
|
+
reportOnUncaughtException: boolean;
|
|
95
|
+
excludeNetwork: boolean;
|
|
96
|
+
excludeEnv: boolean;
|
|
97
|
+
signal: string;
|
|
98
|
+
writeReport: () => string;
|
|
99
|
+
};
|
|
100
|
+
export declare const finalization: {
|
|
101
|
+
register: () => void;
|
|
102
|
+
registerBeforeExit: () => void;
|
|
103
|
+
unregister: () => void;
|
|
104
|
+
};
|
|
105
|
+
export declare function _rawDebug(...args: unknown[]): void;
|
|
106
|
+
export declare const moduleLoadList: string[];
|
|
107
|
+
export declare const _preload_modules: string[];
|
|
108
|
+
export declare function _linkedBinding(_name: string): unknown;
|
|
109
|
+
export declare const domain: null;
|
|
110
|
+
export declare const _exiting = false;
|
|
111
|
+
export declare function _getActiveRequests(): unknown[];
|
|
112
|
+
export declare function _getActiveHandles(): unknown[];
|
|
113
|
+
export declare function _kill(_pid: number, _signal: number): boolean;
|
|
114
|
+
export declare function constrainedMemory(): number;
|
|
115
|
+
export declare function availableMemory(): number;
|
|
116
|
+
export declare function execve(_file: string, _args: string[], _env: Record<string, string>): never;
|
|
117
|
+
export declare function _fatalException(_err: Error): boolean;
|
|
118
|
+
export declare function _tickCallback(): void;
|
|
119
|
+
export declare function _debugProcess(_pid: number): void;
|
|
120
|
+
export declare function _debugEnd(): void;
|
|
121
|
+
export declare function _startProfilerIdleNotifier(): void;
|
|
122
|
+
export declare function _stopProfilerIdleNotifier(): void;
|
|
123
|
+
export declare function send(_message: unknown, _sendHandle?: unknown): boolean;
|
|
124
|
+
export declare function uptime(): number;
|
|
125
|
+
export declare function getegid(): number;
|
|
126
|
+
export declare function getgid(): number;
|
|
127
|
+
export declare function getgroups(): number[];
|
|
128
|
+
export declare function geteuid(): number;
|
|
129
|
+
export declare function getuid(): number;
|
|
130
|
+
export declare function setegid(id: number | string): void;
|
|
131
|
+
export declare function setgid(id: number | string): void;
|
|
132
|
+
export declare function seteuid(id: number | string): void;
|
|
133
|
+
export declare function setuid(id: number | string): void;
|
|
134
|
+
export declare function setgroups(_groups: number[]): void;
|
|
135
|
+
export declare function initgroups(_user: number | string, _extractGroup: number | string): void;
|