n8n-nodes-base 1.85.0 → 1.85.1
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.
|
@@ -31,11 +31,13 @@ __export(Pyodide_exports, {
|
|
|
31
31
|
LoadPyodide: () => LoadPyodide
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(Pyodide_exports);
|
|
34
|
+
var import_node_path = require("node:path");
|
|
34
35
|
let pyodideInstance;
|
|
35
36
|
async function LoadPyodide(packageCacheDir) {
|
|
36
37
|
if (pyodideInstance === void 0) {
|
|
37
38
|
const { loadPyodide } = await import("pyodide");
|
|
38
|
-
|
|
39
|
+
const indexURL = (0, import_node_path.dirname)(require.resolve("pyodide"));
|
|
40
|
+
pyodideInstance = await loadPyodide({ indexURL, packageCacheDir });
|
|
39
41
|
await pyodideInstance.runPythonAsync(`
|
|
40
42
|
from _pyodide_core import jsproxy_typedict
|
|
41
43
|
from js import Object
|