Sha256: 0df89911cd3dc670791f93fc5d44b7f2e337850f95b543e1cd729e03de78f5de
Contents?: true
Size: 271 Bytes
Versions: 20
Compression:
Stored size: 271 Bytes
Contents
self.onmessage = async (event) => { if (event.data.type === "api") { const { endpoint } = event.data let response response = await fetch(`${endpoint}`); const data = await response.json(); self.postMessage({ data }); } };
Version data entries
20 entries across 20 versions & 1 rubygems