@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,479 @@
|
|
|
1
|
+
import { type Bytes } from "./fs-adapter.js";
|
|
2
|
+
import { DigestClass, type DigestInstance } from "./digest.js";
|
|
3
|
+
import { StandardError } from "./standard-error.js";
|
|
4
|
+
import type { HttpSslOptions } from "./http-adapter.js";
|
|
5
|
+
/**
|
|
6
|
+
* `OpenSSL::Cipher::CipherError` (`vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:1047`).
|
|
7
|
+
*
|
|
8
|
+
* @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:1047
|
|
9
|
+
*/
|
|
10
|
+
export declare class CipherError extends StandardError {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* `OpenSSL::SSL::SSLError` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2616`). A
|
|
14
|
+
* TLS failure reaches JS as the host's own error with an `ERR_SSL_` or
|
|
15
|
+
* `ERR_TLS_` code, or an OpenSSL certificate-verify code, which is this class to `rescue OpenSSL::SSL::SSLError`.
|
|
16
|
+
*
|
|
17
|
+
* @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2616
|
|
18
|
+
*/
|
|
19
|
+
declare class SSLError extends StandardError {
|
|
20
|
+
static [Symbol.hasInstance](error: unknown): boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `OpenSSL::X509::Store` (`vendor/ruby/v3.3.11/ext/openssl/ossl_x509store.c:920`).
|
|
24
|
+
* It holds PEM text, which a TLS handshake is handed as its trust anchors.
|
|
25
|
+
*
|
|
26
|
+
* @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_x509store.c:920
|
|
27
|
+
*/
|
|
28
|
+
export declare class Store {
|
|
29
|
+
/** @internal */
|
|
30
|
+
_certs: string[];
|
|
31
|
+
/** @internal */
|
|
32
|
+
_defaultPaths: boolean;
|
|
33
|
+
/** @noRailsEquivalent PERMANENT */
|
|
34
|
+
addFile(file: string): Promise<this>;
|
|
35
|
+
/** @noRailsEquivalent PERMANENT */
|
|
36
|
+
addCert(cert: string): this;
|
|
37
|
+
/** @noRailsEquivalent PERMANENT */
|
|
38
|
+
setDefaultPaths(): null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* `OpenSSL::SSL::SSLContext` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2633`,
|
|
42
|
+
* `lib/openssl/ssl.rb:22`).
|
|
43
|
+
*
|
|
44
|
+
* @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:22
|
|
45
|
+
*/
|
|
46
|
+
export declare class SSLContext {
|
|
47
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2910` */
|
|
48
|
+
static readonly SESSION_CACHE_CLIENT = 1;
|
|
49
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2915` */
|
|
50
|
+
static readonly SESSION_CACHE_SERVER = 2;
|
|
51
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2941` */
|
|
52
|
+
static readonly SESSION_CACHE_NO_INTERNAL_STORE = 768;
|
|
53
|
+
/** @noRailsEquivalent PERMANENT */
|
|
54
|
+
static DEFAULT_PARAMS: Record<string, unknown>;
|
|
55
|
+
/** @noRailsEquivalent PERMANENT */
|
|
56
|
+
static DEFAULT_CERT_STORE: Store;
|
|
57
|
+
/** @noRailsEquivalent PERMANENT */
|
|
58
|
+
options: number;
|
|
59
|
+
/** @noRailsEquivalent PERMANENT */
|
|
60
|
+
verifyMode: number | null;
|
|
61
|
+
/** @noRailsEquivalent PERMANENT */
|
|
62
|
+
verifyHostname: boolean;
|
|
63
|
+
/** @noRailsEquivalent PERMANENT */
|
|
64
|
+
certStore: Store | null;
|
|
65
|
+
/** @noRailsEquivalent PERMANENT */
|
|
66
|
+
caFile: string | null;
|
|
67
|
+
/** @noRailsEquivalent PERMANENT */
|
|
68
|
+
caPath: string | null;
|
|
69
|
+
/** @noRailsEquivalent PERMANENT */
|
|
70
|
+
timeout: number | null;
|
|
71
|
+
/** @noRailsEquivalent PERMANENT */
|
|
72
|
+
minVersion: string | number | null;
|
|
73
|
+
/** @noRailsEquivalent PERMANENT */
|
|
74
|
+
maxVersion: string | number | null;
|
|
75
|
+
/** @noRailsEquivalent PERMANENT */
|
|
76
|
+
cert: unknown;
|
|
77
|
+
/** @noRailsEquivalent PERMANENT */
|
|
78
|
+
key: unknown;
|
|
79
|
+
/** @noRailsEquivalent PERMANENT */
|
|
80
|
+
ciphers: string | null;
|
|
81
|
+
/** @noRailsEquivalent PERMANENT */
|
|
82
|
+
extraChainCert: unknown;
|
|
83
|
+
/** @noRailsEquivalent PERMANENT */
|
|
84
|
+
verifyCallback: unknown;
|
|
85
|
+
/** @noRailsEquivalent PERMANENT */
|
|
86
|
+
verifyDepth: number | null;
|
|
87
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2722` */
|
|
88
|
+
sessionNewCb: ((sock: SSLSocket, sess: Session) => unknown) | null;
|
|
89
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2898` */
|
|
90
|
+
sessionCacheMode: number;
|
|
91
|
+
/**
|
|
92
|
+
* `ssl_timeout=`, the alias of `timeout=` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2880`).
|
|
93
|
+
*
|
|
94
|
+
* @noRailsEquivalent PERMANENT
|
|
95
|
+
*/
|
|
96
|
+
set sslTimeout(timeout: number | null);
|
|
97
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:208-221` */
|
|
98
|
+
set sslVersion(meth: string);
|
|
99
|
+
constructor();
|
|
100
|
+
/** @noRailsEquivalent PERMANENT */
|
|
101
|
+
setParams(params?: Record<string, unknown>): Record<string, unknown>;
|
|
102
|
+
/**
|
|
103
|
+
* `ossl_sslctx_setup` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:691-830`) and
|
|
104
|
+
* `set_minmax_proto_version` (`:162-185`): the trust anchors and protocol
|
|
105
|
+
* bounds this context hands the host's handshake.
|
|
106
|
+
*
|
|
107
|
+
* @internal @noRailsEquivalent PERMANENT
|
|
108
|
+
*/
|
|
109
|
+
_setup(): Promise<{
|
|
110
|
+
ca: string[] | null;
|
|
111
|
+
defaultPaths: boolean;
|
|
112
|
+
minVersion?: TlsVersion;
|
|
113
|
+
maxVersion?: TlsVersion;
|
|
114
|
+
}>;
|
|
115
|
+
}
|
|
116
|
+
type TlsVersion = "TLSv1" | "TLSv1.1" | "TLSv1.2" | "TLSv1.3";
|
|
117
|
+
/** @noRailsEquivalent PERMANENT */
|
|
118
|
+
export interface SSLSocketIO {
|
|
119
|
+
close(): void;
|
|
120
|
+
startSsl(options: HttpSslOptions): Promise<void>;
|
|
121
|
+
peeraddr?(): [string, number, string, string];
|
|
122
|
+
readonly cipher?: string[] | null;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* `OpenSSL::SSL::Session` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl_session.c:301-330`):
|
|
126
|
+
* the host's serialized session, with the time it was established and its
|
|
127
|
+
* lifetime in seconds. The host reports neither, so `time` is the moment the
|
|
128
|
+
* host handed the session over and `timeout` is `TLS1_DEFAULT_TIMEOUT`, OpenSSL's
|
|
129
|
+
* `tls1_default_timeout` (`ssl/t1_lib.c`).
|
|
130
|
+
*
|
|
131
|
+
* @noRailsEquivalent PERMANENT
|
|
132
|
+
*/
|
|
133
|
+
export declare class Session {
|
|
134
|
+
/** @internal */
|
|
135
|
+
readonly _der: Uint8Array;
|
|
136
|
+
/** @noRailsEquivalent PERMANENT */
|
|
137
|
+
readonly time: Date;
|
|
138
|
+
/** @noRailsEquivalent PERMANENT */
|
|
139
|
+
readonly timeout: number;
|
|
140
|
+
constructor(
|
|
141
|
+
/** @internal */
|
|
142
|
+
_der: Uint8Array,
|
|
143
|
+
/** @noRailsEquivalent PERMANENT */
|
|
144
|
+
time?: Date,
|
|
145
|
+
/** @noRailsEquivalent PERMANENT */
|
|
146
|
+
timeout?: number);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* `OpenSSL::SSL.verify_certificate_identity` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:275-306`).
|
|
150
|
+
*
|
|
151
|
+
* @noRailsEquivalent PERMANENT
|
|
152
|
+
*/
|
|
153
|
+
export declare function verifyCertificateIdentity(cert: Certificate, hostname: string): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* `OpenSSL::SSL.verify_hostname` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:308-338`).
|
|
156
|
+
*
|
|
157
|
+
* @noRailsEquivalent PERMANENT
|
|
158
|
+
*/
|
|
159
|
+
export declare function verifyHostname(hostname: string, san: string): boolean;
|
|
160
|
+
/**
|
|
161
|
+
* `OpenSSL::SSL.verify_wildcard` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:341-357`).
|
|
162
|
+
*
|
|
163
|
+
* @noRailsEquivalent PERMANENT
|
|
164
|
+
*/
|
|
165
|
+
export declare function verifyWildcard(domainComponent: string, sanComponent: string): boolean;
|
|
166
|
+
/**
|
|
167
|
+
* `OpenSSL::SSL::SSLSocket` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2963`,
|
|
168
|
+
* `lib/openssl/ssl.rb:359`). The handshake is the host's, run over `io`.
|
|
169
|
+
*
|
|
170
|
+
* @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:359
|
|
171
|
+
*/
|
|
172
|
+
export declare class SSLSocket<IO extends SSLSocketIO = SSLSocketIO> {
|
|
173
|
+
/** @noRailsEquivalent PERMANENT */
|
|
174
|
+
readonly io: IO;
|
|
175
|
+
/** @noRailsEquivalent PERMANENT */
|
|
176
|
+
readonly context: SSLContext;
|
|
177
|
+
/** @noRailsEquivalent PERMANENT */
|
|
178
|
+
hostname: string | null;
|
|
179
|
+
/** @noRailsEquivalent PERMANENT */
|
|
180
|
+
syncClose: boolean;
|
|
181
|
+
/** @internal */
|
|
182
|
+
_verifyResult: number;
|
|
183
|
+
/** @internal */
|
|
184
|
+
_closed: boolean;
|
|
185
|
+
/** @internal */
|
|
186
|
+
_session: Session | null;
|
|
187
|
+
/** @internal */
|
|
188
|
+
_peerCert: Certificate | null;
|
|
189
|
+
constructor(
|
|
190
|
+
/** @noRailsEquivalent PERMANENT */
|
|
191
|
+
io: IO,
|
|
192
|
+
/** @noRailsEquivalent PERMANENT */
|
|
193
|
+
context: SSLContext);
|
|
194
|
+
/** @noRailsEquivalent PERMANENT */
|
|
195
|
+
get verifyResult(): number;
|
|
196
|
+
/** @internal */
|
|
197
|
+
_setVerifyResult(code: unknown): void;
|
|
198
|
+
/**
|
|
199
|
+
* `ossl_ssl_connect` (`vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:1847-1855`):
|
|
200
|
+
* `ossl_ssl_setup` and `ossl_start_ssl` over the host's handshake.
|
|
201
|
+
*
|
|
202
|
+
* @noRailsEquivalent PERMANENT
|
|
203
|
+
*/
|
|
204
|
+
connect(): Promise<this>;
|
|
205
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2336-2348` */
|
|
206
|
+
set session(sess: Session);
|
|
207
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2977` */
|
|
208
|
+
get peerCert(): Certificate | null;
|
|
209
|
+
/** @noRailsEquivalent PERMANENT */
|
|
210
|
+
get cipher(): string[] | null;
|
|
211
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:396-410` */
|
|
212
|
+
postConnectionCheck(hostname: string): true;
|
|
213
|
+
/**
|
|
214
|
+
* `using_anon_cipher?` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/ssl.rb:425-429`):
|
|
215
|
+
* the `aNULL` cipher list, OpenSSL's `ADH-` and `AECDH-` suites.
|
|
216
|
+
*
|
|
217
|
+
* @noRailsEquivalent PERMANENT
|
|
218
|
+
*/
|
|
219
|
+
isUsingAnonCipher(): boolean;
|
|
220
|
+
/** @noRailsEquivalent PERMANENT */
|
|
221
|
+
close(): void;
|
|
222
|
+
/** @noRailsEquivalent PERMANENT */
|
|
223
|
+
isClosed(): boolean;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* `OpenSSL::Cipher` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/cipher.rb:16`), the
|
|
227
|
+
* sliver Rails drives (`message_encryptor.rb:276-290`).
|
|
228
|
+
*
|
|
229
|
+
* @noRailsEquivalent PERMANENT — Ruby's openssl extension
|
|
230
|
+
* (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/cipher.rb:16`), which Rails calls
|
|
231
|
+
* without defining.
|
|
232
|
+
*/
|
|
233
|
+
export declare class Cipher {
|
|
234
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:1047 */
|
|
235
|
+
static readonly CipherError: typeof CipherError;
|
|
236
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:355 */
|
|
237
|
+
readonly name: string;
|
|
238
|
+
private mode;
|
|
239
|
+
private currentKey;
|
|
240
|
+
private currentIv;
|
|
241
|
+
private impl;
|
|
242
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:139 */
|
|
243
|
+
constructor(name: string);
|
|
244
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:824 */
|
|
245
|
+
get keyLen(): number;
|
|
246
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:868 */
|
|
247
|
+
get ivLen(): number;
|
|
248
|
+
/**
|
|
249
|
+
* `OpenSSL::Cipher#authenticated?` (`vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:547`),
|
|
250
|
+
* `EVP_CIPH_FLAG_AEAD_CIPHER` on the cipher — the AEAD modes the adapter
|
|
251
|
+
* names.
|
|
252
|
+
*
|
|
253
|
+
* @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:547
|
|
254
|
+
*/
|
|
255
|
+
authenticated(): boolean;
|
|
256
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:283 */
|
|
257
|
+
encrypt(): this;
|
|
258
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:302 */
|
|
259
|
+
decrypt(): this;
|
|
260
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:840 */
|
|
261
|
+
set key(key: Uint8Array);
|
|
262
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:884 */
|
|
263
|
+
set iv(iv: Uint8Array);
|
|
264
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/cipher.rb:56 */
|
|
265
|
+
randomIv(): Bytes;
|
|
266
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:920 */
|
|
267
|
+
set authTag(tag: Uint8Array);
|
|
268
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:898 */
|
|
269
|
+
get authTag(): Bytes;
|
|
270
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:958 */
|
|
271
|
+
set authData(data: Uint8Array | string);
|
|
272
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:504 */
|
|
273
|
+
update(data: Uint8Array): Bytes;
|
|
274
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_cipher.c:568 */
|
|
275
|
+
final(): Bytes;
|
|
276
|
+
private cipherInfo;
|
|
277
|
+
private started;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* `OpenSSL::HMAC` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/hmac.rb:4`), the two
|
|
281
|
+
* class methods Rails calls (`request_forgery_protection.rb:466`,
|
|
282
|
+
* `message_verifier.rb:353`).
|
|
283
|
+
*
|
|
284
|
+
* @noRailsEquivalent PERMANENT — Ruby's openssl extension
|
|
285
|
+
* (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/hmac.rb:4`), which Rails calls without
|
|
286
|
+
* defining.
|
|
287
|
+
*/
|
|
288
|
+
export declare const HMAC: {
|
|
289
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/hmac.rb:34 */
|
|
290
|
+
digest(digest: string | DigestInstance, key: string | Uint8Array, data: string | Uint8Array): Bytes;
|
|
291
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/hmac.rb:56 */
|
|
292
|
+
hexdigest(digest: string | DigestInstance, key: string | Uint8Array, data: string | Uint8Array): string;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* `OpenSSL::Random` (`vendor/ruby/v3.3.11/ext/openssl/ossl_rand.c:12`), the one
|
|
296
|
+
* module function bcrypt calls (`vendor/bcrypt-ruby/v3.1.20/lib/bcrypt/engine.rb:90`).
|
|
297
|
+
*
|
|
298
|
+
* @noRailsEquivalent PERMANENT — Ruby's openssl extension
|
|
299
|
+
* (`vendor/ruby/v3.3.11/ext/openssl/ossl_rand.c:12`), which no Rails file defines.
|
|
300
|
+
*/
|
|
301
|
+
export declare const Random: {
|
|
302
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_rand.c:105 */
|
|
303
|
+
randomBytes(len: number): Bytes;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* `OpenSSL::PKey::RSA` (`vendor/ruby/v3.3.11/ext/openssl/ossl_pkey_rsa.c:86-131`),
|
|
307
|
+
* generated by the host's crypto adapter.
|
|
308
|
+
*
|
|
309
|
+
* @noRailsEquivalent PERMANENT
|
|
310
|
+
*/
|
|
311
|
+
export declare class RSA {
|
|
312
|
+
/** @internal */
|
|
313
|
+
_publicKeyDer: Uint8Array;
|
|
314
|
+
/** @internal */
|
|
315
|
+
_privateKeyPem: string | null;
|
|
316
|
+
constructor(size: number);
|
|
317
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/lib/openssl/pkey.rb:343-345` */
|
|
318
|
+
get publicKey(): RSA;
|
|
319
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_pkey_rsa.c:249` */
|
|
320
|
+
toPem(): string;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* `OpenSSL::X509::Name` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl/x509.rb:265-328`).
|
|
324
|
+
*
|
|
325
|
+
* @noRailsEquivalent PERMANENT
|
|
326
|
+
*/
|
|
327
|
+
export declare class Name {
|
|
328
|
+
/** @internal */
|
|
329
|
+
readonly _entries: [string, string][];
|
|
330
|
+
constructor(
|
|
331
|
+
/** @internal */
|
|
332
|
+
_entries?: [string, string][]);
|
|
333
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/lib/openssl/x509.rb:305-316` */
|
|
334
|
+
static parse(str: string): Name;
|
|
335
|
+
/** @internal */
|
|
336
|
+
_toDer(): Uint8Array;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* `OpenSSL::X509::Extension` (`vendor/ruby/v3.3.11/ext/openssl/ossl_x509ext.c:358`).
|
|
340
|
+
*
|
|
341
|
+
* @noRailsEquivalent PERMANENT
|
|
342
|
+
*/
|
|
343
|
+
export declare class Extension {
|
|
344
|
+
/** @noRailsEquivalent PERMANENT */
|
|
345
|
+
readonly oid: string;
|
|
346
|
+
/** @internal */
|
|
347
|
+
readonly _value: Uint8Array;
|
|
348
|
+
/** @noRailsEquivalent PERMANENT */
|
|
349
|
+
readonly critical: boolean;
|
|
350
|
+
constructor(
|
|
351
|
+
/** @noRailsEquivalent PERMANENT */
|
|
352
|
+
oid: string,
|
|
353
|
+
/** @internal */
|
|
354
|
+
_value: Uint8Array,
|
|
355
|
+
/** @noRailsEquivalent PERMANENT */
|
|
356
|
+
critical?: boolean);
|
|
357
|
+
/** @internal */
|
|
358
|
+
_toDer(): Uint8Array;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* `OpenSSL::X509::ExtensionFactory` (`vendor/ruby/v3.3.11/ext/openssl/ossl_x509ext.c:219-329`),
|
|
362
|
+
* for the `basicConstraints`, `keyUsage` and `subjectAltName` config strings.
|
|
363
|
+
*
|
|
364
|
+
* @noRailsEquivalent PERMANENT
|
|
365
|
+
*/
|
|
366
|
+
export declare class ExtensionFactory {
|
|
367
|
+
/** @noRailsEquivalent PERMANENT */
|
|
368
|
+
subjectCertificate: Certificate | null;
|
|
369
|
+
/** @noRailsEquivalent PERMANENT */
|
|
370
|
+
issuerCertificate: Certificate | null;
|
|
371
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/lib/openssl/x509.rb:17-25` */
|
|
372
|
+
createExtension(oid: string, value: string, critical?: boolean): Extension;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* `OpenSSL::X509::Certificate` (`vendor/ruby/v3.3.11/ext/openssl/ossl_x509cert.c:815`).
|
|
376
|
+
*
|
|
377
|
+
* @noRailsEquivalent PERMANENT
|
|
378
|
+
*/
|
|
379
|
+
export declare class Certificate {
|
|
380
|
+
/** @noRailsEquivalent PERMANENT */
|
|
381
|
+
version: number;
|
|
382
|
+
/** @noRailsEquivalent PERMANENT */
|
|
383
|
+
serial: number;
|
|
384
|
+
/** @noRailsEquivalent PERMANENT */
|
|
385
|
+
subject: Name;
|
|
386
|
+
/** @noRailsEquivalent PERMANENT */
|
|
387
|
+
issuer: Name;
|
|
388
|
+
/** @noRailsEquivalent PERMANENT */
|
|
389
|
+
publicKey: RSA | null;
|
|
390
|
+
/** @noRailsEquivalent PERMANENT */
|
|
391
|
+
notBefore: Date | null;
|
|
392
|
+
/** @noRailsEquivalent PERMANENT */
|
|
393
|
+
notAfter: Date | null;
|
|
394
|
+
/** @noRailsEquivalent PERMANENT */
|
|
395
|
+
extensions: Extension[];
|
|
396
|
+
/** @internal */
|
|
397
|
+
_der: Uint8Array | null;
|
|
398
|
+
/**
|
|
399
|
+
* `ossl_x509_initialize` (`vendor/ruby/v3.3.11/ext/openssl/ossl_x509cert.c:110-137`)
|
|
400
|
+
* over a DER string, read for the subject and extensions of its `TBSCertificate`.
|
|
401
|
+
*/
|
|
402
|
+
constructor(der?: Uint8Array | null);
|
|
403
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_x509cert.c:681` */
|
|
404
|
+
addExtension(extension: Extension): Extension;
|
|
405
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_x509cert.c:523` */
|
|
406
|
+
sign(key: RSA, digest: DigestClass): this;
|
|
407
|
+
/** @noRailsEquivalent PERMANENT — `vendor/ruby/v3.3.11/ext/openssl/ossl_x509cert.c:209` */
|
|
408
|
+
toPem(): string;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* `OpenSSL` (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl.rb:16`), so a ported body
|
|
412
|
+
* spells `OpenSSL::HMAC.digest` the way the Ruby does.
|
|
413
|
+
*
|
|
414
|
+
* @noRailsEquivalent PERMANENT — Ruby's openssl extension
|
|
415
|
+
* (`vendor/ruby/v3.3.11/ext/openssl/lib/openssl.rb:16`), which no Rails file defines.
|
|
416
|
+
*/
|
|
417
|
+
export declare const OpenSSL: {
|
|
418
|
+
Cipher: typeof Cipher;
|
|
419
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_ssl.c:2999-3000 */
|
|
420
|
+
SSL: {
|
|
421
|
+
VERIFY_NONE: number;
|
|
422
|
+
VERIFY_PEER: number;
|
|
423
|
+
OP_ALL: number;
|
|
424
|
+
OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
|
|
425
|
+
OP_NO_COMPRESSION: number;
|
|
426
|
+
SSLError: typeof SSLError;
|
|
427
|
+
/** @internal */
|
|
428
|
+
SSL_VERIFY_CODES: string[];
|
|
429
|
+
SSLContext: typeof SSLContext;
|
|
430
|
+
SSLSocket: typeof SSLSocket;
|
|
431
|
+
Session: typeof Session;
|
|
432
|
+
verifyCertificateIdentity: typeof verifyCertificateIdentity;
|
|
433
|
+
verifyHostname: typeof verifyHostname;
|
|
434
|
+
verifyWildcard: typeof verifyWildcard;
|
|
435
|
+
};
|
|
436
|
+
X509: {
|
|
437
|
+
V_OK: 0;
|
|
438
|
+
V_ERR_UNABLE_TO_GET_ISSUER_CERT: 2;
|
|
439
|
+
V_ERR_CERT_SIGNATURE_FAILURE: 7;
|
|
440
|
+
V_ERR_CERT_NOT_YET_VALID: 9;
|
|
441
|
+
V_ERR_CERT_HAS_EXPIRED: 10;
|
|
442
|
+
V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: 18;
|
|
443
|
+
V_ERR_SELF_SIGNED_CERT_IN_CHAIN: 19;
|
|
444
|
+
V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: 20;
|
|
445
|
+
V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: 21;
|
|
446
|
+
V_ERR_CERT_REVOKED: 23;
|
|
447
|
+
V_ERR_CERT_UNTRUSTED: 27;
|
|
448
|
+
V_ERR_CERT_REJECTED: 28;
|
|
449
|
+
V_ERR_HOSTNAME_MISMATCH: 62;
|
|
450
|
+
Store: typeof Store;
|
|
451
|
+
Name: typeof Name;
|
|
452
|
+
Certificate: typeof Certificate;
|
|
453
|
+
Extension: typeof Extension;
|
|
454
|
+
ExtensionFactory: typeof ExtensionFactory;
|
|
455
|
+
};
|
|
456
|
+
PKey: {
|
|
457
|
+
RSA: typeof RSA;
|
|
458
|
+
};
|
|
459
|
+
HMAC: {
|
|
460
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/hmac.rb:34 */
|
|
461
|
+
digest(digest: string | DigestInstance, key: string | Uint8Array, data: string | Uint8Array): Bytes;
|
|
462
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/lib/openssl/hmac.rb:56 */
|
|
463
|
+
hexdigest(digest: string | DigestInstance, key: string | Uint8Array, data: string | Uint8Array): string;
|
|
464
|
+
};
|
|
465
|
+
Random: {
|
|
466
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_rand.c:105 */
|
|
467
|
+
randomBytes(len: number): Bytes;
|
|
468
|
+
};
|
|
469
|
+
Digest: {
|
|
470
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_digest.c:400 */
|
|
471
|
+
MD5: DigestClass;
|
|
472
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_digest.c:400 */
|
|
473
|
+
SHA1: DigestClass;
|
|
474
|
+
/** @noRailsEquivalent PERMANENT — vendor/ruby/v3.3.11/ext/openssl/ossl_digest.c:400 */
|
|
475
|
+
SHA256: DigestClass;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
export {};
|
|
479
|
+
//# sourceMappingURL=openssl.d.ts.map
|