@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,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The libyaml binding `psych.so` stands behind (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
3
|
+
* `require 'psych.so'`): by default the npm `yaml` package, an optional
|
|
4
|
+
* dependency, resolved on first use. Psych's own visitors read the rest of the
|
|
5
|
+
* backend's members by name.
|
|
6
|
+
*
|
|
7
|
+
* @noRailsEquivalent PERMANENT
|
|
8
|
+
*/
|
|
9
|
+
export interface PsychAdapter {
|
|
10
|
+
parse(src: string, ...options: unknown[]): unknown;
|
|
11
|
+
stringify(value: unknown, ...options: unknown[]): string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The `io` `Psych::Nodes::Node#yaml` writes to
|
|
15
|
+
* (`vendor/ruby/v3.3.11/ext/psych/lib/psych/nodes/node.rb:58-64`).
|
|
16
|
+
*
|
|
17
|
+
* @noRailsEquivalent PERMANENT
|
|
18
|
+
*/
|
|
19
|
+
export interface PsychIO {
|
|
20
|
+
write(string: string): unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Seats a backend for `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13` `require 'psych.so'`.
|
|
24
|
+
*
|
|
25
|
+
* @noRailsEquivalent PERMANENT
|
|
26
|
+
*/
|
|
27
|
+
export declare function registerPsychAdapter(name: string, adapter: PsychAdapter): void;
|
|
28
|
+
/**
|
|
29
|
+
* Names the backend `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13` `require 'psych.so'` loads.
|
|
30
|
+
*
|
|
31
|
+
* @noRailsEquivalent PERMANENT
|
|
32
|
+
*/
|
|
33
|
+
export declare const psychAdapterConfig: {
|
|
34
|
+
/** @noRailsEquivalent PERMANENT */
|
|
35
|
+
get adapter(): string | null;
|
|
36
|
+
/** @noRailsEquivalent PERMANENT */
|
|
37
|
+
set adapter(name: string | null);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The backend behind `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
41
|
+
* `require 'psych.so'`, resolved at each call, so importing this module never
|
|
42
|
+
* loads it.
|
|
43
|
+
*
|
|
44
|
+
* @noRailsEquivalent PERMANENT
|
|
45
|
+
*/
|
|
46
|
+
export declare function yaml(): PsychAdapter;
|
|
47
|
+
/**
|
|
48
|
+
* The backend's own value parser, behind `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
49
|
+
* `require 'psych.so'`. Not `Psych.parse` (`:398`), which answers a node tree.
|
|
50
|
+
* libyaml reads the source's bytes (`yaml_parser_set_input_string`,
|
|
51
|
+
* `vendor/ruby/v3.3.11/ext/psych/psych_parser.c:271`), so a source held as its
|
|
52
|
+
* bytes is decoded here. Malformed bytes or a malformed document raise
|
|
53
|
+
* `Psych::SyntaxError`, as `make_exception` does (`psych_parser.c:80-100`).
|
|
54
|
+
*
|
|
55
|
+
* @noRailsEquivalent PERMANENT
|
|
56
|
+
*/
|
|
57
|
+
export declare function parse(src: string | Uint8Array, ...options: unknown[]): unknown;
|
|
58
|
+
/**
|
|
59
|
+
* The backend's own emitter, behind `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
60
|
+
* `require 'psych.so'`.
|
|
61
|
+
*
|
|
62
|
+
* @noRailsEquivalent PERMANENT
|
|
63
|
+
*/
|
|
64
|
+
export declare function stringify(value: unknown, ...options: unknown[]): string;
|
|
65
|
+
//# sourceMappingURL=psych-adapter.d.ts.map
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { LoadError } from "./load-error.js";
|
|
2
|
+
import { SyntaxError } from "./psych/syntax-error.js";
|
|
3
|
+
const registry = new Map();
|
|
4
|
+
let currentAdapterName = null;
|
|
5
|
+
let resolved = null;
|
|
6
|
+
/**
|
|
7
|
+
* Seats a backend for `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13` `require 'psych.so'`.
|
|
8
|
+
*
|
|
9
|
+
* @noRailsEquivalent PERMANENT
|
|
10
|
+
*/
|
|
11
|
+
export function registerPsychAdapter(name, adapter) {
|
|
12
|
+
registry.set(name, adapter);
|
|
13
|
+
if (name === currentAdapterName)
|
|
14
|
+
resolved = null;
|
|
15
|
+
}
|
|
16
|
+
let nodeAttempted = false;
|
|
17
|
+
function tryAutoRegisterNode() {
|
|
18
|
+
if (registry.has("yaml"))
|
|
19
|
+
return true;
|
|
20
|
+
if (nodeAttempted)
|
|
21
|
+
return false;
|
|
22
|
+
nodeAttempted = true;
|
|
23
|
+
try {
|
|
24
|
+
const proc = globalThis.process;
|
|
25
|
+
if (!proc?.versions?.node || typeof proc.getBuiltinModule !== "function")
|
|
26
|
+
return false;
|
|
27
|
+
const nodeModule = proc.getBuiltinModule("node:module");
|
|
28
|
+
registry.set("yaml", nodeModule.createRequire(import.meta.url)("yaml"));
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Resolves the backend as `psych.rb:13`'s `require 'psych.so'` would, at the
|
|
37
|
+
* call: the configured adapter, else one registered as `yaml`, else a synchronous
|
|
38
|
+
* Node load of `yaml`. A miss raises the `LoadError` `vendor/ruby/v3.3.11/lib/yaml.rb:3-18`
|
|
39
|
+
* re-raises.
|
|
40
|
+
*/
|
|
41
|
+
function resolve() {
|
|
42
|
+
if (resolved)
|
|
43
|
+
return resolved;
|
|
44
|
+
const name = currentAdapterName;
|
|
45
|
+
if (name) {
|
|
46
|
+
const reg = registry.get(name);
|
|
47
|
+
if (!reg)
|
|
48
|
+
throw new LoadError(`cannot load such file -- ${name}`);
|
|
49
|
+
return (resolved = reg);
|
|
50
|
+
}
|
|
51
|
+
if (tryAutoRegisterNode()) {
|
|
52
|
+
return (resolved = registry.get("yaml"));
|
|
53
|
+
}
|
|
54
|
+
throw new LoadError("cannot load such file -- yaml");
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Names the backend `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13` `require 'psych.so'` loads.
|
|
58
|
+
*
|
|
59
|
+
* @noRailsEquivalent PERMANENT
|
|
60
|
+
*/
|
|
61
|
+
export const psychAdapterConfig = {
|
|
62
|
+
/** @noRailsEquivalent PERMANENT */
|
|
63
|
+
get adapter() {
|
|
64
|
+
return currentAdapterName;
|
|
65
|
+
},
|
|
66
|
+
/** @noRailsEquivalent PERMANENT */
|
|
67
|
+
set adapter(name) {
|
|
68
|
+
currentAdapterName = name;
|
|
69
|
+
resolved = null;
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* The backend behind `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
74
|
+
* `require 'psych.so'`, resolved at each call, so importing this module never
|
|
75
|
+
* loads it.
|
|
76
|
+
*
|
|
77
|
+
* @noRailsEquivalent PERMANENT
|
|
78
|
+
*/
|
|
79
|
+
export function yaml() {
|
|
80
|
+
return resolve();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The backend's own value parser, behind `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
84
|
+
* `require 'psych.so'`. Not `Psych.parse` (`:398`), which answers a node tree.
|
|
85
|
+
* libyaml reads the source's bytes (`yaml_parser_set_input_string`,
|
|
86
|
+
* `vendor/ruby/v3.3.11/ext/psych/psych_parser.c:271`), so a source held as its
|
|
87
|
+
* bytes is decoded here. Malformed bytes or a malformed document raise
|
|
88
|
+
* `Psych::SyntaxError`, as `make_exception` does (`psych_parser.c:80-100`).
|
|
89
|
+
*
|
|
90
|
+
* @noRailsEquivalent PERMANENT
|
|
91
|
+
*/
|
|
92
|
+
export function parse(src, ...options) {
|
|
93
|
+
if (src instanceof Uint8Array) {
|
|
94
|
+
try {
|
|
95
|
+
src = new TextDecoder("utf-8", { fatal: true }).decode(src);
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
throw new SyntaxError(null, 0, 0, 0, "invalid leading UTF-8 octet", null);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
return resolve().parse(src, ...options);
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
const e = error;
|
|
106
|
+
if (!(error instanceof Error) || !Array.isArray(e.pos))
|
|
107
|
+
throw error;
|
|
108
|
+
const mark = e.linePos?.[0] ?? { line: 0, col: 0 };
|
|
109
|
+
throw new SyntaxError(null, mark.line, mark.col, e.pos[0], error.message.split(" at line ")[0], null);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The backend's own emitter, behind `vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:13`
|
|
114
|
+
* `require 'psych.so'`.
|
|
115
|
+
*
|
|
116
|
+
* @noRailsEquivalent PERMANENT
|
|
117
|
+
*/
|
|
118
|
+
export function stringify(value, ...options) {
|
|
119
|
+
return resolve().stringify(value, ...options);
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=psych-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"psych-adapter.js","sourceRoot":"","sources":["../lib/psych-adapter.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"psych-yaml.js","sourceRoot":"","sources":["../lib/psych-yaml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,mCAAmC;AACnC,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC"}
|
package/dist/psych.d.ts
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import type { PsychIO } from "./psych-adapter.js";
|
|
2
|
+
import { Coder as PsychCoder } from "./psych/coder.js";
|
|
3
|
+
import { ClassLoader as PsychClassLoader } from "./psych/class-loader.js";
|
|
4
|
+
import { AliasesNotEnabled as PsychAliasesNotEnabled, AnchorNotDefined as PsychAnchorNotDefined, BadAlias as PsychBadAlias, DisallowedClass as PsychDisallowedClass, Exception as PsychException } from "./psych/exception.js";
|
|
5
|
+
import { SyntaxError as PsychSyntaxError } from "./psych/syntax-error.js";
|
|
6
|
+
import { ScalarScanner as PsychScalarScanner } from "./psych/scalar-scanner.js";
|
|
7
|
+
import { NoAliasRuby, ToRuby } from "./psych/visitors/to-ruby.js";
|
|
8
|
+
import { Omap as PsychOmap } from "./psych/omap.js";
|
|
9
|
+
import { IO } from "./io.js";
|
|
10
|
+
import { Emitter as VisitorsEmitter } from "./psych/visitors/emitter.js";
|
|
11
|
+
import { Parser as PsychParser } from "./psych/parser.js";
|
|
12
|
+
import { DepthFirst } from "./psych/visitors/depth-first.js";
|
|
13
|
+
import { Alias as NodesAlias } from "./psych/nodes/alias.js";
|
|
14
|
+
import { Document as NodesDocument } from "./psych/nodes/document.js";
|
|
15
|
+
import { Mapping as NodesMapping } from "./psych/nodes/mapping.js";
|
|
16
|
+
import { Node as NodesNode } from "./psych/nodes/node.js";
|
|
17
|
+
import { Scalar as NodesScalar } from "./psych/nodes/scalar.js";
|
|
18
|
+
import { Sequence as NodesSequence } from "./psych/nodes/sequence.js";
|
|
19
|
+
import { Stream as NodesStream } from "./psych/nodes/stream.js";
|
|
20
|
+
import { Emitter as PsychEmitter } from "./psych/emitter.js";
|
|
21
|
+
import { RestrictedYAMLTree, YAMLTree, type YAMLTreeOptions } from "./psych/visitors/yaml-tree.js";
|
|
22
|
+
export { coderTag } from "./psych/coder.js";
|
|
23
|
+
/**
|
|
24
|
+
* Ruby's stdlib `Psych` module (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:234`).
|
|
25
|
+
*
|
|
26
|
+
* @noRailsEquivalent PERMANENT
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace Psych {
|
|
29
|
+
/**
|
|
30
|
+
* `Psych::Exception` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/exception.rb:3`).
|
|
31
|
+
*
|
|
32
|
+
* @noRailsEquivalent PERMANENT
|
|
33
|
+
*/
|
|
34
|
+
const Exception: typeof PsychException;
|
|
35
|
+
type Exception = PsychException;
|
|
36
|
+
/**
|
|
37
|
+
* `Psych::BadAlias` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/exception.rb:6`).
|
|
38
|
+
*
|
|
39
|
+
* @noRailsEquivalent PERMANENT
|
|
40
|
+
*/
|
|
41
|
+
const BadAlias: typeof PsychBadAlias;
|
|
42
|
+
type BadAlias = PsychBadAlias;
|
|
43
|
+
/**
|
|
44
|
+
* `Psych::AliasesNotEnabled` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/exception.rb:10`).
|
|
45
|
+
*
|
|
46
|
+
* @noRailsEquivalent PERMANENT
|
|
47
|
+
*/
|
|
48
|
+
const AliasesNotEnabled: typeof PsychAliasesNotEnabled;
|
|
49
|
+
type AliasesNotEnabled = PsychAliasesNotEnabled;
|
|
50
|
+
/**
|
|
51
|
+
* `Psych::AnchorNotDefined` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/exception.rb:17`).
|
|
52
|
+
*
|
|
53
|
+
* @noRailsEquivalent PERMANENT
|
|
54
|
+
*/
|
|
55
|
+
const AnchorNotDefined: typeof PsychAnchorNotDefined;
|
|
56
|
+
type AnchorNotDefined = PsychAnchorNotDefined;
|
|
57
|
+
/**
|
|
58
|
+
* `Psych::DisallowedClass` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/exception.rb:23`).
|
|
59
|
+
*
|
|
60
|
+
* @noRailsEquivalent PERMANENT
|
|
61
|
+
*/
|
|
62
|
+
const DisallowedClass: typeof PsychDisallowedClass;
|
|
63
|
+
type DisallowedClass = PsychDisallowedClass;
|
|
64
|
+
/**
|
|
65
|
+
* `Psych::SyntaxError` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/syntax_error.rb:5`).
|
|
66
|
+
*
|
|
67
|
+
* @noRailsEquivalent PERMANENT
|
|
68
|
+
*/
|
|
69
|
+
const SyntaxError: typeof PsychSyntaxError;
|
|
70
|
+
type SyntaxError = PsychSyntaxError;
|
|
71
|
+
/**
|
|
72
|
+
* `Psych::Coder` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/coder.rb:9`).
|
|
73
|
+
*
|
|
74
|
+
* @noRailsEquivalent PERMANENT
|
|
75
|
+
*/
|
|
76
|
+
const Coder: typeof PsychCoder;
|
|
77
|
+
type Coder = PsychCoder;
|
|
78
|
+
/**
|
|
79
|
+
* `Psych::Omap` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/omap.rb:3`).
|
|
80
|
+
*
|
|
81
|
+
* @noRailsEquivalent PERMANENT
|
|
82
|
+
*/
|
|
83
|
+
const Omap: typeof PsychOmap;
|
|
84
|
+
type Omap<K = unknown, V = unknown> = PsychOmap<K, V>;
|
|
85
|
+
/**
|
|
86
|
+
* `Psych::ClassLoader` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/class_loader.rb:6`).
|
|
87
|
+
*
|
|
88
|
+
* @noRailsEquivalent PERMANENT
|
|
89
|
+
*/
|
|
90
|
+
const ClassLoader: typeof PsychClassLoader;
|
|
91
|
+
type ClassLoader = PsychClassLoader;
|
|
92
|
+
/**
|
|
93
|
+
* `Psych::ScalarScanner` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/scalar_scanner.rb:7`).
|
|
94
|
+
*
|
|
95
|
+
* @noRailsEquivalent PERMANENT
|
|
96
|
+
*/
|
|
97
|
+
const ScalarScanner: typeof PsychScalarScanner;
|
|
98
|
+
type ScalarScanner = PsychScalarScanner;
|
|
99
|
+
/**
|
|
100
|
+
* `Psych::Visitors` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/visitors/to_ruby.rb:11`).
|
|
101
|
+
*
|
|
102
|
+
* @noRailsEquivalent PERMANENT
|
|
103
|
+
*/
|
|
104
|
+
const Visitors: {
|
|
105
|
+
readonly ToRuby: typeof ToRuby;
|
|
106
|
+
readonly NoAliasRuby: typeof NoAliasRuby;
|
|
107
|
+
readonly YAMLTree: typeof YAMLTree;
|
|
108
|
+
readonly RestrictedYAMLTree: typeof RestrictedYAMLTree;
|
|
109
|
+
readonly Emitter: typeof VisitorsEmitter;
|
|
110
|
+
readonly DepthFirst: typeof DepthFirst;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* `Psych::Nodes` (`vendor/ruby/v3.3.11/ext/psych/lib/psych/nodes.rb:76`).
|
|
114
|
+
*
|
|
115
|
+
* @noRailsEquivalent PERMANENT
|
|
116
|
+
*/
|
|
117
|
+
const Nodes: {
|
|
118
|
+
readonly Alias: typeof NodesAlias;
|
|
119
|
+
readonly Document: typeof NodesDocument;
|
|
120
|
+
readonly Mapping: typeof NodesMapping;
|
|
121
|
+
readonly Node: typeof NodesNode;
|
|
122
|
+
readonly Scalar: typeof NodesScalar;
|
|
123
|
+
readonly Sequence: typeof NodesSequence;
|
|
124
|
+
readonly Stream: typeof NodesStream;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* `Psych::Emitter` (`vendor/ruby/v3.3.11/ext/psych/psych_emitter.c:527`).
|
|
128
|
+
*
|
|
129
|
+
* @noRailsEquivalent PERMANENT
|
|
130
|
+
*/
|
|
131
|
+
const Emitter: typeof PsychEmitter;
|
|
132
|
+
/**
|
|
133
|
+
* `Psych.load_tags` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:736,741`): a tag to
|
|
134
|
+
* the name of the class it loads as. Ruby's `attr_accessor`, so `Psych.loadTags = {}`
|
|
135
|
+
* replaces it.
|
|
136
|
+
*
|
|
137
|
+
* @noRailsEquivalent PERMANENT
|
|
138
|
+
*/
|
|
139
|
+
let loadTags: Record<string, string>;
|
|
140
|
+
/**
|
|
141
|
+
* `Psych.dump_tags` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:737,742`): a class to
|
|
142
|
+
* the tag it dumps under.
|
|
143
|
+
*
|
|
144
|
+
* @noRailsEquivalent PERMANENT
|
|
145
|
+
*/
|
|
146
|
+
let dumpTags: Map<object, string>;
|
|
147
|
+
/**
|
|
148
|
+
* `Psych.domain_types` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:738,743`): a tag
|
|
149
|
+
* key to `[key, block]`, the block called with the key and the loaded value.
|
|
150
|
+
*
|
|
151
|
+
* @noRailsEquivalent PERMANENT
|
|
152
|
+
*/
|
|
153
|
+
let domainTypes: Record<string, [string, (typeTag: string, value: unknown) => unknown]>;
|
|
154
|
+
/**
|
|
155
|
+
* `Psych.add_builtin_type` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:682-686`).
|
|
156
|
+
*
|
|
157
|
+
* @noRailsEquivalent PERMANENT
|
|
158
|
+
*/
|
|
159
|
+
function addBuiltinType(typeTag: string, block: (typeTag: string, value: unknown) => unknown): void;
|
|
160
|
+
/**
|
|
161
|
+
* `Psych.dump` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:505-514`).
|
|
162
|
+
*
|
|
163
|
+
* @noRailsEquivalent PERMANENT
|
|
164
|
+
*/
|
|
165
|
+
function dump(o: unknown, io?: YAMLTreeOptions | null, options?: YAMLTreeOptions): string;
|
|
166
|
+
function dump<T extends PsychIO>(o: unknown, io: T, options?: YAMLTreeOptions): T;
|
|
167
|
+
/**
|
|
168
|
+
* `Psych.safe_dump` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:578-587`).
|
|
169
|
+
*
|
|
170
|
+
* @noRailsEquivalent PERMANENT
|
|
171
|
+
*/
|
|
172
|
+
function safeDump(o: unknown, io?: YAMLTreeOptions | null, options?: YAMLTreeOptions): string;
|
|
173
|
+
function safeDump<T extends PsychIO>(o: unknown, io: T, options?: YAMLTreeOptions): T;
|
|
174
|
+
/**
|
|
175
|
+
* `Psych.unsafe_load` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:271`).
|
|
176
|
+
*
|
|
177
|
+
* @noRailsEquivalent PERMANENT
|
|
178
|
+
*/
|
|
179
|
+
function unsafeLoad(yamlString: string | Uint8Array | IO, { filename, fallback, symbolizeNames, freeze, strictInteger, }?: {
|
|
180
|
+
fallback?: unknown;
|
|
181
|
+
filename?: string | null | undefined;
|
|
182
|
+
freeze?: boolean | undefined;
|
|
183
|
+
strictInteger?: boolean | undefined;
|
|
184
|
+
symbolizeNames?: boolean | undefined;
|
|
185
|
+
}): unknown;
|
|
186
|
+
/**
|
|
187
|
+
* `Psych.parse` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:398-404`).
|
|
188
|
+
* The block's `return node` leaves `parse_stream` before the parser reads the
|
|
189
|
+
* next document, so it is thrown out of the block here.
|
|
190
|
+
*
|
|
191
|
+
* @inventedArm try — PERMANENT
|
|
192
|
+
* @inventedArm throw — PERMANENT
|
|
193
|
+
* @noRailsEquivalent PERMANENT
|
|
194
|
+
*/
|
|
195
|
+
function parse(yaml: string | Uint8Array | IO, { filename }?: {
|
|
196
|
+
filename?: string | null | undefined;
|
|
197
|
+
}): NodesDocument | false;
|
|
198
|
+
/**
|
|
199
|
+
* `Psych.parser` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:419-421`).
|
|
200
|
+
*
|
|
201
|
+
* @noRailsEquivalent PERMANENT
|
|
202
|
+
*/
|
|
203
|
+
function parser(): PsychParser;
|
|
204
|
+
/**
|
|
205
|
+
* `Psych.parse_stream` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:452-461`).
|
|
206
|
+
*
|
|
207
|
+
* @noRailsEquivalent PERMANENT
|
|
208
|
+
*/
|
|
209
|
+
function parseStream(yaml: string | Uint8Array | IO, { filename }?: {
|
|
210
|
+
filename?: string | null | undefined;
|
|
211
|
+
}, block?: (node: NodesDocument) => unknown): NodesStream | PsychParser;
|
|
212
|
+
/**
|
|
213
|
+
* `Psych.safe_load` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:322`).
|
|
214
|
+
*
|
|
215
|
+
* @noRailsEquivalent PERMANENT
|
|
216
|
+
*/
|
|
217
|
+
function safeLoad(yamlString: string | Uint8Array | IO, { permittedClasses, permittedSymbols, aliases, filename, fallback, symbolizeNames, freeze, strictInteger, }?: {
|
|
218
|
+
aliases?: boolean | undefined;
|
|
219
|
+
fallback?: unknown;
|
|
220
|
+
filename?: string | null | undefined;
|
|
221
|
+
freeze?: boolean | undefined;
|
|
222
|
+
permittedClasses?: unknown[] | undefined;
|
|
223
|
+
permittedSymbols?: string[] | undefined;
|
|
224
|
+
strictInteger?: boolean | undefined;
|
|
225
|
+
symbolizeNames?: boolean | undefined;
|
|
226
|
+
}): unknown;
|
|
227
|
+
/**
|
|
228
|
+
* `Psych.load` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:368-377`). trails has no
|
|
229
|
+
* `Symbol` class, so `permitted_classes: [Symbol]` names it, which
|
|
230
|
+
* `permitted_classes.map(&:to_s)` (`:326`) reads the same.
|
|
231
|
+
*
|
|
232
|
+
* @noRailsEquivalent PERMANENT
|
|
233
|
+
*/
|
|
234
|
+
function load(yamlString: string | Uint8Array | IO, { permittedClasses, permittedSymbols, aliases, filename, fallback, symbolizeNames, freeze, strictInteger, }?: {
|
|
235
|
+
aliases?: boolean | undefined;
|
|
236
|
+
fallback?: unknown;
|
|
237
|
+
filename?: string | null | undefined;
|
|
238
|
+
freeze?: boolean | undefined;
|
|
239
|
+
permittedClasses?: unknown[] | undefined;
|
|
240
|
+
permittedSymbols?: string[] | undefined;
|
|
241
|
+
strictInteger?: boolean | undefined;
|
|
242
|
+
symbolizeNames?: boolean | undefined;
|
|
243
|
+
}): unknown;
|
|
244
|
+
/**
|
|
245
|
+
* `Psych.unsafe_load_file` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:647-651`).
|
|
246
|
+
*
|
|
247
|
+
* @noRailsEquivalent PERMANENT
|
|
248
|
+
*/
|
|
249
|
+
function unsafeLoadFile(filename: string, kwargs?: Omit<NonNullable<Parameters<typeof unsafeLoad>[1]>, "filename">): unknown;
|
|
250
|
+
/**
|
|
251
|
+
* `Psych.load_file` (`vendor/ruby/v3.3.11/ext/psych/lib/psych.rb:669-673`).
|
|
252
|
+
*
|
|
253
|
+
* @noRailsEquivalent PERMANENT
|
|
254
|
+
*/
|
|
255
|
+
function loadFile(filename: string, kwargs?: Omit<NonNullable<Parameters<typeof load>[1]>, "filename">): unknown;
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=psych.d.ts.map
|