@blazetrails/ruby-compat 0.0.0-stage → 0.1.0-alpha0.1
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 +77 -0
- package/dist/backtrace-location.js +155 -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 +110 -0
- package/dist/big-decimal.js +582 -0
- package/dist/big-decimal.js.map +1 -0
- package/dist/bundler.d.ts +44 -0
- package/dist/bundler.js +101 -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 +90 -0
- package/dist/classpath.js +207 -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 +48 -0
- package/dist/complex.js +162 -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 +218 -0
- package/dist/dir.js +599 -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 +1100 -0
- package/dist/enumerable.js.map +1 -0
- package/dist/enumerator.d.ts +321 -0
- package/dist/enumerator.js +642 -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 +327 -0
- package/dist/errno.js +452 -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 +34 -0
- package/dist/exception.js +99 -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 +1823 -0
- package/dist/file-utils.js.map +1 -0
- package/dist/file.d.ts +635 -0
- package/dist/file.js +1312 -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 +42 -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 +64 -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 +123 -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 +2195 -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 +67 -0
- package/dist/json.js +185 -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 +40 -0
- package/dist/kernel-system.js +97 -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 +121 -0
- package/dist/load.js +263 -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 +215 -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 +17 -0
- package/dist/method-cache.js +19 -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 +14 -0
- package/dist/not-implemented-error.js.map +1 -0
- package/dist/numeric.d.ts +211 -0
- package/dist/numeric.js +802 -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 +908 -0
- package/dist/object.js +2238 -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 +71 -0
- package/dist/pathname.js +394 -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 +224 -0
- package/dist/process-adapter.js +878 -0
- package/dist/process-adapter.js.map +1 -0
- package/dist/process.d.ts +192 -0
- package/dist/process.js +403 -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 +35 -0
- package/dist/psych/scalar-scanner.js +173 -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 +129 -0
- package/dist/queue.js +215 -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 +167 -0
- package/dist/rational.js +379 -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 +261 -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 +188 -0
- package/dist/repl-adapter.js +388 -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 +16 -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 +33 -0
- package/dist/secure-random.js +78 -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 +21 -0
- package/dist/signal-exception.js +21 -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 +18 -0
- package/dist/standard-error.js +23 -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 +135 -0
- package/dist/string/support.js +283 -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 +290 -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 +119 -0
- package/dist/thread-pool-executor.js +250 -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 +62 -0
- package/dist/tse.js.map +1 -0
- package/dist/type-error.d.ts +14 -0
- package/dist/type-error.js +15 -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 +283 -0
- package/dist/uri/generic.js +810 -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 +21 -0
- package/dist/verbose.js +26 -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 +117 -0
- package/dist/zlib-adapter.js +250 -0
- package/dist/zlib-adapter.js.map +1 -0
- package/dist/zlib.d.ts +248 -0
- package/dist/zlib.js +362 -0
- package/dist/zlib.js.map +1 -0
- package/package.json +82 -3
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ArgumentError } from "./argument-error.js";
|
|
2
|
+
import { StandardError } from "./standard-error.js";
|
|
3
|
+
/**
|
|
4
|
+
* Ruby's core `NameError` (`vendor/ruby/v3.3.11/error.c:3348`), its constructor
|
|
5
|
+
* (`vendor/ruby/v3.3.11/error.c:3349` `name_err_initialize`) and its `name` reader
|
|
6
|
+
* (`vendor/ruby/v3.3.11/error.c:3350` `name_err_name`). Rails does not declare this
|
|
7
|
+
* class — `active_support/core_ext/name_error.rb` only *reopens* it to add
|
|
8
|
+
* `missing_name` / `missing_name?`, which stay in `@blazetrails/activesupport`
|
|
9
|
+
* and are mixed onto this prototype there. `@blazetrails/activesupport`'s index
|
|
10
|
+
* re-exports the class, so that package's public surface is unchanged.
|
|
11
|
+
*
|
|
12
|
+
* It extends `StandardError`, mirroring Ruby's `NameError < StandardError`, so
|
|
13
|
+
* a bare `rescue` (`e instanceof StandardError`) catches it as in Ruby.
|
|
14
|
+
*
|
|
15
|
+
* `name` is not Ruby's `NameError#name`. In Ruby that attribute holds the
|
|
16
|
+
* missing constant segment — `safe_constantize`'s
|
|
17
|
+
* `camel_cased_word.split("::").include?(e.name.to_s)` guard only makes sense
|
|
18
|
+
* because it is one segment, not the whole path — and `NameError.new(msg, name)`
|
|
19
|
+
* sets it explicitly. JS reserves `Error#name` for the class name, so the Ruby
|
|
20
|
+
* attribute lives on `constantName`. It is NOT `missing_name`, which prepends
|
|
21
|
+
* the receiver.
|
|
22
|
+
*
|
|
23
|
+
* @noRailsEquivalent PERMANENT — Ruby core `NameError`, which Rails reopens
|
|
24
|
+
* rather than defines.
|
|
25
|
+
*/
|
|
26
|
+
export class NameError extends StandardError {
|
|
27
|
+
/**
|
|
28
|
+
* Ruby's `NameError#name` (`vendor/ruby/v3.3.11/error.c:3350`): the missing constant
|
|
29
|
+
* *segment*, not the path.
|
|
30
|
+
*
|
|
31
|
+
* @noRailsEquivalent PERMANENT — JS reserves `Error#name` for the class
|
|
32
|
+
* name, so Ruby core's `NameError#name` reader is spelled `constantName`.
|
|
33
|
+
*/
|
|
34
|
+
constantName;
|
|
35
|
+
#receiver;
|
|
36
|
+
#hasReceiver;
|
|
37
|
+
constructor(message, constantName, options = {}) {
|
|
38
|
+
super(message);
|
|
39
|
+
this.constantName = constantName;
|
|
40
|
+
this.#hasReceiver = "receiver" in options;
|
|
41
|
+
this.#receiver = options.receiver;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Ruby's `NameError#receiver` (`vendor/ruby/v3.3.11/error.c:2433` `name_err_receiver`).
|
|
45
|
+
*
|
|
46
|
+
* @noRailsEquivalent PERMANENT
|
|
47
|
+
*/
|
|
48
|
+
receiver() {
|
|
49
|
+
if (this.#hasReceiver)
|
|
50
|
+
return this.#receiver;
|
|
51
|
+
throw new ArgumentError("no receiver is available");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=name-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name-error.js","sourceRoot":"","sources":["../lib/name-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,OAAO,SAAU,SAAQ,aAAa;IAC1C;;;;;;OAMG;IACM,YAAY,CAAU;IAE/B,SAAS,CAAU;IACnB,YAAY,CAAU;IAEtB,YAAY,OAAgB,EAAE,YAAqB,EAAE,OAAO,GAA2B,EAAE;QACvF,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,UAAU,IAAI,OAAO,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,IAAI,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC;QAC7C,MAAM,IAAI,aAAa,CAAC,0BAA0B,CAAC,CAAC;IACtD,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ProtocolError, ProtoFatalError, ProtoRetriableError, ProtoServerError } from "../protocol.js";
|
|
2
|
+
import type { HTTPResponse } from "./response.js";
|
|
3
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPError` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:13-15`). */
|
|
4
|
+
export declare class HTTPError extends ProtocolError {
|
|
5
|
+
/** @noRailsEquivalent PERMANENT */
|
|
6
|
+
readonly response: HTTPResponse;
|
|
7
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
8
|
+
constructor(msg: string, res: HTTPResponse);
|
|
9
|
+
}
|
|
10
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPRetriableError` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:17-19`). */
|
|
11
|
+
export declare class HTTPRetriableError extends ProtoRetriableError {
|
|
12
|
+
/** @noRailsEquivalent PERMANENT */
|
|
13
|
+
readonly response: HTTPResponse;
|
|
14
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
15
|
+
constructor(msg: string, res: HTTPResponse);
|
|
16
|
+
}
|
|
17
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPClientException` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:21-23`). */
|
|
18
|
+
export declare class HTTPClientException extends ProtoServerError {
|
|
19
|
+
/** @noRailsEquivalent PERMANENT */
|
|
20
|
+
readonly response: HTTPResponse;
|
|
21
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
22
|
+
constructor(msg: string, res: HTTPResponse);
|
|
23
|
+
}
|
|
24
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPFatalError` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:25-27`). */
|
|
25
|
+
export declare class HTTPFatalError extends ProtoFatalError {
|
|
26
|
+
/** @noRailsEquivalent PERMANENT */
|
|
27
|
+
readonly response: HTTPResponse;
|
|
28
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
29
|
+
constructor(msg: string, res: HTTPResponse);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=exceptions.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ProtocolError, ProtoFatalError, ProtoRetriableError, ProtoServerError, } from "../protocol.js";
|
|
2
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPError` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:13-15`). */
|
|
3
|
+
export class HTTPError extends ProtocolError {
|
|
4
|
+
/** @noRailsEquivalent PERMANENT */
|
|
5
|
+
response;
|
|
6
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
7
|
+
constructor(msg, res) {
|
|
8
|
+
super(msg);
|
|
9
|
+
this.response = res;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
HTTPError.prototype.name = "Net::HTTPError";
|
|
13
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPRetriableError` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:17-19`). */
|
|
14
|
+
export class HTTPRetriableError extends ProtoRetriableError {
|
|
15
|
+
/** @noRailsEquivalent PERMANENT */
|
|
16
|
+
response;
|
|
17
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
18
|
+
constructor(msg, res) {
|
|
19
|
+
super(msg);
|
|
20
|
+
this.response = res;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
HTTPRetriableError.prototype.name = "Net::HTTPRetriableError";
|
|
24
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPClientException` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:21-23`). */
|
|
25
|
+
export class HTTPClientException extends ProtoServerError {
|
|
26
|
+
/** @noRailsEquivalent PERMANENT */
|
|
27
|
+
response;
|
|
28
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
29
|
+
constructor(msg, res) {
|
|
30
|
+
super(msg);
|
|
31
|
+
this.response = res;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
HTTPClientException.prototype.name = "Net::HTTPClientException";
|
|
35
|
+
/** @noRailsEquivalent PERMANENT — `Net::HTTPFatalError` (`vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:25-27`). */
|
|
36
|
+
export class HTTPFatalError extends ProtoFatalError {
|
|
37
|
+
/** @noRailsEquivalent PERMANENT */
|
|
38
|
+
response;
|
|
39
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/exceptions.rb:6-9`. */
|
|
40
|
+
constructor(msg, res) {
|
|
41
|
+
super(msg);
|
|
42
|
+
this.response = res;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
HTTPFatalError.prototype.name = "Net::HTTPFatalError";
|
|
46
|
+
//# sourceMappingURL=exceptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../../lib/net/http/exceptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAGxB,gHAAgH;AAChH,MAAM,OAAO,SAAU,SAAQ,aAAa;IAC1C,mCAAmC;IAC1B,QAAQ,CAAe;IAEhC,2FAA2F;IAC3F,YAAY,GAAW,EAAE,GAAiB;QACxC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;CACF;AACD,SAAS,CAAC,SAAS,CAAC,IAAI,GAAG,gBAAgB,CAAC;AAE5C,yHAAyH;AACzH,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IACzD,mCAAmC;IAC1B,QAAQ,CAAe;IAEhC,2FAA2F;IAC3F,YAAY,GAAW,EAAE,GAAiB;QACxC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;CACF;AACD,kBAAkB,CAAC,SAAS,CAAC,IAAI,GAAG,yBAAyB,CAAC;AAE9D,0HAA0H;AAC1H,MAAM,OAAO,mBAAoB,SAAQ,gBAAgB;IACvD,mCAAmC;IAC1B,QAAQ,CAAe;IAEhC,2FAA2F;IAC3F,YAAY,GAAW,EAAE,GAAiB;QACxC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;CACF;AACD,mBAAmB,CAAC,SAAS,CAAC,IAAI,GAAG,0BAA0B,CAAC;AAEhE,qHAAqH;AACrH,MAAM,OAAO,cAAe,SAAQ,eAAe;IACjD,mCAAmC;IAC1B,QAAQ,CAAe;IAEhC,2FAA2F;IAC3F,YAAY,GAAW,EAAE,GAAiB;QACxC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;CACF;AACD,cAAc,CAAC,SAAS,CAAC,IAAI,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Generic } from "../../uri/generic.js";
|
|
2
|
+
import { HTTP as URIHTTP } from "../../uri/http.js";
|
|
3
|
+
import { IO } from "../../io.js";
|
|
4
|
+
import { type BufferedIO } from "../protocol.js";
|
|
5
|
+
/**
|
|
6
|
+
* `Net::HTTPRequest` (`vendor/ruby/v3.3.11/lib/net/http/request.rb:40`), with the
|
|
7
|
+
* part of `Net::HTTPGenericRequest#initialize`
|
|
8
|
+
* (`vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:15-55`) and `HTTPHeader`
|
|
9
|
+
* that `Net::HTTP#post` reaches.
|
|
10
|
+
*
|
|
11
|
+
* @noRailsEquivalent PERMANENT — Ruby stdlib, which Rails calls without defining.
|
|
12
|
+
*/
|
|
13
|
+
export declare class HTTPRequest {
|
|
14
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/header.rb:182`. */
|
|
15
|
+
static readonly MAX_KEY_LENGTH = 1024;
|
|
16
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/header.rb:183`. */
|
|
17
|
+
static readonly MAX_FIELD_LENGTH = 65536;
|
|
18
|
+
/** @noRailsEquivalent PERMANENT */
|
|
19
|
+
static readonly METHOD: string;
|
|
20
|
+
/** @noRailsEquivalent PERMANENT */
|
|
21
|
+
static readonly REQUEST_HAS_BODY: boolean;
|
|
22
|
+
/** @noRailsEquivalent PERMANENT */
|
|
23
|
+
static readonly RESPONSE_HAS_BODY: boolean;
|
|
24
|
+
/** @noRailsEquivalent PERMANENT */
|
|
25
|
+
readonly method: string;
|
|
26
|
+
/** @noRailsEquivalent PERMANENT */
|
|
27
|
+
readonly path: string;
|
|
28
|
+
/** @noRailsEquivalent PERMANENT */
|
|
29
|
+
uri: URIHTTP | null;
|
|
30
|
+
/** @noRailsEquivalent PERMANENT */
|
|
31
|
+
readonly decodeContent: boolean;
|
|
32
|
+
private _body;
|
|
33
|
+
/** @noRailsEquivalent PERMANENT */
|
|
34
|
+
bodyStream: {
|
|
35
|
+
read(length?: number): string | Uint8Array | null | Promise<string | Uint8Array | null>;
|
|
36
|
+
} | IO | null;
|
|
37
|
+
private _bodyData;
|
|
38
|
+
private _formOption;
|
|
39
|
+
private _header;
|
|
40
|
+
private readonly _requestHasBody;
|
|
41
|
+
private readonly _responseHasBody;
|
|
42
|
+
/** @noRailsEquivalent PERMANENT */
|
|
43
|
+
constructor(path: string | Generic, initheader?: Record<string, string | null> | null);
|
|
44
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#initialize_http_header` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:185-205`). */
|
|
45
|
+
initializeHttpHeader(initheader: Record<string, string | null> | null): void;
|
|
46
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#key?` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:463-465`). */
|
|
47
|
+
isKey(key: string): boolean;
|
|
48
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#content_length` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:616-621`). */
|
|
49
|
+
get contentLength(): number | null;
|
|
50
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#content_length=` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:637-643`). */
|
|
51
|
+
set contentLength(len: number | string | null);
|
|
52
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#content_type` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:701-711`). */
|
|
53
|
+
get contentType(): string | null;
|
|
54
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#main_type` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:723-726`). */
|
|
55
|
+
mainType(): string | null;
|
|
56
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#sub_type` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:738-743`). */
|
|
57
|
+
subType(): string | null;
|
|
58
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#set_content_type` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:772-774`). */
|
|
59
|
+
setContentType(type: string, params?: Record<string, string>): void;
|
|
60
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#content_type=` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:776`). */
|
|
61
|
+
set contentType(type: string);
|
|
62
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#set_form_data` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:812-817`). */
|
|
63
|
+
setFormData(params: Record<string, unknown> | [string, unknown][], sep?: string): void;
|
|
64
|
+
/** @noRailsEquivalent PERMANENT — `alias form_data= set_form_data` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:819`). */
|
|
65
|
+
set formData(params: Record<string, unknown> | [string, unknown][]);
|
|
66
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#set_form` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:928-940`). */
|
|
67
|
+
setForm(params: FormParams, enctype?: string, formopt?: {
|
|
68
|
+
boundary?: string;
|
|
69
|
+
charset?: string;
|
|
70
|
+
}): void;
|
|
71
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#basic_auth` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:945-947`). */
|
|
72
|
+
basicAuth(account: string, password: string): void;
|
|
73
|
+
/** @internal @noRailsEquivalent PERMANENT — `HTTPHeader#basic_encode` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:960-962`). */
|
|
74
|
+
private basicEncode;
|
|
75
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#[]` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:224-227`). */
|
|
76
|
+
get(key: string): string | null;
|
|
77
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#[]=` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:240-246`). */
|
|
78
|
+
set(key: string, val: string): void;
|
|
79
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#to_hash` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:477-479`). */
|
|
80
|
+
toHash(): Record<string, string[]>;
|
|
81
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:120-122`. */
|
|
82
|
+
isRequestBodyPermitted(): boolean;
|
|
83
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:129-131`. */
|
|
84
|
+
isResponseBodyPermitted(): boolean;
|
|
85
|
+
/** @noRailsEquivalent PERMANENT — `HTTPGenericRequest#body_stream=` (`vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:179-184`). */
|
|
86
|
+
setBodyStream(input: {
|
|
87
|
+
read(length?: number): string | Uint8Array | null | Promise<string | Uint8Array | null>;
|
|
88
|
+
} | IO | null): typeof input;
|
|
89
|
+
/** @noRailsEquivalent PERMANENT — `HTTPGenericRequest#body` (`vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:145`). */
|
|
90
|
+
get body(): string | Uint8Array | null;
|
|
91
|
+
/** @noRailsEquivalent PERMANENT — `HTTPGenericRequest#body=` (`vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:154-159`). */
|
|
92
|
+
set body(str: string | Uint8Array | null);
|
|
93
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:186-192`. */
|
|
94
|
+
setBodyInternal(str: string | Uint8Array | null): void;
|
|
95
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#chunked?` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:654-658`). */
|
|
96
|
+
isChunked(): boolean;
|
|
97
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#connection_close?` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:966-971`). */
|
|
98
|
+
isConnectionClose(): boolean;
|
|
99
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:210-237`. */
|
|
100
|
+
updateUri(addr: string, port: number, ssl: boolean): void;
|
|
101
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#delete` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:453-455`). */
|
|
102
|
+
delete(key: string): string[] | null;
|
|
103
|
+
/** @noRailsEquivalent PERMANENT — `HTTPHeader#each_capitalized` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:484-489`). */
|
|
104
|
+
eachCapitalized(block: (key: string, value: string) => void): void;
|
|
105
|
+
/** @internal @noRailsEquivalent PERMANENT — `HTTPHeader#capitalize` (`vendor/ruby/v3.3.11/lib/net/http/header.rb:493-495`). */
|
|
106
|
+
private capitalize;
|
|
107
|
+
/**
|
|
108
|
+
* @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:198-208`.
|
|
109
|
+
*/
|
|
110
|
+
exec(sock: BufferedIO, ver: string, path: string): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:259-266`.
|
|
113
|
+
*/
|
|
114
|
+
private sendRequestWithBody;
|
|
115
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:268-283`. */
|
|
116
|
+
private sendRequestWithBodyStream;
|
|
117
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:285-311`. */
|
|
118
|
+
private sendRequestWithBodyData;
|
|
119
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:313-363`. */
|
|
120
|
+
private encodeMultipartFormData;
|
|
121
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:365-368`. */
|
|
122
|
+
private quoteString;
|
|
123
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:370-377`. */
|
|
124
|
+
private flushBuffer;
|
|
125
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:385-390`. */
|
|
126
|
+
private supplyDefaultContentType;
|
|
127
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:371-383`. */
|
|
128
|
+
private waitForContinue;
|
|
129
|
+
/** @internal @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/lib/net/http/generic_request.rb:399-411`. */
|
|
130
|
+
private writeHeader;
|
|
131
|
+
}
|
|
132
|
+
/** @noRailsEquivalent PERMANENT — the `params` `set_form` takes (`vendor/ruby/v3.3.11/lib/net/http/header.rb:928`). */
|
|
133
|
+
export type FormParams = Record<string, unknown> | [string, unknown, {
|
|
134
|
+
filename?: string;
|
|
135
|
+
contentType?: string;
|
|
136
|
+
}?][];
|
|
137
|
+
//# sourceMappingURL=request.d.ts.map
|