Skip to content

Commit

Permalink
Revert "Update worker.ts (#11)" (#12)
Browse files Browse the repository at this point in the history
This reverts commit f3764d8.
  • Loading branch information
cedric05 authored Oct 24, 2024
1 parent f3764d8 commit 586e4b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 586e4b2

Please sign in to comment.