@blazetrails/ruby-compat 0.0.0-stage → 0.1.0-alpha0.2
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/LICENSE +21 -0
- package/NOTICE +6 -0
- package/README.md +440 -2
- package/dist/argument-error.d.ts +15 -0
- package/dist/argument-error.js +15 -0
- package/dist/argument-error.js.map +1 -0
- package/dist/array.d.ts +415 -0
- package/dist/array.js +1330 -0
- package/dist/array.js.map +1 -0
- package/dist/async-context-adapter.d.ts +19 -0
- package/dist/async-context-adapter.js +139 -0
- package/dist/async-context-adapter.js.map +1 -0
- package/dist/backtrace-location.d.ts +78 -0
- package/dist/backtrace-location.js +158 -0
- package/dist/backtrace-location.js.map +1 -0
- package/dist/base64.d.ts +73 -0
- package/dist/base64.js +164 -0
- package/dist/base64.js.map +1 -0
- package/dist/benchmark.d.ts +19 -0
- package/dist/benchmark.js +16 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/big-decimal.d.ts +111 -0
- package/dist/big-decimal.js +584 -0
- package/dist/big-decimal.js.map +1 -0
- package/dist/bundler.d.ts +44 -0
- package/dist/bundler.js +97 -0
- package/dist/bundler.js.map +1 -0
- package/dist/cgi.d.ts +89 -0
- package/dist/cgi.js +168 -0
- package/dist/cgi.js.map +1 -0
- package/dist/child-process-adapter.d.ts +110 -0
- package/dist/child-process-adapter.js +272 -0
- package/dist/child-process-adapter.js.map +1 -0
- package/dist/class-module.d.ts +10 -0
- package/dist/class-module.js +10 -0
- package/dist/class-module.js.map +1 -0
- package/dist/classpath.d.ts +93 -0
- package/dist/classpath.js +210 -0
- package/dist/classpath.js.map +1 -0
- package/dist/closed-queue-error.d.ts +10 -0
- package/dist/closed-queue-error.js +10 -0
- package/dist/closed-queue-error.js.map +1 -0
- package/dist/comparable.d.ts +127 -0
- package/dist/comparable.js +376 -0
- package/dist/comparable.js.map +1 -0
- package/dist/complex.d.ts +49 -0
- package/dist/complex.js +164 -0
- package/dist/complex.js.map +1 -0
- package/dist/concurrent/atomic-boolean.d.ts +24 -0
- package/dist/concurrent/atomic-boolean.js +43 -0
- package/dist/concurrent/atomic-boolean.js.map +1 -0
- package/dist/concurrent/atomic-fixnum.d.ts +21 -0
- package/dist/concurrent/atomic-fixnum.js +35 -0
- package/dist/concurrent/atomic-fixnum.js.map +1 -0
- package/dist/concurrent/count-down-latch.d.ts +20 -0
- package/dist/concurrent/count-down-latch.js +50 -0
- package/dist/concurrent/count-down-latch.js.map +1 -0
- package/dist/concurrent/cyclic-barrier.d.ts +18 -0
- package/dist/concurrent/cyclic-barrier.js +50 -0
- package/dist/concurrent/cyclic-barrier.js.map +1 -0
- package/dist/concurrent/event.d.ts +19 -0
- package/dist/concurrent/event.js +31 -0
- package/dist/concurrent/event.js.map +1 -0
- package/dist/concurrent/map.d.ts +149 -0
- package/dist/concurrent/map.js +202 -0
- package/dist/concurrent/map.js.map +1 -0
- package/dist/concurrent/read-write-lock.d.ts +25 -0
- package/dist/concurrent/read-write-lock.js +70 -0
- package/dist/concurrent/read-write-lock.js.map +1 -0
- package/dist/concurrent/semaphore.d.ts +24 -0
- package/dist/concurrent/semaphore.js +74 -0
- package/dist/concurrent/semaphore.js.map +1 -0
- package/dist/concurrent/timer-task.d.ts +52 -0
- package/dist/concurrent/timer-task.js +112 -0
- package/dist/concurrent/timer-task.js.map +1 -0
- package/dist/constants.generated.d.ts +2 -0
- package/dist/constants.generated.js +64 -0
- package/dist/constants.generated.js.map +1 -0
- package/dist/converter-not-found-error.d.ts +14 -0
- package/dist/converter-not-found-error.js +14 -0
- package/dist/converter-not-found-error.js.map +1 -0
- package/dist/crypto-adapter.d.ts +64 -0
- package/dist/crypto-adapter.js +365 -0
- package/dist/crypto-adapter.js.map +1 -0
- package/dist/delegate.d.ts +156 -0
- package/dist/delegate.js +306 -0
- package/dist/delegate.js.map +1 -0
- package/dist/digest.d.ts +99 -0
- package/dist/digest.js +131 -0
- package/dist/digest.js.map +1 -0
- package/dist/dir.d.ts +225 -0
- package/dist/dir.js +608 -0
- package/dist/dir.js.map +1 -0
- package/dist/encoding-error.d.ts +14 -0
- package/dist/encoding-error.js +17 -0
- package/dist/encoding-error.js.map +1 -0
- package/dist/encoding.d.ts +121 -0
- package/dist/encoding.js +306 -0
- package/dist/encoding.js.map +1 -0
- package/dist/ensure.d.ts +15 -0
- package/dist/ensure.js +35 -0
- package/dist/ensure.js.map +1 -0
- package/dist/enumerable.d.ts +375 -0
- package/dist/enumerable.js +1102 -0
- package/dist/enumerable.js.map +1 -0
- package/dist/enumerator.d.ts +324 -0
- package/dist/enumerator.js +625 -0
- package/dist/enumerator.js.map +1 -0
- package/dist/eof-error.d.ts +14 -0
- package/dist/eof-error.js +14 -0
- package/dist/eof-error.js.map +1 -0
- package/dist/errno.d.ts +447 -0
- package/dist/errno.js +616 -0
- package/dist/errno.js.map +1 -0
- package/dist/exc-detailed-message.d.ts +15 -0
- package/dist/exc-detailed-message.js +106 -0
- package/dist/exc-detailed-message.js.map +1 -0
- package/dist/exc-to-s.d.ts +10 -0
- package/dist/exc-to-s.js +21 -0
- package/dist/exc-to-s.js.map +1 -0
- package/dist/exception.d.ts +44 -0
- package/dist/exception.js +115 -0
- package/dist/exception.js.map +1 -0
- package/dist/fiber-error.d.ts +12 -0
- package/dist/fiber-error.js +12 -0
- package/dist/fiber-error.js.map +1 -0
- package/dist/fiber.d.ts +51 -0
- package/dist/fiber.js +178 -0
- package/dist/fiber.js.map +1 -0
- package/dist/file-utils.d.ts +480 -0
- package/dist/file-utils.js +1824 -0
- package/dist/file-utils.js.map +1 -0
- package/dist/file.d.ts +643 -0
- package/dist/file.js +1334 -0
- package/dist/file.js.map +1 -0
- package/dist/float-domain-error.d.ts +17 -0
- package/dist/float-domain-error.js +17 -0
- package/dist/float-domain-error.js.map +1 -0
- package/dist/fork-children.d.ts +23 -0
- package/dist/fork-children.js +32 -0
- package/dist/fork-children.js.map +1 -0
- package/dist/frozen-error.d.ts +33 -0
- package/dist/frozen-error.js +41 -0
- package/dist/frozen-error.js.map +1 -0
- package/dist/fs-adapter.d.ts +158 -0
- package/dist/fs-adapter.js +253 -0
- package/dist/fs-adapter.js.map +1 -0
- package/dist/gem/deprecate.d.ts +10 -0
- package/dist/gem/deprecate.js +8 -0
- package/dist/gem/deprecate.js.map +1 -0
- package/dist/gem/requirement.d.ts +55 -0
- package/dist/gem/requirement.js +91 -0
- package/dist/gem/requirement.js.map +1 -0
- package/dist/gem/version.d.ts +50 -0
- package/dist/gem/version.js +148 -0
- package/dist/gem/version.js.map +1 -0
- package/dist/gem.d.ts +59 -0
- package/dist/gem.js +82 -0
- package/dist/gem.js.map +1 -0
- package/dist/hash.d.ts +967 -0
- package/dist/hash.js +1572 -0
- package/dist/hash.js.map +1 -0
- package/dist/http-adapter.d.ts +124 -0
- package/dist/http-adapter.js +220 -0
- package/dist/http-adapter.js.map +1 -0
- package/dist/immediate-executor.d.ts +20 -0
- package/dist/immediate-executor.js +39 -0
- package/dist/immediate-executor.js.map +1 -0
- package/dist/include.d.ts +778 -0
- package/dist/include.js +2208 -0
- package/dist/include.js.map +1 -0
- package/dist/index-error.d.ts +13 -0
- package/dist/index-error.js +13 -0
- package/dist/index-error.js.map +1 -0
- package/dist/index.d.ts +174 -0
- package/dist/index.js +166 -0
- package/dist/index.js.map +1 -0
- package/dist/invalid-byte-sequence-error.d.ts +62 -0
- package/dist/invalid-byte-sequence-error.js +75 -0
- package/dist/invalid-byte-sequence-error.js.map +1 -0
- package/dist/io-error.d.ts +14 -0
- package/dist/io-error.js +17 -0
- package/dist/io-error.js.map +1 -0
- package/dist/io.d.ts +867 -0
- package/dist/io.js +1960 -0
- package/dist/io.js.map +1 -0
- package/dist/ipaddr.d.ts +79 -0
- package/dist/ipaddr.js +405 -0
- package/dist/ipaddr.js.map +1 -0
- package/dist/json.d.ts +70 -0
- package/dist/json.js +181 -0
- package/dist/json.js.map +1 -0
- package/dist/kernel-catch.d.ts +59 -0
- package/dist/kernel-catch.js +184 -0
- package/dist/kernel-catch.js.map +1 -0
- package/dist/kernel-float.d.ts +19 -0
- package/dist/kernel-float.js +54 -0
- package/dist/kernel-float.js.map +1 -0
- package/dist/kernel-fork.d.ts +30 -0
- package/dist/kernel-fork.js +72 -0
- package/dist/kernel-fork.js.map +1 -0
- package/dist/kernel-format.d.ts +27 -0
- package/dist/kernel-format.js +901 -0
- package/dist/kernel-format.js.map +1 -0
- package/dist/kernel-hash.d.ts +7 -0
- package/dist/kernel-hash.js +33 -0
- package/dist/kernel-hash.js.map +1 -0
- package/dist/kernel-integer.d.ts +49 -0
- package/dist/kernel-integer.js +170 -0
- package/dist/kernel-integer.js.map +1 -0
- package/dist/kernel-rand.d.ts +16 -0
- package/dist/kernel-rand.js +237 -0
- package/dist/kernel-rand.js.map +1 -0
- package/dist/kernel-system.d.ts +39 -0
- package/dist/kernel-system.js +103 -0
- package/dist/kernel-system.js.map +1 -0
- package/dist/kernel-warn.d.ts +35 -0
- package/dist/kernel-warn.js +73 -0
- package/dist/kernel-warn.js.map +1 -0
- package/dist/key-error.d.ts +44 -0
- package/dist/key-error.js +59 -0
- package/dist/key-error.js.map +1 -0
- package/dist/keyword-splat.d.ts +41 -0
- package/dist/keyword-splat.js +65 -0
- package/dist/keyword-splat.js.map +1 -0
- package/dist/load-error.d.ts +19 -0
- package/dist/load-error.js +19 -0
- package/dist/load-error.js.map +1 -0
- package/dist/load.d.ts +128 -0
- package/dist/load.js +278 -0
- package/dist/load.js.map +1 -0
- package/dist/loaded-features.d.ts +13 -0
- package/dist/loaded-features.js +15 -0
- package/dist/loaded-features.js.map +1 -0
- package/dist/local-jump-error.d.ts +12 -0
- package/dist/local-jump-error.js +12 -0
- package/dist/local-jump-error.js.map +1 -0
- package/dist/logger/formatter.d.ts +21 -0
- package/dist/logger/formatter.js +43 -0
- package/dist/logger/formatter.js.map +1 -0
- package/dist/logger/log-device.d.ts +52 -0
- package/dist/logger/log-device.js +104 -0
- package/dist/logger/log-device.js.map +1 -0
- package/dist/logger/severity.d.ts +23 -0
- package/dist/logger/severity.js +42 -0
- package/dist/logger/severity.js.map +1 -0
- package/dist/logger.d.ts +127 -0
- package/dist/logger.js +218 -0
- package/dist/logger.js.map +1 -0
- package/dist/marshal.d.ts +83 -0
- package/dist/marshal.js +1487 -0
- package/dist/marshal.js.map +1 -0
- package/dist/match-data.d.ts +161 -0
- package/dist/match-data.js +284 -0
- package/dist/match-data.js.map +1 -0
- package/dist/method-cache.d.ts +81 -0
- package/dist/method-cache.js +109 -0
- package/dist/method-cache.js.map +1 -0
- package/dist/method-missing-proxy.d.ts +53 -0
- package/dist/method-missing-proxy.js +154 -0
- package/dist/method-missing-proxy.js.map +1 -0
- package/dist/method.d.ts +132 -0
- package/dist/method.js +320 -0
- package/dist/method.js.map +1 -0
- package/dist/monitor.d.ts +114 -0
- package/dist/monitor.js +270 -0
- package/dist/monitor.js.map +1 -0
- package/dist/mutex.d.ts +51 -0
- package/dist/mutex.js +150 -0
- package/dist/mutex.js.map +1 -0
- package/dist/name-error.d.ts +45 -0
- package/dist/name-error.js +54 -0
- package/dist/name-error.js.map +1 -0
- package/dist/net/http/exceptions.d.ts +31 -0
- package/dist/net/http/exceptions.js +46 -0
- package/dist/net/http/exceptions.js.map +1 -0
- package/dist/net/http/request.d.ts +137 -0
- package/dist/net/http/request.js +559 -0
- package/dist/net/http/request.js.map +1 -0
- package/dist/net/http/requests.d.ts +197 -0
- package/dist/net/http/requests.js +197 -0
- package/dist/net/http/requests.js.map +1 -0
- package/dist/net/http/response.d.ts +141 -0
- package/dist/net/http/response.js +416 -0
- package/dist/net/http/response.js.map +1 -0
- package/dist/net/http/responses.d.ts +345 -0
- package/dist/net/http/responses.js +486 -0
- package/dist/net/http/responses.js.map +1 -0
- package/dist/net/http.d.ts +278 -0
- package/dist/net/http.js +760 -0
- package/dist/net/http.js.map +1 -0
- package/dist/net/protocol.d.ts +227 -0
- package/dist/net/protocol.js +392 -0
- package/dist/net/protocol.js.map +1 -0
- package/dist/nil-class.d.ts +10 -0
- package/dist/nil-class.js +27 -0
- package/dist/nil-class.js.map +1 -0
- package/dist/no-method-error.d.ts +38 -0
- package/dist/no-method-error.js +45 -0
- package/dist/no-method-error.js.map +1 -0
- package/dist/not-implemented-error.d.ts +13 -0
- package/dist/not-implemented-error.js +13 -0
- package/dist/not-implemented-error.js.map +1 -0
- package/dist/numeric-class.d.ts +29 -0
- package/dist/numeric-class.js +41 -0
- package/dist/numeric-class.js.map +1 -0
- package/dist/numeric.d.ts +226 -0
- package/dist/numeric.js +848 -0
- package/dist/numeric.js.map +1 -0
- package/dist/object-space.d.ts +34 -0
- package/dist/object-space.js +152 -0
- package/dist/object-space.js.map +1 -0
- package/dist/object.d.ts +833 -0
- package/dist/object.js +2131 -0
- package/dist/object.js.map +1 -0
- package/dist/open-uri.d.ts +180 -0
- package/dist/open-uri.js +402 -0
- package/dist/open-uri.js.map +1 -0
- package/dist/open3.d.ts +69 -0
- package/dist/open3.js +134 -0
- package/dist/open3.js.map +1 -0
- package/dist/openssl.d.ts +479 -0
- package/dist/openssl.js +1052 -0
- package/dist/openssl.js.map +1 -0
- package/dist/optparse.d.ts +130 -0
- package/dist/optparse.js +457 -0
- package/dist/optparse.js.map +1 -0
- package/dist/os-adapter.d.ts +20 -0
- package/dist/os-adapter.js +95 -0
- package/dist/os-adapter.js.map +1 -0
- package/dist/pathname.d.ts +73 -0
- package/dist/pathname.js +412 -0
- package/dist/pathname.js.map +1 -0
- package/dist/pp.d.ts +60 -0
- package/dist/pp.js +195 -0
- package/dist/pp.js.map +1 -0
- package/dist/pretty-print.d.ts +89 -0
- package/dist/pretty-print.js +232 -0
- package/dist/pretty-print.js.map +1 -0
- package/dist/process-adapter.d.ts +229 -0
- package/dist/process-adapter.js +889 -0
- package/dist/process-adapter.js.map +1 -0
- package/dist/process.d.ts +202 -0
- package/dist/process.js +433 -0
- package/dist/process.js.map +1 -0
- package/dist/psych/class-loader.d.ts +92 -0
- package/dist/psych/class-loader.js +139 -0
- package/dist/psych/class-loader.js.map +1 -0
- package/dist/psych/coder.d.ts +144 -0
- package/dist/psych/coder.js +176 -0
- package/dist/psych/coder.js.map +1 -0
- package/dist/psych/core-ext.d.ts +8 -0
- package/dist/psych/core-ext.js +10 -0
- package/dist/psych/core-ext.js.map +1 -0
- package/dist/psych/emitter.d.ts +116 -0
- package/dist/psych/emitter.js +1130 -0
- package/dist/psych/emitter.js.map +1 -0
- package/dist/psych/exception.d.ts +43 -0
- package/dist/psych/exception.js +54 -0
- package/dist/psych/exception.js.map +1 -0
- package/dist/psych/handler.d.ts +59 -0
- package/dist/psych/handler.js +95 -0
- package/dist/psych/handler.js.map +1 -0
- package/dist/psych/handlers/document-stream.d.ts +17 -0
- package/dist/psych/handlers/document-stream.js +26 -0
- package/dist/psych/handlers/document-stream.js.map +1 -0
- package/dist/psych/nodes/alias.d.ts +15 -0
- package/dist/psych/nodes/alias.js +22 -0
- package/dist/psych/nodes/alias.js.map +1 -0
- package/dist/psych/nodes/document.d.ts +23 -0
- package/dist/psych/nodes/document.js +35 -0
- package/dist/psych/nodes/document.js.map +1 -0
- package/dist/psych/nodes/mapping.d.ts +25 -0
- package/dist/psych/nodes/mapping.js +35 -0
- package/dist/psych/nodes/mapping.js.map +1 -0
- package/dist/psych/nodes/node.d.ts +59 -0
- package/dist/psych/nodes/node.js +79 -0
- package/dist/psych/nodes/node.js.map +1 -0
- package/dist/psych/nodes/scalar.d.ts +35 -0
- package/dist/psych/nodes/scalar.js +47 -0
- package/dist/psych/nodes/scalar.js.map +1 -0
- package/dist/psych/nodes/sequence.d.ts +25 -0
- package/dist/psych/nodes/sequence.js +35 -0
- package/dist/psych/nodes/sequence.js.map +1 -0
- package/dist/psych/nodes/stream.d.ts +23 -0
- package/dist/psych/nodes/stream.js +31 -0
- package/dist/psych/nodes/stream.js.map +1 -0
- package/dist/psych/omap.d.ts +9 -0
- package/dist/psych/omap.js +9 -0
- package/dist/psych/omap.js.map +1 -0
- package/dist/psych/parser.d.ts +41 -0
- package/dist/psych/parser.js +139 -0
- package/dist/psych/parser.js.map +1 -0
- package/dist/psych/scalar-scanner.d.ts +31 -0
- package/dist/psych/scalar-scanner.js +169 -0
- package/dist/psych/scalar-scanner.js.map +1 -0
- package/dist/psych/syntax-error.d.ts +23 -0
- package/dist/psych/syntax-error.js +35 -0
- package/dist/psych/syntax-error.js.map +1 -0
- package/dist/psych/tree-builder.d.ts +51 -0
- package/dist/psych/tree-builder.js +118 -0
- package/dist/psych/tree-builder.js.map +1 -0
- package/dist/psych/visitors/depth-first.d.ts +27 -0
- package/dist/psych/visitors/depth-first.js +37 -0
- package/dist/psych/visitors/depth-first.js.map +1 -0
- package/dist/psych/visitors/emitter.d.ts +32 -0
- package/dist/psych/visitors/emitter.js +63 -0
- package/dist/psych/visitors/emitter.js.map +1 -0
- package/dist/psych/visitors/to-ruby.d.ts +110 -0
- package/dist/psych/visitors/to-ruby.js +396 -0
- package/dist/psych/visitors/to-ruby.js.map +1 -0
- package/dist/psych/visitors/visitor.d.ts +11 -0
- package/dist/psych/visitors/visitor.js +17 -0
- package/dist/psych/visitors/visitor.js.map +1 -0
- package/dist/psych/visitors/yaml-tree.d.ts +182 -0
- package/dist/psych/visitors/yaml-tree.js +593 -0
- package/dist/psych/visitors/yaml-tree.js.map +1 -0
- package/dist/psych-adapter.d.ts +65 -0
- package/dist/psych-adapter.js +121 -0
- package/dist/psych-adapter.js.map +1 -0
- package/dist/psych-yaml.d.ts +2 -0
- package/dist/psych-yaml.js +5 -0
- package/dist/psych-yaml.js.map +1 -0
- package/dist/psych.d.ts +257 -0
- package/dist/psych.js +332 -0
- package/dist/psych.js.map +1 -0
- package/dist/queue.d.ts +137 -0
- package/dist/queue.js +236 -0
- package/dist/queue.js.map +1 -0
- package/dist/racc/parser.d.ts +70 -0
- package/dist/racc/parser.js +206 -0
- package/dist/racc/parser.js.map +1 -0
- package/dist/range-error.d.ts +15 -0
- package/dist/range-error.js +15 -0
- package/dist/range-error.js.map +1 -0
- package/dist/range.d.ts +166 -0
- package/dist/range.js +421 -0
- package/dist/range.js.map +1 -0
- package/dist/rational.d.ts +168 -0
- package/dist/rational.js +587 -0
- package/dist/rational.js.map +1 -0
- package/dist/rb-config.d.ts +33 -0
- package/dist/rb-config.js +53 -0
- package/dist/rb-config.js.map +1 -0
- package/dist/rb-equal.d.ts +66 -0
- package/dist/rb-equal.js +262 -0
- package/dist/rb-equal.js.map +1 -0
- package/dist/rb-hash.d.ts +26 -0
- package/dist/rb-hash.js +108 -0
- package/dist/rb-hash.js.map +1 -0
- package/dist/regexp.d.ts +82 -0
- package/dist/regexp.js +191 -0
- package/dist/regexp.js.map +1 -0
- package/dist/repl-adapter.d.ts +270 -0
- package/dist/repl-adapter.js +562 -0
- package/dist/repl-adapter.js.map +1 -0
- package/dist/resolv.d.ts +30 -0
- package/dist/resolv.js +48 -0
- package/dist/resolv.js.map +1 -0
- package/dist/ruby-empty.d.ts +28 -0
- package/dist/ruby-empty.js +40 -0
- package/dist/ruby-empty.js.map +1 -0
- package/dist/ruby-platform.d.ts +39 -0
- package/dist/ruby-platform.js +49 -0
- package/dist/ruby-platform.js.map +1 -0
- package/dist/runtime-error.d.ts +15 -0
- package/dist/runtime-error.js +15 -0
- package/dist/runtime-error.js.map +1 -0
- package/dist/scheduled-task.d.ts +73 -0
- package/dist/scheduled-task.js +150 -0
- package/dist/scheduled-task.js.map +1 -0
- package/dist/secure-random.d.ts +50 -0
- package/dist/secure-random.js +141 -0
- package/dist/secure-random.js.map +1 -0
- package/dist/set.d.ts +158 -0
- package/dist/set.js +352 -0
- package/dist/set.js.map +1 -0
- package/dist/shellwords.d.ts +27 -0
- package/dist/shellwords.js +53 -0
- package/dist/shellwords.js.map +1 -0
- package/dist/signal-exception.d.ts +43 -0
- package/dist/signal-exception.js +88 -0
- package/dist/signal-exception.js.map +1 -0
- package/dist/socket.d.ts +230 -0
- package/dist/socket.js +484 -0
- package/dist/socket.js.map +1 -0
- package/dist/standard-error.d.ts +27 -0
- package/dist/standard-error.js +49 -0
- package/dist/standard-error.js.map +1 -0
- package/dist/stop-iteration.d.ts +10 -0
- package/dist/stop-iteration.js +10 -0
- package/dist/stop-iteration.js.map +1 -0
- package/dist/string/b.d.ts +19 -0
- package/dist/string/b.js +28 -0
- package/dist/string/b.js.map +1 -0
- package/dist/string/byte-methods.d.ts +57 -0
- package/dist/string/byte-methods.js +266 -0
- package/dist/string/byte-methods.js.map +1 -0
- package/dist/string/bytes.d.ts +35 -0
- package/dist/string/bytes.js +123 -0
- package/dist/string/bytes.js.map +1 -0
- package/dist/string/case-mapping.d.ts +57 -0
- package/dist/string/case-mapping.js +192 -0
- package/dist/string/case-mapping.js.map +1 -0
- package/dist/string/chomp.d.ts +15 -0
- package/dist/string/chomp.js +32 -0
- package/dist/string/chomp.js.map +1 -0
- package/dist/string/convert.d.ts +55 -0
- package/dist/string/convert.js +316 -0
- package/dist/string/convert.js.map +1 -0
- package/dist/string/delete.d.ts +14 -0
- package/dist/string/delete.js +17 -0
- package/dist/string/delete.js.map +1 -0
- package/dist/string/each.d.ts +108 -0
- package/dist/string/each.js +305 -0
- package/dist/string/each.js.map +1 -0
- package/dist/string/encode.d.ts +37 -0
- package/dist/string/encode.js +268 -0
- package/dist/string/encode.js.map +1 -0
- package/dist/string/force-encoding.d.ts +72 -0
- package/dist/string/force-encoding.js +147 -0
- package/dist/string/force-encoding.js.map +1 -0
- package/dist/string/inspect.d.ts +17 -0
- package/dist/string/inspect.js +81 -0
- package/dist/string/inspect.js.map +1 -0
- package/dist/string/method-table.d.ts +174 -0
- package/dist/string/method-table.js +805 -0
- package/dist/string/method-table.js.map +1 -0
- package/dist/string/scrub.d.ts +12 -0
- package/dist/string/scrub.js +33 -0
- package/dist/string/scrub.js.map +1 -0
- package/dist/string/slice.d.ts +26 -0
- package/dist/string/slice.js +73 -0
- package/dist/string/slice.js.map +1 -0
- package/dist/string/split.d.ts +11 -0
- package/dist/string/split.js +44 -0
- package/dist/string/split.js.map +1 -0
- package/dist/string/sub.d.ts +114 -0
- package/dist/string/sub.js +371 -0
- package/dist/string/sub.js.map +1 -0
- package/dist/string/succ.d.ts +14 -0
- package/dist/string/succ.js +118 -0
- package/dist/string/succ.js.map +1 -0
- package/dist/string/support.d.ts +142 -0
- package/dist/string/support.js +296 -0
- package/dist/string/support.js.map +1 -0
- package/dist/string/tr.d.ts +46 -0
- package/dist/string/tr.js +156 -0
- package/dist/string/tr.js.map +1 -0
- package/dist/string-io.d.ts +166 -0
- package/dist/string-io.js +248 -0
- package/dist/string-io.js.map +1 -0
- package/dist/string-scanner.d.ts +133 -0
- package/dist/string-scanner.js +248 -0
- package/dist/string-scanner.js.map +1 -0
- package/dist/struct.d.ts +54 -0
- package/dist/struct.js +222 -0
- package/dist/struct.js.map +1 -0
- package/dist/symbol.d.ts +48 -0
- package/dist/symbol.js +107 -0
- package/dist/symbol.js.map +1 -0
- package/dist/tempfile.d.ts +173 -0
- package/dist/tempfile.js +295 -0
- package/dist/tempfile.js.map +1 -0
- package/dist/temporal-tag.d.ts +23 -0
- package/dist/temporal-tag.js +29 -0
- package/dist/temporal-tag.js.map +1 -0
- package/dist/thread-error.d.ts +13 -0
- package/dist/thread-error.js +13 -0
- package/dist/thread-error.js.map +1 -0
- package/dist/thread-pool-executor.d.ts +121 -0
- package/dist/thread-pool-executor.js +254 -0
- package/dist/thread-pool-executor.js.map +1 -0
- package/dist/thread.d.ts +211 -0
- package/dist/thread.js +495 -0
- package/dist/thread.js.map +1 -0
- package/dist/timeout.d.ts +29 -0
- package/dist/timeout.js +41 -0
- package/dist/timeout.js.map +1 -0
- package/dist/tse.d.ts +40 -0
- package/dist/tse.js +66 -0
- package/dist/tse.js.map +1 -0
- package/dist/type-error.d.ts +14 -0
- package/dist/type-error.js +14 -0
- package/dist/type-error.js.map +1 -0
- package/dist/undefined-conversion-error.d.ts +10 -0
- package/dist/undefined-conversion-error.js +10 -0
- package/dist/undefined-conversion-error.js.map +1 -0
- package/dist/uri/common.d.ts +209 -0
- package/dist/uri/common.js +369 -0
- package/dist/uri/common.js.map +1 -0
- package/dist/uri/generic.d.ts +280 -0
- package/dist/uri/generic.js +806 -0
- package/dist/uri/generic.js.map +1 -0
- package/dist/uri/http.d.ts +23 -0
- package/dist/uri/http.js +30 -0
- package/dist/uri/http.js.map +1 -0
- package/dist/uri/https.d.ts +13 -0
- package/dist/uri/https.js +15 -0
- package/dist/uri/https.js.map +1 -0
- package/dist/uri/rfc2396-parser.d.ts +70 -0
- package/dist/uri/rfc2396-parser.js +264 -0
- package/dist/uri/rfc2396-parser.js.map +1 -0
- package/dist/uri/rfc3986-parser.d.ts +46 -0
- package/dist/uri/rfc3986-parser.js +171 -0
- package/dist/uri/rfc3986-parser.js.map +1 -0
- package/dist/uri.d.ts +13 -0
- package/dist/uri.js +13 -0
- package/dist/uri.js.map +1 -0
- package/dist/variable.d.ts +183 -0
- package/dist/variable.js +463 -0
- package/dist/variable.js.map +1 -0
- package/dist/verbose.d.ts +39 -0
- package/dist/verbose.js +49 -0
- package/dist/verbose.js.map +1 -0
- package/dist/yaml.d.ts +9 -0
- package/dist/yaml.js +9 -0
- package/dist/yaml.js.map +1 -0
- package/dist/zlib-adapter.d.ts +119 -0
- package/dist/zlib-adapter.js +230 -0
- package/dist/zlib-adapter.js.map +1 -0
- package/dist/zlib.d.ts +299 -0
- package/dist/zlib.js +679 -0
- package/dist/zlib.js.map +1 -0
- package/package.json +172 -3
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { classModule } from "./class-module.js";
|
|
2
|
+
import { type PathLike } from "./file.js";
|
|
3
|
+
import { type FsFileHandle, type FsStatResult } from "./fs-adapter.js";
|
|
4
|
+
/**
|
|
5
|
+
* The `output.puts msg` receiver `fu_output_message`
|
|
6
|
+
* (`vendor/ruby/v3.3.11/lib/fileutils.rb:2496-2503`) writes to — `$stdout` by default,
|
|
7
|
+
* or whatever `@fileutils_output` was set to.
|
|
8
|
+
*
|
|
9
|
+
* @noRailsEquivalent PERMANENT — Ruby core `IO`, which Rails calls without
|
|
10
|
+
* defining.
|
|
11
|
+
*/
|
|
12
|
+
export interface FileUtilsOutput {
|
|
13
|
+
/** `IO#puts` (`vendor/ruby/v3.3.11/io.c:8580`).
|
|
14
|
+
* @noRailsEquivalent PERMANENT — Ruby core `IO`, which Rails calls without
|
|
15
|
+
* defining.
|
|
16
|
+
*/
|
|
17
|
+
puts(msg: string): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Ruby's `FileUtils` (stdlib, `vendor/ruby/v3.3.11/lib/fileutils.rb:1`), the file
|
|
21
|
+
* operations Rails sends from ported bodies — `mkdir_p` when a schema dump or a
|
|
22
|
+
* cache root has to exist, `rm`/`rm_f`/`rm_r` when one is torn down, `cp`, `mv`
|
|
23
|
+
* and `touch`. Only the members Ruby code in this repo sends are ported.
|
|
24
|
+
*
|
|
25
|
+
* Every member runs against the filesystem backend `fs-adapter.ts` resolves, so
|
|
26
|
+
* `FileUtils` is synchronous exactly as Ruby's is, and a caller reads the same
|
|
27
|
+
* `FileUtils.mkdir_p(dir)` a Rails dev reads.
|
|
28
|
+
*
|
|
29
|
+
* Each method is `module_function` (`vendor/ruby/v3.3.11/lib/fileutils.rb:185-188`),
|
|
30
|
+
* so it is both a static and a prototype member, and `include FileUtils` answers `cd`.
|
|
31
|
+
*
|
|
32
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib, not Rails: `FileUtils` ships with
|
|
33
|
+
* the interpreter, so no Rails file defines it and no port can remove the need
|
|
34
|
+
* for it while Rails bodies send `FileUtils.mkdir_p` and friends.
|
|
35
|
+
*/
|
|
36
|
+
export declare class FileUtils {
|
|
37
|
+
/** @noRailsEquivalent PERMANENT */
|
|
38
|
+
static readonly [classModule] = true;
|
|
39
|
+
/** `@fileutils_output` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2497`), the sink
|
|
40
|
+
* `fu_output_message` writes to when a host has set one.
|
|
41
|
+
* @noRailsEquivalent PERMANENT — the JS spelling of a Ruby module instance
|
|
42
|
+
* variable, which has no member of its own to mirror.
|
|
43
|
+
*/
|
|
44
|
+
static fileutilsOutput?: FileUtilsOutput;
|
|
45
|
+
/** `@fileutils_label` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2500`), prefixed to
|
|
46
|
+
* every message when a host has set one.
|
|
47
|
+
* @noRailsEquivalent PERMANENT — the JS spelling of a Ruby module instance
|
|
48
|
+
* variable, which has no member of its own to mirror.
|
|
49
|
+
*/
|
|
50
|
+
static fileutilsLabel?: string;
|
|
51
|
+
/** `fu_split_path` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2506-2515`).
|
|
52
|
+
* @noRailsEquivalent PERMANENT
|
|
53
|
+
*/
|
|
54
|
+
static fuSplitPath(path: string): string[];
|
|
55
|
+
/** `fu_relative_components_from` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2518-2524`).
|
|
56
|
+
* @noRailsEquivalent PERMANENT
|
|
57
|
+
*/
|
|
58
|
+
static fuRelativeComponentsFrom(target: string[], base: string[]): string[];
|
|
59
|
+
/**
|
|
60
|
+
* `fu_clean_components` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2527-2542`). MRI's
|
|
61
|
+
* `path.chomp!(regexp, "")` at `:2535` is an `ArgumentError`, since `chomp!`
|
|
62
|
+
* takes one argument; this is the `sub!` that line means.
|
|
63
|
+
*
|
|
64
|
+
* @missingRailsCall chomp! — PERMANENT
|
|
65
|
+
* @noRailsEquivalent PERMANENT
|
|
66
|
+
*/
|
|
67
|
+
static fuCleanComponentsAsync(...comp: string[]): Promise<string[]>;
|
|
68
|
+
/** `fu_starting_path?` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2550-2552`).
|
|
69
|
+
* @noRailsEquivalent PERMANENT
|
|
70
|
+
*/
|
|
71
|
+
static isFuStartingPath(path: string | undefined): boolean;
|
|
72
|
+
/** `user_mask` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1642-1657`).
|
|
73
|
+
* @noRailsEquivalent PERMANENT
|
|
74
|
+
*/
|
|
75
|
+
static userMask(target: string): number;
|
|
76
|
+
/** `apply_mask` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1660-1669`).
|
|
77
|
+
* @noRailsEquivalent PERMANENT
|
|
78
|
+
*/
|
|
79
|
+
static applyMask(mode: number, userMask: number, op: string, modeMask: number): number;
|
|
80
|
+
/** `symbolic_modes_to_i` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1672-1718`).
|
|
81
|
+
* @noRailsEquivalent PERMANENT
|
|
82
|
+
*/
|
|
83
|
+
static symbolicModesToIAsync(modeSym: string, path: string | FsStatResult): Promise<number>;
|
|
84
|
+
/** `fu_mode` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1721-1723`).
|
|
85
|
+
* @noRailsEquivalent PERMANENT
|
|
86
|
+
*/
|
|
87
|
+
static fuModeAsync(mode: number | string, path: string | FsStatResult): Promise<number>;
|
|
88
|
+
/** `mode_to_s` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1726-1728`).
|
|
89
|
+
* @noRailsEquivalent PERMANENT
|
|
90
|
+
*/
|
|
91
|
+
static modeToS(mode: number | string): string;
|
|
92
|
+
/** @noRailsEquivalent PERMANENT */
|
|
93
|
+
static etcIdAsync(file: string, name: string, label: string): Promise<number>;
|
|
94
|
+
/** `fu_get_uid` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1933-1944`).
|
|
95
|
+
* @noRailsEquivalent PERMANENT
|
|
96
|
+
*/
|
|
97
|
+
static fuGetUidAsync(user: string | number | null | undefined): Promise<number | null>;
|
|
98
|
+
/** `fu_get_gid` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1947-1958`).
|
|
99
|
+
* @noRailsEquivalent PERMANENT
|
|
100
|
+
*/
|
|
101
|
+
static fuGetGidAsync(group: string | number | null | undefined): Promise<number | null>;
|
|
102
|
+
/** `FileUtils.cd` (`vendor/ruby/v3.3.11/lib/fileutils.rb:238-243`), through
|
|
103
|
+
* `Dir.chdir`, which restores the previous directory once an async block
|
|
104
|
+
* settles; `cd -` is printed at that point too.
|
|
105
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
106
|
+
*/
|
|
107
|
+
static cd(dir: string, options?: {
|
|
108
|
+
verbose?: boolean | null;
|
|
109
|
+
}): number;
|
|
110
|
+
static cd<T>(dir: string, block: (dir: string) => T): T;
|
|
111
|
+
static cd<T>(dir: string, options: {
|
|
112
|
+
verbose?: boolean | null;
|
|
113
|
+
}, block: (dir: string) => T): T;
|
|
114
|
+
/** `FileUtils.chdir` (`vendor/ruby/v3.3.11/lib/fileutils.rb:246`), an alias of `cd`.
|
|
115
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
116
|
+
*/
|
|
117
|
+
static chdir: typeof FileUtils.cd;
|
|
118
|
+
/** `FileUtils.mkdir_p` (`vendor/ruby/v3.3.11/lib/fileutils.rb:365-388`).
|
|
119
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
120
|
+
*/
|
|
121
|
+
static mkdirP(list: string | string[], { mode, noop, verbose }?: {
|
|
122
|
+
mode?: number;
|
|
123
|
+
noop?: boolean;
|
|
124
|
+
verbose?: boolean;
|
|
125
|
+
}): string[];
|
|
126
|
+
/** {@link FileUtils.mkdirP} over the backend's async verbs
|
|
127
|
+
* (`vendor/ruby/v3.3.11/lib/fileutils.rb:365-388`).
|
|
128
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
129
|
+
*/
|
|
130
|
+
static mkdirPAsync(list: string | string[], { mode, noop, verbose }?: {
|
|
131
|
+
mode?: number;
|
|
132
|
+
noop?: boolean;
|
|
133
|
+
verbose?: boolean;
|
|
134
|
+
}): Promise<string[]>;
|
|
135
|
+
/** `FileUtils.mkdir` (`vendor/ruby/v3.3.11/lib/fileutils.rb:316-324`), over async `mkdir`.
|
|
136
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
137
|
+
*/
|
|
138
|
+
static mkdirAsync(list: string | string[], { mode, noop, verbose }?: {
|
|
139
|
+
mode?: number;
|
|
140
|
+
noop?: boolean;
|
|
141
|
+
verbose?: boolean;
|
|
142
|
+
}): Promise<string[] | undefined>;
|
|
143
|
+
/** @noRailsEquivalent PERMANENT */
|
|
144
|
+
static mkpathAsync: typeof FileUtils.mkdirPAsync;
|
|
145
|
+
/** @noRailsEquivalent PERMANENT */
|
|
146
|
+
static makedirsAsync: typeof FileUtils.mkdirPAsync;
|
|
147
|
+
/** `FileUtils.rmdir` (`vendor/ruby/v3.3.11/lib/fileutils.rb:442-458`), over async `rmdir`.
|
|
148
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
149
|
+
*/
|
|
150
|
+
static rmdirAsync(list: string | string[], { parents, noop, verbose }?: {
|
|
151
|
+
parents?: boolean;
|
|
152
|
+
noop?: boolean;
|
|
153
|
+
verbose?: boolean;
|
|
154
|
+
}): Promise<string[] | undefined>;
|
|
155
|
+
/** `FileUtils.makedirs` (`vendor/ruby/v3.3.11/lib/fileutils.rb:392-394`), an alias of `mkdir_p`.
|
|
156
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
157
|
+
*/
|
|
158
|
+
static makedirs: typeof FileUtils.mkdirP;
|
|
159
|
+
/** `FileUtils.cp` (`vendor/ruby/v3.3.11/lib/fileutils.rb:873-879`).
|
|
160
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
161
|
+
*/
|
|
162
|
+
static cp(src: string | string[], dest: string, { preserve, noop, verbose }?: {
|
|
163
|
+
preserve?: boolean;
|
|
164
|
+
noop?: boolean;
|
|
165
|
+
verbose?: boolean;
|
|
166
|
+
}): void;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
* @noRailsEquivalent PERMANENT
|
|
170
|
+
*/
|
|
171
|
+
static fuMkdirAsync(path: string, mode: number | undefined): Promise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
* @noRailsEquivalent PERMANENT
|
|
175
|
+
*/
|
|
176
|
+
static fuEachSrcDest0Async(src: string | string[], dest: string, yieldFn: (s: string, d: string) => Promise<void>, targetDirectory?: boolean): Promise<void>;
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
* @noRailsEquivalent PERMANENT
|
|
180
|
+
*/
|
|
181
|
+
static fuEachSrcDestAsync(src: string | string[], dest: string, yieldFn: (s: string, d: string) => Promise<void>): Promise<void>;
|
|
182
|
+
/** @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils.ln` (`vendor/ruby/v3.3.11/lib/fileutils.rb:516-523`), over the backend's async `link`. */
|
|
183
|
+
static lnAsync(src: string | string[], dest: string, { force, noop, verbose }?: {
|
|
184
|
+
force?: unknown;
|
|
185
|
+
noop?: boolean;
|
|
186
|
+
verbose?: boolean;
|
|
187
|
+
}): Promise<void>;
|
|
188
|
+
/** @noRailsEquivalent PERMANENT */
|
|
189
|
+
static linkAsync: typeof FileUtils.lnAsync;
|
|
190
|
+
/** `FileUtils.ln_s` (`vendor/ruby/v3.3.11/lib/fileutils.rb:706-716`).
|
|
191
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
192
|
+
*/
|
|
193
|
+
static lnSAsync(src: string | string[], dest: string, { force, relative, noop, verbose, }?: {
|
|
194
|
+
force?: unknown;
|
|
195
|
+
relative?: unknown;
|
|
196
|
+
noop?: boolean;
|
|
197
|
+
verbose?: boolean;
|
|
198
|
+
}): Promise<void>;
|
|
199
|
+
/** @noRailsEquivalent PERMANENT */
|
|
200
|
+
static symlinkAsync: typeof FileUtils.lnSAsync;
|
|
201
|
+
/** `FileUtils.ln_sf` (`vendor/ruby/v3.3.11/lib/fileutils.rb:724-726`).
|
|
202
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
203
|
+
*/
|
|
204
|
+
static lnSfAsync(src: string | string[], dest: string, { noop, verbose }?: {
|
|
205
|
+
noop?: boolean;
|
|
206
|
+
verbose?: boolean;
|
|
207
|
+
}): Promise<void>;
|
|
208
|
+
/** `FileUtils.ln_sr` (`vendor/ruby/v3.3.11/lib/fileutils.rb:731-768`).
|
|
209
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
210
|
+
*/
|
|
211
|
+
static lnSrAsync(src: string | string[], dest: string, { targetDirectory, force, noop, verbose, }?: {
|
|
212
|
+
targetDirectory?: unknown;
|
|
213
|
+
force?: unknown;
|
|
214
|
+
noop?: boolean;
|
|
215
|
+
verbose?: boolean;
|
|
216
|
+
}): Promise<void>;
|
|
217
|
+
/** @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils.cp` (`vendor/ruby/v3.3.11/lib/fileutils.rb:873-879`), over async `readFile` / `writeFile`. */
|
|
218
|
+
static cpAsync(src: string | string[], dest: string, { preserve, noop, verbose }?: {
|
|
219
|
+
preserve?: unknown;
|
|
220
|
+
noop?: boolean;
|
|
221
|
+
verbose?: boolean;
|
|
222
|
+
}): Promise<void>;
|
|
223
|
+
/** @noRailsEquivalent PERMANENT */
|
|
224
|
+
static copyAsync: typeof FileUtils.cpAsync;
|
|
225
|
+
/** `FileUtils.cp_r` (`vendor/ruby/v3.3.11/lib/fileutils.rb:985-992`).
|
|
226
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
227
|
+
*/
|
|
228
|
+
static cpRAsync(src: string | string[], dest: string, { preserve, noop, verbose, dereferenceRoot, removeDestination, }?: {
|
|
229
|
+
preserve?: unknown;
|
|
230
|
+
noop?: boolean;
|
|
231
|
+
verbose?: boolean;
|
|
232
|
+
dereferenceRoot?: boolean;
|
|
233
|
+
removeDestination?: boolean;
|
|
234
|
+
}): Promise<void>;
|
|
235
|
+
/** `FileUtils.cp_lr` (`vendor/ruby/v3.3.11/lib/fileutils.rb:627-634`).
|
|
236
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
237
|
+
*/
|
|
238
|
+
static cpLrAsync(src: string | string[], dest: string, { noop, verbose, dereferenceRoot, removeDestination, }?: {
|
|
239
|
+
noop?: boolean;
|
|
240
|
+
verbose?: boolean;
|
|
241
|
+
dereferenceRoot?: boolean;
|
|
242
|
+
removeDestination?: boolean;
|
|
243
|
+
}): Promise<void>;
|
|
244
|
+
/** `FileUtils.link_entry` (`vendor/ruby/v3.3.11/lib/fileutils.rb:812-818`).
|
|
245
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
246
|
+
*/
|
|
247
|
+
static linkEntryAsync(src: string, dest: string, dereferenceRoot?: boolean, removeDestination?: boolean): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* `copy_entry` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1040-1053`), whose `wrap_traverse`
|
|
250
|
+
* walks a directory tree and copies each entry with `Entry_#copy`
|
|
251
|
+
* (`fileutils.rb:2239-2274`), then its `copy_metadata` under `preserve`.
|
|
252
|
+
*
|
|
253
|
+
* `Entry_#copy`'s `socket?` and `pipe?` arms each raise before their copy under
|
|
254
|
+
* an interpreter that answers no `UNIXServer` (`fileutils.rb:2258-2263`) and no
|
|
255
|
+
* `File.mkfifo` (`fileutils.rb:2267`); neither constant exists here, so those
|
|
256
|
+
* are the arms taken.
|
|
257
|
+
*
|
|
258
|
+
* `dereference_root` rewrites the root through `File.realpath`
|
|
259
|
+
* (`fileutils.rb:1041-1043`) so a symlinked root is copied as its target, and
|
|
260
|
+
* `remove_destination` unlinks an existing destination entry before each copy
|
|
261
|
+
* (`fileutils.rb:1047`), through `File.delete` — the name Ruby's `File.unlink`
|
|
262
|
+
* is an alias of (`vendor/ruby/v3.3.11/file.c:3202`).
|
|
263
|
+
*
|
|
264
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
265
|
+
*/
|
|
266
|
+
static copyEntry(src: string, dest: string, preserve?: boolean, dereferenceRoot?: boolean, removeDestination?: boolean): void;
|
|
267
|
+
/** @noRailsEquivalent PERMANENT */
|
|
268
|
+
static copyEntryAsync(src: string, dest: string, preserve?: unknown, dereferenceRoot?: boolean, removeDestination?: boolean): Promise<void>;
|
|
269
|
+
/** `FileUtils.copy_file` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1076-1080`), whose
|
|
270
|
+
* `Entry_#copy_file` (`fileutils.rb:2277-2283`) copies the bytes and
|
|
271
|
+
* `copy_metadata` (`fileutils.rb:2285-2312`) the timestamps, ownership and
|
|
272
|
+
* mode. Ruby's `dereference` reaches only `Entry_#lstat`
|
|
273
|
+
* (`fileutils.rb:2192-2198`), which `copy_metadata` calls, so it selects an
|
|
274
|
+
* arm under `preserve` alone and only for a symlink source.
|
|
275
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
276
|
+
*/
|
|
277
|
+
static copyFile(src: string | PathLike, dest: string, preserve?: boolean, dereference?: boolean): void;
|
|
278
|
+
/** @noRailsEquivalent PERMANENT */
|
|
279
|
+
static copyFileAsync(src: string, dest: string, preserve?: unknown, dereference?: boolean): Promise<void>;
|
|
280
|
+
/** `FileUtils.mv` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1157-1183`). Ruby's `secure:`
|
|
281
|
+
* kwarg routes the cross-device fallback's teardown through
|
|
282
|
+
* `remove_entry_secure` (`fileutils.rb:1351-1447`), which is built on
|
|
283
|
+
* `Process.euid`; `process.*` is unavailable here, so the kwarg has no arm to
|
|
284
|
+
* select and is not accepted.
|
|
285
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
286
|
+
*/
|
|
287
|
+
static mv(src: string | string[], dest: string, { force, noop, verbose }?: {
|
|
288
|
+
force?: boolean;
|
|
289
|
+
noop?: boolean;
|
|
290
|
+
verbose?: boolean;
|
|
291
|
+
}): void;
|
|
292
|
+
/** @noRailsEquivalent PERMANENT */
|
|
293
|
+
static mvAsync(src: string | string[], dest: string, { force, noop, verbose }?: {
|
|
294
|
+
force?: unknown;
|
|
295
|
+
noop?: boolean;
|
|
296
|
+
verbose?: boolean;
|
|
297
|
+
}): Promise<void>;
|
|
298
|
+
/** @noRailsEquivalent PERMANENT */
|
|
299
|
+
static moveAsync: typeof FileUtils.mvAsync;
|
|
300
|
+
/** `FileUtils.rm` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1216-1225`).
|
|
301
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
302
|
+
*/
|
|
303
|
+
static rm(list: string | string[], { force, noop, verbose }?: {
|
|
304
|
+
force?: boolean;
|
|
305
|
+
noop?: boolean;
|
|
306
|
+
verbose?: boolean;
|
|
307
|
+
}): string[] | undefined;
|
|
308
|
+
/** `FileUtils.rm_f` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1241-1243`).
|
|
309
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
310
|
+
*/
|
|
311
|
+
static rmF(list: string | string[], { noop, verbose }?: {
|
|
312
|
+
noop?: boolean;
|
|
313
|
+
verbose?: boolean;
|
|
314
|
+
}): string[] | undefined;
|
|
315
|
+
/** @noRailsEquivalent PERMANENT */
|
|
316
|
+
static rmAsync(list: string | string[], { force, noop, verbose }?: {
|
|
317
|
+
force?: unknown;
|
|
318
|
+
noop?: boolean;
|
|
319
|
+
verbose?: boolean;
|
|
320
|
+
}): Promise<string[] | undefined>;
|
|
321
|
+
/** @noRailsEquivalent PERMANENT */
|
|
322
|
+
static removeAsync: typeof FileUtils.rmAsync;
|
|
323
|
+
/** @noRailsEquivalent PERMANENT */
|
|
324
|
+
static rmFAsync(list: string | string[], { noop, verbose }?: {
|
|
325
|
+
noop?: boolean;
|
|
326
|
+
verbose?: boolean;
|
|
327
|
+
}): Promise<string[] | undefined>;
|
|
328
|
+
/** @noRailsEquivalent PERMANENT */
|
|
329
|
+
static safeUnlinkAsync: typeof FileUtils.rmFAsync;
|
|
330
|
+
/** `FileUtils.rm_r` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1299-1310`).
|
|
331
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
332
|
+
*/
|
|
333
|
+
static rmR(list: string | string[], { force, noop, verbose }?: {
|
|
334
|
+
force?: boolean;
|
|
335
|
+
noop?: boolean;
|
|
336
|
+
verbose?: boolean;
|
|
337
|
+
}): string[] | undefined;
|
|
338
|
+
/** `FileUtils.rm_rf` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1328-1330`). Ruby's
|
|
339
|
+
* `secure:` kwarg routes `rm_r` through `remove_entry_secure`
|
|
340
|
+
* (`fileutils.rb:1351-1447`), which is unported, so the kwarg has no arm to
|
|
341
|
+
* select and is not accepted — as on `rm_r` itself.
|
|
342
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
343
|
+
*/
|
|
344
|
+
static rmRf(list: string | string[], { noop, verbose }?: {
|
|
345
|
+
noop?: boolean;
|
|
346
|
+
verbose?: boolean;
|
|
347
|
+
}): string[] | undefined;
|
|
348
|
+
/** `FileUtils.remove_entry` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1449-1456`).
|
|
349
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
350
|
+
*/
|
|
351
|
+
static removeEntry(path: string, force?: boolean): void;
|
|
352
|
+
/** {@link FileUtils.rmR} over the backend's async verbs
|
|
353
|
+
* (`vendor/ruby/v3.3.11/lib/fileutils.rb:1299-1310`).
|
|
354
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
355
|
+
*/
|
|
356
|
+
static rmRAsync(list: string | string[], { force, noop, verbose }?: {
|
|
357
|
+
force?: unknown;
|
|
358
|
+
noop?: boolean;
|
|
359
|
+
verbose?: boolean;
|
|
360
|
+
}): Promise<string[] | undefined>;
|
|
361
|
+
/** {@link FileUtils.rmRf} over the backend's async verbs
|
|
362
|
+
* (`vendor/ruby/v3.3.11/lib/fileutils.rb:1328-1330`).
|
|
363
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
364
|
+
*/
|
|
365
|
+
static rmRfAsync(list: string | string[], { noop, verbose }?: {
|
|
366
|
+
noop?: boolean;
|
|
367
|
+
verbose?: boolean;
|
|
368
|
+
}): Promise<string[] | undefined>;
|
|
369
|
+
/** @noRailsEquivalent PERMANENT */
|
|
370
|
+
static rmtreeAsync: typeof FileUtils.rmRfAsync;
|
|
371
|
+
/** {@link FileUtils.removeEntry} (`vendor/ruby/v3.3.11/lib/fileutils.rb:1449-1456`)
|
|
372
|
+
* over `Entry_`'s async walk: `Entry_#postorder_traverse`
|
|
373
|
+
* (`fileutils.rb:2364-2382`) yielding to `Entry_#remove` (`fileutils.rb:2314-2332`).
|
|
374
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
375
|
+
*/
|
|
376
|
+
static removeEntryAsync(path: string, force?: unknown): Promise<void>;
|
|
377
|
+
/** `FileUtils.compare_file` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1507-1514`).
|
|
378
|
+
* @noRailsEquivalent PERMANENT
|
|
379
|
+
*/
|
|
380
|
+
static compareFileAsync(a: string, b: string): Promise<boolean>;
|
|
381
|
+
/** @noRailsEquivalent PERMANENT */
|
|
382
|
+
static isIdenticalAsync: typeof FileUtils.compareFileAsync;
|
|
383
|
+
/** @noRailsEquivalent PERMANENT */
|
|
384
|
+
static cmpAsync: typeof FileUtils.compareFileAsync;
|
|
385
|
+
/** `FileUtils.compare_stream` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1530-1542`).
|
|
386
|
+
* @noRailsEquivalent PERMANENT
|
|
387
|
+
*/
|
|
388
|
+
static compareStream(a: {
|
|
389
|
+
read(length: number): Uint8Array | null;
|
|
390
|
+
}, b: {
|
|
391
|
+
read(length: number): Uint8Array | null;
|
|
392
|
+
}): boolean;
|
|
393
|
+
/** `FileUtils.compare_stream` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1530-1542`) over handles.
|
|
394
|
+
* @noRailsEquivalent PERMANENT
|
|
395
|
+
*/
|
|
396
|
+
static compareStreamAsync(a: FsFileHandle, b: FsFileHandle): Promise<boolean>;
|
|
397
|
+
/** `fu_stream_blksize` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2045-2052`).
|
|
398
|
+
* @noRailsEquivalent PERMANENT
|
|
399
|
+
*/
|
|
400
|
+
static fuStreamBlksize(...streams: object[]): number;
|
|
401
|
+
/** `fu_blksize` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2054-2059`).
|
|
402
|
+
* @noRailsEquivalent PERMANENT
|
|
403
|
+
*/
|
|
404
|
+
static fuBlksize(st: FsStatResult): number | null;
|
|
405
|
+
/** `fu_default_blksize` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2061-2063`).
|
|
406
|
+
* @noRailsEquivalent PERMANENT
|
|
407
|
+
*/
|
|
408
|
+
static fuDefaultBlksize(): number;
|
|
409
|
+
/** `FileUtils.install` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1609-1639`).
|
|
410
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
411
|
+
*/
|
|
412
|
+
static installAsync(src: string | string[], dest: string, { mode, owner, group, preserve, noop, verbose, }?: {
|
|
413
|
+
mode?: number | string | null;
|
|
414
|
+
owner?: string | number | null;
|
|
415
|
+
group?: string | number | null;
|
|
416
|
+
preserve?: unknown;
|
|
417
|
+
noop?: boolean;
|
|
418
|
+
verbose?: boolean;
|
|
419
|
+
}): Promise<void>;
|
|
420
|
+
/** `FileUtils.chmod` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1803-1810`).
|
|
421
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
422
|
+
*/
|
|
423
|
+
static chmodAsync(mode: number | string, list: string | string[], { noop, verbose }?: {
|
|
424
|
+
noop?: boolean;
|
|
425
|
+
verbose?: boolean;
|
|
426
|
+
}): Promise<string[] | undefined>;
|
|
427
|
+
/** `FileUtils.chmod_R` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1815-1830`) over
|
|
428
|
+
* `Entry_`'s async walk: `Entry_#traverse` (`fileutils.rb:2354-2362`)
|
|
429
|
+
* yielding to `Entry_#chmod` (`fileutils.rb:2206-2213`).
|
|
430
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
431
|
+
*/
|
|
432
|
+
static chmodRAsync(mode: number | string, list: string | string[], { noop, verbose, force }?: {
|
|
433
|
+
noop?: boolean;
|
|
434
|
+
verbose?: boolean;
|
|
435
|
+
force?: unknown;
|
|
436
|
+
}): Promise<string[] | undefined>;
|
|
437
|
+
/** `FileUtils.chown` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1896-1907`).
|
|
438
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
439
|
+
*/
|
|
440
|
+
static chownAsync(user: string | number | null, group: string | number | null, list: string | string[], { noop, verbose }?: {
|
|
441
|
+
noop?: boolean;
|
|
442
|
+
verbose?: boolean;
|
|
443
|
+
}): Promise<string[] | undefined>;
|
|
444
|
+
/** `FileUtils.chown_R` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1912-1929`).
|
|
445
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
446
|
+
*/
|
|
447
|
+
static chownRAsync(user: string | number | null, group: string | number | null, list: string | string[], { noop, verbose, force }?: {
|
|
448
|
+
noop?: boolean;
|
|
449
|
+
verbose?: boolean;
|
|
450
|
+
force?: unknown;
|
|
451
|
+
}): Promise<string[] | undefined>;
|
|
452
|
+
/** @noRailsEquivalent PERMANENT */
|
|
453
|
+
static removeFileAsync(path: string, force?: unknown): Promise<void>;
|
|
454
|
+
/** `FileUtils.remove_file` (`vendor/ruby/v3.3.11/lib/fileutils.rb:1473-1477`).
|
|
455
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
456
|
+
*/
|
|
457
|
+
static removeFile(path: string, force?: boolean): void;
|
|
458
|
+
/** `FileUtils.touch` (`vendor/ruby/v3.3.11/lib/fileutils.rb:2006-2026`). The verbose
|
|
459
|
+
* line's `t.strftime('-t %Y%m%d%H%M.%S ')` is spelled out digit by digit:
|
|
460
|
+
* `strftime` lives in `@blazetrails/activesupport`, which this leaf cannot
|
|
461
|
+
* import.
|
|
462
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib `FileUtils` module function.
|
|
463
|
+
*/
|
|
464
|
+
static touch(list: string | string[], { noop, mtime, nocreate, verbose, }?: {
|
|
465
|
+
noop?: boolean;
|
|
466
|
+
verbose?: boolean;
|
|
467
|
+
mtime?: Date;
|
|
468
|
+
nocreate?: boolean;
|
|
469
|
+
}): void;
|
|
470
|
+
/** @noRailsEquivalent PERMANENT */
|
|
471
|
+
static touchAsync(list: string | string[], { noop, mtime, nocreate, verbose, }?: {
|
|
472
|
+
noop?: boolean;
|
|
473
|
+
verbose?: boolean;
|
|
474
|
+
mtime?: Date;
|
|
475
|
+
nocreate?: boolean;
|
|
476
|
+
}): Promise<void>;
|
|
477
|
+
}
|
|
478
|
+
export interface FileUtils extends Omit<typeof FileUtils, "prototype" | "fileutilsOutput" | "fileutilsLabel"> {
|
|
479
|
+
}
|
|
480
|
+
//# sourceMappingURL=file-utils.d.ts.map
|