twitterWrappermain.tsx1 match
2import { twitterJSON } from "https://esm.town/v/stevekrouse/twitterJSON";
34export default async function(req: Request): Promise<Response> {
5if (req.headers.get("authorization") !== "Bearer " + Deno.env.get("boozedog"))
6return Response.json("Unauthorized", { status: 401 });
1export default function() {
2console.log("hi");
3return "foo";
1import { handler } from "https://esm.town/v/saolsen/example_rust_http_val";
23export default async function(req: Request): Promise<Response> {
4let response = handler(req.method, req.url, await req.text());
5console.log(response);
example_rust_http_valmain.tsx12 matches
17let cachedUint8Memory0 = null;
1819function getUint8Memory0() {
20if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
21cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
24}
2526function getStringFromWasm0(ptr, len) {
27ptr = ptr >>> 0;
28return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
33let cachedTextEncoder = new TextEncoder("utf-8");
3435const encodeString = typeof cachedTextEncoder.encodeInto === "function"
36? function(arg, view) {
37return cachedTextEncoder.encodeInto(arg, view);
38}
39: function(arg, view) {
40const buf = cachedTextEncoder.encode(arg);
41view.set(buf);
46};
4748function passStringToWasm0(arg, malloc, realloc) {
49if (realloc === undefined) {
50const buf = cachedTextEncoder.encode(arg);
85let cachedInt32Memory0 = null;
8687function getInt32Memory0() {
88if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
89cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
96heap.push(undefined, null, true, false);
9798function getObject(idx) {
99return heap[idx];
100}
102let heap_next = heap.length;
103104function dropObject(idx) {
105if (idx < 132) return;
106heap[idx] = heap_next;
108}
109110function takeObject(idx) {
111const ret = getObject(idx);
112dropObject(idx);
119* @returns {string}
120*/
121export const handler = imports.handler = function(method, url, _body) {
122let deferred5_0;
123let deferred5_1;
151};
152153export const __wbg_log_18b11754c5793c04 = imports.__wbg_log_18b11754c5793c04 = function(arg0, arg1) {
154console.log(getStringFromWasm0(arg0, arg1));
155};
valtownGeocitiesmain.tsx3 matches
1import { blob } from "https://esm.town/v/std/blob?v=10";
23function isJSON(input: string | null | undefined) {
4if (!input || input === null) return false;
5try {
11}
1213function processInputHtml(html: string) {
14let output = html;
1521}
2223function formatPage(key: string, data: string) {
24return `
25${data}
example_rust_valmain.tsx5 matches
20let cachedUint8Memory0 = null;
2122function getUint8Memory0() {
23if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
24cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
27}
2829function getStringFromWasm0(ptr, len) {
30ptr = ptr >>> 0;
31return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
32}
33/** */
34export const say_hello = (imports.say_hello = function() {
35wasm.say_hello();
36});
41* @returns {number}
42*/
43export const add = (imports.add = function(x, y) {
44const ret = wasm.add(x, y);
45return ret;
46});
4748export const __wbg_log_08850d6d4d91f4c9 = (imports.__wbg_log_08850d6d4d91f4c9 = function(arg0, arg1) {
49console.log(getStringFromWasm0(arg0, arg1));
50});
youtubeEndpointmain.tsx3 matches
2import { YouTube } from 'https://deno.land/x/youtube@v0.3.0/mod.ts';
34export async function fetchVideoDetails(req) {
5const url = new URL(req.url);
6let yturl = url.searchParams.get("yturl") || "";
94break;
95case 'transcript':
96async function fetchcaptions(videoId) {
97const WATCH_URL = `https://www.youtube.com/watch?v=${videoId}`;
98135}
136137function parseISO8601Duration(duration) {
138const regex = /PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/;
139const matches = duration.match(regex);
getDetailsPlaystoremain.tsx1 match
1export async function getDetailsPlaystore(request: Request): Promise<Response> {
2const searchParams = new URL(request.url).searchParams;
3const bundleId = searchParams.get("bundleId");
checkTensorArtWebStatusmain.tsx2 matches
2import process from "node:process";
34export async function checkTensorArtWebStatus() {
5async function sendLarkMessage(message) {
6return fetch(process.env.larkTensorRobotUrl, {
7method: "POST",