From 586e4b22df5a1824849c0f95fc1c9ee0dffb707a Mon Sep 17 00:00:00 2001 From: Prasanth Date: Thu, 24 Oct 2024 22:58:52 +0530 Subject: [PATCH] Revert "Update worker.ts (#11)" (#12) This reverts commit f3764d85187a11e7e1fae0dea779745fc598b478. --- src/worker/worker.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/worker/worker.ts b/src/worker/worker.ts index abf7d19..b62c646 100644 --- a/src/worker/worker.ts +++ b/src/worker/worker.ts @@ -3,9 +3,7 @@ importScripts('https://cdn.jsdelivr.net/pyodide/v0.23.4/full/pyodide.js'); import { getContent, formatJson, KIND } from "../utils/utils"; -const loadCode = `from dothttp.models.computed import Config -from dothttp.parse import HttpDefBase - +const loadCode = `from dothttp import Config, HttpDefBase import json import base64 @@ -85,7 +83,7 @@ async function loadPyodideAndPackages() { // @ts-ignore await self.pyodide.loadPackage(['micropip']); // @ts-ignore - await self.pyodide.runPython(`import micropip;micropip.install(['dothttp-req-wasm==0.0.43a23', 'setuptools'])`); + await self.pyodide.runPython(`import micropip;micropip.install(['dothttp-req-wasm==0.0.42', 'setuptools'])`); // @ts-ignore await self.pyodide.runPython(loadCode); self.postMessage(