homura-runtime 0.2.13 → 0.2.14
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.
- checksums.yaml +4 -4
- data/lib/cloudflare_workers/async_registry.rb +7 -0
- data/lib/cloudflare_workers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f9563f8e7aae9b3faa946423aa2f7dc13c48767572c744546397ada20dd1015
|
|
4
|
+
data.tar.gz: 946de6742c7518ced26da901ce064d894d52607e3139c8365914d21fe5a2b539
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 185534dd8a467b7b04fe44456c856d84f0124bdd6d487f9a756676d71479228e081b4fdaa72d7635d1428d6cf2b0868db3b2103668b9f696ec9487f0f8c9b2a7
|
|
7
|
+
data.tar.gz: 91fce4ded7da7402431a993225969618fa88f538d77a6e5791a4c5acc72391941a706f446ab59a74996528f7575b5a186a852b483e276bb5a312fdb009b78311
|
|
@@ -148,6 +148,13 @@ CloudflareWorkers::AsyncRegistry.register_async_source do
|
|
|
148
148
|
async_method 'Cloudflare::D1Statement', :all
|
|
149
149
|
async_method 'Cloudflare::D1Statement', :first
|
|
150
150
|
async_method 'Cloudflare::D1Statement', :run
|
|
151
|
+
# `bind` returns a new D1Statement for further chaining. Tainting the
|
|
152
|
+
# return preserves the type so the auto-await pass keeps chaining
|
|
153
|
+
# `.run` / `.all` / `.first` on the bound statement (otherwise
|
|
154
|
+
# `db.prepare(sql).bind(...).run` drops await on `.run` and
|
|
155
|
+
# `flatten_meta` ends up receiving a JS Promise instead of the
|
|
156
|
+
# metadata Hash).
|
|
157
|
+
taint_return 'Cloudflare::D1Statement', :bind, 'Cloudflare::D1Statement'
|
|
151
158
|
|
|
152
159
|
async_method 'Cloudflare::KVNamespace', :get
|
|
153
160
|
async_method 'Cloudflare::KVNamespace', :get_with_metadata
|