@primate/python 0.1.3 → 0.1.4
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.
- package/package.json +1 -1
- package/src/load.js +1 -0
- package/src/private/build.js +1 -1
package/package.json
CHANGED
package/src/load.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { loadPyodide as default } from "pyodide";
|
package/src/private/build.js
CHANGED
|
@@ -16,7 +16,7 @@ const js_wrapper = async (path, routes, packages) => `
|
|
|
16
16
|
import to_request from "@primate/python/to-request";
|
|
17
17
|
import to_response from "@primate/python/to-response";
|
|
18
18
|
import wrap from "@primate/python/wrap";
|
|
19
|
-
import
|
|
19
|
+
import load from "@primate/python/load";
|
|
20
20
|
|
|
21
21
|
const pyodide = await load({ indexURL: "./node_modules/pyodide" });
|
|
22
22
|
const python_route = await file(${JSON.stringify(path)}).text();
|