diff --git a/src/_node b/src/_node index fe15e0a..f41f15c 100644 --- a/src/_node +++ b/src/_node @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for Node.js v22.3.0 (https://nodejs.org) +# Completion script for Node.js v22.7.0 (https://nodejs.org) # # ------------------------------------------------------------------------------ # Authors @@ -84,37 +84,45 @@ _arguments -C \ '--allow-worker[allow worker threads thwn any permissions are set]' \ '--build-snapshot[generate a snapshot blob when the process exits]' \ '--build-snapshot-config=[generate a snapshot blob when the process exits using a JSON configuration in the specified path]:path:_files' \ + {-c,--check}'[syntax check script without executing]' \ '--completion-bash[print source-able bash completion script]' \ '*'{-C,--conditions=}'[additional user conditions for conditional exports and imports]:condition' \ '--cpu-prof[Start the V8 CPU profiler on start up]' \ - '--cpu-prof-dir=[directory where the V8 profiles generated by --cpu-prof]: :_files -/' \ + '--cpu-prof-dir=[directory where the V8 profiles generated by --cpu-prof]:dir:_files -/' \ '--cpu-prof-interval=[sampling interval in microseconds for the V8 CPU profiler]:number' \ '--cpu-prof-name=[file name of the V8 profile generated with --cpu-prof]: :_files' \ '--diagnostic-dir=[set dir for all output files(default: current working directory)]:dir:_files -/' \ '--disable-proto=[disable Object.prototype.__proto__]:mode:(delete throw)' \ '*--disable-warning=[silence specific process warnings]:warn type' \ + '--disable-wasm-trap-handler[disable trap-handler-based WebAssembly bound checks]' \ '--disallow-code-generation-from-strings[disallow eval and friends]' \ '--dns-result-order=[set default value of verbatim in dns.lookup]: :(ipv4first verbatim)' \ '--enable-etw-stack-walking[provides heap data to ETW Windows native tracing]' \ '--enable-fips[enable FIPS crypto at startup]' \ - '--enable-network-family-autoselection[enable network address family autosetection algorithm]' \ '--enable-source-maps[source map support]' \ '*--env-file=[set environment variables from supplied file]:envfile:_files' \ - '--es-module-specifier-resolution=[extension resolution algorithm for es modules]:resolution algorithm:(explicit none)' \ + '(- 1 *)'{-e,--eval}'[evaluate script]:inline JavaScript' \ + '--experimental-async-context-frame[improve AsyncLocalStorage performance with AsyncContextFrame]' \ '--experimental-default-type=[set module system to use by default]:module system:(commonjs module)' \ - '--experimental-detect-module[try again to evaluate modules as ES modules, when they fail to evaluate]' \ '--experimental-import-meta-resolve[experimental ES Module import.meta.resolve() support]' \ '(--loader --experimental-loader)'{--loader,--experimental-loader}'=[Specify the module of a custom ECMAScript Module loader]: :_files' \ '--experimental-network-imports[experimental https support for the ES Module loader]' \ '--experimental-permission[enable the permission system]' \ - '--experimental-policy=[security policy file]: :_files' \ + '--experimental-print-required-tla[print pending top-level await]' \ + '--experimental-require-module[allow loading explicit ES Modules in require()]' \ '--experimental-sea-config=[generate a blob that can be embedded into the single executable application]: :_files' \ + '--experimental-sqlite[experimental node:sqlite module]' \ + '--experimental-strip-types[experimental type-stripping for TypeScript files]' \ '--experimental-test-coverage[enable code coverage in the test runner]' \ + '--experimental-test-module-mocks[enable module mocking in the test runner]' \ + '--experimental-test-snapshots[enable snapshot testing in the test runner]' \ '--experimental-vm-modules[experimental ES Module support in vm module]' \ '--experimental-wasm-modules[experimental ES module support for webassembly modules]' \ + '--experimental-webstorage[experimental Web Storage API]' \ '--expose-gc[expose gc extension]' \ '--force-context-aware[disable loading non-context-aware addons]' \ '--force-fips[force FIPS crypto]' \ + '--force-node-api-uncaught-exceptions-policy[enforces "uncaughtException" event on Node API asynchronous callbacks]' \ '--frozen-intrinsics[experimental frozen intrinsics support]' \ '--heap-prof[Start the V8 heap profiler on start up]' \ '--heap-prof-dir=[Directory where the V8 profiles generated by --heap-prof]: :_files -/' \ @@ -127,17 +135,20 @@ _arguments -C \ '--import=[ES module to preload]:module:_node_files' \ '--input-type=[set module type for string input]:module type :(commonjs module)' \ '--insecure-http-parser[Use an insecure HTTP parser that accepts invalid HTTP headers]' \ + '--inspect=-[activate inspector on host:port (default: 127.0.0.1:9229)]:host_port' \ '--inspect-brk=-[activate inspector on host:port and break at start of user script]:host_port' \ '(--debug-port --inspect-port)'{--debug-port,--inspect-port}'=[set host:port for inspector]:host_port' \ - '--inspect=-[activate inspector on host:port (default: 127.0.0.1:9229)]:host_port' \ '--inspect-publish-uid=[comma separated list of destinations for inspector uid]' \ '--inspect-wait=-[activate inspector on host:port and wait for debugger to be attached]::host_port' \ + {-i,--interactive}'[always enter the REPL even if stdin does not appear to be a terminal]' \ '--interpreted-frames-native-stack[help system profilers to translate JavaScript interpreted frames]' \ '--jitless[Disable runtime allocation of executable memory]' \ + '--localstorage-file=[file used to persist localStorage data]:file:_files' \ '--max-http-header-size=[set the maximum size of HTTP headers]: :number' \ '--network-family-autoselection-attempt-timeout=[sets the default value for the network family autoselection attemp timeout]:timeout' \ '--no-addons[disable loading native addons]' \ '--no-deprecation[silence deprecation warnings]' \ + '--no-experimental-detect-module[when ambigous modules fail to evaluate, try again to evaluate them as ES modules]' \ '--no-experimental-fetch[disable experimental Fetch API]' \ '--no-experimental-global-customevent[expose experimental CustomEvent on the global scope]' \ '--no-experimental-global-navigator[expose experimental Navigator API on the global scope]' \ @@ -155,6 +166,7 @@ _arguments -C \ '--pending-deprecation[emit pending deprecation warnings]' \ '--preserve-symlinks[preserve symbolic links when resolving]' \ '--preserve-symlinks-main[preserve symbolic links when resolving the main module]' \ + '(- 1 *)'{-p,--print}'[evaluate script and print result]:inline JavaScript' \ '--prof[generate V8 profiler output]' \ '--prof-process[process V8 profiler output generated using --prof]' \ '--redirect-warnings=[write warnings to file instead of stderr]: :_files' \ @@ -166,12 +178,15 @@ _arguments -C \ '--report-on-signal=[generate diagnostic report upon receiving signals]' \ '--report-signal=[causes diagnostic report to be produced on provided signal]:signals:_signals -s' \ '--report-uncaught-exception[generate diagnostic report on uncaught exceptions]' \ + '*'{-r,--require}'[module to preload (option can be repeated)]: :_node_files' \ '--run=[run a script specified in package.json]:script:_node_scripts' \ '--secure-heap=[total size of the OpenSSL secure heap]: :number' \ '--secure-heap-min=[minimum allocation size from the OpenSSL secure heap]' \ '--snapshot-blob=[path to the snapshot blob that is used to restore the application state]:snapshot:_files' \ '--test[launch test runner on startup]' \ '--test-concurrency=[specify test runner concurrency]:concurrency' \ + '--test-coverage-exclude=[exclude files from coverage report that match this glob pattern]:pattern' \ + '--test-coverage-include=[include files from coverage report that match this glob pattern]:pattern' \ '--test-force-exit[force test runner to exit upon completion]' \ '--test-name-pattern=[run tests whose name matches this regular expression]:pattern' \ '--test-only[run tests with "only" option set]' \ @@ -213,12 +228,7 @@ _arguments -C \ "--watch-path=[path to watch]: :_node_files" \ '--watch-preserve-output[preserve outputs on watch mode restart]' \ '--zero-fill-buffers[automatically zero-fill all newly allocated Buffer and SlowBuffer instances]' \ - {-c,--check}'[syntax check script without executing]' \ - '(- 1 *)'{-e,--eval}'[evaluate script]:inline JavaScript' \ '(- 1 *)'{-h,--help}'[print node command line options]' \ - {-i,--interactive}'[always enter the REPL even if stdin does not appear to be a terminal]' \ - '(- 1 *)'{-p,--print}'[evaluate script and print result]:inline JavaScript' \ - '*'{-r,--require}'[module to preload (option can be repeated)]: :_node_files' \ '(- 1 *)'{-v,--version}'[print Node.js version]' \ '*: :_node_args' && ret=0