visaljs 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/cli.js +469 -53
- package/node/include/js_node.h +36 -0
- package/node/prelude/async_hooks.js +63 -8
- package/node/prelude/buffer.js +0 -0
- package/node/prelude/diagnostics_channel.js +322 -0
- package/node/prelude/dns.js +3 -2
- package/node/prelude/events.js +17 -3
- package/node/prelude/fs.js +177 -5
- package/node/prelude/fs_promises.js +24 -0
- package/node/prelude/http.js +13 -4
- package/node/prelude/http2.js +0 -0
- package/node/prelude/internal/async_context.js +27 -0
- package/node/prelude/internal/crypto/asym.js +0 -0
- package/node/prelude/internal/crypto/cipher.js +0 -0
- package/node/prelude/internal/crypto/kdf.js +0 -0
- package/node/prelude/internal/crypto/keys.js +0 -0
- package/node/prelude/internal/crypto/random.js +0 -0
- package/node/prelude/internal/crypto/util.js +0 -0
- package/node/prelude/internal/errors.js +11 -0
- package/node/prelude/internal/process_events.js +14 -0
- package/node/prelude/internal/process_signals.js +42 -0
- package/node/prelude/internal/querystring.js +0 -0
- package/node/prelude/internal/timers.js +233 -0
- package/node/prelude/internal/timers_global.js +9 -0
- package/node/prelude/internal/zlib_brotli.js +6 -0
- package/node/prelude/internal/zlib_engines.js +4 -0
- package/node/prelude/internal/zlib_zstd.js +6 -0
- package/node/prelude/module.js +22 -6
- package/node/prelude/net.js +9 -8
- package/node/prelude/os.js +0 -0
- package/node/prelude/path.js +1599 -186
- package/node/prelude/path_posix.js +9 -0
- package/node/prelude/path_win32.js +9 -0
- package/node/prelude/process.js +3 -0
- package/node/prelude/querystring.js +0 -0
- package/node/prelude/stream.js +18 -6
- package/node/prelude/stream_promises.js +0 -0
- package/node/prelude/stream_web.js +0 -0
- package/node/prelude/string_decoder.js +0 -0
- package/node/prelude/timers.js +92 -0
- package/node/prelude/timers_promises.js +133 -0
- package/node/prelude/tty.js +0 -0
- package/node/prelude/url.js +0 -0
- package/node/prelude/util.js +0 -0
- package/node/prelude/zlib.js +912 -72
- package/node/src/host_brotli.c +157 -0
- package/node/src/host_fs.c +95 -1
- package/node/src/host_loop.c +10 -4
- package/node/src/host_os.c +0 -0
- package/node/src/host_signal.c +70 -0
- package/node/src/host_sys.c +50 -0
- package/node/src/host_zlib.c +314 -0
- package/node/src/host_zstd.c +179 -0
- package/node/third_party/brotli/LICENSE +19 -0
- package/node/third_party/brotli/common/constants.c +15 -0
- package/node/third_party/brotli/common/constants.h +201 -0
- package/node/third_party/brotli/common/context.c +156 -0
- package/node/third_party/brotli/common/context.h +113 -0
- package/node/third_party/brotli/common/dictionary.c +5916 -0
- package/node/third_party/brotli/common/dictionary.h +64 -0
- package/node/third_party/brotli/common/platform.c +23 -0
- package/node/third_party/brotli/common/platform.h +541 -0
- package/node/third_party/brotli/common/shared_dictionary.c +521 -0
- package/node/third_party/brotli/common/shared_dictionary_internal.h +75 -0
- package/node/third_party/brotli/common/transform.c +291 -0
- package/node/third_party/brotli/common/transform.h +85 -0
- package/node/third_party/brotli/common/version.h +51 -0
- package/node/third_party/brotli/dec/bit_reader.c +78 -0
- package/node/third_party/brotli/dec/bit_reader.h +423 -0
- package/node/third_party/brotli/dec/decode.c +2875 -0
- package/node/third_party/brotli/dec/huffman.c +342 -0
- package/node/third_party/brotli/dec/huffman.h +122 -0
- package/node/third_party/brotli/dec/prefix.h +733 -0
- package/node/third_party/brotli/dec/state.c +183 -0
- package/node/third_party/brotli/dec/state.h +400 -0
- package/node/third_party/brotli/enc/backward_references.c +207 -0
- package/node/third_party/brotli/enc/backward_references.h +40 -0
- package/node/third_party/brotli/enc/backward_references_hq.c +939 -0
- package/node/third_party/brotli/enc/backward_references_hq.h +96 -0
- package/node/third_party/brotli/enc/backward_references_inc.h +189 -0
- package/node/third_party/brotli/enc/bit_cost.c +36 -0
- package/node/third_party/brotli/enc/bit_cost.h +64 -0
- package/node/third_party/brotli/enc/bit_cost_inc.h +127 -0
- package/node/third_party/brotli/enc/block_encoder_inc.h +34 -0
- package/node/third_party/brotli/enc/block_splitter.c +217 -0
- package/node/third_party/brotli/enc/block_splitter.h +52 -0
- package/node/third_party/brotli/enc/block_splitter_inc.h +481 -0
- package/node/third_party/brotli/enc/brotli_bit_stream.c +1336 -0
- package/node/third_party/brotli/enc/brotli_bit_stream.h +89 -0
- package/node/third_party/brotli/enc/cluster.c +57 -0
- package/node/third_party/brotli/enc/cluster.h +49 -0
- package/node/third_party/brotli/enc/cluster_inc.h +325 -0
- package/node/third_party/brotli/enc/command.c +28 -0
- package/node/third_party/brotli/enc/command.h +191 -0
- package/node/third_party/brotli/enc/compound_dictionary.c +207 -0
- package/node/third_party/brotli/enc/compound_dictionary.h +74 -0
- package/node/third_party/brotli/enc/compress_fragment.c +800 -0
- package/node/third_party/brotli/enc/compress_fragment.h +86 -0
- package/node/third_party/brotli/enc/compress_fragment_two_pass.c +657 -0
- package/node/third_party/brotli/enc/compress_fragment_two_pass.h +72 -0
- package/node/third_party/brotli/enc/dictionary_hash.c +1848 -0
- package/node/third_party/brotli/enc/dictionary_hash.h +25 -0
- package/node/third_party/brotli/enc/encode.c +1996 -0
- package/node/third_party/brotli/enc/encoder_dict.c +640 -0
- package/node/third_party/brotli/enc/encoder_dict.h +157 -0
- package/node/third_party/brotli/enc/entropy_encode.c +504 -0
- package/node/third_party/brotli/enc/entropy_encode.h +123 -0
- package/node/third_party/brotli/enc/entropy_encode_static.h +542 -0
- package/node/third_party/brotli/enc/fast_log.c +105 -0
- package/node/third_party/brotli/enc/fast_log.h +67 -0
- package/node/third_party/brotli/enc/find_match_length.h +72 -0
- package/node/third_party/brotli/enc/hash.h +728 -0
- package/node/third_party/brotli/enc/hash_composite_inc.h +140 -0
- package/node/third_party/brotli/enc/hash_forgetful_chain_inc.h +295 -0
- package/node/third_party/brotli/enc/hash_longest_match64_inc.h +262 -0
- package/node/third_party/brotli/enc/hash_longest_match_inc.h +258 -0
- package/node/third_party/brotli/enc/hash_longest_match_quickly_inc.h +266 -0
- package/node/third_party/brotli/enc/hash_rolling_inc.h +212 -0
- package/node/third_party/brotli/enc/hash_to_binary_tree_inc.h +330 -0
- package/node/third_party/brotli/enc/histogram.c +100 -0
- package/node/third_party/brotli/enc/histogram.h +64 -0
- package/node/third_party/brotli/enc/histogram_inc.h +51 -0
- package/node/third_party/brotli/enc/literal_cost.c +180 -0
- package/node/third_party/brotli/enc/literal_cost.h +32 -0
- package/node/third_party/brotli/enc/memory.c +194 -0
- package/node/third_party/brotli/enc/memory.h +131 -0
- package/node/third_party/brotli/enc/metablock.c +677 -0
- package/node/third_party/brotli/enc/metablock.h +106 -0
- package/node/third_party/brotli/enc/metablock_inc.h +185 -0
- package/node/third_party/brotli/enc/params.h +47 -0
- package/node/third_party/brotli/enc/prefix.h +54 -0
- package/node/third_party/brotli/enc/quality.h +202 -0
- package/node/third_party/brotli/enc/ringbuffer.h +168 -0
- package/node/third_party/brotli/enc/state.h +104 -0
- package/node/third_party/brotli/enc/static_dict.c +542 -0
- package/node/third_party/brotli/enc/static_dict.h +41 -0
- package/node/third_party/brotli/enc/static_dict_lut.h +5866 -0
- package/node/third_party/brotli/enc/utf8_util.c +85 -0
- package/node/third_party/brotli/enc/utf8_util.h +33 -0
- package/node/third_party/brotli/enc/write_bits.h +88 -0
- package/node/third_party/brotli/include/brotli/decode.h +409 -0
- package/node/third_party/brotli/include/brotli/encode.h +501 -0
- package/node/third_party/brotli/include/brotli/port.h +305 -0
- package/node/third_party/brotli/include/brotli/shared_dictionary.h +100 -0
- package/node/third_party/brotli/include/brotli/types.h +83 -0
- package/node/third_party/libuv/LICENSE +0 -0
- package/node/third_party/libuv/include/uv/aix.h +0 -0
- package/node/third_party/libuv/include/uv/bsd.h +0 -0
- package/node/third_party/libuv/include/uv/darwin.h +0 -0
- package/node/third_party/libuv/include/uv/errno.h +0 -0
- package/node/third_party/libuv/include/uv/linux.h +0 -0
- package/node/third_party/libuv/include/uv/os390.h +0 -0
- package/node/third_party/libuv/include/uv/posix.h +0 -0
- package/node/third_party/libuv/include/uv/sunos.h +0 -0
- package/node/third_party/libuv/include/uv/threadpool.h +0 -0
- package/node/third_party/libuv/include/uv/tree.h +0 -0
- package/node/third_party/libuv/include/uv/unix.h +0 -0
- package/node/third_party/libuv/include/uv/version.h +0 -0
- package/node/third_party/libuv/include/uv/win.h +0 -0
- package/node/third_party/libuv/include/uv.h +0 -0
- package/node/third_party/libuv/src/fs-poll.c +0 -0
- package/node/third_party/libuv/src/heap-inl.h +0 -0
- package/node/third_party/libuv/src/idna.c +0 -0
- package/node/third_party/libuv/src/idna.h +0 -0
- package/node/third_party/libuv/src/inet.c +0 -0
- package/node/third_party/libuv/src/queue.h +0 -0
- package/node/third_party/libuv/src/random.c +0 -0
- package/node/third_party/libuv/src/strscpy.c +0 -0
- package/node/third_party/libuv/src/strscpy.h +0 -0
- package/node/third_party/libuv/src/strtok.c +0 -0
- package/node/third_party/libuv/src/strtok.h +0 -0
- package/node/third_party/libuv/src/thread-common.c +0 -0
- package/node/third_party/libuv/src/threadpool.c +0 -0
- package/node/third_party/libuv/src/timer.c +0 -0
- package/node/third_party/libuv/src/unix/async.c +0 -0
- package/node/third_party/libuv/src/unix/bsd-ifaddrs.c +0 -0
- package/node/third_party/libuv/src/unix/core.c +0 -0
- package/node/third_party/libuv/src/unix/darwin-proctitle.c +0 -0
- package/node/third_party/libuv/src/unix/darwin-stub.h +0 -0
- package/node/third_party/libuv/src/unix/darwin-syscalls.h +0 -0
- package/node/third_party/libuv/src/unix/darwin.c +0 -0
- package/node/third_party/libuv/src/unix/dl.c +0 -0
- package/node/third_party/libuv/src/unix/fs.c +0 -0
- package/node/third_party/libuv/src/unix/fsevents.c +0 -0
- package/node/third_party/libuv/src/unix/getaddrinfo.c +0 -0
- package/node/third_party/libuv/src/unix/getnameinfo.c +0 -0
- package/node/third_party/libuv/src/unix/internal.h +0 -0
- package/node/third_party/libuv/src/unix/kqueue.c +0 -0
- package/node/third_party/libuv/src/unix/linux.c +0 -0
- package/node/third_party/libuv/src/unix/loop-watcher.c +0 -0
- package/node/third_party/libuv/src/unix/loop.c +0 -0
- package/node/third_party/libuv/src/unix/pipe.c +0 -0
- package/node/third_party/libuv/src/unix/poll.c +0 -0
- package/node/third_party/libuv/src/unix/process.c +0 -0
- package/node/third_party/libuv/src/unix/procfs-exepath.c +0 -0
- package/node/third_party/libuv/src/unix/proctitle.c +0 -0
- package/node/third_party/libuv/src/unix/random-devurandom.c +0 -0
- package/node/third_party/libuv/src/unix/random-getentropy.c +0 -0
- package/node/third_party/libuv/src/unix/random-getrandom.c +0 -0
- package/node/third_party/libuv/src/unix/random-sysctl-linux.c +0 -0
- package/node/third_party/libuv/src/unix/signal.c +0 -0
- package/node/third_party/libuv/src/unix/stream.c +0 -0
- package/node/third_party/libuv/src/unix/tcp.c +0 -0
- package/node/third_party/libuv/src/unix/thread.c +0 -0
- package/node/third_party/libuv/src/unix/tty.c +0 -0
- package/node/third_party/libuv/src/unix/udp.c +0 -0
- package/node/third_party/libuv/src/uv-common.c +0 -0
- package/node/third_party/libuv/src/uv-common.h +0 -0
- package/node/third_party/libuv/src/uv-data-getter-setters.c +0 -0
- package/node/third_party/libuv/src/version.c +0 -0
- package/node/third_party/llhttp/LICENSE +0 -0
- package/node/third_party/llhttp/api.c +0 -0
- package/node/third_party/llhttp/http.c +0 -0
- package/node/third_party/llhttp/llhttp.c +0 -0
- package/node/third_party/llhttp/llhttp.h +0 -0
- package/node/third_party/zlib/LICENSE +19 -0
- package/node/third_party/zlib/README.chromium +38 -0
- package/node/third_party/zlib/adler32.c +197 -0
- package/node/third_party/zlib/chromeconf.h +203 -0
- package/node/third_party/zlib/contrib/optimizations/insert_string.h +80 -0
- package/node/third_party/zlib/cpu_features.c +213 -0
- package/node/third_party/zlib/cpu_features.h +22 -0
- package/node/third_party/zlib/crc32.c +1192 -0
- package/node/third_party/zlib/crc32.h +9446 -0
- package/node/third_party/zlib/deflate.c +2289 -0
- package/node/third_party/zlib/deflate.h +407 -0
- package/node/third_party/zlib/gzguts.h +214 -0
- package/node/third_party/zlib/inffast.c +327 -0
- package/node/third_party/zlib/inffast.h +26 -0
- package/node/third_party/zlib/inffixed.h +94 -0
- package/node/third_party/zlib/inflate.c +1528 -0
- package/node/third_party/zlib/inflate.h +126 -0
- package/node/third_party/zlib/inftrees.c +299 -0
- package/node/third_party/zlib/inftrees.h +62 -0
- package/node/third_party/zlib/trees.c +1161 -0
- package/node/third_party/zlib/trees.h +128 -0
- package/node/third_party/zlib/zconf.h +558 -0
- package/node/third_party/zlib/zlib.h +1967 -0
- package/node/third_party/zlib/zutil.c +299 -0
- package/node/third_party/zlib/zutil.h +275 -0
- package/node/third_party/zstd/LICENSE +30 -0
- package/node/third_party/zstd/common/allocations.h +55 -0
- package/node/third_party/zstd/common/bits.h +205 -0
- package/node/third_party/zstd/common/bitstream.h +454 -0
- package/node/third_party/zstd/common/compiler.h +464 -0
- package/node/third_party/zstd/common/cpu.h +249 -0
- package/node/third_party/zstd/common/debug.c +30 -0
- package/node/third_party/zstd/common/debug.h +107 -0
- package/node/third_party/zstd/common/entropy_common.c +340 -0
- package/node/third_party/zstd/common/error_private.c +64 -0
- package/node/third_party/zstd/common/error_private.h +158 -0
- package/node/third_party/zstd/common/fse.h +625 -0
- package/node/third_party/zstd/common/fse_decompress.c +315 -0
- package/node/third_party/zstd/common/huf.h +277 -0
- package/node/third_party/zstd/common/mem.h +422 -0
- package/node/third_party/zstd/common/pool.c +371 -0
- package/node/third_party/zstd/common/pool.h +81 -0
- package/node/third_party/zstd/common/portability_macros.h +171 -0
- package/node/third_party/zstd/common/threading.c +182 -0
- package/node/third_party/zstd/common/threading.h +142 -0
- package/node/third_party/zstd/common/xxhash.c +18 -0
- package/node/third_party/zstd/common/xxhash.h +7094 -0
- package/node/third_party/zstd/common/zstd_common.c +48 -0
- package/node/third_party/zstd/common/zstd_deps.h +123 -0
- package/node/third_party/zstd/common/zstd_internal.h +324 -0
- package/node/third_party/zstd/common/zstd_trace.h +156 -0
- package/node/third_party/zstd/compress/clevels.h +134 -0
- package/node/third_party/zstd/compress/fse_compress.c +625 -0
- package/node/third_party/zstd/compress/hist.c +191 -0
- package/node/third_party/zstd/compress/hist.h +82 -0
- package/node/third_party/zstd/compress/huf_compress.c +1464 -0
- package/node/third_party/zstd/compress/zstd_compress.c +7843 -0
- package/node/third_party/zstd/compress/zstd_compress_internal.h +1636 -0
- package/node/third_party/zstd/compress/zstd_compress_literals.c +235 -0
- package/node/third_party/zstd/compress/zstd_compress_literals.h +39 -0
- package/node/third_party/zstd/compress/zstd_compress_sequences.c +442 -0
- package/node/third_party/zstd/compress/zstd_compress_sequences.h +55 -0
- package/node/third_party/zstd/compress/zstd_compress_superblock.c +688 -0
- package/node/third_party/zstd/compress/zstd_compress_superblock.h +32 -0
- package/node/third_party/zstd/compress/zstd_cwksp.h +765 -0
- package/node/third_party/zstd/compress/zstd_double_fast.c +778 -0
- package/node/third_party/zstd/compress/zstd_double_fast.h +42 -0
- package/node/third_party/zstd/compress/zstd_fast.c +985 -0
- package/node/third_party/zstd/compress/zstd_fast.h +30 -0
- package/node/third_party/zstd/compress/zstd_lazy.c +2199 -0
- package/node/third_party/zstd/compress/zstd_lazy.h +193 -0
- package/node/third_party/zstd/compress/zstd_ldm.c +745 -0
- package/node/third_party/zstd/compress/zstd_ldm.h +109 -0
- package/node/third_party/zstd/compress/zstd_ldm_geartab.h +106 -0
- package/node/third_party/zstd/compress/zstd_opt.c +1580 -0
- package/node/third_party/zstd/compress/zstd_opt.h +72 -0
- package/node/third_party/zstd/compress/zstd_preSplit.c +238 -0
- package/node/third_party/zstd/compress/zstd_preSplit.h +33 -0
- package/node/third_party/zstd/compress/zstdmt_compress.c +1923 -0
- package/node/third_party/zstd/compress/zstdmt_compress.h +102 -0
- package/node/third_party/zstd/decompress/huf_decompress.c +1944 -0
- package/node/third_party/zstd/decompress/zstd_ddict.c +244 -0
- package/node/third_party/zstd/decompress/zstd_ddict.h +44 -0
- package/node/third_party/zstd/decompress/zstd_decompress.c +2410 -0
- package/node/third_party/zstd/decompress/zstd_decompress_block.c +2209 -0
- package/node/third_party/zstd/decompress/zstd_decompress_block.h +73 -0
- package/node/third_party/zstd/decompress/zstd_decompress_internal.h +240 -0
- package/node/third_party/zstd/zdict.h +481 -0
- package/node/third_party/zstd/zstd.h +3198 -0
- package/node/third_party/zstd/zstd_errors.h +107 -0
- package/package.json +1 -6
- package/runtime/include/js_atoms.gen.h +0 -0
- package/runtime/include/js_atoms.h +0 -0
- package/runtime/include/js_bigint.h +0 -0
- package/runtime/include/js_buffer.h +0 -0
- package/runtime/include/js_builtins.h +0 -0
- package/runtime/include/js_console.h +5 -2
- package/runtime/include/js_convert.h +0 -0
- package/runtime/include/js_core.def +0 -0
- package/runtime/include/js_error.h +0 -0
- package/runtime/include/js_exception.h +0 -0
- package/runtime/include/js_function.h +0 -0
- package/runtime/include/js_gc.h +0 -0
- package/runtime/include/js_generator.h +0 -0
- package/runtime/include/js_host.h +5 -3
- package/runtime/include/js_jobs.h +18 -1
- package/runtime/include/js_module.h +0 -0
- package/runtime/include/js_object.h +0 -0
- package/runtime/include/js_ops.h +0 -0
- package/runtime/include/js_promise.h +1 -0
- package/runtime/include/js_regexp.h +0 -0
- package/runtime/include/js_runtime.h +0 -0
- package/runtime/include/js_symbol.h +0 -0
- package/runtime/include/js_web.h +0 -0
- package/runtime/include/jscell.h +0 -0
- package/runtime/include/jscontext.h +14 -0
- package/runtime/include/jsnum.h +0 -0
- package/runtime/include/jsstring.h +0 -0
- package/runtime/include/jsvalue.h +0 -0
- package/runtime/src/arguments.c +0 -0
- package/runtime/src/array.c +0 -0
- package/runtime/src/arraybuffer.c +0 -0
- package/runtime/src/async_iter.c +0 -0
- package/runtime/src/atoms.c +0 -0
- package/runtime/src/base64.c +0 -0
- package/runtime/src/bigint.c +0 -0
- package/runtime/src/blob.c +0 -0
- package/runtime/src/buffer.c +20 -16
- package/runtime/src/builtin_table.c +0 -0
- package/runtime/src/builtins.c +0 -0
- package/runtime/src/builtins_util.h +0 -0
- package/runtime/src/collections.c +0 -0
- package/runtime/src/components.c +0 -0
- package/runtime/src/console.c +15 -2
- package/runtime/src/convert.c +0 -0
- package/runtime/src/core_all.c +0 -0
- package/runtime/src/crypto.c +0 -0
- package/runtime/src/crypto_host.c +0 -0
- package/runtime/src/crypto_kdf.c +0 -0
- package/runtime/src/crypto_key.c +0 -0
- package/runtime/src/date.c +0 -0
- package/runtime/src/domexception.c +0 -0
- package/runtime/src/elements.c +0 -0
- package/runtime/src/elements.h +0 -0
- package/runtime/src/encoding.c +0 -0
- package/runtime/src/error.c +0 -0
- package/runtime/src/events.c +1 -1
- package/runtime/src/exception.c +0 -0
- package/runtime/src/fetch.c +0 -0
- package/runtime/src/function.c +0 -0
- package/runtime/src/gc.c +2 -0
- package/runtime/src/generator.c +0 -0
- package/runtime/src/global.c +0 -0
- package/runtime/src/headers.c +0 -0
- package/runtime/src/inspect.c +0 -0
- package/runtime/src/internal.h +0 -0
- package/runtime/src/iterate.c +0 -0
- package/runtime/src/iterator.c +0 -0
- package/runtime/src/jobs.c +123 -44
- package/runtime/src/jsnum.c +0 -0
- package/runtime/src/json.c +0 -0
- package/runtime/src/math.c +0 -0
- package/runtime/src/module.c +0 -0
- package/runtime/src/number.c +0 -0
- package/runtime/src/object.c +0 -0
- package/runtime/src/ops.c +0 -0
- package/runtime/src/os.c +0 -0
- package/runtime/src/os.h +0 -0
- package/runtime/src/process.c +92 -8
- package/runtime/src/promise.c +7 -2
- package/runtime/src/proxy.c +0 -0
- package/runtime/src/reflect.c +0 -0
- package/runtime/src/regexp.c +0 -0
- package/runtime/src/regexp_anchor.h +0 -0
- package/runtime/src/regexp_message.h +0 -0
- package/runtime/src/shape.c +0 -0
- package/runtime/src/shape.h +0 -0
- package/runtime/src/streams.c +0 -0
- package/runtime/src/streams.h +0 -0
- package/runtime/src/string.c +0 -0
- package/runtime/src/string_builtins.c +0 -0
- package/runtime/src/symbol.c +0 -0
- package/runtime/src/test_host.c +0 -0
- package/runtime/src/typedarray.c +0 -0
- package/runtime/src/tznames.gen.h +0 -0
- package/runtime/src/uri.c +0 -0
- package/runtime/src/url.c +0 -0
- package/runtime/src/weak.c +1 -4
- package/runtime/src/web.c +0 -0
- package/runtime/src/wrapper.c +0 -0
- package/runtime/src/writable.c +0 -0
- package/runtime/third_party/ada-idna/LICENSE-MIT +0 -0
- package/runtime/third_party/ada-idna/README.md +0 -0
- package/runtime/third_party/ada-idna/convert.mjs +0 -0
- package/runtime/third_party/ada-idna/idna.c +0 -0
- package/runtime/third_party/ada-idna/idna.h +0 -0
- package/runtime/third_party/ada-idna/idna_tables.h +0 -0
- package/runtime/third_party/quickjs-dtoa/LICENSE +0 -0
- package/runtime/third_party/quickjs-dtoa/README.md +0 -0
- package/runtime/third_party/quickjs-dtoa/dtoa.c +0 -0
- package/runtime/third_party/quickjs-dtoa/dtoa.h +0 -0
- package/runtime/third_party/quickjs-dtoa/dtoa_compat.h +0 -0
- package/runtime/third_party/quickjs-regexp/LICENSE +0 -0
- package/runtime/third_party/quickjs-regexp/README.md +0 -0
- package/runtime/third_party/quickjs-regexp/cutils.c +0 -0
- package/runtime/third_party/quickjs-regexp/cutils.h +0 -0
- package/runtime/third_party/quickjs-regexp/libregexp-opcode.h +0 -0
- package/runtime/third_party/quickjs-regexp/libregexp.c +0 -0
- package/runtime/third_party/quickjs-regexp/libregexp.h +0 -0
- package/runtime/third_party/quickjs-regexp/libunicode-table.h +0 -0
- package/runtime/third_party/quickjs-regexp/libunicode.c +0 -0
- package/runtime/third_party/quickjs-regexp/libunicode.h +0 -0
- package/runtime/third_party/v8-ieee754/LICENSE +0 -0
- package/runtime/third_party/v8-ieee754/README.md +0 -0
- package/runtime/third_party/v8-ieee754/convert.py +0 -0
- package/runtime/third_party/v8-ieee754/ieee754.c +0 -0
- package/runtime/third_party/v8-ieee754/ieee754.h +0 -0
- package/runtime/tools/regexp_compile.c +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// node:path/posix (ADR 0012, layer 3): path.posix, on every platform.
|
|
2
|
+
import { posix } from "./path.js";
|
|
3
|
+
|
|
4
|
+
export const {
|
|
5
|
+
resolve, normalize, isAbsolute, join, relative, toNamespacedPath, dirname, basename, extname, format, parse,
|
|
6
|
+
matchesGlob, sep, delimiter, win32,
|
|
7
|
+
} = posix;
|
|
8
|
+
export { posix };
|
|
9
|
+
export default posix;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// node:path/win32 (ADR 0012, layer 3): path.win32, on every platform.
|
|
2
|
+
import { win32 } from "./path.js";
|
|
3
|
+
|
|
4
|
+
export const {
|
|
5
|
+
resolve, normalize, isAbsolute, join, relative, toNamespacedPath, dirname, basename, extname, format, parse,
|
|
6
|
+
matchesGlob, sep, delimiter, posix,
|
|
7
|
+
} = win32;
|
|
8
|
+
export { win32 };
|
|
9
|
+
export default win32;
|
package/node/prelude/process.js
CHANGED
|
@@ -17,5 +17,8 @@ export const emitWarning = (...args) => p.emitWarning(...args);
|
|
|
17
17
|
export const exit = (...args) => p.exit(...args);
|
|
18
18
|
export const hrtime = p.hrtime;
|
|
19
19
|
export const nextTick = (...args) => p.nextTick(...args);
|
|
20
|
+
export const kill = (...args) => p.kill(...args);
|
|
21
|
+
/* using it gets the driver to add process's events (node/index.ts) */
|
|
22
|
+
export const emit = (...args) => p.emit(...args);
|
|
20
23
|
|
|
21
24
|
export default p;
|
|
File without changes
|
package/node/prelude/stream.js
CHANGED
|
@@ -1142,26 +1142,36 @@ export function Transform(options) {
|
|
|
1142
1142
|
if (typeof options.transform === "function") this._transform = options.transform;
|
|
1143
1143
|
if (typeof options.flush === "function") this._flush = options.flush;
|
|
1144
1144
|
}
|
|
1145
|
+
this.on("prefinish", transformPrefinish);
|
|
1145
1146
|
}
|
|
1146
1147
|
Object.setPrototypeOf(Transform.prototype, Duplex.prototype);
|
|
1147
1148
|
Object.setPrototypeOf(Transform, Duplex);
|
|
1148
1149
|
|
|
1149
|
-
|
|
1150
|
+
/* _flush, then the end of the readable side; cb is absent when it runs on 'prefinish' because a
|
|
1151
|
+
* subclass replaced _final (zlib's streams do) */
|
|
1152
|
+
function transformFinal(cb) {
|
|
1150
1153
|
if (typeof this._flush === "function" && !this.destroyed) {
|
|
1151
1154
|
this._flush((er, data) => {
|
|
1152
1155
|
if (er) {
|
|
1153
|
-
cb(er);
|
|
1156
|
+
if (cb) cb(er);
|
|
1157
|
+
else this.destroy(er);
|
|
1154
1158
|
return;
|
|
1155
1159
|
}
|
|
1156
1160
|
if (data !== null && data !== undefined) this.push(data);
|
|
1157
1161
|
this.push(null);
|
|
1158
|
-
cb();
|
|
1162
|
+
if (cb) cb();
|
|
1159
1163
|
});
|
|
1160
1164
|
} else {
|
|
1161
1165
|
this.push(null);
|
|
1162
|
-
cb();
|
|
1166
|
+
if (cb) cb();
|
|
1163
1167
|
}
|
|
1164
|
-
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
function transformPrefinish() {
|
|
1171
|
+
if (this._final !== transformFinal) transformFinal.call(this);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
Transform.prototype._final = transformFinal;
|
|
1165
1175
|
|
|
1166
1176
|
Transform.prototype._transform = function () {
|
|
1167
1177
|
throw codeError(Error, "The _transform() method is not implemented", "ERR_METHOD_NOT_IMPLEMENTED");
|
|
@@ -1169,6 +1179,7 @@ Transform.prototype._transform = function () {
|
|
|
1169
1179
|
|
|
1170
1180
|
Transform.prototype._write = function (chunk, encoding, callback) {
|
|
1171
1181
|
const rState = this._readableState;
|
|
1182
|
+
const wState = this._writableState;
|
|
1172
1183
|
const length = rState.length;
|
|
1173
1184
|
this._transform(chunk, encoding, (err, val) => {
|
|
1174
1185
|
if (err) {
|
|
@@ -1176,7 +1187,8 @@ Transform.prototype._write = function (chunk, encoding, callback) {
|
|
|
1176
1187
|
return;
|
|
1177
1188
|
}
|
|
1178
1189
|
if (val !== null && val !== undefined) this.push(val);
|
|
1179
|
-
if (rState.ended
|
|
1190
|
+
if (rState.ended) nextTick(callback);
|
|
1191
|
+
else if (wState.ended || length === rState.length || rState.length < rState.highWaterMark) callback();
|
|
1180
1192
|
else this._transformCallback = callback;
|
|
1181
1193
|
});
|
|
1182
1194
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// node:timers (ADR 0012, layer 3): setTimeout, setInterval and setImmediate as Node has them,
|
|
2
|
+
// returning Timeout and Immediate objects (ref, unref, hasRef, refresh, close, a primitive id)
|
|
3
|
+
// that call back with the object as `this` (internal/timers.js); and the legacy enroll,
|
|
4
|
+
// unenroll, active and _unrefActive, on an object of the caller's with an _onTimeout.
|
|
5
|
+
import { invalidArgType, outOfRange } from "./internal/errors.js";
|
|
6
|
+
import {
|
|
7
|
+
TIMEOUT_MAX, armed, arm, clearImmediate, clearInterval, clearTimeout, duration, kFire, kId, kPending, kRefed,
|
|
8
|
+
setImmediate, setInterval, setTimeout, unenrollTimeout,
|
|
9
|
+
} from "./internal/timers.js";
|
|
10
|
+
import { deprecate } from "./util.js";
|
|
11
|
+
import * as promises from "./timers_promises.js";
|
|
12
|
+
|
|
13
|
+
export { clearImmediate, clearInterval, clearTimeout, promises, setImmediate, setInterval, setTimeout };
|
|
14
|
+
|
|
15
|
+
/* util.promisify(setTimeout) and util.promisify(setImmediate): timers/promises' */
|
|
16
|
+
const promisifyCustom = Symbol.for("nodejs.util.promisify.custom");
|
|
17
|
+
Object.defineProperty(setTimeout, promisifyCustom, { value: promises.setTimeout, enumerable: false, writable: true, configurable: true });
|
|
18
|
+
Object.defineProperty(setImmediate, promisifyCustom, { value: promises.setImmediate, enumerable: false, writable: true, configurable: true });
|
|
19
|
+
|
|
20
|
+
/* ---- The legacy API ------------------------------------------------------------------ */
|
|
21
|
+
|
|
22
|
+
function getTimerDuration(msecs, name) {
|
|
23
|
+
if (typeof msecs !== "number") throw invalidArgType(name, "of type number", msecs);
|
|
24
|
+
if (msecs < 0 || !Number.isFinite(msecs)) throw outOfRange(name, "a non-negative finite number", msecs);
|
|
25
|
+
if (msecs > TIMEOUT_MAX) {
|
|
26
|
+
if (typeof process.emitWarning === "function") {
|
|
27
|
+
process.emitWarning(`${msecs} does not fit into a 32-bit signed integer.\nTimer duration was truncated to ${TIMEOUT_MAX}.`, "TimeoutOverflowWarning");
|
|
28
|
+
}
|
|
29
|
+
return TIMEOUT_MAX;
|
|
30
|
+
}
|
|
31
|
+
return msecs;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function enrollItem(item, msecs) {
|
|
35
|
+
if (item._idleNext) unenrollItem(item);
|
|
36
|
+
item._idleNext = item;
|
|
37
|
+
item._idlePrev = item;
|
|
38
|
+
item._idleTimeout = getTimerDuration(msecs, "msecs");
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function unenrollItem(item) {
|
|
42
|
+
if (item[kFire] === undefined) { /* never activated */
|
|
43
|
+
item._idleTimeout = -1;
|
|
44
|
+
item._destroyed = true;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
unenrollTimeout(item);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* arms the item: its _onTimeout() after its _idleTimeout ms */
|
|
51
|
+
function activeItem(item, refed) {
|
|
52
|
+
const msecs = item._idleTimeout;
|
|
53
|
+
if (msecs < 0 || msecs === undefined) return;
|
|
54
|
+
if (item[kFire] === undefined) item[kFire] = () => fireItem(item);
|
|
55
|
+
item._destroyed = false;
|
|
56
|
+
item[kRefed] = refed;
|
|
57
|
+
const saved = item._idleTimeout;
|
|
58
|
+
item._idleTimeout = duration(msecs);
|
|
59
|
+
arm(item, refed);
|
|
60
|
+
item._idleTimeout = saved;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function fireItem(item) {
|
|
64
|
+
item[kPending] = false;
|
|
65
|
+
armed.delete(item[kId]);
|
|
66
|
+
try {
|
|
67
|
+
if (typeof item._onTimeout === "function") item._onTimeout();
|
|
68
|
+
} finally {
|
|
69
|
+
if (!item[kPending]) item._destroyed = true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const enroll = deprecate(function enroll(item, msecs) {
|
|
74
|
+
enrollItem(item, msecs);
|
|
75
|
+
}, "timers.enroll() is deprecated. Please use setTimeout instead.", "DEP0095");
|
|
76
|
+
|
|
77
|
+
export const unenroll = deprecate(function unenroll(item) {
|
|
78
|
+
unenrollItem(item);
|
|
79
|
+
}, "timers.unenroll() is deprecated. Please use clearTimeout instead.", "DEP0096");
|
|
80
|
+
|
|
81
|
+
export const active = deprecate(function active(item) {
|
|
82
|
+
activeItem(item, true);
|
|
83
|
+
}, "timers.active() is deprecated. Please use timeout.refresh() instead.", "DEP0126");
|
|
84
|
+
|
|
85
|
+
export const _unrefActive = deprecate(function _unrefActive(item) {
|
|
86
|
+
activeItem(item, false);
|
|
87
|
+
}, "timers._unrefActive() is deprecated. Please use timeout.refresh() instead.", "DEP0127");
|
|
88
|
+
|
|
89
|
+
export default {
|
|
90
|
+
setTimeout, clearTimeout, setImmediate, clearImmediate, setInterval, clearInterval,
|
|
91
|
+
_unrefActive, active, unenroll, enroll, promises,
|
|
92
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// node:timers/promises (ADR 0012, layer 3): setTimeout and setImmediate as promises,
|
|
2
|
+
// setInterval as an async iterator, and scheduler.wait and scheduler.yield; each takes an
|
|
3
|
+
// AbortSignal, and ref: false for a timer that doesn't keep the program alive.
|
|
4
|
+
import { codeError, invalidArgType } from "./internal/errors.js";
|
|
5
|
+
import { Immediate, Timeout, arm, clearImmediate, clearInterval, clearTimeout } from "./internal/timers.js";
|
|
6
|
+
|
|
7
|
+
/* Node's AbortError: name and code, the signal's reason as its cause */
|
|
8
|
+
function abortError(signal) {
|
|
9
|
+
const error = new Error("The operation was aborted", { cause: signal?.reason });
|
|
10
|
+
error.code = "ABORT_ERR";
|
|
11
|
+
error.name = "AbortError";
|
|
12
|
+
return error;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function validateOptions(options) {
|
|
16
|
+
if (options === null || typeof options !== "object") throw invalidArgType("options", "of type object", options);
|
|
17
|
+
const { signal, ref } = options;
|
|
18
|
+
if (signal !== undefined && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
|
|
19
|
+
throw invalidArgType("options.signal", "an instance of AbortSignal", signal);
|
|
20
|
+
}
|
|
21
|
+
if (ref !== undefined && typeof ref !== "boolean") throw invalidArgType("options.ref", "of type boolean", ref);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* a timer's promise: settled by the timer, or rejected when the signal aborts first */
|
|
25
|
+
function settle(start, clear, signal) {
|
|
26
|
+
let onAbort;
|
|
27
|
+
const promise = new Promise((resolve, reject) => {
|
|
28
|
+
const timer = start(resolve);
|
|
29
|
+
if (signal) {
|
|
30
|
+
onAbort = () => {
|
|
31
|
+
if (!timer._destroyed) {
|
|
32
|
+
clear(timer);
|
|
33
|
+
reject(abortError(signal));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return onAbort ? promise.finally(() => signal.removeEventListener("abort", onAbort)) : promise;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function setTimeout(after, value, options = {}) {
|
|
43
|
+
try {
|
|
44
|
+
if (after !== undefined && typeof after !== "number") throw invalidArgType("delay", "of type number", after);
|
|
45
|
+
validateOptions(options);
|
|
46
|
+
} catch (err) {
|
|
47
|
+
return Promise.reject(err);
|
|
48
|
+
}
|
|
49
|
+
const { signal, ref = true } = options;
|
|
50
|
+
if (signal?.aborted) return Promise.reject(abortError(signal));
|
|
51
|
+
return settle((resolve) => {
|
|
52
|
+
const timeout = new Timeout(resolve, after, [value], false, ref);
|
|
53
|
+
arm(timeout, ref);
|
|
54
|
+
return timeout;
|
|
55
|
+
}, clearTimeout, signal);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function setImmediate(value, options = {}) {
|
|
59
|
+
try {
|
|
60
|
+
validateOptions(options);
|
|
61
|
+
} catch (err) {
|
|
62
|
+
return Promise.reject(err);
|
|
63
|
+
}
|
|
64
|
+
const { signal, ref = true } = options;
|
|
65
|
+
if (signal?.aborted) return Promise.reject(abortError(signal));
|
|
66
|
+
return settle((resolve) => {
|
|
67
|
+
const immediate = new Immediate(resolve, [value]);
|
|
68
|
+
if (!ref) immediate.unref();
|
|
69
|
+
return immediate;
|
|
70
|
+
}, clearImmediate, signal);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* yields value every `after` ms: once per tick, those the consumer was too slow for included */
|
|
74
|
+
export async function* setInterval(after, value, options = {}) {
|
|
75
|
+
validateOptions(options);
|
|
76
|
+
const { signal, ref = true } = options;
|
|
77
|
+
if (signal?.aborted) throw abortError(signal);
|
|
78
|
+
let onCancel;
|
|
79
|
+
let interval;
|
|
80
|
+
try {
|
|
81
|
+
let notYielded = 0;
|
|
82
|
+
let callback;
|
|
83
|
+
interval = new Timeout(() => {
|
|
84
|
+
notYielded++;
|
|
85
|
+
if (callback) {
|
|
86
|
+
callback();
|
|
87
|
+
callback = undefined;
|
|
88
|
+
}
|
|
89
|
+
}, after, undefined, true, ref);
|
|
90
|
+
arm(interval, ref);
|
|
91
|
+
if (signal) {
|
|
92
|
+
onCancel = () => {
|
|
93
|
+
clearInterval(interval);
|
|
94
|
+
if (callback) {
|
|
95
|
+
callback(Promise.reject(abortError(signal)));
|
|
96
|
+
callback = undefined;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
signal.addEventListener("abort", onCancel, { once: true });
|
|
100
|
+
}
|
|
101
|
+
while (!signal?.aborted) {
|
|
102
|
+
if (notYielded === 0) await new Promise((resolve) => (callback = resolve));
|
|
103
|
+
for (; notYielded > 0; notYielded--) yield value;
|
|
104
|
+
}
|
|
105
|
+
throw abortError(signal);
|
|
106
|
+
} finally {
|
|
107
|
+
clearInterval(interval);
|
|
108
|
+
if (onCancel) signal.removeEventListener("abort", onCancel);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const kScheduler = Symbol("kScheduler");
|
|
113
|
+
|
|
114
|
+
class Scheduler {
|
|
115
|
+
constructor() {
|
|
116
|
+
throw codeError(TypeError, "ERR_ILLEGAL_CONSTRUCTOR", "Illegal constructor");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* a promise settled after the I/O of this turn of the loop */
|
|
120
|
+
yield() {
|
|
121
|
+
if (!this?.[kScheduler]) throw codeError(TypeError, "ERR_INVALID_THIS", 'Value of "this" must be of type Scheduler');
|
|
122
|
+
return setImmediate();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
wait(delay, options) {
|
|
126
|
+
if (!this?.[kScheduler]) throw codeError(TypeError, "ERR_INVALID_THIS", 'Value of "this" must be of type Scheduler');
|
|
127
|
+
return setTimeout(delay, undefined, options);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export const scheduler = Object.create(Scheduler.prototype, { [kScheduler]: { value: true } });
|
|
132
|
+
|
|
133
|
+
export default { setTimeout, setImmediate, setInterval, scheduler };
|
package/node/prelude/tty.js
CHANGED
|
File without changes
|
package/node/prelude/url.js
CHANGED
|
File without changes
|
package/node/prelude/util.js
CHANGED
|
File without changes
|